org.apache.chemistry.opencmis.commons.spi
Interface AclService

All Known Subinterfaces:
CmisService
All Known Implementing Classes:
CmisServiceWrapper

public interface AclService

ACL Service interface.

See CMIS 1.0 specification for details on the operations, parameters, exceptions and the domain model.


Method Summary
 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.
 

Method Detail

getAcl

Acl getAcl(String repositoryId,
           String objectId,
           Boolean onlyBasicPermissions,
           ExtensionsData extension)
Get the ACL currently applied to the specified object.

Parameters:
repositoryId - the identifier for the repository
objectId - the identifier for the object
onlyBasicPermissions - (optional) an indicator if only basic permissions should be returned (default is true)

applyAcl

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.

Parameters:
repositoryId - the identifier for the repository
objectId - the identifier for the object
addAces - (optional) the ACEs to be added
removeAces - (optional) the ACEs to be removed
aclPropagation - (optional) specifies how ACEs should be handled (default is AclPropagation.REPOSITORYDETERMINED)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.