org.xcmis.restatom.collections
Class ChangesLogCollection

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.CmisObject>
              extended by org.xcmis.restatom.collections.ChangesLogCollection
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 ChangesLogCollection
extends AbstractCmisCollection<org.xcmis.spi.model.CmisObject>

Version:
$Id$
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class org.xcmis.restatom.collections.AbstractCmisCollection
ANONYMOUS, SYSTEM
 
Constructor Summary
ChangesLogCollection(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.CmisObject object)
          
protected  void addFeedDetails(org.apache.abdera.model.Feed feed, org.apache.abdera.protocol.server.RequestContext request)
          
protected  void addPageLinks(String changeLogToken, 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.model.Feed createFeedBase(org.apache.abdera.protocol.server.RequestContext request)
          
 String getAuthor(org.apache.abdera.protocol.server.RequestContext request)
          
 List<org.apache.abdera.model.Person> getAuthors(org.xcmis.spi.model.CmisObject object, org.apache.abdera.protocol.server.RequestContext request)
          
 Iterable<org.xcmis.spi.model.CmisObject> getEntries(org.apache.abdera.protocol.server.RequestContext request)
          
 org.xcmis.spi.model.CmisObject getEntry(String resourceName, org.apache.abdera.protocol.server.RequestContext request)
          
 String getId(org.xcmis.spi.model.CmisObject object)
          
 String getId(org.apache.abdera.protocol.server.RequestContext request)
          
 String getName(org.xcmis.spi.model.CmisObject object)
          
 String getTitle(org.xcmis.spi.model.CmisObject object)
          
 String getTitle(org.apache.abdera.protocol.server.RequestContext request)
          
 Date getUpdated(org.xcmis.spi.model.CmisObject object)
          
 
Methods inherited from class org.xcmis.restatom.collections.AbstractCmisCollection
buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, createErrorResponse, createErrorResponse, deleteEntry, getBooleanParameter, getConnection, getContent, getIntegerParameter, getObjectTypeLink, getRepositoryId, getServiceLink, postEntry, postEntry, putEntry
 
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
addContent, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteMedia, deleteMedia, 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

ChangesLogCollection

public ChangesLogCollection(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

getAuthors

public List<org.apache.abdera.model.Person> getAuthors(org.xcmis.spi.model.CmisObject object,
                                                       org.apache.abdera.protocol.server.RequestContext request)
                                                throws org.apache.abdera.protocol.server.context.ResponseContextException

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

getEntries

public Iterable<org.xcmis.spi.model.CmisObject> 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.CmisObject>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getEntry

public org.xcmis.spi.model.CmisObject getEntry(String resourceName,
                                               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.CmisObject>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

getId

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

Specified by:
getId in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
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.CmisObject object)
               throws org.apache.abdera.protocol.server.context.ResponseContextException

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

getTitle

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

Specified by:
getTitle in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
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.CmisObject object)
                throws org.apache.abdera.protocol.server.context.ResponseContextException

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

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

Overrides:
addEntryDetails in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<org.xcmis.spi.model.CmisObject>
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.CmisObject>
Throws:
org.apache.abdera.protocol.server.context.ResponseContextException

addPageLinks

protected void addPageLinks(String changeLogToken,
                            org.apache.abdera.model.Feed feed,
                            String atomdocType,
                            int maxItems,
                            int skipCount,
                            int total,
                            boolean hasMore,
                            org.apache.abdera.protocol.server.RequestContext request)

Overrides:
addPageLinks in class AbstractCmisCollection<org.xcmis.spi.model.CmisObject>
Parameters:
changeLogToken - id
feed - feed to which are added links
atomdocType - type of collections. See ProviderImpl.
maxItems - max items in each response
skipCount - number of skipped results from the begin of set
total - 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 otherwise
request - request context

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 © 2003-2013 eXo Platform SAS. All Rights Reserved.