public interface AclProvider
Implementations are typically called from the AclProviderManager
.
Modifier and Type | Method and Description |
---|---|
AclEntry[] |
getAcls(Object domainInstance)
Obtains the ACLs that apply to the specified domain instance.
|
AclEntry[] |
getAcls(Object domainInstance,
Authentication authentication)
Obtains the ACLs that apply to the specified domain instance and presented
Authentication
object. |
boolean |
supports(Object domainInstance)
Indicates whether this
AclProvider can authoritatively return ACL information for the
specified domain object instance. |
AclEntry[] getAcls(Object domainInstance)
Will never be called unless the supports(Object)
method returned true
.
domainInstance
- the instance for which ACL information is required (never null
)null
if no ACLs apply to the specified domain instanceAclEntry[] getAcls(Object domainInstance, Authentication authentication)
Authentication
object.Will never be called unless the supports(Object)
method returned true
.
domainInstance
- the instance for which ACL information is required (never null
)authentication
- the prncipal for which ACL information should be filtered (never null
)null
) if no such ACLs are foundboolean supports(Object domainInstance)
AclProvider
can authoritatively return ACL information for the
specified domain object instance.domainInstance
- the instance for which ACL information is required (never null
)true
if this provider is authoritative for the specified domain object instance,
false
otherwiseCopyright © 2016. All rights reserved.