/** * 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, AuthorityEntity> createValue(AuthorityEntity value) { AuthorityEntity entity = createAuthorityEntity(value); return convertEntityToPair(entity); }
/** * 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, AuthorityEntity> findByValue(AuthorityEntity value) { if ((value == null) || (value.getAuthority() == null)) { throw new AlfrescoRuntimeException("Unexpected: AuthorityEntity / name must not be null"); } return convertEntityToPair(getAuthorityEntity(value.getAuthority())); }
public Pair<Long, AuthorityEntity> findByKey(Long key) { AuthorityEntity entity = getAuthorityEntity(key); return convertEntityToPair(entity); }
public Pair<Long, AuthorityEntity> createValue(AuthorityEntity value) { AuthorityEntity entity = createAuthorityEntity(value); return convertEntityToPair(entity); }
public Pair<Long, AuthorityEntity> findByValue(AuthorityEntity value) { if ((value == null) || (value.getAuthority() == null)) { throw new AlfrescoRuntimeException("Unexpected: AuthorityEntity / name must not be null"); } return convertEntityToPair(getAuthorityEntity(value.getAuthority())); }
public Pair<Long, AuthorityEntity> findByKey(Long key) { AuthorityEntity entity = getAuthorityEntity(key); return convertEntityToPair(entity); }