Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.atom
Class FileEntryAtomCollectionAdapter

java.lang.Object
  extended by com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<E>
      extended by com.liferay.portal.kernel.atom.BaseMediaAtomCollectionAdapter<FileEntry>
          extended by com.liferay.portlet.documentlibrary.atom.FileEntryAtomCollectionAdapter
All Implemented Interfaces:
AtomCollectionAdapter<FileEntry>

public class FileEntryAtomCollectionAdapter
extends BaseMediaAtomCollectionAdapter<FileEntry>


Field Summary
protected static String COLLECTION_NAME
           
 
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
 
Constructor Summary
FileEntryAtomCollectionAdapter()
           
 
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 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
 

Field Detail

COLLECTION_NAME

protected static final String COLLECTION_NAME
See Also:
Constant Field Values
Constructor Detail

FileEntryAtomCollectionAdapter

public FileEntryAtomCollectionAdapter()
Method Detail

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

Liferay 6.1.2-ce-ga3