|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
org.xcmis.restatom.collections.AbstractCmisCollection<org.xcmis.spi.model.CmisObject>
org.xcmis.restatom.collections.CmisObjectCollection
public abstract class CmisObjectCollection
| Field Summary | |
|---|---|
protected static String |
ANONYMOUS
The Constant ANONYMOUS. |
protected static String |
SPACES_AIR_SPECIFIC_REFERER
The Constant SPACES_AIR_SPECIFIC_REFERER. |
protected static String |
SYSTEM
The Constant SYSTEM. |
| Constructor Summary | |
|---|---|
CmisObjectCollection()
Instantiates a new cmis object collection. |
|
| Method Summary | |
|---|---|
protected String |
addEntryDetails(org.apache.abdera.protocol.server.RequestContext request,
org.apache.abdera.model.Entry entry,
org.apache.abdera.i18n.iri.IRI feedIri,
org.xcmis.spi.model.CmisObject object)
|
protected org.xcmis.spi.utils.MimeType |
convertMimeType(MimeType abderaMimeType)
|
protected org.apache.abdera.model.Feed |
createFeedBase(org.apache.abdera.protocol.server.RequestContext request)
|
void |
deleteEntry(String objectId,
org.apache.abdera.protocol.server.RequestContext request)
|
org.apache.abdera.protocol.server.ResponseContext |
deleteMedia(org.apache.abdera.protocol.server.RequestContext request)
|
void |
deleteMedia(String documentId,
org.apache.abdera.protocol.server.RequestContext request)
|
protected String |
getACLLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object's ACL. |
protected String |
getAllowableActionsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object's allowable actions. |
protected String |
getAllVersionsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object's versions. |
String |
getAuthor(org.apache.abdera.protocol.server.RequestContext request)
|
List<org.apache.abdera.model.Person> |
getAuthors(org.xcmis.spi.model.CmisObject object,
org.apache.abdera.protocol.server.RequestContext request)
|
protected org.xcmis.spi.model.BaseType |
getBaseObjectType(org.xcmis.spi.model.CmisObject object)
Get object's base type. |
protected String |
getBaseRenditionHref(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to express renditions. |
protected String |
getChildrenLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub document that describes folder's children. |
protected String |
getContentLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to document content. |
protected org.xcmis.spi.ContentStream |
getContentStream(org.apache.abdera.model.Entry entry,
org.apache.abdera.protocol.server.RequestContext request)
Get content stream from entry. |
String |
getContentType(org.xcmis.spi.model.CmisObject object)
|
protected Calendar |
getCreationDate(org.xcmis.spi.model.CmisObject object)
Get object creation date. |
protected String |
getDescendantsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub document that describes folder's descendants. |
org.xcmis.spi.model.CmisObject |
getEntry(String id,
org.apache.abdera.protocol.server.RequestContext request)
|
protected String |
getFolderTreeLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub document that describes folder's tree. |
String |
getId(org.xcmis.spi.model.CmisObject object)
|
String |
getId(org.apache.abdera.protocol.server.RequestContext request)
|
protected Calendar |
getLastModificationDate(org.xcmis.spi.model.CmisObject object)
Get object creation date. |
org.apache.abdera.protocol.server.ResponseContext |
getMedia(org.apache.abdera.protocol.server.RequestContext request)
|
String |
getName(org.xcmis.spi.model.CmisObject object)
|
protected String |
getObjectLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object with id. |
protected String |
getParentsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object's parent(s). |
protected String |
getPoliciesLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object's policies. |
protected org.xcmis.spi.model.Property<?> |
getProperty(org.xcmis.spi.model.CmisObject object,
String propertyName)
Get object's property. |
protected String |
getRelationshipsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes object's relationships. |
protected String |
getResourceName(org.apache.abdera.protocol.server.RequestContext request)
Get's the name of the specific resource requested. |
protected String |
getSelfLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Get self link which provides the URI to retrieve this resource again. |
String |
getStreamId(org.apache.abdera.protocol.server.RequestContext request)
|
String |
getTitle(org.xcmis.spi.model.CmisObject object)
|
Date |
getUpdated(org.xcmis.spi.model.CmisObject object)
|
org.apache.abdera.protocol.server.ResponseContext |
putEntry(org.apache.abdera.protocol.server.RequestContext request)
|
void |
putMedia(org.xcmis.spi.model.CmisObject entryObj,
MimeType contentType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext request)
Put media. |
org.apache.abdera.protocol.server.ResponseContext |
putMedia(org.apache.abdera.protocol.server.RequestContext request)
|
protected void |
updatePropertiesFromEntry(org.xcmis.spi.model.CmisObject object,
org.apache.abdera.model.Entry entry)
From specification (1.0-cd06), section 3.5.2 Entries. |
| Methods inherited from class org.xcmis.restatom.collections.AbstractCmisCollection |
|---|
addPageLinks, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, createErrorResponse, createErrorResponse, getBooleanParameter, getConnection, getContent, getIntegerParameter, getObjectTypeLink, getRepositoryId, getServiceLink, postEntry, postEntry, putEntry |
| Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter |
|---|
addContent, addFeedDetails, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, getEntries, getEntry, getEntryFromCollectionProvider, getFeed, getFeedIriForEntry, getLink, getLink, getMediaName, getMediaStream, getQueryParameters, getSummary, headEntry, headMedia, isMediaEntry, postMedia, postMedia |
| Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter |
|---|
asCollectionElement, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, end, extensionRequest, getAccepts, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getHref, optionsEntry, optionsMedia, setHref, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.abdera.protocol.server.CollectionInfo |
|---|
getTitle |
| Field Detail |
|---|
protected static final String SPACES_AIR_SPECIFIC_REFERER
protected static final String ANONYMOUS
protected static final String SYSTEM
| Constructor Detail |
|---|
public CmisObjectCollection()
| Method Detail |
|---|
public void deleteEntry(String objectId,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
deleteEntry in class AbstractCmisCollection<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextExceptionpublic org.apache.abdera.protocol.server.ResponseContext deleteMedia(org.apache.abdera.protocol.server.RequestContext request)
deleteMedia in interface org.apache.abdera.protocol.server.MediaCollectionAdapterdeleteMedia in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
public void deleteMedia(String documentId,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
deleteMedia in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextException
public String getAuthor(org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getAuthor in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterorg.apache.abdera.protocol.server.context.ResponseContextException
public List<org.apache.abdera.model.Person> getAuthors(org.xcmis.spi.model.CmisObject object,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getAuthors in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextExceptionpublic String getContentType(org.xcmis.spi.model.CmisObject object)
getContentType in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
public org.xcmis.spi.model.CmisObject getEntry(String id,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextException
public String getId(org.xcmis.spi.model.CmisObject object)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getId in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextExceptionpublic String getId(org.apache.abdera.protocol.server.RequestContext request)
getId in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterpublic org.apache.abdera.protocol.server.ResponseContext getMedia(org.apache.abdera.protocol.server.RequestContext request)
getMedia in interface org.apache.abdera.protocol.server.MediaCollectionAdaptergetMedia in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
public String getName(org.xcmis.spi.model.CmisObject object)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getName in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextExceptionpublic String getStreamId(org.apache.abdera.protocol.server.RequestContext request)
public String getTitle(org.xcmis.spi.model.CmisObject object)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getTitle in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextException
public Date getUpdated(org.xcmis.spi.model.CmisObject object)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getUpdated in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextExceptionpublic org.apache.abdera.protocol.server.ResponseContext putEntry(org.apache.abdera.protocol.server.RequestContext request)
putEntry in interface org.apache.abdera.protocol.server.CollectionAdapterputEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
public void putMedia(org.xcmis.spi.model.CmisObject entryObj,
MimeType contentType,
String slug,
InputStream inputStream,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
putMedia in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>entryObj - the entry objcontentType - the content typeslug - the sluginputStream - the input streamrequest - the request
org.apache.abdera.protocol.server.context.ResponseContextException - the response context exceptionpublic org.apache.abdera.protocol.server.ResponseContext putMedia(org.apache.abdera.protocol.server.RequestContext request)
putMedia in interface org.apache.abdera.protocol.server.MediaCollectionAdapterputMedia in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
protected String addEntryDetails(org.apache.abdera.protocol.server.RequestContext request,
org.apache.abdera.model.Entry entry,
org.apache.abdera.i18n.iri.IRI feedIri,
org.xcmis.spi.model.CmisObject object)
throws org.apache.abdera.protocol.server.context.ResponseContextException
addEntryDetails in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>org.apache.abdera.protocol.server.context.ResponseContextExceptionprotected org.xcmis.spi.utils.MimeType convertMimeType(MimeType abderaMimeType)
protected org.apache.abdera.model.Feed createFeedBase(org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
createFeedBase in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterorg.apache.abdera.protocol.server.context.ResponseContextException
protected String getACLLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - object idrequest - request context
protected String getAllowableActionsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - object idrequest - request context
protected String getAllVersionsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - objects idrequest - request context
protected org.xcmis.spi.model.BaseType getBaseObjectType(org.xcmis.spi.model.CmisObject object)
object - object
protected String getBaseRenditionHref(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - objects idrequest - request context
protected String getChildrenLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - folder idrequest - the request context
protected String getSelfLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - the object idrequest - the request context
protected String getContentLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - document idrequest - request context
protected org.xcmis.spi.ContentStream getContentStream(org.apache.abdera.model.Entry entry,
org.apache.abdera.protocol.server.RequestContext request)
throws IOException,
org.apache.abdera.protocol.server.context.ResponseContextException
entry - source entryrequest - request context
ContentStream or null if there is
no 'content' in entry
IOException - if any i/o error occurs
org.apache.abdera.protocol.server.context.ResponseContextException - other errorsprotected Calendar getCreationDate(org.xcmis.spi.model.CmisObject object)
object - source object
protected String getDescendantsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - folder idrequest - request context
protected String getFolderTreeLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - folder idrequest - request context
protected Calendar getLastModificationDate(org.xcmis.spi.model.CmisObject object)
object - source object
protected String getObjectLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id.
id - object idrequest - request context
id
protected String getParentsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - objects idrequest - request context
protected String getPoliciesLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - objects idrequest - request context
protected org.xcmis.spi.model.Property<?> getProperty(org.xcmis.spi.model.CmisObject object,
String propertyName)
object - objectpropertyName - property name
protected String getRelationshipsLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - objects idrequest - request context
protected String getResourceName(org.apache.abdera.protocol.server.RequestContext request)
getResourceName in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterrequest - RequestContext
protected void updatePropertiesFromEntry(org.xcmis.spi.model.CmisObject object,
org.apache.abdera.model.Entry entry)
object - CMIS objectentry - entry that delivered CMIS object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||