org.xcmis.restatom.collections
Class CmisTypeCollection

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
      extended by org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<T>
          extended by org.xcmis.restatom.collections.AbstractCmisCollection<org.xcmis.spi.model.TypeDefinition>
              extended by org.xcmis.restatom.collections.CmisTypeCollection
All Implemented Interfaces:
org.apache.abdera.protocol.server.CollectionAdapter, org.apache.abdera.protocol.server.CollectionInfo, org.apache.abdera.protocol.server.MediaCollectionAdapter, org.apache.abdera.protocol.server.Transactional
Direct Known Subclasses:
TypesChildrenCollection, TypesDescendantsCollection

public abstract class CmisTypeCollection
extends AbstractCmisCollection<org.xcmis.spi.model.TypeDefinition>

Version:
$Id: CmisTypeCollection.java 47 2010-02-08 22:59:45Z andrew00x $
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class org.xcmis.restatom.collections.AbstractCmisCollection
ANONYMOUS, SYSTEM
 
Constructor Summary
CmisTypeCollection(org.xcmis.spi.Connection connection)
           
 
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.TypeDefinition type)
          
 void deleteEntry(String typeId, org.apache.abdera.protocol.server.RequestContext request)
          Delete entry.
 String getAuthor(org.apache.abdera.protocol.server.RequestContext request)
          
 org.xcmis.spi.model.TypeDefinition getEntry(String typeId, org.apache.abdera.protocol.server.RequestContext request)
          
 String getId(org.apache.abdera.protocol.server.RequestContext request)
          
 String getId(org.xcmis.spi.model.TypeDefinition entry)
          
 String getName(org.xcmis.spi.model.TypeDefinition entry)
          
 String getTitle(org.apache.abdera.protocol.server.RequestContext request)
          
 String getTitle(org.xcmis.spi.model.TypeDefinition entry)
          
protected  String getTypeChildrenLink(String typeId, org.apache.abdera.protocol.server.RequestContext request)
          Get link to AtomPub Document that describes direct descendants type for specified type id.
protected  String getTypeDescendantsLink(String typeId, org.apache.abdera.protocol.server.RequestContext request)
          Get link to AtomPub Document that describes all descendants type for specified type id.
 Date getUpdated(org.xcmis.spi.model.TypeDefinition entry)
          
 org.apache.abdera.protocol.server.ResponseContext postEntry(org.apache.abdera.protocol.server.RequestContext request)
          
 
Methods inherited from class org.xcmis.restatom.collections.AbstractCmisCollection
addPageLinks, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, createErrorResponse, createErrorResponse, getBooleanParameter, getConnection, getContent, getIntegerParameter, getObjectTypeLink, getRepositoryId, getServiceLink, postEntry, putEntry
 
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
addContent, addFeedDetails, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteMedia, deleteMedia, getAuthors, getContentType, getEntries, getEntry, getEntryFromCollectionProvider, getFeed, getFeedIriForEntry, getLink, getLink, getMedia, getMediaName, getMediaStream, getQueryParameters, getSummary, 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, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getHref, getResourceName, optionsEntry, optionsMedia, setHref, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmisTypeCollection

public CmisTypeCollection(org.xcmis.spi.Connection connection)
Method Detail

getAuthor

public String getAuthor(org.apache.abdera.protocol.server.RequestContext request)
                 throws org.apache.abdera.protocol.server.context.ResponseContextException

Specified by:
getAuthor in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getEntry

public org.xcmis.spi.model.TypeDefinition getEntry(String typeId,
                                                   org.apache.abdera.protocol.server.RequestContext request)
                                            throws org.apache.abdera.protocol.server.context.ResponseContextException

Specified by:
getEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.TypeDefinition>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getId

public String getId(org.xcmis.spi.model.TypeDefinition entry)
             throws org.apache.abdera.protocol.server.context.ResponseContextException

Specified by:
getId in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.TypeDefinition>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getId

public String getId(org.apache.abdera.protocol.server.RequestContext request)

Specified by:
getId in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter

getName

public String getName(org.xcmis.spi.model.TypeDefinition entry)
               throws org.apache.abdera.protocol.server.context.ResponseContextException

Specified by:
getName in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.TypeDefinition>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getTitle

public String getTitle(org.xcmis.spi.model.TypeDefinition entry)
                throws org.apache.abdera.protocol.server.context.ResponseContextException

Specified by:
getTitle in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.TypeDefinition>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getTitle

public String getTitle(org.apache.abdera.protocol.server.RequestContext request)


getUpdated

public Date getUpdated(org.xcmis.spi.model.TypeDefinition entry)
                throws org.apache.abdera.protocol.server.context.ResponseContextException

Specified by:
getUpdated in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.TypeDefinition>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

postEntry

public org.apache.abdera.protocol.server.ResponseContext postEntry(org.apache.abdera.protocol.server.RequestContext request)

Specified by:
postEntry in interface org.apache.abdera.protocol.server.CollectionAdapter
Overrides:
postEntry in class AbstractCmisCollection<org.xcmis.spi.model.TypeDefinition>

addEntryDetails

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.TypeDefinition type)
                          throws org.apache.abdera.protocol.server.context.ResponseContextException

Overrides:
addEntryDetails in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.TypeDefinition>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getTypeChildrenLink

protected String getTypeChildrenLink(String typeId,
                                     org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes direct descendants type for specified type id.

Parameters:
typeId - type id
request - request context
Returns:
link to AtomPub Document that describes direct descendants type for specified type id

getTypeDescendantsLink

protected String getTypeDescendantsLink(String typeId,
                                        org.apache.abdera.protocol.server.RequestContext request)
Get link to AtomPub Document that describes all descendants type for specified type id.

Parameters:
typeId - type id
request - request context
Returns:
link to AtomPub Document that describes all descendants type for specified type id

deleteEntry

public void deleteEntry(String typeId,
                        org.apache.abdera.protocol.server.RequestContext request)
                 throws org.apache.abdera.protocol.server.context.ResponseContextException
Delete entry.

Overrides:
deleteEntry in class AbstractCmisCollection<org.xcmis.spi.model.TypeDefinition>
Parameters:
typeId - the type id
request - the request
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException - the response context exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.