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