public class FileShareRepository extends Object
Constructor and Description |
---|
FileShareRepository(String repositoryId,
String rootPath,
FileShareTypeManager typeManager) |
Modifier and Type | Method and Description |
---|---|
List<BulkUpdateObjectIdAndChangeToken> |
bulkUpdateProperties(CallContext context,
List<BulkUpdateObjectIdAndChangeToken> objectIdAndChangeToken,
Properties properties,
ObjectInfoHandler objectInfos)
CMIS bulkUpdateProperties.
|
void |
changeContentStream(CallContext context,
Holder<String> objectId,
Boolean overwriteFlag,
ContentStream contentStream,
boolean append)
CMIS setContentStream, deleteContentStream, and appendContentStream.
|
ObjectData |
create(CallContext context,
Properties properties,
String folderId,
ContentStream contentStream,
VersioningState versioningState,
ObjectInfoHandler objectInfos)
Create* dispatch for AtomPub.
|
String |
createDocument(CallContext context,
Properties properties,
String folderId,
ContentStream contentStream,
VersioningState versioningState)
CMIS createDocument.
|
String |
createDocumentFromSource(CallContext context,
String sourceId,
Properties properties,
String folderId,
VersioningState versioningState)
CMIS createDocumentFromSource.
|
String |
createFolder(CallContext context,
Properties properties,
String folderId)
CMIS createFolder.
|
void |
deleteObject(CallContext context,
String objectId)
CMIS deleteObject.
|
FailedToDeleteData |
deleteTree(CallContext context,
String folderId,
Boolean continueOnFailure)
CMIS deleteTree.
|
Acl |
getAcl(CallContext context,
String objectId)
CMIS getACL.
|
AllowableActions |
getAllowableActions(CallContext context,
String objectId)
CMIS getAllowableActions.
|
ObjectInFolderList |
getChildren(CallContext context,
String folderId,
String filter,
Boolean includeAllowableActions,
Boolean includePathSegment,
BigInteger maxItems,
BigInteger skipCount,
ObjectInfoHandler objectInfos)
CMIS getChildren.
|
ContentStream |
getContentStream(CallContext context,
String objectId,
BigInteger offset,
BigInteger length)
CMIS getContentStream.
|
List<ObjectInFolderContainer> |
getDescendants(CallContext context,
String folderId,
BigInteger depth,
String filter,
Boolean includeAllowableActions,
Boolean includePathSegment,
ObjectInfoHandler objectInfos,
boolean foldersOnly)
CMIS getDescendants.
|
ObjectData |
getFolderParent(CallContext context,
String folderId,
String filter,
ObjectInfoHandler objectInfos)
CMIS getFolderParent.
|
ObjectData |
getObject(CallContext context,
String objectId,
String versionServicesId,
String filter,
Boolean includeAllowableActions,
Boolean includeAcl,
ObjectInfoHandler objectInfos)
CMIS getObject.
|
ObjectData |
getObjectByPath(CallContext context,
String folderPath,
String filter,
boolean includeAllowableActions,
boolean includeACL,
ObjectInfoHandler objectInfos)
CMIS getObjectByPath.
|
List<ObjectParentData> |
getObjectParents(CallContext context,
String objectId,
String filter,
Boolean includeAllowableActions,
Boolean includeRelativePathSegment,
ObjectInfoHandler objectInfos)
CMIS getObjectParents.
|
String |
getRepositoryId()
Returns the id of this repository.
|
RepositoryInfo |
getRepositoryInfo(CallContext context)
CMIS getRepositoryInfo.
|
File |
getRootDirectory()
Returns the root directory of this repository
|
TypeDefinitionList |
getTypeChildren(CallContext context,
String typeId,
Boolean includePropertyDefinitions,
BigInteger maxItems,
BigInteger skipCount)
CMIS getTypesChildren.
|
TypeDefinition |
getTypeDefinition(CallContext context,
String typeId)
CMIS getTypeDefinition.
|
List<TypeDefinitionContainer> |
getTypeDescendants(CallContext context,
String typeId,
BigInteger depth,
Boolean includePropertyDefinitions)
CMIS getTypesDescendants.
|
ObjectData |
moveObject(CallContext context,
Holder<String> objectId,
String targetFolderId,
ObjectInfoHandler objectInfos)
CMIS moveObject.
|
void |
setUserReadOnly(String user)
Sets read-only flag for the given user.
|
void |
setUserReadWrite(String user)
Sets read-write flag for the given user.
|
ObjectData |
updateProperties(CallContext context,
Holder<String> objectId,
Properties properties,
ObjectInfoHandler objectInfos)
CMIS updateProperties.
|
public FileShareRepository(String repositoryId, String rootPath, FileShareTypeManager typeManager)
public String getRepositoryId()
public File getRootDirectory()
public void setUserReadOnly(String user)
public void setUserReadWrite(String user)
public RepositoryInfo getRepositoryInfo(CallContext context)
public TypeDefinitionList getTypeChildren(CallContext context, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount)
public List<TypeDefinitionContainer> getTypeDescendants(CallContext context, String typeId, BigInteger depth, Boolean includePropertyDefinitions)
public TypeDefinition getTypeDefinition(CallContext context, String typeId)
public ObjectData create(CallContext context, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, ObjectInfoHandler objectInfos)
public String createDocument(CallContext context, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState)
public String createDocumentFromSource(CallContext context, String sourceId, Properties properties, String folderId, VersioningState versioningState)
public String createFolder(CallContext context, Properties properties, String folderId)
public ObjectData moveObject(CallContext context, Holder<String> objectId, String targetFolderId, ObjectInfoHandler objectInfos)
public void changeContentStream(CallContext context, Holder<String> objectId, Boolean overwriteFlag, ContentStream contentStream, boolean append)
public void deleteObject(CallContext context, String objectId)
public FailedToDeleteData deleteTree(CallContext context, String folderId, Boolean continueOnFailure)
public ObjectData updateProperties(CallContext context, Holder<String> objectId, Properties properties, ObjectInfoHandler objectInfos)
public List<BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties(CallContext context, List<BulkUpdateObjectIdAndChangeToken> objectIdAndChangeToken, Properties properties, ObjectInfoHandler objectInfos)
public ObjectData getObject(CallContext context, String objectId, String versionServicesId, String filter, Boolean includeAllowableActions, Boolean includeAcl, ObjectInfoHandler objectInfos)
public AllowableActions getAllowableActions(CallContext context, String objectId)
public Acl getAcl(CallContext context, String objectId)
public ContentStream getContentStream(CallContext context, String objectId, BigInteger offset, BigInteger length)
public ObjectInFolderList getChildren(CallContext context, String folderId, String filter, Boolean includeAllowableActions, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ObjectInfoHandler objectInfos)
public List<ObjectInFolderContainer> getDescendants(CallContext context, String folderId, BigInteger depth, String filter, Boolean includeAllowableActions, Boolean includePathSegment, ObjectInfoHandler objectInfos, boolean foldersOnly)
public ObjectData getFolderParent(CallContext context, String folderId, String filter, ObjectInfoHandler objectInfos)
public List<ObjectParentData> getObjectParents(CallContext context, String objectId, String filter, Boolean includeAllowableActions, Boolean includeRelativePathSegment, ObjectInfoHandler objectInfos)
public ObjectData getObjectByPath(CallContext context, String folderPath, String filter, boolean includeAllowableActions, boolean includeACL, ObjectInfoHandler objectInfos)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.