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  java.lang.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(java.lang.String typeId, org.apache.abdera.protocol.server.RequestContext request)
          Delete entry.
 java.lang.String getAuthor(org.apache.abdera.protocol.server.RequestContext request)
          
 org.xcmis.spi.model.TypeDefinition getEntry(java.lang.String typeId, org.apache.abdera.protocol.server.RequestContext request)
          
 java.lang.String getId(org.apache.abdera.protocol.server.RequestContext request)
          
 java.lang.String getId(org.xcmis.spi.model.TypeDefinition entry)
          
 java.lang.String getName(org.xcmis.spi.model.TypeDefinition entry)
          
 java.lang.String getTitle(org.apache.abdera.protocol.server.RequestContext request)
          
 java.lang.String getTitle(org.xcmis.spi.model.TypeDefinition entry)
          
protected  java.lang.String getTypeChildrenLink(java.lang.String typeId, org.apache.abdera.protocol.server.RequestContext request)
          Get link to AtomPub Document that describes direct descendants type for specified type id.
protected  java.lang.String getTypeDescendantsLink(java.lang.String typeId, org.apache.abdera.protocol.server.RequestContext request)
          Get link to AtomPub Document that describes all descendants type for specified type id.
 java.util.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 java.lang.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(java.lang.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 java.lang.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 java.lang.String getId(org.apache.abdera.protocol.server.RequestContext request)

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

getName

public java.lang.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 java.lang.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 java.lang.String getTitle(org.apache.abdera.protocol.server.RequestContext request)


getUpdated

public java.util.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 java.lang.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 java.lang.String getTypeChildrenLink(java.lang.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 java.lang.String getTypeDescendantsLink(java.lang.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(java.lang.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.