org.acegisecurity.acl.basic.jdbc
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)
.
Modifier and Type | Class and Description |
---|---|
protected class |
JdbcExtendedDaoImpl.AclObjectIdentityDelete |
protected class |
JdbcExtendedDaoImpl.AclObjectIdentityInsert |
protected class |
JdbcExtendedDaoImpl.AclPermissionDelete |
protected class |
JdbcExtendedDaoImpl.AclPermissionInsert |
protected class |
JdbcExtendedDaoImpl.AclPermissionUpdate |
protected class |
JdbcExtendedDaoImpl.LookupPermissionIdMapping |
JdbcDaoImpl.AclDetailsHolder, JdbcDaoImpl.AclsByObjectIdentityMapping, JdbcDaoImpl.ObjectPropertiesMapping
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT |
static java.lang.String |
DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT |
static java.lang.String |
DEF_ACL_PERMISSION_DELETE_STATEMENT |
static java.lang.String |
DEF_ACL_PERMISSION_INSERT_STATEMENT |
static java.lang.String |
DEF_ACL_PERMISSION_UPDATE_STATEMENT |
static java.lang.String |
DEF_LOOKUP_PERMISSION_ID_QUERY |
aclsByObjectIdentity, DEF_ACLS_BY_OBJECT_IDENTITY_QUERY, DEF_OBJECT_PROPERTIES_QUERY, objectProperties, RECIPIENT_USED_FOR_INHERITENCE_MARKER
Constructor and Description |
---|
JdbcExtendedDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
changeMask(AclObjectIdentity aclObjectIdentity,
java.lang.Object recipient,
java.lang.Integer newMask)
Changes the permission mask assigned to the
BasicAclEntry associated with the specified
AclObjectIdentity and recipient Object . |
void |
create(BasicAclEntry basicAclEntry) |
void |
delete(AclObjectIdentity aclObjectIdentity)
Deletes all entries associated with the specified
AclObjectIdentity . |
void |
delete(AclObjectIdentity aclObjectIdentity,
java.lang.Object recipient)
Deletes the
BasicAclEntry associated with the specified AclObjectIdentity and
recipient Object . |
JdbcExtendedDaoImpl.AclObjectIdentityDelete |
getAclObjectIdentityDelete() |
java.lang.String |
getAclObjectIdentityDeleteStatement() |
JdbcExtendedDaoImpl.AclObjectIdentityInsert |
getAclObjectIdentityInsert() |
java.lang.String |
getAclObjectIdentityInsertStatement() |
JdbcExtendedDaoImpl.AclPermissionDelete |
getAclPermissionDelete() |
java.lang.String |
getAclPermissionDeleteStatement() |
JdbcExtendedDaoImpl.AclPermissionInsert |
getAclPermissionInsert() |
java.lang.String |
getAclPermissionInsertStatement() |
JdbcExtendedDaoImpl.AclPermissionUpdate |
getAclPermissionUpdate() |
java.lang.String |
getAclPermissionUpdateStatement() |
BasicAclEntryCache |
getBasicAclEntryCache() |
org.springframework.jdbc.object.MappingSqlQuery |
getLookupPermissionIdMapping() |
java.lang.String |
getLookupPermissionIdQuery() |
protected void |
initDao() |
void |
setAclObjectIdentityDelete(JdbcExtendedDaoImpl.AclObjectIdentityDelete aclObjectIdentityDelete) |
void |
setAclObjectIdentityDeleteStatement(java.lang.String aclObjectIdentityDeleteStatement) |
void |
setAclObjectIdentityInsert(JdbcExtendedDaoImpl.AclObjectIdentityInsert aclObjectIdentityInsert) |
void |
setAclObjectIdentityInsertStatement(java.lang.String aclObjectIdentityInsertStatement) |
void |
setAclPermissionDelete(JdbcExtendedDaoImpl.AclPermissionDelete aclPermissionDelete) |
void |
setAclPermissionDeleteStatement(java.lang.String aclPermissionDeleteStatement) |
void |
setAclPermissionInsert(JdbcExtendedDaoImpl.AclPermissionInsert aclPermissionInsert) |
void |
setAclPermissionInsertStatement(java.lang.String aclPermissionInsertStatement) |
void |
setAclPermissionUpdate(JdbcExtendedDaoImpl.AclPermissionUpdate aclPermissionUpdate) |
void |
setAclPermissionUpdateStatement(java.lang.String aclPermissionUpdateStatement) |
void |
setBasicAclEntryCache(BasicAclEntryCache basicAclEntryCache) |
void |
setLookupPermissionIdMapping(org.springframework.jdbc.object.MappingSqlQuery lookupPermissionIdMapping) |
void |
setLookupPermissionIdQuery(java.lang.String lookupPermissionIdQuery) |
convertAclObjectIdentityToString, getAcls, getAclsByObjectIdentity, getAclsByObjectIdentityQuery, getObjectPropertiesQuery, initMappingSqlQueries, setAclsByObjectIdentity, setAclsByObjectIdentityQuery, setObjectProperties, setObjectPropertiesQuery
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAcls
public static final java.lang.String DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT
public static final java.lang.String DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT
public static final java.lang.String DEF_ACL_PERMISSION_DELETE_STATEMENT
public static final java.lang.String DEF_ACL_PERMISSION_INSERT_STATEMENT
public static final java.lang.String DEF_ACL_PERMISSION_UPDATE_STATEMENT
public static final java.lang.String DEF_LOOKUP_PERMISSION_ID_QUERY
public void changeMask(AclObjectIdentity aclObjectIdentity, java.lang.Object recipient, java.lang.Integer newMask) throws org.springframework.dao.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 permissionorg.springframework.dao.DataAccessException
- DOCUMENT ME!public void create(BasicAclEntry basicAclEntry) throws org.springframework.dao.DataAccessException
create
in interface BasicAclExtendedDao
org.springframework.dao.DataAccessException
public void delete(AclObjectIdentity aclObjectIdentity) throws org.springframework.dao.DataAccessException
BasicAclExtendedDao
AclObjectIdentity
.delete
in interface BasicAclExtendedDao
aclObjectIdentity
- to delete, including any BasicAclEntry
sorg.springframework.dao.DataAccessException
- DOCUMENT ME!public void delete(AclObjectIdentity aclObjectIdentity, java.lang.Object recipient) throws org.springframework.dao.DataAccessException
BasicAclExtendedDao
BasicAclEntry
associated with the specified AclObjectIdentity
and
recipient Object
.delete
in interface BasicAclExtendedDao
aclObjectIdentity
- to deleterecipient
- to deleteorg.springframework.dao.DataAccessException
- DOCUMENT ME!public JdbcExtendedDaoImpl.AclObjectIdentityDelete getAclObjectIdentityDelete()
public java.lang.String getAclObjectIdentityDeleteStatement()
public JdbcExtendedDaoImpl.AclObjectIdentityInsert getAclObjectIdentityInsert()
public java.lang.String getAclObjectIdentityInsertStatement()
public JdbcExtendedDaoImpl.AclPermissionDelete getAclPermissionDelete()
public java.lang.String getAclPermissionDeleteStatement()
public JdbcExtendedDaoImpl.AclPermissionInsert getAclPermissionInsert()
public java.lang.String getAclPermissionInsertStatement()
public JdbcExtendedDaoImpl.AclPermissionUpdate getAclPermissionUpdate()
public java.lang.String getAclPermissionUpdateStatement()
public BasicAclEntryCache getBasicAclEntryCache()
public org.springframework.jdbc.object.MappingSqlQuery getLookupPermissionIdMapping()
public java.lang.String getLookupPermissionIdQuery()
protected void initDao() throws org.springframework.context.ApplicationContextException
initDao
in class JdbcDaoImpl
org.springframework.context.ApplicationContextException
public void setAclObjectIdentityDelete(JdbcExtendedDaoImpl.AclObjectIdentityDelete aclObjectIdentityDelete)
public void setAclObjectIdentityDeleteStatement(java.lang.String aclObjectIdentityDeleteStatement)
public void setAclObjectIdentityInsert(JdbcExtendedDaoImpl.AclObjectIdentityInsert aclObjectIdentityInsert)
public void setAclObjectIdentityInsertStatement(java.lang.String aclObjectIdentityInsertStatement)
public void setAclPermissionDelete(JdbcExtendedDaoImpl.AclPermissionDelete aclPermissionDelete)
public void setAclPermissionDeleteStatement(java.lang.String aclPermissionDeleteStatement)
public void setAclPermissionInsert(JdbcExtendedDaoImpl.AclPermissionInsert aclPermissionInsert)
public void setAclPermissionInsertStatement(java.lang.String aclPermissionInsertStatement)
public void setAclPermissionUpdate(JdbcExtendedDaoImpl.AclPermissionUpdate aclPermissionUpdate)
public void setAclPermissionUpdateStatement(java.lang.String aclPermissionUpdateStatement)
public void setBasicAclEntryCache(BasicAclEntryCache basicAclEntryCache)
public void setLookupPermissionIdMapping(org.springframework.jdbc.object.MappingSqlQuery lookupPermissionIdMapping)
public void setLookupPermissionIdQuery(java.lang.String lookupPermissionIdQuery)
Copyright © 2004-2014 Interface21, Inc. All Rights Reserved.