Interface AclService
-
- All Known Subinterfaces:
MutableAclService
- All Known Implementing Classes:
JdbcAclService
,JdbcMutableAclService
public interface AclService
Provides retrieval ofAcl
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ObjectIdentity>
findChildren(ObjectIdentity parentIdentity)
Locates all object identities that use the specified parent.Acl
readAclById(ObjectIdentity object)
Same asreadAclsById(List)
except it returns only a single Acl.Acl
readAclById(ObjectIdentity object, java.util.List<Sid> sids)
Same asreadAclsById(List, List)
except it returns only a single Acl.java.util.Map<ObjectIdentity,Acl>
readAclsById(java.util.List<ObjectIdentity> objects)
Obtains all the Acls that apply for the passed Objects.java.util.Map<ObjectIdentity,Acl>
readAclsById(java.util.List<ObjectIdentity> objects, java.util.List<Sid> sids)
Obtains all the Acls that apply for the passed Objects, but only for the security identifies passed.
-
-
-
Method Detail
-
findChildren
java.util.List<ObjectIdentity> findChildren(ObjectIdentity parentIdentity)
Locates all object identities that use the specified parent. This is useful for administration tools.- Parameters:
parentIdentity
- to locate children of- Returns:
- the children (or null if none were found)
-
readAclById
Acl readAclById(ObjectIdentity object) throws NotFoundException
Same asreadAclsById(List)
except it returns only a single Acl.This method should not be called as it does not leverage the underlying implementation's potential ability to filter Acl entries based on a
Sid
parameter.- Parameters:
object
- to locate anAcl
for- Returns:
- the
Acl
for the requestedObjectIdentity
(never null) - Throws:
NotFoundException
- if anAcl
was not found for the requestedObjectIdentity
-
readAclById
Acl readAclById(ObjectIdentity object, java.util.List<Sid> sids) throws NotFoundException
Same asreadAclsById(List, List)
except it returns only a single Acl.- Parameters:
object
- to locate anAcl
forsids
- the security identities for whichAcl
information is required (may be null to denote all entries)- Returns:
- the
Acl
for the requestedObjectIdentity
(never null) - Throws:
NotFoundException
- if anAcl
was not found for the requestedObjectIdentity
-
readAclsById
java.util.Map<ObjectIdentity,Acl> readAclsById(java.util.List<ObjectIdentity> objects) throws NotFoundException
Obtains all the Acls that apply for the passed Objects.The returned map is keyed on the passed objects, with the values being the Acl instances. Any unknown objects will not have a map key.
- Parameters:
objects
- the objects to findAcl
information for- Returns:
- a map with exactly one element for each
ObjectIdentity
passed as an argument (never null) - Throws:
NotFoundException
- if anAcl
was not found for each requestedObjectIdentity
-
readAclsById
java.util.Map<ObjectIdentity,Acl> readAclsById(java.util.List<ObjectIdentity> objects, java.util.List<Sid> sids) throws NotFoundException
Obtains all the Acls that apply for the passed Objects, but only for the security identifies passed.Implementations MAY provide a subset of the ACLs via this method although this is NOT a requirement. This is intended to allow performance optimisations within implementations. Callers should therefore use this method in preference to the alternative overloaded version which does not have performance optimisation opportunities.
The returned map is keyed on the passed objects, with the values being the Acl instances. Any unknown objects (or objects for which the interested Sids do not have entries) will not have a map key.
- Parameters:
objects
- the objects to findAcl
information forsids
- the security identities for whichAcl
information is required (may be null to denote all entries)- Returns:
- a map with exactly one element for each
ObjectIdentity
passed as an argument (never null) - Throws:
NotFoundException
- if anAcl
was not found for each requestedObjectIdentity
-
-