com.liferay.portlet.documentlibrary.atom
Class FileEntryAtomCollectionAdapter
java.lang.Object
com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<E>
com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
com.liferay.portlet.documentlibrary.atom.FileEntryAtomCollectionAdapter
- All Implemented Interfaces:
- com.liferay.portal.kernel.atom.AtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
public class FileEntryAtomCollectionAdapter
- extends com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Author:
- Igor Spasic
| Fields inherited from interface com.liferay.portal.kernel.atom.AtomCollectionAdapter |
SC_BAD_CONTENT, SC_BAD_REQUEST, SC_CONFLICT, SC_CREATED, SC_FORBIDDEN, SC_INTERNAL_SERVER_ERROR, SC_NOT_FOUND, SC_NOT_MODIFIED, SC_OK, SC_UNAUTHORIZED |
|
Method Summary |
protected void |
doDeleteEntry(java.lang.String resourceName,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
protected com.liferay.portal.kernel.repository.model.FileEntry |
doGetEntry(java.lang.String resourceName,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
protected java.lang.Iterable<com.liferay.portal.kernel.repository.model.FileEntry> |
doGetFeedEntries(com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
protected com.liferay.portal.kernel.repository.model.FileEntry |
doPostEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
protected com.liferay.portal.kernel.repository.model.FileEntry |
doPostMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
protected void |
doPutEntry(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
protected void |
doPutMedia(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
java.lang.String |
getCollectionName()
|
java.util.List<java.lang.String> |
getEntryAuthors(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
com.liferay.portal.kernel.atom.AtomEntryContent |
getEntryContent(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
java.lang.String |
getEntryId(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
java.lang.String |
getEntrySummary(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
java.lang.String |
getEntryTitle(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
java.util.Date |
getEntryUpdated(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
java.lang.String |
getFeedTitle(com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
|
java.lang.String |
getMediaContentType(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
java.lang.String |
getMediaName(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
java.io.InputStream |
getMediaStream(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
|
| Methods inherited from class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter |
deleteEntry, getEntry, getFeedEntries, postEntry, postMedia, putEntry, putMedia |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COLLECTION_NAME
protected static final java.lang.String COLLECTION_NAME
- See Also:
- Constant Field Values
FileEntryAtomCollectionAdapter
public FileEntryAtomCollectionAdapter()
getCollectionName
public java.lang.String getCollectionName()
getEntryAuthors
public java.util.List<java.lang.String> getEntryAuthors(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getEntryContent
public com.liferay.portal.kernel.atom.AtomEntryContent getEntryContent(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
getEntryId
public java.lang.String getEntryId(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getEntrySummary
public java.lang.String getEntrySummary(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getEntryTitle
public java.lang.String getEntryTitle(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getEntryUpdated
public java.util.Date getEntryUpdated(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
getFeedTitle
public java.lang.String getFeedTitle(com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
getMediaContentType
public java.lang.String getMediaContentType(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
- Specified by:
getMediaContentType in interface com.liferay.portal.kernel.atom.AtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>- Specified by:
getMediaContentType in class com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
getMediaName
public java.lang.String getMediaName(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
- Specified by:
getMediaName in interface com.liferay.portal.kernel.atom.AtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>- Specified by:
getMediaName in class com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
getMediaStream
public java.io.InputStream getMediaStream(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
throws com.liferay.portal.kernel.atom.AtomException
- Specified by:
getMediaStream in interface com.liferay.portal.kernel.atom.AtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>- Specified by:
getMediaStream in class com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
com.liferay.portal.kernel.atom.AtomException
doDeleteEntry
protected void doDeleteEntry(java.lang.String resourceName,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Overrides:
doDeleteEntry in class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception
doGetEntry
protected com.liferay.portal.kernel.repository.model.FileEntry doGetEntry(java.lang.String resourceName,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Specified by:
doGetEntry in class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception
doGetFeedEntries
protected java.lang.Iterable<com.liferay.portal.kernel.repository.model.FileEntry> doGetFeedEntries(com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Specified by:
doGetFeedEntries in class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception
doPostEntry
protected com.liferay.portal.kernel.repository.model.FileEntry doPostEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Overrides:
doPostEntry in class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception
doPostMedia
protected com.liferay.portal.kernel.repository.model.FileEntry doPostMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Specified by:
doPostMedia in class com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception
doPutEntry
protected void doPutEntry(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Overrides:
doPutEntry in class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception
doPutMedia
protected void doPutMedia(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
com.liferay.portal.kernel.atom.AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Specified by:
doPutMedia in class com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<com.liferay.portal.kernel.repository.model.FileEntry>
- Throws:
java.lang.Exception