public class AtomCollectionAdapterWrapper<E> extends BaseEntityCollectionAdapter<E>
collectionName
Constructor and Description |
---|
AtomCollectionAdapterWrapper(com.liferay.portal.kernel.atom.AtomCollectionAdapter<E> atomCollectionAdapter) |
Modifier and Type | Method and Description |
---|---|
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(com.liferay.portal.kernel.atom.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(javax.activation.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,
javax.activation.MimeType contentType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext requestContext) |
addEntryDetails, addFeedDetails, createFeedBase, getAuthor, getHref, getId, getId, getName
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
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, end, extensionRequest, getAccepts, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getResourceName, optionsEntry, optionsMedia, setHref, start
public AtomCollectionAdapterWrapper(com.liferay.portal.kernel.atom.AtomCollectionAdapter<E> atomCollectionAdapter)
public void deleteEntry(String resourceName, org.apache.abdera.protocol.server.RequestContext requestContext) throws org.apache.abdera.protocol.server.context.ResponseContextException
deleteEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public List<org.apache.abdera.model.Person> getAuthors(E entry, org.apache.abdera.protocol.server.RequestContext requestContext)
getAuthors
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
public Object getContent(E entry, org.apache.abdera.protocol.server.RequestContext requestContext)
getContent
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
public String getContentType(E entry)
getContentType
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
public Iterable<E> getEntries(org.apache.abdera.protocol.server.RequestContext requestContext) throws org.apache.abdera.protocol.server.context.ResponseContextException
getEntries
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public E getEntry(String resourceName, org.apache.abdera.protocol.server.RequestContext requestContext) throws org.apache.abdera.protocol.server.context.ResponseContextException
getEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public String getMediaName(E entry) throws org.apache.abdera.protocol.server.context.ResponseContextException
getMediaName
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public InputStream getMediaStream(E entry) throws org.apache.abdera.protocol.server.context.ResponseContextException
getMediaStream
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public org.apache.abdera.model.Text getSummary(E entry, org.apache.abdera.protocol.server.RequestContext request)
getSummary
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
public String getTitle(E entry)
getTitle
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
public String getTitle(org.apache.abdera.protocol.server.RequestContext requestContext)
public Date getUpdated(E entry)
getUpdated
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
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
postEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public E postMedia(javax.activation.MimeType mimeType, String slug, InputStream inputStream, org.apache.abdera.protocol.server.RequestContext requestContext) throws org.apache.abdera.protocol.server.context.ResponseContextException
postMedia
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
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
putEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
public void putMedia(E entry, javax.activation.MimeType contentType, String slug, InputStream inputStream, org.apache.abdera.protocol.server.RequestContext requestContext) throws org.apache.abdera.protocol.server.context.ResponseContextException
putMedia
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<E>
org.apache.abdera.protocol.server.context.ResponseContextException
protected String getEntryId(E entry)
getEntryId
in class BaseEntityCollectionAdapter<E>
protected org.apache.abdera.model.Content newContent(com.liferay.portal.kernel.atom.AtomEntryContent.Type atomEntryContentType, org.apache.abdera.protocol.server.RequestContext requestContext)