Class JdbcAclService
- All Implemented Interfaces:
- AclService
- Direct Known Subclasses:
- JdbcMutableAclService
AclService.
 
 Requires the "dirty" flags in AclImpl
 and AccessControlEntryImpl to be set,
 so that the implementation can detect changed parameters easily.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final org.springframework.jdbc.core.JdbcOperationsprotected static final org.apache.commons.logging.Log
- 
Constructor SummaryConstructorsConstructorDescriptionJdbcAclService(DataSource dataSource, LookupStrategy lookupStrategy) JdbcAclService(org.springframework.jdbc.core.JdbcOperations jdbcOperations, LookupStrategy lookupStrategy) 
- 
Method SummaryModifier and TypeMethodDescriptionfindChildren(ObjectIdentity parentIdentity) Locates all object identities that use the specified parent.protected booleanreadAclById(ObjectIdentity object) Same asAclService.readAclsById(List)except it returns only a single Acl.readAclById(ObjectIdentity object, List<Sid> sids) Same asAclService.readAclsById(List, List)except it returns only a single Acl.readAclsById(List<ObjectIdentity> objects) Obtains all the Acls that apply for the passed Objects.readAclsById(List<ObjectIdentity> objects, List<Sid> sids) Obtains all the Acls that apply for the passed Objects, but only for the security identifies passed.voidsetAclClassIdSupported(boolean aclClassIdSupported) voidsetConversionService(org.springframework.core.convert.ConversionService conversionService) voidsetFindChildrenQuery(String findChildrenSql) Allows customization of the SQL query used to find child object identities.voidsetObjectIdentityGenerator(ObjectIdentityGenerator objectIdentityGenerator) 
- 
Field Details- 
logprotected static final org.apache.commons.logging.Log log
- 
jdbcOperationsprotected final org.springframework.jdbc.core.JdbcOperations jdbcOperations
 
- 
- 
Constructor Details- 
JdbcAclService
- 
JdbcAclServicepublic JdbcAclService(org.springframework.jdbc.core.JdbcOperations jdbcOperations, LookupStrategy lookupStrategy) 
 
- 
- 
Method Details- 
findChildrenDescription copied from interface:AclServiceLocates all object identities that use the specified parent. This is useful for administration tools.- Specified by:
- findChildrenin interface- AclService
- Parameters:
- parentIdentity- to locate children of
- Returns:
- the children (or null if none were found)
 
- 
readAclByIdDescription copied from interface:AclServiceSame asAclService.readAclsById(List, List)except it returns only a single Acl.- Specified by:
- readAclByIdin interface- AclService
- Parameters:
- object- to locate an- Aclfor
- sids- the security identities for which- Aclinformation is required (may be null to denote all entries)
- Returns:
- the Aclfor the requestedObjectIdentity(never null)
- Throws:
- NotFoundException- if an- Aclwas not found for the requested- ObjectIdentity
 
- 
readAclByIdDescription copied from interface:AclServiceSame asAclService.readAclsById(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 Sidparameter.- Specified by:
- readAclByIdin interface- AclService
- Parameters:
- object- to locate an- Aclfor
- Returns:
- the Aclfor the requestedObjectIdentity(never null)
- Throws:
- NotFoundException- if an- Aclwas not found for the requested- ObjectIdentity
 
- 
readAclsByIdDescription copied from interface:AclServiceObtains 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. - Specified by:
- readAclsByIdin interface- AclService
- Parameters:
- objects- the objects to find- Aclinformation for
- Returns:
- a map with exactly one element for each ObjectIdentitypassed as an argument (never null)
- Throws:
- NotFoundException- if an- Aclwas not found for each requested- ObjectIdentity
 
- 
readAclsByIdpublic Map<ObjectIdentity,Acl> readAclsById(List<ObjectIdentity> objects, List<Sid> sids) throws NotFoundException Description copied from interface:AclServiceObtains 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. - Specified by:
- readAclsByIdin interface- AclService
- Parameters:
- objects- the objects to find- Aclinformation for
- sids- the security identities for which- Aclinformation is required (may be null to denote all entries)
- Returns:
- a map with exactly one element for each ObjectIdentitypassed as an argument (never null)
- Throws:
- NotFoundException- if an- Aclwas not found for each requested- ObjectIdentity
 
- 
setFindChildrenQueryAllows customization of the SQL query used to find child object identities.- Parameters:
- findChildrenSql-
 
- 
setAclClassIdSupportedpublic void setAclClassIdSupported(boolean aclClassIdSupported) 
- 
setConversionServicepublic void setConversionService(org.springframework.core.convert.ConversionService conversionService) 
- 
setObjectIdentityGenerator
- 
isAclClassIdSupportedprotected boolean isAclClassIdSupported()
 
-