org.apache.chemistry.opencmis.client.bindings.spi.local
Class AclServiceImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.spi.local.AbstractLocalService
      extended by org.apache.chemistry.opencmis.client.bindings.spi.local.AclServiceImpl
All Implemented Interfaces:
AclService

public class AclServiceImpl
extends AbstractLocalService
implements AclService


Constructor Summary
AclServiceImpl(BindingSession session, CmisServiceFactory factory)
          Constructor.
 
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.
 
Methods inherited from class org.apache.chemistry.opencmis.client.bindings.spi.local.AbstractLocalService
createCallContext, getService, getServiceFactory, getSession, setServiceFactory, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AclServiceImpl

public AclServiceImpl(BindingSession session,
                      CmisServiceFactory factory)
Constructor.

Method Detail

applyAcl

public Acl applyAcl(String repositoryId,
                    String objectId,
                    Acl addAces,
                    Acl removeAces,
                    AclPropagation aclPropagation,
                    ExtensionsData extension)
Description copied from interface: AclService
Adds or removes the given ACEs to or from the ACL of the object.

Specified by:
applyAcl in interface AclService
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)

getAcl

public Acl getAcl(String repositoryId,
                  String objectId,
                  Boolean onlyBasicPermissions,
                  ExtensionsData extension)
Description copied from interface: AclService
Get the ACL currently applied to the specified object.

Specified by:
getAcl in interface AclService
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)


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