| java.lang.Object sample.dms.DataSourcePopulator
All known Subclasses: sample.dms.secured.SecureDataSourcePopulator,
DataSourcePopulator | public class DataSourcePopulator implements InitializingBean(Code) | | Populates the DMS in-memory database with document and ACL information.
author: Ben Alex version: $Id: DataSourcePopulator.java 1784 2007-02-24 21:00:24Z luke_t $ |
LEVEL_GRANT_ADMIN | final protected static int LEVEL_GRANT_ADMIN(Code) | | |
LEVEL_GRANT_READ | final protected static int LEVEL_GRANT_READ(Code) | | |
LEVEL_GRANT_WRITE | final protected static int LEVEL_GRANT_WRITE(Code) | | |
LEVEL_NEGATE_READ | final protected static int LEVEL_NEGATE_READ(Code) | | |
template | protected JdbcTemplate template(Code) | | |
tt | protected TransactionTemplate tt(Code) | | |
DataSourcePopulator | public DataSourcePopulator(DataSource dataSource, DocumentDao documentDao, PlatformTransactionManager platformTransactionManager)(Code) | | |
addPermission | protected void addPermission(DocumentDao documentDao, AbstractElement element, String recipient, int level)(Code) | | Allows subclass to add permissions.
Parameters: documentDao - that will presumably offer methods to enable the operation to be completed Parameters: element - to the subject of the new permissions Parameters: recipient - to receive permission (if it starts with ROLE_ it is assumed to be a GrantedAuthority, else it is a username) Parameters: level - based on the static final integer fields on this class |
|
|