|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.jdbc.core.support.JdbcDaoSupport org.springframework.security.acl.basic.jdbc.JdbcDaoImpl org.springframework.security.acl.basic.jdbc.JdbcExtendedDaoImpl
public class JdbcExtendedDaoImpl
Extension of the base JdbcDaoImpl
, which implements BasicAclExtendedDao
.
A default database structure is assumed. This may be overridden by setting the default query strings to use.
If you are using a cache with BasicAclProvider
, you should specify that cache via setBasicAclEntryCache(BasicAclEntryCache)
. This will cause cache evictions (removals) to take place whenever a
DAO mutator method is called.
This implementation works with String
based recipients and NamedEntityObjectIdentity
only. The latter can be changed by overriding JdbcDaoImpl.convertAclObjectIdentityToString(AclObjectIdentity)
.
Nested Class Summary | |
---|---|
protected class |
JdbcExtendedDaoImpl.AclObjectIdentityDelete
Deprecated. |
protected class |
JdbcExtendedDaoImpl.AclObjectIdentityInsert
Deprecated. |
protected class |
JdbcExtendedDaoImpl.AclPermissionDelete
Deprecated. |
protected class |
JdbcExtendedDaoImpl.AclPermissionInsert
Deprecated. |
protected class |
JdbcExtendedDaoImpl.AclPermissionUpdate
Deprecated. |
protected class |
JdbcExtendedDaoImpl.LookupPermissionIdMapping
Deprecated. |
Nested classes/interfaces inherited from class org.springframework.security.acl.basic.jdbc.JdbcDaoImpl |
---|
JdbcDaoImpl.AclDetailsHolder, JdbcDaoImpl.AclsByObjectIdentityMapping, JdbcDaoImpl.ObjectPropertiesMapping |
Field Summary | |
---|---|
static String |
DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT
Deprecated. |
static String |
DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT
Deprecated. |
static String |
DEF_ACL_PERMISSION_DELETE_STATEMENT
Deprecated. |
static String |
DEF_ACL_PERMISSION_INSERT_STATEMENT
Deprecated. |
static String |
DEF_ACL_PERMISSION_UPDATE_STATEMENT
Deprecated. |
static String |
DEF_LOOKUP_PERMISSION_ID_QUERY
Deprecated. |
Fields inherited from class org.springframework.security.acl.basic.jdbc.JdbcDaoImpl |
---|
aclsByObjectIdentity, DEF_ACLS_BY_OBJECT_IDENTITY_QUERY, DEF_OBJECT_PROPERTIES_QUERY, objectProperties, RECIPIENT_USED_FOR_INHERITENCE_MARKER |
Constructor Summary | |
---|---|
JdbcExtendedDaoImpl()
Deprecated. |
Methods inherited from class org.springframework.security.acl.basic.jdbc.JdbcDaoImpl |
---|
convertAclObjectIdentityToString, getAcls, getAclsByObjectIdentity, getAclsByObjectIdentityQuery, getObjectPropertiesQuery, initMappingSqlQueries, setAclsByObjectIdentity, setAclsByObjectIdentityQuery, setObjectProperties, setObjectPropertiesQuery |
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
---|
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.security.acl.basic.BasicAclDao |
---|
getAcls |
Field Detail |
---|
public static final String DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT
public static final String DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT
public static final String DEF_ACL_PERMISSION_DELETE_STATEMENT
public static final String DEF_ACL_PERMISSION_INSERT_STATEMENT
public static final String DEF_ACL_PERMISSION_UPDATE_STATEMENT
public static final String DEF_LOOKUP_PERMISSION_ID_QUERY
Constructor Detail |
---|
public JdbcExtendedDaoImpl()
Method Detail |
---|
public void changeMask(AclObjectIdentity aclObjectIdentity, Object recipient, Integer newMask) throws DataAccessException
BasicAclExtendedDao
BasicAclEntry
associated with the specified
AclObjectIdentity
and recipient Object
.
changeMask
in interface BasicAclExtendedDao
aclObjectIdentity
- to locate the relevant BasicAclEntry
recipient
- to locate the relevant BasicAclEntry
newMask
- indicating the new permission
DataAccessException
- DOCUMENT ME!public void create(BasicAclEntry basicAclEntry) throws DataAccessException
create
in interface BasicAclExtendedDao
DataAccessException
public void delete(AclObjectIdentity aclObjectIdentity) throws DataAccessException
BasicAclExtendedDao
AclObjectIdentity
.
delete
in interface BasicAclExtendedDao
aclObjectIdentity
- to delete, including any BasicAclEntry
s
DataAccessException
- DOCUMENT ME!public void delete(AclObjectIdentity aclObjectIdentity, Object recipient) throws DataAccessException
BasicAclExtendedDao
BasicAclEntry
associated with the specified AclObjectIdentity
and
recipient Object
.
delete
in interface BasicAclExtendedDao
aclObjectIdentity
- to deleterecipient
- to delete
DataAccessException
- DOCUMENT ME!public JdbcExtendedDaoImpl.AclObjectIdentityDelete getAclObjectIdentityDelete()
public String getAclObjectIdentityDeleteStatement()
public JdbcExtendedDaoImpl.AclObjectIdentityInsert getAclObjectIdentityInsert()
public String getAclObjectIdentityInsertStatement()
public JdbcExtendedDaoImpl.AclPermissionDelete getAclPermissionDelete()
public String getAclPermissionDeleteStatement()
public JdbcExtendedDaoImpl.AclPermissionInsert getAclPermissionInsert()
public String getAclPermissionInsertStatement()
public JdbcExtendedDaoImpl.AclPermissionUpdate getAclPermissionUpdate()
public String getAclPermissionUpdateStatement()
public BasicAclEntryCache getBasicAclEntryCache()
public MappingSqlQuery getLookupPermissionIdMapping()
public String getLookupPermissionIdQuery()
protected void initDao() throws ApplicationContextException
initDao
in class JdbcDaoImpl
ApplicationContextException
public void setAclObjectIdentityDelete(JdbcExtendedDaoImpl.AclObjectIdentityDelete aclObjectIdentityDelete)
public void setAclObjectIdentityDeleteStatement(String aclObjectIdentityDeleteStatement)
public void setAclObjectIdentityInsert(JdbcExtendedDaoImpl.AclObjectIdentityInsert aclObjectIdentityInsert)
public void setAclObjectIdentityInsertStatement(String aclObjectIdentityInsertStatement)
public void setAclPermissionDelete(JdbcExtendedDaoImpl.AclPermissionDelete aclPermissionDelete)
public void setAclPermissionDeleteStatement(String aclPermissionDeleteStatement)
public void setAclPermissionInsert(JdbcExtendedDaoImpl.AclPermissionInsert aclPermissionInsert)
public void setAclPermissionInsertStatement(String aclPermissionInsertStatement)
public void setAclPermissionUpdate(JdbcExtendedDaoImpl.AclPermissionUpdate aclPermissionUpdate)
public void setAclPermissionUpdateStatement(String aclPermissionUpdateStatement)
public void setBasicAclEntryCache(BasicAclEntryCache basicAclEntryCache)
public void setLookupPermissionIdMapping(MappingSqlQuery lookupPermissionIdMapping)
public void setLookupPermissionIdQuery(String lookupPermissionIdQuery)
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |