Spring Security Framework

org.springframework.security.acl.basic.jdbc
Class JdbcExtendedDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.security.acl.basic.jdbc.JdbcDaoImpl
              extended by org.springframework.security.acl.basic.jdbc.JdbcExtendedDaoImpl
All Implemented Interfaces:
InitializingBean, BasicAclDao, BasicAclExtendedDao

Deprecated. Use new spring-security-acl module instead

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$
Author:
Ben Alex

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.  
 
Method Summary
 void changeMask(AclObjectIdentity aclObjectIdentity, Object recipient, Integer newMask)
          Deprecated. Changes the permission mask assigned to the BasicAclEntry associated with the specified AclObjectIdentity and recipient Object.
 void create(BasicAclEntry basicAclEntry)
          Deprecated.  
 void delete(AclObjectIdentity aclObjectIdentity)
          Deprecated. Deletes all entries associated with the specified AclObjectIdentity.
 void delete(AclObjectIdentity aclObjectIdentity, Object recipient)
          Deprecated. Deletes the BasicAclEntry associated with the specified AclObjectIdentity and recipient Object.
 JdbcExtendedDaoImpl.AclObjectIdentityDelete getAclObjectIdentityDelete()
          Deprecated.  
 String getAclObjectIdentityDeleteStatement()
          Deprecated.  
 JdbcExtendedDaoImpl.AclObjectIdentityInsert getAclObjectIdentityInsert()
          Deprecated.  
 String getAclObjectIdentityInsertStatement()
          Deprecated.  
 JdbcExtendedDaoImpl.AclPermissionDelete getAclPermissionDelete()
          Deprecated.  
 String getAclPermissionDeleteStatement()
          Deprecated.  
 JdbcExtendedDaoImpl.AclPermissionInsert getAclPermissionInsert()
          Deprecated.  
 String getAclPermissionInsertStatement()
          Deprecated.  
 JdbcExtendedDaoImpl.AclPermissionUpdate getAclPermissionUpdate()
          Deprecated.  
 String getAclPermissionUpdateStatement()
          Deprecated.  
 BasicAclEntryCache getBasicAclEntryCache()
          Deprecated.  
 MappingSqlQuery getLookupPermissionIdMapping()
          Deprecated.  
 String getLookupPermissionIdQuery()
          Deprecated.  
protected  void initDao()
          Deprecated.  
 void setAclObjectIdentityDelete(JdbcExtendedDaoImpl.AclObjectIdentityDelete aclObjectIdentityDelete)
          Deprecated.  
 void setAclObjectIdentityDeleteStatement(String aclObjectIdentityDeleteStatement)
          Deprecated.  
 void setAclObjectIdentityInsert(JdbcExtendedDaoImpl.AclObjectIdentityInsert aclObjectIdentityInsert)
          Deprecated.  
 void setAclObjectIdentityInsertStatement(String aclObjectIdentityInsertStatement)
          Deprecated.  
 void setAclPermissionDelete(JdbcExtendedDaoImpl.AclPermissionDelete aclPermissionDelete)
          Deprecated.  
 void setAclPermissionDeleteStatement(String aclPermissionDeleteStatement)
          Deprecated.  
 void setAclPermissionInsert(JdbcExtendedDaoImpl.AclPermissionInsert aclPermissionInsert)
          Deprecated.  
 void setAclPermissionInsertStatement(String aclPermissionInsertStatement)
          Deprecated.  
 void setAclPermissionUpdate(JdbcExtendedDaoImpl.AclPermissionUpdate aclPermissionUpdate)
          Deprecated.  
 void setAclPermissionUpdateStatement(String aclPermissionUpdateStatement)
          Deprecated.  
 void setBasicAclEntryCache(BasicAclEntryCache basicAclEntryCache)
          Deprecated.  
 void setLookupPermissionIdMapping(MappingSqlQuery lookupPermissionIdMapping)
          Deprecated.  
 void setLookupPermissionIdQuery(String lookupPermissionIdQuery)
          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

DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT

public static final String DEF_ACL_OBJECT_IDENTITY_DELETE_STATEMENT
Deprecated. 
See Also:
Constant Field Values

DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT

public static final String DEF_ACL_OBJECT_IDENTITY_INSERT_STATEMENT
Deprecated. 
See Also:
Constant Field Values

DEF_ACL_PERMISSION_DELETE_STATEMENT

public static final String DEF_ACL_PERMISSION_DELETE_STATEMENT
Deprecated. 
See Also:
Constant Field Values

DEF_ACL_PERMISSION_INSERT_STATEMENT

public static final String DEF_ACL_PERMISSION_INSERT_STATEMENT
Deprecated. 
See Also:
Constant Field Values

DEF_ACL_PERMISSION_UPDATE_STATEMENT

public static final String DEF_ACL_PERMISSION_UPDATE_STATEMENT
Deprecated. 
See Also:
Constant Field Values

DEF_LOOKUP_PERMISSION_ID_QUERY

public static final String DEF_LOOKUP_PERMISSION_ID_QUERY
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

JdbcExtendedDaoImpl

public JdbcExtendedDaoImpl()
Deprecated. 
Method Detail

changeMask

public void changeMask(AclObjectIdentity aclObjectIdentity,
                       Object recipient,
                       Integer newMask)
                throws DataAccessException
Deprecated. 
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:
DataAccessException - DOCUMENT ME!

create

public void create(BasicAclEntry basicAclEntry)
            throws DataAccessException
Deprecated. 
Specified by:
create in interface BasicAclExtendedDao
Throws:
DataAccessException

delete

public void delete(AclObjectIdentity aclObjectIdentity)
            throws DataAccessException
Deprecated. 
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 BasicAclEntrys
Throws:
DataAccessException - DOCUMENT ME!

delete

public void delete(AclObjectIdentity aclObjectIdentity,
                   Object recipient)
            throws DataAccessException
Deprecated. 
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 delete
recipient - to delete
Throws:
DataAccessException - DOCUMENT ME!

getAclObjectIdentityDelete

public JdbcExtendedDaoImpl.AclObjectIdentityDelete getAclObjectIdentityDelete()
Deprecated. 

getAclObjectIdentityDeleteStatement

public String getAclObjectIdentityDeleteStatement()
Deprecated. 

getAclObjectIdentityInsert

public JdbcExtendedDaoImpl.AclObjectIdentityInsert getAclObjectIdentityInsert()
Deprecated. 

getAclObjectIdentityInsertStatement

public String getAclObjectIdentityInsertStatement()
Deprecated. 

getAclPermissionDelete

public JdbcExtendedDaoImpl.AclPermissionDelete getAclPermissionDelete()
Deprecated. 

getAclPermissionDeleteStatement

public String getAclPermissionDeleteStatement()
Deprecated. 

getAclPermissionInsert

public JdbcExtendedDaoImpl.AclPermissionInsert getAclPermissionInsert()
Deprecated. 

getAclPermissionInsertStatement

public String getAclPermissionInsertStatement()
Deprecated. 

getAclPermissionUpdate

public JdbcExtendedDaoImpl.AclPermissionUpdate getAclPermissionUpdate()
Deprecated. 

getAclPermissionUpdateStatement

public String getAclPermissionUpdateStatement()
Deprecated. 

getBasicAclEntryCache

public BasicAclEntryCache getBasicAclEntryCache()
Deprecated. 

getLookupPermissionIdMapping

public MappingSqlQuery getLookupPermissionIdMapping()
Deprecated. 

getLookupPermissionIdQuery

public String getLookupPermissionIdQuery()
Deprecated. 

initDao

protected void initDao()
                throws ApplicationContextException
Deprecated. 
Overrides:
initDao in class JdbcDaoImpl
Throws:
ApplicationContextException

setAclObjectIdentityDelete

public void setAclObjectIdentityDelete(JdbcExtendedDaoImpl.AclObjectIdentityDelete aclObjectIdentityDelete)
Deprecated. 

setAclObjectIdentityDeleteStatement

public void setAclObjectIdentityDeleteStatement(String aclObjectIdentityDeleteStatement)
Deprecated. 

setAclObjectIdentityInsert

public void setAclObjectIdentityInsert(JdbcExtendedDaoImpl.AclObjectIdentityInsert aclObjectIdentityInsert)
Deprecated. 

setAclObjectIdentityInsertStatement

public void setAclObjectIdentityInsertStatement(String aclObjectIdentityInsertStatement)
Deprecated. 

setAclPermissionDelete

public void setAclPermissionDelete(JdbcExtendedDaoImpl.AclPermissionDelete aclPermissionDelete)
Deprecated. 

setAclPermissionDeleteStatement

public void setAclPermissionDeleteStatement(String aclPermissionDeleteStatement)
Deprecated. 

setAclPermissionInsert

public void setAclPermissionInsert(JdbcExtendedDaoImpl.AclPermissionInsert aclPermissionInsert)
Deprecated. 

setAclPermissionInsertStatement

public void setAclPermissionInsertStatement(String aclPermissionInsertStatement)
Deprecated. 

setAclPermissionUpdate

public void setAclPermissionUpdate(JdbcExtendedDaoImpl.AclPermissionUpdate aclPermissionUpdate)
Deprecated. 

setAclPermissionUpdateStatement

public void setAclPermissionUpdateStatement(String aclPermissionUpdateStatement)
Deprecated. 

setBasicAclEntryCache

public void setBasicAclEntryCache(BasicAclEntryCache basicAclEntryCache)
Deprecated. 

setLookupPermissionIdMapping

public void setLookupPermissionIdMapping(MappingSqlQuery lookupPermissionIdMapping)
Deprecated. 

setLookupPermissionIdQuery

public void setLookupPermissionIdQuery(String lookupPermissionIdQuery)
Deprecated. 

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.