org.acegisecurity.acl.basic.jdbc
Class JdbcExtendedDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.acegisecurity.acl.basic.jdbc.JdbcDaoImpl
org.acegisecurity.acl.basic.jdbc.JdbcExtendedDaoImpl
- All Implemented Interfaces:
- BasicAclDao, BasicAclExtendedDao, org.springframework.beans.factory.InitializingBean
public class JdbcExtendedDaoImpl
- extends JdbcDaoImpl
- implements BasicAclExtendedDao
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)
.
- Version:
- $Id: JdbcExtendedDaoImpl.java 1784 2007-02-24 21:00:24Z luke_t $
- Author:
- Ben Alex
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 |
DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT
public static final java.lang.String DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT
- See Also:
- Constant Field Values
DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT
public static final java.lang.String DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT
- See Also:
- Constant Field Values
DEF_ACL_PERMISSION_DELETE_STATEMENT
public static final java.lang.String DEF_ACL_PERMISSION_DELETE_STATEMENT
- See Also:
- Constant Field Values
DEF_ACL_PERMISSION_INSERT_STATEMENT
public static final java.lang.String DEF_ACL_PERMISSION_INSERT_STATEMENT
- See Also:
- Constant Field Values
DEF_ACL_PERMISSION_UPDATE_STATEMENT
public static final java.lang.String DEF_ACL_PERMISSION_UPDATE_STATEMENT
- See Also:
- Constant Field Values
DEF_LOOKUP_PERMISSION_ID_QUERY
public static final java.lang.String DEF_LOOKUP_PERMISSION_ID_QUERY
- See Also:
- Constant Field Values
JdbcExtendedDaoImpl
public JdbcExtendedDaoImpl()
changeMask
public void changeMask(AclObjectIdentity aclObjectIdentity,
java.lang.Object recipient,
java.lang.Integer newMask)
throws org.springframework.dao.DataAccessException
- Description copied from interface:
BasicAclExtendedDao
- Changes the permission mask assigned to the
BasicAclEntry
associated with the specified
AclObjectIdentity
and recipient Object
.
- Specified by:
changeMask
in interface BasicAclExtendedDao
- Parameters:
aclObjectIdentity
- to locate the relevant BasicAclEntry
recipient
- to locate the relevant BasicAclEntry
newMask
- indicating the new permission
- Throws:
org.springframework.dao.DataAccessException
- DOCUMENT ME!
create
public void create(BasicAclEntry basicAclEntry)
throws org.springframework.dao.DataAccessException
- Specified by:
create
in interface BasicAclExtendedDao
- Throws:
org.springframework.dao.DataAccessException
delete
public void delete(AclObjectIdentity aclObjectIdentity)
throws org.springframework.dao.DataAccessException
- Description copied from interface:
BasicAclExtendedDao
- Deletes all entries associated with the specified
AclObjectIdentity
.
- Specified by:
delete
in interface BasicAclExtendedDao
- Parameters:
aclObjectIdentity
- to delete, including any BasicAclEntry
s
- Throws:
org.springframework.dao.DataAccessException
- DOCUMENT ME!
delete
public void delete(AclObjectIdentity aclObjectIdentity,
java.lang.Object recipient)
throws org.springframework.dao.DataAccessException
- Description copied from interface:
BasicAclExtendedDao
- Deletes the
BasicAclEntry
associated with the specified AclObjectIdentity
and
recipient Object
.
- Specified by:
delete
in interface BasicAclExtendedDao
- Parameters:
aclObjectIdentity
- to deleterecipient
- to delete
- Throws:
org.springframework.dao.DataAccessException
- DOCUMENT ME!
getAclObjectIdentityDelete
public JdbcExtendedDaoImpl.AclObjectIdentityDelete getAclObjectIdentityDelete()
getAclObjectIdentityDeleteStatement
public java.lang.String getAclObjectIdentityDeleteStatement()
getAclObjectIdentityInsert
public JdbcExtendedDaoImpl.AclObjectIdentityInsert getAclObjectIdentityInsert()
getAclObjectIdentityInsertStatement
public java.lang.String getAclObjectIdentityInsertStatement()
getAclPermissionDelete
public JdbcExtendedDaoImpl.AclPermissionDelete getAclPermissionDelete()
getAclPermissionDeleteStatement
public java.lang.String getAclPermissionDeleteStatement()
getAclPermissionInsert
public JdbcExtendedDaoImpl.AclPermissionInsert getAclPermissionInsert()
getAclPermissionInsertStatement
public java.lang.String getAclPermissionInsertStatement()
getAclPermissionUpdate
public JdbcExtendedDaoImpl.AclPermissionUpdate getAclPermissionUpdate()
getAclPermissionUpdateStatement
public java.lang.String getAclPermissionUpdateStatement()
getBasicAclEntryCache
public BasicAclEntryCache getBasicAclEntryCache()
getLookupPermissionIdMapping
public org.springframework.jdbc.object.MappingSqlQuery getLookupPermissionIdMapping()
getLookupPermissionIdQuery
public java.lang.String getLookupPermissionIdQuery()
initDao
protected void initDao()
throws org.springframework.context.ApplicationContextException
- Overrides:
initDao
in class JdbcDaoImpl
- Throws:
org.springframework.context.ApplicationContextException
setAclObjectIdentityDelete
public void setAclObjectIdentityDelete(JdbcExtendedDaoImpl.AclObjectIdentityDelete aclObjectIdentityDelete)
setAclObjectIdentityDeleteStatement
public void setAclObjectIdentityDeleteStatement(java.lang.String aclObjectIdentityDeleteStatement)
setAclObjectIdentityInsert
public void setAclObjectIdentityInsert(JdbcExtendedDaoImpl.AclObjectIdentityInsert aclObjectIdentityInsert)
setAclObjectIdentityInsertStatement
public void setAclObjectIdentityInsertStatement(java.lang.String aclObjectIdentityInsertStatement)
setAclPermissionDelete
public void setAclPermissionDelete(JdbcExtendedDaoImpl.AclPermissionDelete aclPermissionDelete)
setAclPermissionDeleteStatement
public void setAclPermissionDeleteStatement(java.lang.String aclPermissionDeleteStatement)
setAclPermissionInsert
public void setAclPermissionInsert(JdbcExtendedDaoImpl.AclPermissionInsert aclPermissionInsert)
setAclPermissionInsertStatement
public void setAclPermissionInsertStatement(java.lang.String aclPermissionInsertStatement)
setAclPermissionUpdate
public void setAclPermissionUpdate(JdbcExtendedDaoImpl.AclPermissionUpdate aclPermissionUpdate)
setAclPermissionUpdateStatement
public void setAclPermissionUpdateStatement(java.lang.String aclPermissionUpdateStatement)
setBasicAclEntryCache
public void setBasicAclEntryCache(BasicAclEntryCache basicAclEntryCache)
setLookupPermissionIdMapping
public void setLookupPermissionIdMapping(org.springframework.jdbc.object.MappingSqlQuery lookupPermissionIdMapping)
setLookupPermissionIdQuery
public void setLookupPermissionIdQuery(java.lang.String lookupPermissionIdQuery)
Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.