/** * {@inheritDoc} */ @Override public Acl getAcl(Long id) { return aclCrudDAO.getAcl(id); }
/** * {@inheritDoc} */ @Override public Acl getAcl(Long id) { return aclCrudDAO.getAcl(id); }
/** * {@inheritDoc} */ @Override public AccessControlListProperties getAccessControlListProperties(Long id) { ParameterCheck.mandatory("id", id); // Prevent unboxing failures return aclCrudDAO.getAcl(id); }
private Acl getAclEntityCopy(Long toCopy, Long toInheritFrom, ACLCopyMode mode) { Long id = getCopy(toCopy, toInheritFrom, mode); if (id == null) { return null; } return aclCrudDAO.getAcl(id); }
/** * {@inheritDoc} */ @Override public AccessControlListProperties getAccessControlListProperties(Long id) { ParameterCheck.mandatory("id", id); // Prevent unboxing failures return aclCrudDAO.getAcl(id); }
private Acl getAclEntityCopy(Long toCopy, Long toInheritFrom, ACLCopyMode mode) { Long id = getCopy(toCopy, toInheritFrom, mode); if (id == null) { return null; } return aclCrudDAO.getAcl(id); }
Acl targetAcl = aclCrudDAO.getAcl(target); inheritedAcl = aclCrudDAO.getAcl(inherited); inheritedAcl = aclCrudDAO.getAcl(targetAcl.getInheritsFrom()); if (inheritedAcl == null) inheritedAcl = aclCrudDAO.getAcl(actualInheritor); if (inheritedAcl == null) test = aclCrudDAO.getAcl(test.getInheritsFrom());
Acl targetAcl = aclCrudDAO.getAcl(target); inheritedAcl = aclCrudDAO.getAcl(inherited); inheritedAcl = aclCrudDAO.getAcl(targetAcl.getInheritsFrom()); if (inheritedAcl == null) inheritedAcl = aclCrudDAO.getAcl(actualInheritor); if (inheritedAcl == null) test = aclCrudDAO.getAcl(test.getInheritsFrom());
public List<AclChange> setAccessControlEntry(final Long id, final AccessControlEntry ace) Acl target = aclCrudDAO.getAcl(id); if (target.getAclType() == ACLType.SHARED)
public List<AclChange> setAccessControlEntry(final Long id, final AccessControlEntry ace) Acl target = aclCrudDAO.getAcl(id); if (target.getAclType() == ACLType.SHARED)
/** * {@inheritDoc} */ @Override public void deleteAclForNode(long aclId) { Acl dbAcl = getAcl(aclId); if (dbAcl.getAclType() == ACLType.DEFINING) { // delete acl members & acl aclCrudDAO.deleteAclMembersByAcl(aclId); aclCrudDAO.deleteAcl(aclId); } if (dbAcl.getAclType() == ACLType.SHARED) { // check unused Long defining = dbAcl.getInheritsFrom(); if (aclCrudDAO.getAcl(defining) == null) { // ADM if (getADMNodesByAcl(aclId, 1).size() == 0) { // delete acl members & acl aclCrudDAO.deleteAclMembersByAcl(aclId); aclCrudDAO.deleteAcl(aclId); } } } }
/** * {@inheritDoc} */ @Override public void deleteAclForNode(long aclId) { Acl dbAcl = getAcl(aclId); if (dbAcl.getAclType() == ACLType.DEFINING) { // delete acl members & acl aclCrudDAO.deleteAclMembersByAcl(aclId); aclCrudDAO.deleteAcl(aclId); } if (dbAcl.getAclType() == ACLType.SHARED) { // check unused Long defining = dbAcl.getInheritsFrom(); if (aclCrudDAO.getAcl(defining) == null) { // ADM if (getADMNodesByAcl(aclId, 1).size() == 0) { // delete acl members & acl aclCrudDAO.deleteAclMembersByAcl(aclId); aclCrudDAO.deleteAcl(aclId); } } } }