Liferay 6.2-ce-ga5

com.liferay.portal.kernel.atom
Class BaseMediaAtomCollectionAdapter<E>

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

public abstract class BaseMediaAtomCollectionAdapter<E>
extends BaseAtomCollectionAdapter<E>


Field Summary
 
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
BaseMediaAtomCollectionAdapter()
           
 
Method Summary
protected abstract  E doPostMedia(String mimeType, String slug, InputStream inputStream, AtomRequestContext atomRequestContext)
           
protected abstract  void doPutMedia(E entry, String mimeType, String slug, InputStream inputStream, AtomRequestContext atomRequestContext)
           
abstract  String getMediaContentType(E entry)
           
abstract  String getMediaName(E entry)
           
abstract  InputStream getMediaStream(E entry)
           
 
Methods inherited from class com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter
deleteEntry, doDeleteEntry, doGetEntry, doGetFeedEntries, doPostEntry, doPutEntry, getEntry, getFeedEntries, postEntry, postMedia, putEntry, putMedia
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.atom.AtomCollectionAdapter
getCollectionName, getEntryAuthors, getEntryContent, getEntryId, getEntrySummary, getEntryTitle, getEntryUpdated, getFeedTitle
 

Constructor Detail

BaseMediaAtomCollectionAdapter

public BaseMediaAtomCollectionAdapter()
Method Detail

getMediaContentType

public abstract String getMediaContentType(E entry)
Specified by:
getMediaContentType in interface AtomCollectionAdapter<E>
Overrides:
getMediaContentType in class BaseAtomCollectionAdapter<E>

getMediaName

public abstract String getMediaName(E entry)
                             throws AtomException
Specified by:
getMediaName in interface AtomCollectionAdapter<E>
Overrides:
getMediaName in class BaseAtomCollectionAdapter<E>
Throws:
AtomException

getMediaStream

public abstract InputStream getMediaStream(E entry)
                                    throws AtomException
Specified by:
getMediaStream in interface AtomCollectionAdapter<E>
Overrides:
getMediaStream in class BaseAtomCollectionAdapter<E>
Throws:
AtomException

doPostMedia

protected abstract E doPostMedia(String mimeType,
                                 String slug,
                                 InputStream inputStream,
                                 AtomRequestContext atomRequestContext)
                          throws Exception
Overrides:
doPostMedia in class BaseAtomCollectionAdapter<E>
Throws:
Exception

doPutMedia

protected abstract void doPutMedia(E entry,
                                   String mimeType,
                                   String slug,
                                   InputStream inputStream,
                                   AtomRequestContext atomRequestContext)
                            throws Exception
Overrides:
doPutMedia in class BaseAtomCollectionAdapter<E>
Throws:
Exception

Liferay 6.2-ce-ga5