public class DMObjectServicePort extends DMAbstractServicePort implements ObjectServicePort
authorityService, cmisAclService, cmisChangeLogService, cmisObjectFactory, cmisQueryService, cmisRenditionService, cmisService, descriptorService, fileFolderService, INCLUDE_RELATIONSHIPS_ENUM_MAPPING, nodeService, permissionService, propertiesUtil, searchService| Constructor and Description |
|---|
DMObjectServicePort() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDocument(String repositoryId,
CmisPropertiesType properties,
String folderId,
CmisContentStreamType contentStream,
EnumVersioningState versioningState,
List<String> policies,
CmisAccessControlListType addACEs,
CmisAccessControlListType removeACEs,
Holder<CmisExtensionType> extension,
Holder<String> objectId)
Creates a document object of the specified type, and optionally adds the document to a folder
|
void |
createDocumentFromSource(String repositoryId,
String sourceId,
CmisPropertiesType properties,
String folderId,
EnumVersioningState versioningState,
List<String> policies,
CmisAccessControlListType addACEs,
CmisAccessControlListType removeACEs,
Holder<CmisExtensionType> extension,
Holder<String> objectId)
Creates a document object as a copy of the given source document in the specified location
|
void |
createFolder(String repositoryId,
CmisPropertiesType properties,
String folderId,
List<String> policies,
CmisAccessControlListType addACEs,
CmisAccessControlListType removeACEs,
Holder<CmisExtensionType> extension,
Holder<String> objectId)
Creates a folder object of the specified type.
|
void |
createPolicy(String repositoryId,
CmisPropertiesType properties,
String folderId,
List<String> policies,
CmisAccessControlListType addACEs,
CmisAccessControlListType removeACEs,
Holder<CmisExtensionType> extension,
Holder<String> objectId)
Creates a policy object of the specified type, and optionally adds the policy to a folder.
|
void |
createRelationship(String repositoryId,
CmisPropertiesType properties,
List<String> policies,
CmisAccessControlListType addACEs,
CmisAccessControlListType removeACEs,
Holder<CmisExtensionType> extension,
Holder<String> objectId)
Creates a relationship object of the specified type.
|
void |
deleteContentStream(String repositoryId,
Holder<String> objectId,
Holder<String> changeToken,
Holder<CmisExtensionType> extension)
Deletes the content-stream of the specified document.
|
void |
deleteObject(String repositoryId,
String objectId,
Boolean allVersions,
Holder<CmisExtensionType> extension)
Deletes specified object.
|
DeleteTreeResponse.FailedToDelete |
deleteTree(String repositoryId,
String folderId,
Boolean allVersions,
EnumUnfileObject unfileObject,
Boolean continueOnFailure,
CmisExtensionType extension)
Deletes the tree rooted at specified folder (including that folder)
|
CmisAllowableActionsType |
getAllowableActions(String repositoryId,
String objectId,
CmisExtensionType extension)
Gets the list of allowable actions (CMIS service calls) for an object based on the current user's context, subject to any access constraints that are currently imposed by
the repository.
|
CmisContentStreamType |
getContentStream(String repositoryId,
String objectId,
String streamId,
BigInteger offset,
BigInteger length,
CmisExtensionType extension)
Gets the content-stream for a document.
|
CmisObjectType |
getObject(String repositoryId,
String objectId,
String filter,
Boolean includeAllowableActions,
EnumIncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePolicyIds,
Boolean includeACL,
CmisExtensionType extension)
Gets the specified object
|
CmisObjectType |
getObjectByPath(String repositoryId,
String path,
String filter,
Boolean includeAllowableActions,
EnumIncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePolicyIds,
Boolean includeACL,
CmisExtensionType extension)
Gets the specified object by path
|
CmisPropertiesType |
getProperties(String repositoryId,
String objectId,
String filter,
CmisExtensionType extension)
Gets the properties of an object, and optionally the operations that the user is allowed to perform on the object.
|
List<CmisRenditionType> |
getRenditions(String repositoryId,
String objectId,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount,
CmisExtensionType extension)
Gets the renditions of an object, and optionally the operations that the user is allowed to perform on the object.
|
void |
moveObject(String repositoryId,
Holder<String> objectId,
String targetFolderId,
String sourceFolderId,
Holder<CmisExtensionType> extension)
Moves the specified filed object from one folder to another
|
void |
setContentStream(String repositoryId,
Holder<String> objectId,
Boolean overwriteFlag,
Holder<String> changeToken,
CmisContentStreamType contentStream,
Holder<CmisExtensionType> extension)
Sets (creates or replaces) the content-stream for the specified document object.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setFileTypeIconRetriever(FileTypeIconRetriever iconRetriever) |
void |
updateProperties(String repositoryId,
Holder<String> objectId,
Holder<String> changeToken,
CmisPropertiesType properties,
Holder<CmisExtensionType> extension)
Updates properties of the specified object.
|
appendWithAce, appendWithRelationships, applyAclCarefully, applyPolicies, checkRepositoryId, convertAclReportToCmisAclType, createCmisObject, createCmisObject, createCmisObjectList, createCursor, createPropertyFilter, createPropertyFilter, determineObjectAllowableActions, getRenditions, isObjectInFolder, setAuthorityService, setCmisAclService, setCmisChangeLogService, setCmisQueryService, setCmisRenditionService, setCmisService, setDescriptorService, setFileFolderService, setNodeService, setPermissionService, setPropertiesUtil, setSearchServicepublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void createDocument(String repositoryId, CmisPropertiesType properties, String folderId, CmisContentStreamType contentStream, EnumVersioningState versioningState, List<String> policies, CmisAccessControlListType addACEs, CmisAccessControlListType removeACEs, Holder<CmisExtensionType> extension, Holder<String> objectId) throws CmisException
createDocument in interface ObjectServicePortrepositoryId - repository Idproperties - CMIS propertiesfolderId - parent folder for this new documentcontentStream - content streamversioningState - versioning state (checkedout, minor, major)CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE,
STREAM_NOT_SUPPORTED)public void createDocumentFromSource(String repositoryId, String sourceId, CmisPropertiesType properties, String folderId, EnumVersioningState versioningState, List<String> policies, CmisAccessControlListType addACEs, CmisAccessControlListType removeACEs, Holder<CmisExtensionType> extension, Holder<String> objectId) throws CmisException
createDocumentFromSource in interface ObjectServicePortrepositoryId - repository Idproperties - CMIS propertiesfolderId - parent folder for this new documentcontentStream - content streamversioningState - versioning state (checkedout, minor, major)CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE,
STREAM_NOT_SUPPORTED)public void createFolder(String repositoryId, CmisPropertiesType properties, String folderId, List<String> policies, CmisAccessControlListType addACEs, CmisAccessControlListType removeACEs, Holder<CmisExtensionType> extension, Holder<String> objectId) throws CmisException
createFolder in interface ObjectServicePortrepositoryId - repository Idproperties - CMIS propertiesfolderId - parent folder for this new folderCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE)public void createPolicy(String repositoryId, CmisPropertiesType properties, String folderId, List<String> policies, CmisAccessControlListType addACEs, CmisAccessControlListType removeACEs, Holder<CmisExtensionType> extension, Holder<String> objectId) throws CmisException
createPolicy in interface ObjectServicePortrepositoryId - repository Idproperties - CMIS propertiesfolderId - parent folder for this new policyCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE)public void createRelationship(String repositoryId, CmisPropertiesType properties, List<String> policies, CmisAccessControlListType addACEs, CmisAccessControlListType removeACEs, Holder<CmisExtensionType> extension, Holder<String> objectId) throws CmisException
createRelationship in interface ObjectServicePortrepositoryId - repository IdtypeId - relationship typeproperties - CMIS propertiessourceObjectId - source object IdtargetObjectId - target object IdCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE)public void deleteContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Holder<CmisExtensionType> extension) throws CmisException
deleteContentStream in interface ObjectServicePortrepositoryId - repository IdobjectId - document IdCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE,
UPDATE_CONFLICT, VERSIONING)public void deleteObject(String repositoryId, String objectId, Boolean allVersions, Holder<CmisExtensionType> extension) throws CmisException
deleteObject in interface ObjectServicePortrepositoryId - repository IdobjectId - object IdCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT,
UPDATE_CONFLICT)public DeleteTreeResponse.FailedToDelete deleteTree(String repositoryId, String folderId, Boolean allVersions, EnumUnfileObject unfileObject, Boolean continueOnFailure, CmisExtensionType extension) throws CmisException
deleteTree in interface ObjectServicePortrepositoryId - repository IdfolderId - folder IdunfileNonfolderObjects - unfile : unfile all non-folder objects from folders in this tree. They may remain filed in other folders, or may become unfiled,
deletesinglefiled : delete non-folder objects filed only in this tree, and unfile the others so they remain filed in other folders, delete : delete all non-folder
objects in this tree (Default)continueOnFailure - flagCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, UPDATE_CONFLICT)public CmisObjectType getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, EnumIncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeACL, CmisExtensionType extension) throws CmisException
getObject in interface ObjectServicePortrepositoryId - repository IdfolderPath - The path to the folderfilter - property filterCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND)public CmisObjectType getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, EnumIncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeACL, CmisExtensionType extension) throws CmisException
getObjectByPath in interface ObjectServicePortrepositoryId - repository IdfolderPath - The path to the folderfilter - property filterCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND)public CmisAllowableActionsType getAllowableActions(String repositoryId, String objectId, CmisExtensionType extension) throws CmisException
getAllowableActions in interface ObjectServicePortrepositoryId - repository IdobjectId - object IdCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME)public CmisContentStreamType getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, CmisExtensionType extension) throws CmisException
getContentStream in interface ObjectServicePortrepositoryId - repository IddocumentId - document to return the content-streamCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, STREAM_NOT_SUPPORTED)public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, Holder<CmisExtensionType> extension) throws CmisException
moveObject in interface ObjectServicePortrepositoryId - repository IdobjectId - object IdtargetFolderId - the target folder to be moved intosourceFolderId - the source folder to be moved out ofCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE,
UPDATE_CONFLICT, VERSIONING)public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, CmisContentStreamType contentStream, Holder<CmisExtensionType> extension) throws CmisException
setContentStream in interface ObjectServicePortrepositoryId - repository IdobjectId - document IdoverwriteFlag - flagcontentStream - content streamCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT,
CONTENT_ALREADY_EXISTS, STORAGE, STREAM_NOT_SUPPORTED, UPDATE_CONFLICT, VERSIONING)public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, CmisPropertiesType properties, Holder<CmisExtensionType> extension) throws CmisException
updateProperties in interface ObjectServicePortrepositoryId - repository IdobjectId - object IdchangeToken - change tokenproperties - list of properties to updateCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT,
UPDATE_CONFLICT, VERSIONING)public CmisPropertiesType getProperties(String repositoryId, String objectId, String filter, CmisExtensionType extension) throws CmisException
getProperties in interface ObjectServicePortparameters - CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FOLDER_NOT_VALID)public List<CmisRenditionType> getRenditions(String repositoryId, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount, CmisExtensionType extension) throws CmisException
getRenditions in interface ObjectServicePortparameters - CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FOLDER_NOT_VALID)public void setFileTypeIconRetriever(FileTypeIconRetriever iconRetriever)
Copyright © 2005–2014 Alfresco Software. All rights reserved.