Class HibernateMutableAclServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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)  
      void deleteAllAcls()
      Deletes all ACLs and permissions from the system...
      org.acegisecurity.acls.objectidentity.ObjectIdentity[] findChildren​(org.acegisecurity.acls.objectidentity.ObjectIdentity parentIdentity)  
      org.acegisecurity.acls.MutableAcl getAclOfGlobalPermission()
      Read acl for the global permission object
      BambooCacheStats getCacheStats()  
      boolean hasAcesForSid​(org.acegisecurity.acls.sid.Sid sid)
      Check if given Sid has any AccessControlEntrys.
      void init()  
      void initialiseCache()
      Warm up the cache.
      void invalidateCache()  
      org.acegisecurity.acls.Acl readAclById​(org.acegisecurity.acls.objectidentity.ObjectIdentity object)  
      org.acegisecurity.acls.Acl readAclById​(org.acegisecurity.acls.objectidentity.ObjectIdentity object, @Nullable org.acegisecurity.acls.sid.Sid[] sids)  
      Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,​org.acegisecurity.acls.Acl> readAclsById​(org.acegisecurity.acls.objectidentity.ObjectIdentity[] objects)  
      Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,​org.acegisecurity.acls.Acl> readAclsById​(org.acegisecurity.acls.objectidentity.ObjectIdentity[] objects, @Nullable org.acegisecurity.acls.sid.Sid[] sids)  
      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 setAclUpdateHelper​(BambooAclUpdateHelper aclUpdateHelper)  
      void setCacheManager​(com.atlassian.cache.CacheManager cacheManager)  
      org.acegisecurity.acls.MutableAcl updateAcl​(org.acegisecurity.acls.MutableAcl acl)  
      void updateAclAces​(org.acegisecurity.acls.MutableAcl acl, List<String> newPermissionKeys)  
    • Field Detail

      • ACL_CACHE_NAME

        public static final String ACL_CACHE_NAME
    • Constructor Detail

      • HibernateMutableAclServiceImpl

        public HibernateMutableAclServiceImpl()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • findChildren

        public org.acegisecurity.acls.objectidentity.ObjectIdentity[] findChildren​(org.acegisecurity.acls.objectidentity.ObjectIdentity parentIdentity)
        Specified by:
        findChildren in interface org.acegisecurity.acls.AclService
      • readAclById

        public org.acegisecurity.acls.Acl readAclById​(org.acegisecurity.acls.objectidentity.ObjectIdentity object)
                                               throws org.acegisecurity.acls.NotFoundException
        Specified by:
        readAclById in interface org.acegisecurity.acls.AclService
        Throws:
        org.acegisecurity.acls.NotFoundException
      • readAclById

        public org.acegisecurity.acls.Acl readAclById​(org.acegisecurity.acls.objectidentity.ObjectIdentity object,
                                                      @Nullable
                                                      @Nullable org.acegisecurity.acls.sid.Sid[] sids)
                                               throws org.acegisecurity.acls.NotFoundException
        Specified by:
        readAclById in interface org.acegisecurity.acls.AclService
        Throws:
        org.acegisecurity.acls.NotFoundException
      • readAclsById

        public Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,​org.acegisecurity.acls.Acl> readAclsById​(org.acegisecurity.acls.objectidentity.ObjectIdentity[] objects)
                                                                                                                throws org.acegisecurity.acls.NotFoundException
        Specified by:
        readAclsById in interface org.acegisecurity.acls.AclService
        Throws:
        org.acegisecurity.acls.NotFoundException
      • readAclsById

        public Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,​org.acegisecurity.acls.Acl> readAclsById​(org.acegisecurity.acls.objectidentity.ObjectIdentity[] objects,
                                                                                                                       @Nullable
                                                                                                                       @Nullable org.acegisecurity.acls.sid.Sid[] sids)
                                                                                                                throws org.acegisecurity.acls.NotFoundException
        Specified by:
        readAclsById in interface org.acegisecurity.acls.AclService
        Throws:
        org.acegisecurity.acls.NotFoundException
      • createAcl

        public org.acegisecurity.acls.MutableAcl createAcl​(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity)
                                                    throws org.acegisecurity.acls.AlreadyExistsException
        Specified by:
        createAcl in interface org.acegisecurity.acls.MutableAclService
        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 org.acegisecurity.acls.MutableAclService
        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 org.acegisecurity.acls.MutableAclService
        Throws:
        org.acegisecurity.acls.NotFoundException
      • readMutableAclById

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

        public void setAclDao​(AclDao aclDao)
      • setCacheManager

        public void setCacheManager​(com.atlassian.cache.CacheManager cacheManager)