com.liferay.portal.kernel.atom
Class BaseAtomCollectionAdapter<E>
java.lang.Object
com.liferay.portal.kernel.atom.BaseAtomCollectionAdapter<E>
- All Implemented Interfaces:
- AtomCollectionAdapter<E>
- Direct Known Subclasses:
- BaseMediaAtomCollectionAdapter
public abstract class BaseAtomCollectionAdapter<E>
- extends java.lang.Object
- implements AtomCollectionAdapter<E>
- Author:
- Igor Spasic
|
Method Summary |
void |
deleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
|
protected void |
doDeleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
|
protected abstract E |
doGetEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
|
protected abstract java.lang.Iterable<E> |
doGetFeedEntries(AtomRequestContext atomRequestContext)
|
protected E |
doPostEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
|
protected E |
doPostMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
|
protected void |
doPutEntry(E entry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
|
protected void |
doPutMedia(E entry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
|
E |
getEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
|
java.lang.Iterable<E> |
getFeedEntries(AtomRequestContext atomRequestContext)
|
java.lang.String |
getMediaContentType(E entry)
|
java.lang.String |
getMediaName(E entry)
|
java.io.InputStream |
getMediaStream(E entry)
|
E |
postEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
|
E |
postMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
|
void |
putEntry(E entry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
|
void |
putMedia(E entry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAtomCollectionAdapter
public BaseAtomCollectionAdapter()
deleteEntry
public void deleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
deleteEntry in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getEntry
public E getEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
getEntry in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getFeedEntries
public java.lang.Iterable<E> getFeedEntries(AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
getFeedEntries in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getMediaContentType
public java.lang.String getMediaContentType(E entry)
- Specified by:
getMediaContentType in interface AtomCollectionAdapter<E>
getMediaName
public java.lang.String getMediaName(E entry)
throws AtomException
- Specified by:
getMediaName in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getMediaStream
public java.io.InputStream getMediaStream(E entry)
throws AtomException
- Specified by:
getMediaStream in interface AtomCollectionAdapter<E>
- Throws:
AtomException
postEntry
public E postEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
postEntry in interface AtomCollectionAdapter<E>
- Throws:
AtomException
postMedia
public E postMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
postMedia in interface AtomCollectionAdapter<E>
- Throws:
AtomException
putEntry
public void putEntry(E entry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
putEntry in interface AtomCollectionAdapter<E>
- Throws:
AtomException
putMedia
public void putMedia(E entry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
putMedia in interface AtomCollectionAdapter<E>
- Throws:
AtomException
doDeleteEntry
protected void doDeleteEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
doGetEntry
protected abstract E doGetEntry(java.lang.String resourceName,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
doGetFeedEntries
protected abstract java.lang.Iterable<E> doGetFeedEntries(AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
doPostEntry
protected E doPostEntry(java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
doPostMedia
protected E doPostMedia(java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
doPutEntry
protected void doPutEntry(E entry,
java.lang.String title,
java.lang.String summary,
java.lang.String content,
java.util.Date date,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
doPutMedia
protected void doPutMedia(E entry,
java.lang.String mimeType,
java.lang.String slug,
java.io.InputStream inputStream,
AtomRequestContext atomRequestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception