Class HibernateMutableAclServiceImpl

java.lang.Object
com.atlassian.bamboo.security.acegi.acls.service.HibernateMutableAclServiceImpl
All Implemented Interfaces:
AclServiceDelegate

public class HibernateMutableAclServiceImpl extends Object implements AclServiceDelegate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changeAlcOwnerForSid(org.acegisecurity.acls.sid.Sid oldOwner, org.acegisecurity.acls.sid.Sid newOwner)
    Change the ownership of all Acls owned by oldOwner to newOwner.
    org.acegisecurity.acls.MutableAcl
    createAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity)
     
    void
    deleteAcesForSid(org.acegisecurity.acls.sid.Sid sid)
    Deleted all access control entries associated with a given security identity.
    void
    deleteAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity, boolean deleteChildren)
     
    org.acegisecurity.acls.objectidentity.ObjectIdentity[]
    findChildren(org.acegisecurity.acls.objectidentity.ObjectIdentity parentIdentity)
     
    org.acegisecurity.acls.MutableAcl
    Read acl for the global permission object
    boolean
    hasAcesForSid(org.acegisecurity.acls.sid.Sid sid)
    Check if given Sid has any AccessControlEntrys.
    org.acegisecurity.acls.MutableAcl
    readMutableAclById(long objectId)
    Read acl for given domain object id
    org.acegisecurity.acls.MutableAcl
    readMutableAclById(org.acegisecurity.acls.objectidentity.ObjectIdentity objectId)
    Same as AclService.readAclById(ObjectIdentity) except it returns only a single MutableAcl.
    void
    setAclDao(AclDao aclDao)
     
    void
     
    org.acegisecurity.acls.MutableAcl
    updateAcl(org.acegisecurity.acls.MutableAcl acl)
     
    void
    updateAclAces(org.acegisecurity.acls.MutableAcl acl, List<String> newPermissionKeys)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HibernateMutableAclServiceImpl

      public HibernateMutableAclServiceImpl()
  • Method Details

    • findChildren

      public org.acegisecurity.acls.objectidentity.ObjectIdentity[] findChildren(org.acegisecurity.acls.objectidentity.ObjectIdentity parentIdentity)
      Specified by:
      findChildren in interface AclServiceDelegate
    • createAcl

      public org.acegisecurity.acls.MutableAcl createAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) throws org.acegisecurity.acls.AlreadyExistsException
      Specified by:
      createAcl in interface AclServiceDelegate
      Throws:
      org.acegisecurity.acls.AlreadyExistsException
    • deleteAcl

      public void deleteAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity, boolean deleteChildren) throws org.acegisecurity.acls.ChildrenExistException
      Specified by:
      deleteAcl in interface AclServiceDelegate
      Throws:
      org.acegisecurity.acls.ChildrenExistException
    • updateAcl

      public org.acegisecurity.acls.MutableAcl updateAcl(org.acegisecurity.acls.MutableAcl acl) throws org.acegisecurity.acls.NotFoundException
      Specified by:
      updateAcl in interface AclServiceDelegate
      Throws:
      org.acegisecurity.acls.NotFoundException
    • updateAclAces

      public void updateAclAces(org.acegisecurity.acls.MutableAcl acl, List<String> newPermissionKeys)
      Specified by:
      updateAclAces in interface AclServiceDelegate
    • readMutableAclById

      public org.acegisecurity.acls.MutableAcl readMutableAclById(org.acegisecurity.acls.objectidentity.ObjectIdentity objectId)
      Description copied from interface: AclServiceDelegate
      Same as AclService.readAclById(ObjectIdentity) except it returns only a single MutableAcl.
      Specified by:
      readMutableAclById in interface AclServiceDelegate
      Parameters:
      objectId -
      Returns:
    • readMutableAclById

      public org.acegisecurity.acls.MutableAcl readMutableAclById(long objectId)
      Description copied from interface: AclServiceDelegate
      Read acl for given domain object id
      Specified by:
      readMutableAclById in interface AclServiceDelegate
      Parameters:
      objectId -
      Returns:
    • setAclDao

      public void setAclDao(AclDao aclDao)
    • setAclUpdateHelper

      public void setAclUpdateHelper(BambooAclUpdateHelper aclUpdateHelper)
    • deleteAcesForSid

      public void deleteAcesForSid(org.acegisecurity.acls.sid.Sid sid)
      Description copied from interface: AclServiceDelegate
      Deleted all access control entries associated with a given security identity.
      Specified by:
      deleteAcesForSid in interface AclServiceDelegate
      Parameters:
      sid -
    • hasAcesForSid

      public boolean hasAcesForSid(org.acegisecurity.acls.sid.Sid sid)
      Description copied from interface: AclServiceDelegate
      Check if given Sid has any AccessControlEntrys.
      Specified by:
      hasAcesForSid in interface AclServiceDelegate
      Parameters:
      sid -
      Returns:
      true if sid has aces.
    • changeAlcOwnerForSid

      public void changeAlcOwnerForSid(org.acegisecurity.acls.sid.Sid oldOwner, org.acegisecurity.acls.sid.Sid newOwner)
      Description copied from interface: AclServiceDelegate
      Change the ownership of all Acls owned by oldOwner to newOwner.
      Specified by:
      changeAlcOwnerForSid in interface AclServiceDelegate
      Parameters:
      oldOwner -
      newOwner -
    • getAclOfGlobalPermission

      public org.acegisecurity.acls.MutableAcl getAclOfGlobalPermission()
      Description copied from interface: AclServiceDelegate
      Read acl for the global permission object
      Specified by:
      getAclOfGlobalPermission in interface AclServiceDelegate
      Returns: