public AccessControlListProperties getAccessControlListProperties(NodeRef nodeRef) { Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if(acl == null) { return null; } return aclDaoComponent.getAccessControlListProperties(acl.getId()); }
public Pair<Long, AclEntity> createValue(AclEntity value) { AclEntity entity = createAclEntity(value); return convertEntityToPair(entity); }
public Pair<Long, PermissionEntity> findByKey(Long key) { PermissionEntity entity = getPermissionEntity(key); return convertEntityToPair(entity); }
private PermissionEntity getPermissionForUpdate(PermissionReference permissionReference) { PermissionEntity perm = getPermissionImpl(permissionReference); PermissionEntity newPerm = new PermissionEntity(); newPerm.setId(perm.getId()); newPerm.setVersion(perm.getVersion()); newPerm.setTypeQNameId(perm.getTypeQNameId()); newPerm.setName(perm.getName()); return newPerm; }
/** * {@inheritDoc} */ @Override public Long createAccessControlList() { return createAccessControlList(getDefaultProperties()).getId(); }
void add(ACLType type, Counter c) { Counter counter = get(type); counter.add(c.getCounter()); }
public void setAccessControlList(NodeRef nodeRef, Acl acl) { Long aclId = null; if (acl != null) { aclId = acl.getId(); } setAccessControlList(nodeRef, aclId); }
public Pair<Long, PermissionEntity> createValue(PermissionEntity value) { PermissionEntity entity = createPermissionEntity(value); return convertEntityToPair(entity); }
public Pair<Long, AuthorityEntity> findByKey(Long key) { AuthorityEntity entity = getAuthorityEntity(key); return convertEntityToPair(entity); }
public Pair<Long, AclEntity> findByKey(Long key) { AclEntity entity = getAclEntity(key); return convertEntityToPair(entity); }
public Pair<Long, AuthorityEntity> createValue(AuthorityEntity value) { AuthorityEntity entity = createAuthorityEntity(value); return convertEntityToPair(entity); }
GetNodesWithAspects(Set<QName> aspects) { this.aspects = aspects; this.getNodesCallback = new GetNodesWithAspectCallback(); this.workSize = countNodesWithAspects(); }
public AccessControlListProperties getAccessControlListProperties(NodeRef nodeRef) { Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if(acl == null) { return null; } return aclDaoComponent.getAccessControlListProperties(acl.getId()); }
void add(ACLType type, Counter c) { Counter counter = get(type); counter.add(c.getCounter()); }
public Pair<Long, AclEntity> createValue(AclEntity value) { AclEntity entity = createAclEntity(value); return convertEntityToPair(entity); }
public Pair<Long, PermissionEntity> createValue(PermissionEntity value) { PermissionEntity entity = createPermissionEntity(value); return convertEntityToPair(entity); }