|
||||||||||
| 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>
| Constructor Summary | |
|---|---|
AbstractCmisCollection()
Instantiates a new abstract cmis collection. |
|
| Method Summary | |
|---|---|
protected void |
addPageLinks(String id,
org.apache.abdera.model.Feed feed,
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(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(String msg,
int status)
Creates the error response. |
protected org.apache.abdera.protocol.server.ResponseContext |
createErrorResponse(Throwable t,
int status)
Creates the error response. |
void |
deleteEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
|
protected boolean |
getBooleanParameter(org.apache.abdera.protocol.server.RequestContext request,
String name,
boolean defaultValue)
|
protected Connection |
getConnection(org.apache.abdera.protocol.server.RequestContext request)
To get Connection for provided repository Id within request. |
Object |
getContent(T entry,
org.apache.abdera.protocol.server.RequestContext request)
|
protected Integer |
getIntegerParameter(org.apache.abdera.protocol.server.RequestContext request,
String name,
Integer defaultValue)
|
protected String |
getObjectTypeLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
Create link to object type description. |
protected String |
getRepositoryId(org.apache.abdera.protocol.server.RequestContext request)
Get id of CMIS repository. |
protected 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(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 request)
|
void |
putEntry(T 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 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 |
| Constructor Detail |
|---|
public AbstractCmisCollection()
| Method Detail |
|---|
public void deleteEntry(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 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(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 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,
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 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(String id,
org.apache.abdera.model.Feed feed,
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(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(String msg,
int status)
msg - the msgstatus - the status
protected org.apache.abdera.protocol.server.ResponseContext createErrorResponse(Throwable t,
int status)
t - the tstatus - the status
protected String getObjectTypeLink(String id,
org.apache.abdera.protocol.server.RequestContext request)
id - object type idrequest - request context
protected String getRepositoryId(org.apache.abdera.protocol.server.RequestContext request)
request - RequestContext
protected String getServiceLink(org.apache.abdera.protocol.server.RequestContext request)
request - the request context
protected Connection getConnection(org.apache.abdera.protocol.server.RequestContext request)
request - the request context
protected boolean getBooleanParameter(org.apache.abdera.protocol.server.RequestContext request,
String name,
boolean defaultValue)
protected Integer getIntegerParameter(org.apache.abdera.protocol.server.RequestContext request,
String name,
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 | |||||||||