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