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

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService
      extended by org.apache.chemistry.opencmis.client.bindings.spi.atompub.AclServiceImpl
All Implemented Interfaces:
LinkAccess, AclService

public class AclServiceImpl
extends AbstractAtomPubService
implements AclService

ACL Service AtomPub client.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService
AbstractAtomPubService.IdentifierType
 
Field Summary
 
Fields inherited from class org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService
NAME_COLLECTION, NAME_NUM_ITEMS, NAME_PATH_SEGMENT, NAME_RELATIVE_PATH_SEGMENT, NAME_URI_TEMPLATE
 
Constructor Summary
AclServiceImpl(BindingSession session)
          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.atompub.AbstractAtomPubService
addCollection, addLink, addLink, addRepositoryLink, addRepositoryLink, addTemplate, addTypeLink, addTypeLink, convertStatusCode, createIdObject, delete, extractErrorMessage, extractException, getCollection, 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
 
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)
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.