com.liferay.portal.atom
Class AtomCollectionAdapterWrapper<E>
java.lang.Object
org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
com.liferay.portal.atom.BaseEntityCollectionAdapter<E>
com.liferay.portal.atom.AtomCollectionAdapterWrapper<E>
- All Implemented Interfaces:
- org.apache.abdera.protocol.server.CollectionAdapter, org.apache.abdera.protocol.server.CollectionInfo, org.apache.abdera.protocol.server.MediaCollectionAdapter, org.apache.abdera.protocol.server.Transactional
public class AtomCollectionAdapterWrapper<E>
- extends BaseEntityCollectionAdapter<E>
Method Summary |
void |
deleteEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
List<org.apache.abdera.model.Person> |
getAuthors(E entry,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
Object |
getContent(E entry,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
String |
getContentType(E entry)
|
Iterable<E> |
getEntries(org.apache.abdera.protocol.server.RequestContext requestContext)
|
E |
getEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
protected String |
getEntryId(E entry)
|
String |
getMediaName(E entry)
|
InputStream |
getMediaStream(E entry)
|
org.apache.abdera.model.Text |
getSummary(E entry,
org.apache.abdera.protocol.server.RequestContext request)
|
String |
getTitle(E entry)
|
String |
getTitle(org.apache.abdera.protocol.server.RequestContext requestContext)
|
Date |
getUpdated(E entry)
|
protected org.apache.abdera.model.Content |
newContent(AtomEntryContent.Type atomEntryContentType,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
E |
postEntry(String title,
org.apache.abdera.i18n.iri.IRI id,
String summary,
Date updated,
List<org.apache.abdera.model.Person> authors,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
E |
postMedia(MimeType mimeType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
void |
putEntry(E entry,
String title,
Date updated,
List<org.apache.abdera.model.Person> authors,
String summary,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
void |
putMedia(E entry,
MimeType contentType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext requestContext)
|
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter |
addContent, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteMedia, deleteMedia, getEntry, getEntryFromCollectionProvider, getFeed, getFeedIriForEntry, getLink, getLink, getLink, getLink, getMedia, getQueryParameters, headEntry, headMedia, isMediaEntry, postEntry, postMedia, putEntry, putMedia |
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter |
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, end, extensionRequest, getAccepts, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getResourceName, optionsEntry, optionsMedia, setHref, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomCollectionAdapterWrapper
public AtomCollectionAdapterWrapper(AtomCollectionAdapter<E> atomCollectionAdapter)
deleteEntry
public void deleteEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
deleteEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getAuthors
public List<org.apache.abdera.model.Person> getAuthors(E entry,
org.apache.abdera.protocol.server.RequestContext requestContext)
- Overrides:
getAuthors
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
getContent
public Object getContent(E entry,
org.apache.abdera.protocol.server.RequestContext requestContext)
- Specified by:
getContent
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
getContentType
public String getContentType(E entry)
- Overrides:
getContentType
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
getEntries
public Iterable<E> getEntries(org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
getEntries
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getEntry
public E getEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
getEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getMediaName
public String getMediaName(E entry)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Overrides:
getMediaName
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getMediaStream
public InputStream getMediaStream(E entry)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Overrides:
getMediaStream
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getSummary
public org.apache.abdera.model.Text getSummary(E entry,
org.apache.abdera.protocol.server.RequestContext request)
- Overrides:
getSummary
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
getTitle
public String getTitle(E entry)
- Specified by:
getTitle
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
getTitle
public String getTitle(org.apache.abdera.protocol.server.RequestContext requestContext)
getUpdated
public Date getUpdated(E entry)
- Specified by:
getUpdated
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
postEntry
public E postEntry(String title,
org.apache.abdera.i18n.iri.IRI id,
String summary,
Date updated,
List<org.apache.abdera.model.Person> authors,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
postEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
postMedia
public E postMedia(MimeType mimeType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Overrides:
postMedia
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
putEntry
public void putEntry(E entry,
String title,
Date updated,
List<org.apache.abdera.model.Person> authors,
String summary,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
putEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
putMedia
public void putMedia(E entry,
MimeType contentType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext requestContext)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Overrides:
putMedia
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getEntryId
protected String getEntryId(E entry)
- Specified by:
getEntryId
in class BaseEntityCollectionAdapter<E>
newContent
protected org.apache.abdera.model.Content newContent(AtomEntryContent.Type atomEntryContentType,
org.apache.abdera.protocol.server.RequestContext requestContext)