|
||||||||||
| 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<T>
public abstract class AbstractCmisCollection<T>
| Field Summary | |
|---|---|
protected static java.lang.String |
ANONYMOUS
The Constant ANONYMOUS. |
protected static java.lang.String |
SYSTEM
The Constant SYSTEM. |
| Constructor Summary | |
|---|---|
AbstractCmisCollection(org.xcmis.spi.Connection connection)
|
|
| Method Summary | |
|---|---|
protected void |
addPageLinks(java.lang.String id,
org.apache.abdera.model.Feed feed,
java.lang.String atomdocType,
int maxItems,
int skipCount,
int total,
boolean hasMore,
org.apache.abdera.protocol.server.RequestContext request)
|
protected org.apache.abdera.protocol.server.ResponseContext |
buildCreateEntryResponse(java.lang.String link,
org.apache.abdera.model.Entry entry)
|
protected org.apache.abdera.protocol.server.ResponseContext |
buildGetEntryResponse(org.apache.abdera.protocol.server.RequestContext request,
org.apache.abdera.model.Entry entry)
|
protected org.apache.abdera.protocol.server.ResponseContext |
buildGetFeedResponse(org.apache.abdera.model.Feed feed)
|
protected org.apache.abdera.protocol.server.ResponseContext |
createErrorResponse(java.lang.String msg,
int status)
Creates the error response. |
protected org.apache.abdera.protocol.server.ResponseContext |
createErrorResponse(java.lang.Throwable t,
int status)
Creates the error response. |
void |
deleteEntry(java.lang.String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
|
protected boolean |
getBooleanParameter(org.apache.abdera.protocol.server.RequestContext request,
java.lang.String name,
boolean defaultValue)
|
protected org.xcmis.spi.Connection |
getConnection(org.apache.abdera.protocol.server.RequestContext request)
To get Connection for provided repository Id within request. |
java.lang.Object |
getContent(T entry,
org.apache.abdera.protocol.server.RequestContext request)
|
protected java.lang.Integer |
getIntegerParameter(org.apache.abdera.protocol.server.RequestContext request,
java.lang.String name,
java.lang.Integer defaultValue)
|
protected java.lang.String |
getObjectTypeLink(java.lang.String id,
org.apache.abdera.protocol.server.RequestContext request)
Create link to object type description. |
protected java.lang.String |
getRepositoryId(org.apache.abdera.protocol.server.RequestContext request)
Get id of CMIS repository. |
protected java.lang.String |
getServiceLink(org.apache.abdera.protocol.server.RequestContext request)
Create link to AtomPub Service Document contains the set of repositories that are available. |
org.apache.abdera.protocol.server.ResponseContext |
postEntry(org.apache.abdera.protocol.server.RequestContext request)
|
T |
postEntry(java.lang.String title,
org.apache.abdera.i18n.iri.IRI id,
java.lang.String summary,
java.util.Date updated,
java.util.List<org.apache.abdera.model.Person> authors,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
|
void |
putEntry(T entry,
java.lang.String title,
java.util.Date updated,
java.util.List<org.apache.abdera.model.Person> authors,
java.lang.String summary,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
|
| Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter |
|---|
addContent, addEntryDetails, addFeedDetails, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteMedia, deleteMedia, getAuthors, getContentType, getEntries, getEntry, getEntry, getEntryFromCollectionProvider, getFeed, getFeedIriForEntry, getId, getLink, getLink, getMedia, getMediaName, getMediaStream, getName, getQueryParameters, getSummary, getTitle, getUpdated, headEntry, headMedia, isMediaEntry, postMedia, postMedia, putEntry, putMedia, putMedia |
| Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter |
|---|
asCollectionElement, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, createFeedBase, end, extensionRequest, getAccepts, getAuthor, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getHref, getId, getResourceName, 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 java.lang.String ANONYMOUS
protected static final java.lang.String SYSTEM
| Constructor Detail |
|---|
public AbstractCmisCollection(org.xcmis.spi.Connection connection)
| Method Detail |
|---|
public void deleteEntry(java.lang.String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
deleteEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>org.apache.abdera.protocol.server.context.ResponseContextException
public java.lang.Object getContent(T entry,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
getContent in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>org.apache.abdera.protocol.server.context.ResponseContextExceptionpublic org.apache.abdera.protocol.server.ResponseContext postEntry(org.apache.abdera.protocol.server.RequestContext request)
postEntry in interface org.apache.abdera.protocol.server.CollectionAdapterpostEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
public T postEntry(java.lang.String title,
org.apache.abdera.i18n.iri.IRI id,
java.lang.String summary,
java.util.Date updated,
java.util.List<org.apache.abdera.model.Person> authors,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
postEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>org.apache.abdera.protocol.server.context.ResponseContextException
public void putEntry(T entry,
java.lang.String title,
java.util.Date updated,
java.util.List<org.apache.abdera.model.Person> authors,
java.lang.String summary,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
putEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>org.apache.abdera.protocol.server.context.ResponseContextException
protected void addPageLinks(java.lang.String id,
org.apache.abdera.model.Feed feed,
java.lang.String atomdocType,
int maxItems,
int skipCount,
int total,
boolean hasMore,
org.apache.abdera.protocol.server.RequestContext request)
id - idfeed - feed to which are added linksatomdocType - type of collections. See ProviderImpl.maxItems - max items in each responseskipCount - number of skipped results from the begin of settotal - total number items in result set. If total number is unknown
then this parameter must be set as -1.hasMore - true if has more items in result set false otherwiserequest - request context
protected org.apache.abdera.protocol.server.ResponseContext buildCreateEntryResponse(java.lang.String link,
org.apache.abdera.model.Entry entry)
buildCreateEntryResponse in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
protected org.apache.abdera.protocol.server.ResponseContext buildGetEntryResponse(org.apache.abdera.protocol.server.RequestContext request,
org.apache.abdera.model.Entry entry)
throws org.apache.abdera.protocol.server.context.ResponseContextException
buildGetEntryResponse in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterorg.apache.abdera.protocol.server.context.ResponseContextExceptionprotected org.apache.abdera.protocol.server.ResponseContext buildGetFeedResponse(org.apache.abdera.model.Feed feed)
buildGetFeedResponse in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
protected org.apache.abdera.protocol.server.ResponseContext createErrorResponse(java.lang.String msg,
int status)
msg - the msgstatus - the status
protected org.apache.abdera.protocol.server.ResponseContext createErrorResponse(java.lang.Throwable t,
int status)
t - the tstatus - the status
protected java.lang.String getObjectTypeLink(java.lang.String id,
org.apache.abdera.protocol.server.RequestContext request)
id - object type idrequest - request context
protected java.lang.String getRepositoryId(org.apache.abdera.protocol.server.RequestContext request)
request - RequestContext
protected java.lang.String getServiceLink(org.apache.abdera.protocol.server.RequestContext request)
request - the request context
protected org.xcmis.spi.Connection getConnection(org.apache.abdera.protocol.server.RequestContext request)
request - the request context
protected boolean getBooleanParameter(org.apache.abdera.protocol.server.RequestContext request,
java.lang.String name,
boolean defaultValue)
protected java.lang.Integer getIntegerParameter(org.apache.abdera.protocol.server.RequestContext request,
java.lang.String name,
java.lang.Integer defaultValue)
throws org.apache.abdera.protocol.server.context.ResponseContextException
org.apache.abdera.protocol.server.context.ResponseContextException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||