public interface CmisService extends RepositoryService, NavigationService, ObjectService, VersioningService, DiscoveryService, MultiFilingService, RelationshipService, AclService, PolicyService
See CMIS 1.0 and CMIS 1.1 specifications for details on the operations, parameters, exceptions and the domain model.
This interface adds a few more operations to the operation set defined by CMIS to address binding specific requirements.
Modifier and Type | Method and Description |
---|---|
Acl |
applyAcl(String repositoryId,
String objectId,
Acl aces,
AclPropagation aclPropagation)
Applies a new ACL to an object.
|
void |
close()
Signals that this object will not be used anymore and resources can
released.
|
String |
create(String repositoryId,
Properties properties,
String folderId,
ContentStream contentStream,
VersioningState versioningState,
List<String> policies,
ExtensionsData extension)
Creates a new document, folder, policy, or item.
|
void |
deleteObjectOrCancelCheckOut(String repositoryId,
String objectId,
Boolean allVersions,
ExtensionsData extension)
Deletes an object or cancels a check out.
|
ObjectInfo |
getObjectInfo(String repositoryId,
String objectId)
Returns the
ObjectInfo of the given object id or null if
no object info exists. |
createType, deleteType, getRepositoryInfo, getRepositoryInfos, getTypeChildren, getTypeDefinition, getTypeDescendants, updateType
getCheckedOutDocs, getChildren, getDescendants, getFolderParent, getFolderTree, getObjectParents
appendContentStream, bulkUpdateProperties, createDocument, createDocumentFromSource, createFolder, createItem, createPolicy, createRelationship, deleteContentStream, deleteObject, deleteTree, getAllowableActions, getContentStream, getObject, getObjectByPath, getProperties, getRenditions, moveObject, setContentStream, updateProperties
cancelCheckOut, checkIn, checkOut, getAllVersions, getObjectOfLatestVersion, getPropertiesOfLatestVersion
getContentChanges, query
addObjectToFolder, removeObjectFromFolder
getObjectRelationships
applyAcl, getAcl
applyPolicy, getAppliedPolicies, removePolicy
String create(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, ExtensionsData extension)
repositoryId
- the identifier for the repositoryproperties
- the property values that MUST be applied to the newly created
objectfolderId
- (optional) if specified, the identifier for the
folder that MUST be the parent folder for the newly created
objectcontentStream
- (optional) if the object to create is a document
object, the content stream that MUST be stored for the newly
created document objectversioningState
- (optional) if the object to create is a document
object, it specifies what the versioning state of the newly
created object MUST be (default is
VersioningState.MAJOR
)policies
- (optional) a list of policy IDs that MUST be applied
to the newly created objectextension
- extension datavoid deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectallVersions
- (optional) If true
then delete all versions
of the document, otherwise delete only the document object
specified (default is true
)extension
- extension dataAcl applyAcl(String repositoryId, String objectId, Acl aces, AclPropagation aclPropagation)
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectaces
- the ACEs that should replace the current ACL of the objectaclPropagation
- (optional) specifies how ACEs should be handled
(default is AclPropagation.REPOSITORYDETERMINED
)ObjectInfo getObjectInfo(String repositoryId, String objectId)
ObjectInfo
of the given object id or null
if
no object info exists.
Only AtomPub requests will require object infos.repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectvoid close()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.