/** * Default constructor. * <p> * This sets up the DAO accessors to bypass any caching to handle the case where the caches are not * supplied in the setters. */ public AbstractAclCrudDAOImpl() { this.aclEntityDaoCallback = new AclEntityCallbackDAO(); this.aclEntityCache = new EntityLookupCache<Long, AclEntity, Serializable>(aclEntityDaoCallback); this.authorityEntityDaoCallback = new AuthorityEntityCallbackDAO(); this.authorityEntityCache = new EntityLookupCache<Long, AuthorityEntity, String>(authorityEntityDaoCallback); this.permissionEntityDaoCallback = new PermissionEntityCallbackDAO(); this.permissionEntityCache = new EntityLookupCache<Long, PermissionEntity, PermissionEntity>(permissionEntityDaoCallback); }
public Pair<Long, AclEntity> createValue(AclEntity value) { AclEntity entity = createAclEntity(value); return convertEntityToPair(entity); }
public Pair<Long, AclEntity> findByValue(AclEntity value) { if ((value != null) && (value.getId() != null)) { return findByKey(value.getId()); } return null; }
/** * Default constructor. * <p> * This sets up the DAO accessors to bypass any caching to handle the case where the caches are not * supplied in the setters. */ public AbstractAclCrudDAOImpl() { this.aclEntityDaoCallback = new AclEntityCallbackDAO(); this.aclEntityCache = new EntityLookupCache<Long, AclEntity, Serializable>(aclEntityDaoCallback); this.authorityEntityDaoCallback = new AuthorityEntityCallbackDAO(); this.authorityEntityCache = new EntityLookupCache<Long, AuthorityEntity, String>(authorityEntityDaoCallback); this.permissionEntityDaoCallback = new PermissionEntityCallbackDAO(); this.permissionEntityCache = new EntityLookupCache<Long, PermissionEntity, PermissionEntity>(permissionEntityDaoCallback); }
public Pair<Long, AclEntity> createValue(AclEntity value) { AclEntity entity = createAclEntity(value); return convertEntityToPair(entity); }
public Pair<Long, AclEntity> findByValue(AclEntity value) { if ((value != null) && (value.getId() != null)) { return findByKey(value.getId()); } return null; }
public Pair<Long, AclEntity> findByKey(Long key) { AclEntity entity = getAclEntity(key); return convertEntityToPair(entity); }
public Pair<Long, AclEntity> findByKey(Long key) { AclEntity entity = getAclEntity(key); return convertEntityToPair(entity); }