Class AbstractCollectionAdapter
- java.lang.Object
-
- org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
-
- All Implemented Interfaces:
CollectionAdapter,CollectionInfo,MediaCollectionAdapter,Transactional
- Direct Known Subclasses:
AbstractEntityCollectionAdapter,AbstractMultipartCollectionAdapter,ManagedCollectionAdapter
@Deprecated public abstract class AbstractCollectionAdapter extends Object implements CollectionAdapter, MediaCollectionAdapter, Transactional, CollectionInfo
Deprecated.Legacy AEM 6.x API.Base CollectionAdapter implementation that provides a number of helper utility methods for adapter implementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractCollectionAdapter()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.abdera.model.CollectionasCollectionElement(RequestContext request)Deprecated.Converts this to an instance of the FOM Collection interfacevoidcompensate(RequestContext request, Throwable t)Deprecated.Called by the provider when a processing error occursResponseContextdeleteMedia(RequestContext request)Deprecated.Delete a media resource from the collectionvoidend(RequestContext request, ResponseContext response)Deprecated.Called by the provider after dispatching the request to the adapterResponseContextextensionRequest(RequestContext request)Deprecated.Any request that is not covered by the postEntry, deleteEntry, etc methods will be passed on to the extensionRequest method.String[]getAccepts(RequestContext request)Deprecated.Returns an array of MIME media types for the app:collection element's app:accept elements.abstract StringgetAuthor(RequestContext request)Deprecated.ResponseContextgetCategories(RequestContext request)Deprecated.Get an Atompub Categories documentCategoriesInfo[]getCategoriesInfo(RequestContext request)Deprecated.Return the collection of CategoriesInfo objects for the app:collection element's app:categories elements.StringgetHref()Deprecated.StringgetHref(RequestContext request)Deprecated.Get the value of the app:collection element's href attribute.abstract StringgetId(RequestContext request)Deprecated.ResponseContextgetMedia(RequestContext request)Deprecated.Get a media resourceResponseContextheadEntry(RequestContext request)Deprecated.Get metadata for an entry from the collectionResponseContextheadMedia(RequestContext request)Deprecated.Get metdata for a media resourceResponseContextoptionsEntry(RequestContext request)Deprecated.Get options for an entry from the collectionResponseContextoptionsMedia(RequestContext request)Deprecated.Get a media resource's options.ResponseContextpostMedia(RequestContext request)Deprecated.Add a new media resource to the collection, resulting in the creation of a new Media Link Entry.ResponseContextputMedia(RequestContext request)Deprecated.Update a media resourcevoidsetHref(String href)Deprecated.voidstart(RequestContext request)Deprecated.Called by the provider before dispatching the request to the adapter-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.abdera.protocol.server.CollectionAdapter
deleteEntry, getEntry, getFeed, postEntry, putEntry
-
Methods inherited from interface org.apache.abdera.protocol.server.CollectionInfo
getTitle
-
-
-
-
Method Detail
-
getHref
public String getHref()
Deprecated.
-
setHref
public void setHref(String href)
Deprecated.
-
getHref
public String getHref(RequestContext request)
Deprecated.Description copied from interface:CollectionInfoGet the value of the app:collection element's href attribute. This must not be null- Specified by:
getHrefin interfaceCollectionInfo
-
compensate
public void compensate(RequestContext request, Throwable t)
Deprecated.Description copied from interface:TransactionalCalled by the provider when a processing error occurs- Specified by:
compensatein interfaceTransactional
-
end
public void end(RequestContext request, ResponseContext response)
Deprecated.Description copied from interface:TransactionalCalled by the provider after dispatching the request to the adapter- Specified by:
endin interfaceTransactional
-
start
public void start(RequestContext request) throws ResponseContextException
Deprecated.Description copied from interface:TransactionalCalled by the provider before dispatching the request to the adapter- Specified by:
startin interfaceTransactional- Throws:
ResponseContextException
-
getAccepts
public String[] getAccepts(RequestContext request)
Deprecated.Description copied from interface:CollectionInfoReturns an array of MIME media types for the app:collection element's app:accept elements. These tell a client which media types the collection will accept on a POST- Specified by:
getAcceptsin interfaceCollectionInfo
-
getCategoriesInfo
public CategoriesInfo[] getCategoriesInfo(RequestContext request)
Deprecated.Description copied from interface:CollectionInfoReturn the collection of CategoriesInfo objects for the app:collection element's app:categories elements. These tell a client which atom:category elements are defined for use in the collections atom:entries- Specified by:
getCategoriesInfoin interfaceCollectionInfo
-
getCategories
public ResponseContext getCategories(RequestContext request)
Deprecated.Description copied from interface:CollectionAdapterGet an Atompub Categories document- Specified by:
getCategoriesin interfaceCollectionAdapter
-
deleteMedia
public ResponseContext deleteMedia(RequestContext request)
Deprecated.Description copied from interface:MediaCollectionAdapterDelete a media resource from the collection- Specified by:
deleteMediain interfaceMediaCollectionAdapter
-
getMedia
public ResponseContext getMedia(RequestContext request)
Deprecated.Description copied from interface:MediaCollectionAdapterGet a media resource- Specified by:
getMediain interfaceMediaCollectionAdapter
-
headMedia
public ResponseContext headMedia(RequestContext request)
Deprecated.Description copied from interface:MediaCollectionAdapterGet metdata for a media resource- Specified by:
headMediain interfaceMediaCollectionAdapter
-
optionsMedia
public ResponseContext optionsMedia(RequestContext request)
Deprecated.Description copied from interface:MediaCollectionAdapterGet a media resource's options.- Specified by:
optionsMediain interfaceMediaCollectionAdapter
-
putMedia
public ResponseContext putMedia(RequestContext request)
Deprecated.Description copied from interface:MediaCollectionAdapterUpdate a media resource- Specified by:
putMediain interfaceMediaCollectionAdapter
-
postMedia
public ResponseContext postMedia(RequestContext request)
Deprecated.Description copied from interface:MediaCollectionAdapterAdd a new media resource to the collection, resulting in the creation of a new Media Link Entry.- Specified by:
postMediain interfaceMediaCollectionAdapter
-
headEntry
public ResponseContext headEntry(RequestContext request)
Deprecated.Description copied from interface:CollectionAdapterGet metadata for an entry from the collection- Specified by:
headEntryin interfaceCollectionAdapter
-
optionsEntry
public ResponseContext optionsEntry(RequestContext request)
Deprecated.Description copied from interface:CollectionAdapterGet options for an entry from the collection- Specified by:
optionsEntryin interfaceCollectionAdapter
-
getAuthor
public abstract String getAuthor(RequestContext request) throws ResponseContextException
Deprecated.- Throws:
ResponseContextException
-
getId
public abstract String getId(RequestContext request)
Deprecated.
-
extensionRequest
public ResponseContext extensionRequest(RequestContext request)
Deprecated.Description copied from interface:CollectionAdapterAny request that is not covered by the postEntry, deleteEntry, etc methods will be passed on to the extensionRequest method. This provides an Adapter with the ability to support Atompub protocol extensions.- Specified by:
extensionRequestin interfaceCollectionAdapter
-
asCollectionElement
public org.apache.abdera.model.Collection asCollectionElement(RequestContext request)
Deprecated.Description copied from interface:CollectionInfoConverts this to an instance of the FOM Collection interface- Specified by:
asCollectionElementin interfaceCollectionInfo
-
-