public class AclServiceImpl extends AbstractAtomPubService implements AclService, ExtendedAclService
AbstractAtomPubService.IdentifierType
NAME_COLLECTION, NAME_NUM_ITEMS, NAME_PATH_SEGMENT, NAME_RELATIVE_PATH_SEGMENT, NAME_URI_TEMPLATE
Constructor and Description |
---|
AclServiceImpl(BindingSession session)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Acl |
applyAcl(String repositoryId,
String objectId,
Acl addAces,
Acl removeAces,
AclPropagation aclPropagation,
ExtensionsData extension)
Adds or removes the given ACEs to or from the ACL of the object.
|
Acl |
getAcl(String repositoryId,
String objectId,
Boolean onlyBasicPermissions,
ExtensionsData extension)
Get the ACL currently applied to the specified object.
|
Acl |
setAcl(String repositoryId,
String objectId,
Acl aces)
Removes the direct ACEs of an object and sets the provided ACEs.
|
addCollection, addLink, addLink, addRepositoryLink, addRepositoryLink, addTemplate, addTypeLink, addTypeLink, convertStatusCode, createIdObject, createObject, delete, extractErrorMessage, extractException, getAclInternal, getCmisVersion, getCollection, getHttpInvoker, getLink, getLink, getLinkCache, getObjectInternal, getRepositoriesInternal, getRepositoryLink, getServiceDocURL, getSession, getTemplateLink, getTypeDefinitionInternal, getTypeLink, getTypeLink, is, isAclMergeRequired, isInt, isNextLink, isStr, loadCollection, loadContentLink, loadLink, loadRepositoryLink, loadTemplateLink, loadTypeLink, lockLinks, lockTypeLinks, mergeAcls, parse, post, put, put, read, removeLinks, removeTypeLinks, setSession, throwLinkException, unlockLinks, unlockTypeLinks, updateAcl
public AclServiceImpl(BindingSession session)
public Acl applyAcl(String repositoryId, String objectId, Acl addAces, Acl removeAces, AclPropagation aclPropagation, ExtensionsData extension)
AclService
applyAcl
in interface AclService
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectaddAces
- (optional) the ACEs to be addedremoveAces
- (optional) the ACEs to be removedaclPropagation
- (optional) specifies how ACEs should be handled
(default is AclPropagation.REPOSITORYDETERMINED
)public Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, ExtensionsData extension)
AclService
getAcl
in interface AclService
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectonlyBasicPermissions
- (optional) an indicator if only basic permissions
should be returned (default is true
)public Acl setAcl(String repositoryId, String objectId, Acl aces)
ExtendedAclService
setAcl
in interface ExtendedAclService
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the objectaces
- the ACEsCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.