public class FileShareRepository extends Object
Constructor and Description |
---|
FileShareRepository(String repId,
String rootPath,
TypeManager types)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addUser(String user,
boolean readOnly)
Adds a user to the repository.
|
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 repository id.
|
RepositoryInfo |
getRepositoryInfo(CallContext context)
CMIS getRepositoryInfo.
|
TypeDefinition |
getTypeDefinition(CallContext context,
String typeId)
CMIS getTypeDefinition.
|
List<TypeDefinitionContainer> |
getTypeDescendants(CallContext context,
String typeId,
BigInteger depth,
Boolean includePropertyDefinitions)
CMIS getTypesDescendants.
|
TypeDefinitionList |
getTypesChildren(CallContext context,
String typeId,
boolean includePropertyDefinitions,
BigInteger maxItems,
BigInteger skipCount)
CMIS getTypesChildren.
|
ObjectData |
moveObject(CallContext context,
Holder<String> objectId,
String targetFolderId,
ObjectInfoHandler objectInfos)
CMIS moveObject.
|
void |
setContentStream(CallContext context,
Holder<String> objectId,
Boolean overwriteFlag,
ContentStream contentStream)
CMIS setContentStream and deleteContentStream.
|
ObjectData |
updateProperties(CallContext context,
Holder<String> objectId,
Properties properties,
ObjectInfoHandler objectInfos)
CMIS updateProperties.
|
public FileShareRepository(String repId, String rootPath, TypeManager types)
repId
- CMIS repository idrootPath
- root foldertypes
- type manager objectpublic void addUser(String user, boolean readOnly)
public String getRepositoryId()
public RepositoryInfo getRepositoryInfo(CallContext context)
public TypeDefinitionList getTypesChildren(CallContext context, String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount)
public TypeDefinition getTypeDefinition(CallContext context, String typeId)
public List<TypeDefinitionContainer> getTypeDescendants(CallContext context, String typeId, BigInteger depth, Boolean includePropertyDefinitions)
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 setContentStream(CallContext context, Holder<String> objectId, Boolean overwriteFlag, ContentStream contentStream)
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 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-2013 The Apache Software Foundation. All Rights Reserved.