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 Object
- implements AtomCollectionAdapter<E>
Method Summary |
void |
deleteEntry(String resourceName,
AtomRequestContext atomRequestContext)
|
protected void |
doDeleteEntry(String resourceName,
AtomRequestContext atomRequestContext)
|
protected abstract E |
doGetEntry(String resourceName,
AtomRequestContext atomRequestContext)
|
protected abstract Iterable<E> |
doGetFeedEntries(AtomRequestContext atomRequestContext)
|
protected E |
doPostEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
|
protected E |
doPostMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
|
protected void |
doPutEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
|
protected void |
doPutMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
|
E |
getEntry(String resourceName,
AtomRequestContext atomRequestContext)
|
Iterable<E> |
getFeedEntries(AtomRequestContext atomRequestContext)
|
String |
getMediaContentType(E entry)
|
String |
getMediaName(E entry)
|
InputStream |
getMediaStream(E entry)
|
E |
postEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
|
E |
postMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
|
void |
putEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
|
void |
putMedia(E entry,
String mimeType,
String slug,
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(String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
deleteEntry
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getEntry
public E getEntry(String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
getEntry
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getFeedEntries
public Iterable<E> getFeedEntries(AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
getFeedEntries
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getMediaContentType
public String getMediaContentType(E entry)
- Specified by:
getMediaContentType
in interface AtomCollectionAdapter<E>
getMediaName
public String getMediaName(E entry)
throws AtomException
- Specified by:
getMediaName
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
getMediaStream
public InputStream getMediaStream(E entry)
throws AtomException
- Specified by:
getMediaStream
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
postEntry
public E postEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
postEntry
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
postMedia
public E postMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
postMedia
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
putEntry
public void putEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
putEntry
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
putMedia
public void putMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
throws AtomException
- Specified by:
putMedia
in interface AtomCollectionAdapter<E>
- Throws:
AtomException
doDeleteEntry
protected void doDeleteEntry(String resourceName,
AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception
doGetEntry
protected abstract E doGetEntry(String resourceName,
AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception
doGetFeedEntries
protected abstract Iterable<E> doGetFeedEntries(AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception
doPostEntry
protected E doPostEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception
doPostMedia
protected E doPostMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception
doPutEntry
protected void doPutEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception
doPutMedia
protected void doPutMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
throws Exception
- Throws:
Exception