it.sistematica.isharedoc.opencmis.indatabase.server
Class AtomLinkInfoProvider

java.lang.Object
  extended by it.sistematica.isharedoc.opencmis.indatabase.server.AtomLinkInfoProvider

public class AtomLinkInfoProvider
extends java.lang.Object

For the Atom binding more information might be required than the result of a service call provides (mainly to fill all the links). This class fills the objectInfoHolder that was introduced for this purpose

Author:
Jens

Constructor Summary
AtomLinkInfoProvider(StoreManager storeManager)
           
 
Method Summary
 void fillInformationForAtomLinks(java.lang.String repositoryId, StoredObject so, org.apache.chemistry.opencmis.commons.data.ObjectData od, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objInfo)
          FillObjectInfoHolder object with required information needed for Atom binding for a single object
 void fillInformationForAtomLinks(java.lang.String repositoryId, StoredObject so, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
           
 void fillInformationForAtomLinks(java.lang.String repositoryId, java.lang.String objectId, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos, java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> oifcList)
          FillObjectInfoHolder object with required information needed for Atom binding for a list with ObjectInFolderContainers
 void fillInformationForAtomLinks(java.lang.String repositoryId, java.lang.String objectId, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos, org.apache.chemistry.opencmis.commons.data.ObjectInFolderList objList)
          FillObjectInfoHolder object with required information needed for Atom binding after a getChildren() call in navigation service
 void fillInformationForAtomLinks(java.lang.String repositoryId, java.lang.String objectId, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos, org.apache.chemistry.opencmis.commons.data.ObjectList objList)
          FillObjectInfoHolder object with required information needed for Atom binding for an object list
 void fillInformationForAtomLinks(java.lang.String repositoryId, java.lang.String objectId, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
          FillObjectInfoHolder object with required information needed for Atom binding for a single object
 void fillInformationForAtomLinksGetParents(java.lang.String repositoryId, java.lang.String objectId, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos, java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> objParents)
          FillObjectInfoHolder object with required information needed for Atom binding for a list with ObjectParentData objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomLinkInfoProvider

public AtomLinkInfoProvider(StoreManager storeManager)
Method Detail

fillInformationForAtomLinks

public void fillInformationForAtomLinks(java.lang.String repositoryId,
                                        StoredObject so,
                                        org.apache.chemistry.opencmis.commons.data.ObjectData od,
                                        org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objInfo)
FillObjectInfoHolder object with required information needed for Atom binding for a single object

Parameters:
repositoryId - id of repository
objectId - object to retrieve information for
objectInfos - Holder to fill with information

fillInformationForAtomLinks

public void fillInformationForAtomLinks(java.lang.String repositoryId,
                                        StoredObject so,
                                        org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)

fillInformationForAtomLinks

public void fillInformationForAtomLinks(java.lang.String repositoryId,
                                        java.lang.String objectId,
                                        org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
FillObjectInfoHolder object with required information needed for Atom binding for a single object

Parameters:
repositoryId - id of repository
objectId - object to retrieve information for
objectInfos - Holder to fill with information

fillInformationForAtomLinks

public void fillInformationForAtomLinks(java.lang.String repositoryId,
                                        java.lang.String objectId,
                                        org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos,
                                        org.apache.chemistry.opencmis.commons.data.ObjectInFolderList objList)
FillObjectInfoHolder object with required information needed for Atom binding after a getChildren() call in navigation service

Parameters:
repositoryId - id of repository
objectId - object to retrieve information for
objectInfos - Holder to fill with information
objList - result of getChildren call

fillInformationForAtomLinks

public void fillInformationForAtomLinks(java.lang.String repositoryId,
                                        java.lang.String objectId,
                                        org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos,
                                        org.apache.chemistry.opencmis.commons.data.ObjectList objList)
FillObjectInfoHolder object with required information needed for Atom binding for an object list

Parameters:
repositoryId - id of repository
objectId - object to retrieve information for
objectInfos - Holder to fill with information
objList - result of getChildren call

fillInformationForAtomLinks

public void fillInformationForAtomLinks(java.lang.String repositoryId,
                                        java.lang.String objectId,
                                        org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos,
                                        java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer> oifcList)
FillObjectInfoHolder object with required information needed for Atom binding for a list with ObjectInFolderContainers

Parameters:
repositoryId - id of repository
objectId - object to retrieve information for
objectInfos - Holder to fill with information
oifcList - result of getDescendants call

fillInformationForAtomLinksGetParents

public void fillInformationForAtomLinksGetParents(java.lang.String repositoryId,
                                                  java.lang.String objectId,
                                                  org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfos,
                                                  java.util.List<org.apache.chemistry.opencmis.commons.data.ObjectParentData> objParents)
FillObjectInfoHolder object with required information needed for Atom binding for a list with ObjectParentData objects

Parameters:
repositoryId - id of repository
objectId - object to retrieve information for
objectInfos - Holder to fill with information
objParents - result of getObjectParents call