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 String |
DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT |
static String |
DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT |
static String |
DEF_ACL_PERMISSION_DELETE_STATEMENT |
static String |
DEF_ACL_PERMISSION_INSERT_STATEMENT |
static String |
DEF_ACL_PERMISSION_UPDATE_STATEMENT |
static 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() |
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 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
public void changeMask(AclObjectIdentity aclObjectIdentity, Object recipient, 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, 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 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 org.springframework.jdbc.object.MappingSqlQuery getLookupPermissionIdMapping()
public 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(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(org.springframework.jdbc.object.MappingSqlQuery lookupPermissionIdMapping)
public void setLookupPermissionIdQuery(String lookupPermissionIdQuery)
Copyright © 2019. All rights reserved.