org.apache.chemistry.opencmis.fileshare
Class FileShareRepository

java.lang.Object
  extended by org.apache.chemistry.opencmis.fileshare.FileShareRepository

public class FileShareRepository
extends java.lang.Object

File system back-end for CMIS server.


Constructor Summary
FileShareRepository(java.lang.String repId, java.lang.String rootPath, TypeManager types)
          Constructor.
 
Method Summary
 void addUser(java.lang.String user, boolean readOnly)
          Adds a user to the repository.
 ObjectData create(CallContext context, Properties properties, java.lang.String folderId, ContentStream contentStream, VersioningState versioningState, ObjectInfoHandler objectInfos)
          Create* dispatch for AtomPub.
 java.lang.String createDocument(CallContext context, Properties properties, java.lang.String folderId, ContentStream contentStream, VersioningState versioningState)
          CMIS createDocument.
 java.lang.String createDocumentFromSource(CallContext context, java.lang.String sourceId, Properties properties, java.lang.String folderId, VersioningState versioningState)
          CMIS createDocumentFromSource.
 java.lang.String createFolder(CallContext context, Properties properties, java.lang.String folderId)
          CMIS createFolder.
 void deleteObject(CallContext context, java.lang.String objectId)
          CMIS deleteObject.
 FailedToDeleteData deleteTree(CallContext context, java.lang.String folderId, java.lang.Boolean continueOnFailure)
          CMIS deleteTree.
 Acl getAcl(CallContext context, java.lang.String objectId)
          CMIS getACL.
 AllowableActions getAllowableActions(CallContext context, java.lang.String objectId)
          CMIS getAllowableActions.
 ObjectInFolderList getChildren(CallContext context, java.lang.String folderId, java.lang.String filter, java.lang.Boolean includeAllowableActions, java.lang.Boolean includePathSegment, java.math.BigInteger maxItems, java.math.BigInteger skipCount, ObjectInfoHandler objectInfos)
          CMIS getChildren.
 ContentStream getContentStream(CallContext context, java.lang.String objectId, java.math.BigInteger offset, java.math.BigInteger length)
          CMIS getContentStream.
 java.util.List<ObjectInFolderContainer> getDescendants(CallContext context, java.lang.String folderId, java.math.BigInteger depth, java.lang.String filter, java.lang.Boolean includeAllowableActions, java.lang.Boolean includePathSegment, ObjectInfoHandler objectInfos, boolean foldersOnly)
          CMIS getDescendants.
 ObjectData getFolderParent(CallContext context, java.lang.String folderId, java.lang.String filter, ObjectInfoHandler objectInfos)
          CMIS getFolderParent.
 ObjectData getObject(CallContext context, java.lang.String objectId, java.lang.String versionServicesId, java.lang.String filter, java.lang.Boolean includeAllowableActions, java.lang.Boolean includeAcl, ObjectInfoHandler objectInfos)
          CMIS getObject.
 ObjectData getObjectByPath(CallContext context, java.lang.String folderPath, java.lang.String filter, boolean includeAllowableActions, boolean includeACL, ObjectInfoHandler objectInfos)
          CMIS getObjectByPath.
 java.util.List<ObjectParentData> getObjectParents(CallContext context, java.lang.String objectId, java.lang.String filter, java.lang.Boolean includeAllowableActions, java.lang.Boolean includeRelativePathSegment, ObjectInfoHandler objectInfos)
          CMIS getObjectParents.
 java.lang.String getRepositoryId()
          Returns the repository id.
 RepositoryInfo getRepositoryInfo(CallContext context)
          CMIS getRepositoryInfo.
 TypeDefinition getTypeDefinition(CallContext context, java.lang.String typeId)
          CMIS getTypeDefinition.
 TypeDefinitionList getTypesChildren(CallContext context, java.lang.String typeId, boolean includePropertyDefinitions, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
          CMIS getTypesChildren.
 java.util.List<TypeDefinitionContainer> getTypesDescendants(CallContext context, java.lang.String typeId, java.math.BigInteger depth, java.lang.Boolean includePropertyDefinitions)
          CMIS getTypesDescendants.
 ObjectData moveObject(CallContext context, Holder<java.lang.String> objectId, java.lang.String targetFolderId, ObjectInfoHandler objectInfos)
          CMIS moveObject.
 void setContentStream(CallContext context, Holder<java.lang.String> objectId, java.lang.Boolean overwriteFlag, ContentStream contentStream)
          CMIS setContentStream and deleteContentStream.
 ObjectData updateProperties(CallContext context, Holder<java.lang.String> objectId, Properties properties, ObjectInfoHandler objectInfos)
          CMIS updateProperties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileShareRepository

public FileShareRepository(java.lang.String repId,
                           java.lang.String rootPath,
                           TypeManager types)
Constructor.

Parameters:
repId - CMIS repository id
rootPath - root folder
types - type manager object
Method Detail

addUser

public void addUser(java.lang.String user,
                    boolean readOnly)
Adds a user to the repository.


getRepositoryId

public java.lang.String getRepositoryId()
Returns the repository id.


getRepositoryInfo

public RepositoryInfo getRepositoryInfo(CallContext context)
CMIS getRepositoryInfo.


getTypesChildren

public TypeDefinitionList getTypesChildren(CallContext context,
                                           java.lang.String typeId,
                                           boolean includePropertyDefinitions,
                                           java.math.BigInteger maxItems,
                                           java.math.BigInteger skipCount)
CMIS getTypesChildren.


getTypeDefinition

public TypeDefinition getTypeDefinition(CallContext context,
                                        java.lang.String typeId)
CMIS getTypeDefinition.


getTypesDescendants

public java.util.List<TypeDefinitionContainer> getTypesDescendants(CallContext context,
                                                                   java.lang.String typeId,
                                                                   java.math.BigInteger depth,
                                                                   java.lang.Boolean includePropertyDefinitions)
CMIS getTypesDescendants.


create

public ObjectData create(CallContext context,
                         Properties properties,
                         java.lang.String folderId,
                         ContentStream contentStream,
                         VersioningState versioningState,
                         ObjectInfoHandler objectInfos)
Create* dispatch for AtomPub.


createDocument

public java.lang.String createDocument(CallContext context,
                                       Properties properties,
                                       java.lang.String folderId,
                                       ContentStream contentStream,
                                       VersioningState versioningState)
CMIS createDocument.


createDocumentFromSource

public java.lang.String createDocumentFromSource(CallContext context,
                                                 java.lang.String sourceId,
                                                 Properties properties,
                                                 java.lang.String folderId,
                                                 VersioningState versioningState)
CMIS createDocumentFromSource.


createFolder

public java.lang.String createFolder(CallContext context,
                                     Properties properties,
                                     java.lang.String folderId)
CMIS createFolder.


moveObject

public ObjectData moveObject(CallContext context,
                             Holder<java.lang.String> objectId,
                             java.lang.String targetFolderId,
                             ObjectInfoHandler objectInfos)
CMIS moveObject.


setContentStream

public void setContentStream(CallContext context,
                             Holder<java.lang.String> objectId,
                             java.lang.Boolean overwriteFlag,
                             ContentStream contentStream)
CMIS setContentStream and deleteContentStream.


deleteObject

public void deleteObject(CallContext context,
                         java.lang.String objectId)
CMIS deleteObject.


deleteTree

public FailedToDeleteData deleteTree(CallContext context,
                                     java.lang.String folderId,
                                     java.lang.Boolean continueOnFailure)
CMIS deleteTree.


updateProperties

public ObjectData updateProperties(CallContext context,
                                   Holder<java.lang.String> objectId,
                                   Properties properties,
                                   ObjectInfoHandler objectInfos)
CMIS updateProperties.


getObject

public ObjectData getObject(CallContext context,
                            java.lang.String objectId,
                            java.lang.String versionServicesId,
                            java.lang.String filter,
                            java.lang.Boolean includeAllowableActions,
                            java.lang.Boolean includeAcl,
                            ObjectInfoHandler objectInfos)
CMIS getObject.


getAllowableActions

public AllowableActions getAllowableActions(CallContext context,
                                            java.lang.String objectId)
CMIS getAllowableActions.


getAcl

public Acl getAcl(CallContext context,
                  java.lang.String objectId)
CMIS getACL.


getContentStream

public ContentStream getContentStream(CallContext context,
                                      java.lang.String objectId,
                                      java.math.BigInteger offset,
                                      java.math.BigInteger length)
CMIS getContentStream.


getChildren

public ObjectInFolderList getChildren(CallContext context,
                                      java.lang.String folderId,
                                      java.lang.String filter,
                                      java.lang.Boolean includeAllowableActions,
                                      java.lang.Boolean includePathSegment,
                                      java.math.BigInteger maxItems,
                                      java.math.BigInteger skipCount,
                                      ObjectInfoHandler objectInfos)
CMIS getChildren.


getDescendants

public java.util.List<ObjectInFolderContainer> getDescendants(CallContext context,
                                                              java.lang.String folderId,
                                                              java.math.BigInteger depth,
                                                              java.lang.String filter,
                                                              java.lang.Boolean includeAllowableActions,
                                                              java.lang.Boolean includePathSegment,
                                                              ObjectInfoHandler objectInfos,
                                                              boolean foldersOnly)
CMIS getDescendants.


getFolderParent

public ObjectData getFolderParent(CallContext context,
                                  java.lang.String folderId,
                                  java.lang.String filter,
                                  ObjectInfoHandler objectInfos)
CMIS getFolderParent.


getObjectParents

public java.util.List<ObjectParentData> getObjectParents(CallContext context,
                                                         java.lang.String objectId,
                                                         java.lang.String filter,
                                                         java.lang.Boolean includeAllowableActions,
                                                         java.lang.Boolean includeRelativePathSegment,
                                                         ObjectInfoHandler objectInfos)
CMIS getObjectParents.


getObjectByPath

public ObjectData getObjectByPath(CallContext context,
                                  java.lang.String folderPath,
                                  java.lang.String filter,
                                  boolean includeAllowableActions,
                                  boolean includeACL,
                                  ObjectInfoHandler objectInfos)
CMIS getObjectByPath.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.