public class AclProviderManager extends Object implements AclManager, org.springframework.beans.factory.InitializingBean
AclProvider
s to locate the ACLs that apply to a given domain object instance.If
no compatible provider is found, it is assumed that no ACLs apply for the specified domain object instance and
null
is returned.
Constructor and Description |
---|
AclProviderManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
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, but only including those ACLs which have
been granted to the presented
Authentication object |
List |
getProviders() |
void |
setProviders(List newList)
Sets the
AclProvider objects to be used for ACL determinations. |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public AclEntry[] getAcls(Object domainInstance)
AclManager
getAcls
in interface AclManager
domainInstance
- the instance for which ACL information is required (never null
)null
if no ACLs apply to the specified domain instancepublic AclEntry[] getAcls(Object domainInstance, Authentication authentication)
AclManager
Authentication
objectgetAcls
in interface AclManager
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 foundpublic List getProviders()
public void setProviders(List newList)
AclProvider
objects to be used for ACL determinations.newList
- that should be used for ACL determinationsIllegalArgumentException
- if an invalid provider was included in the listCopyright © 2019. All rights reserved.