org.xcmis.restatom.collections
Class TypesDescendantsCollection

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
                  extended by org.xcmis.restatom.collections.TypesDescendantsCollection
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

public class TypesDescendantsCollection
extends CmisTypeCollection

Version:
$Id: TypesDescendantsCollection.java 216 2010-02-12 17:19:50Z andrew00x $
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class org.xcmis.restatom.collections.AbstractCmisCollection
ANONYMOUS, SYSTEM
 
Constructor Summary
TypesDescendantsCollection(org.xcmis.spi.Connection connection)
           
 
Method Summary
protected  void addChildren(org.apache.abdera.model.Entry entry, java.util.List<org.xcmis.spi.ItemsTree<org.xcmis.spi.model.TypeDefinition>> children, org.apache.abdera.i18n.iri.IRI feedIri, org.apache.abdera.protocol.server.RequestContext request)
          Adds the children.
protected  void addFeedDetails(org.apache.abdera.model.Feed feed, org.apache.abdera.protocol.server.RequestContext request)
          
protected  org.apache.abdera.model.Feed createFeedBase(org.apache.abdera.protocol.server.RequestContext request)
          
 java.lang.Iterable<org.xcmis.spi.model.TypeDefinition> getEntries(org.apache.abdera.protocol.server.RequestContext request)
          
 java.lang.String getTitle(org.apache.abdera.protocol.server.RequestContext request)
          
 
Methods inherited from class org.xcmis.restatom.collections.CmisTypeCollection
addEntryDetails, deleteEntry, getAuthor, getEntry, getId, getId, getName, getTitle, getTypeChildrenLink, getTypeDescendantsLink, getUpdated, postEntry
 
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, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteMedia, deleteMedia, getAuthors, getContentType, 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, 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

TypesDescendantsCollection

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

getEntries

public java.lang.Iterable<org.xcmis.spi.model.TypeDefinition> getEntries(org.apache.abdera.protocol.server.RequestContext request)
                                                                  throws org.apache.abdera.protocol.server.context.ResponseContextException

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

addFeedDetails

protected void addFeedDetails(org.apache.abdera.model.Feed feed,
                              org.apache.abdera.protocol.server.RequestContext request)
                       throws org.apache.abdera.protocol.server.context.ResponseContextException

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

addChildren

protected void addChildren(org.apache.abdera.model.Entry entry,
                           java.util.List<org.xcmis.spi.ItemsTree<org.xcmis.spi.model.TypeDefinition>> children,
                           org.apache.abdera.i18n.iri.IRI feedIri,
                           org.apache.abdera.protocol.server.RequestContext request)
                    throws org.apache.abdera.protocol.server.context.ResponseContextException
Adds the children.

Parameters:
entry - the entry
children - the children
feedIri - the feed iri
request - the request
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException - the response context exception

getTitle

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

Specified by:
getTitle in interface org.apache.abdera.protocol.server.CollectionInfo
Overrides:
getTitle in class CmisTypeCollection

createFeedBase

protected org.apache.abdera.model.Feed createFeedBase(org.apache.abdera.protocol.server.RequestContext request)
                                               throws org.apache.abdera.protocol.server.context.ResponseContextException

Overrides:
createFeedBase in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.