private void replaceInherited(Long id, Acl acl, List<Ace> inherited, List<Integer> positions, int depth) { truncateInherited(id, depth); addInherited(acl, inherited, positions, depth); }
private void replaceInherited(Long id, Acl acl, List<Ace> inherited, List<Integer> positions, int depth) { truncateInherited(id, depth); addInherited(acl, inherited, positions, depth); }
private void insertInherited(final Long id, AclEntity acl, List<Ace> inherited, List<Integer> positions, int depth) { // get aces for acl (via acl member) List<AclMemberEntity> members = aclCrudDAO.getAclMembersByAclForUpdate(id); for (AclMemberEntity member : members) { if (member.getPos() > depth) { member.setPos(member.getPos() + 1); aclCrudDAO.updateAclMember(member); } } addInherited(acl, inherited, positions, depth); }
private void insertInherited(final Long id, AclEntity acl, List<Ace> inherited, List<Integer> positions, int depth) { // get aces for acl (via acl member) List<AclMemberEntity> members = aclCrudDAO.getAclMembersByAclForUpdate(id); for (AclMemberEntity member : members) { if (member.getPos() > depth) { member.setPos(member.getPos() + 1); aclCrudDAO.updateAclMember(member); } } addInherited(acl, inherited, positions, depth); }
break; case ADD_INHERITED: addInherited(acl, inherited, positions, depth); break; case TRUNCATE_INHERITED: case CREATE_AND_INHERIT: aclCrudDAO.addAclMembersToAcl(acl.getId(), toAdd, depth); addInherited(acl, inherited, positions, depth); case COPY_ONLY: default: break; case ADD_INHERITED: addInherited(acl, inherited, positions, depth); break; case TRUNCATE_INHERITED: case CREATE_AND_INHERIT: aclCrudDAO.addAclMembersToAcl(acl.getId(), toAdd, depth); addInherited(acl, inherited, positions, depth); case COPY_ONLY: default: break; case ADD_INHERITED: addInherited(newAcl, inherited, positions, depth); break; case TRUNCATE_INHERITED:
break; case ADD_INHERITED: addInherited(acl, inherited, positions, depth); break; case TRUNCATE_INHERITED: case CREATE_AND_INHERIT: aclCrudDAO.addAclMembersToAcl(acl.getId(), toAdd, depth); addInherited(acl, inherited, positions, depth); case COPY_ONLY: default: break; case ADD_INHERITED: addInherited(acl, inherited, positions, depth); break; case TRUNCATE_INHERITED: case CREATE_AND_INHERIT: aclCrudDAO.addAclMembersToAcl(acl.getId(), toAdd, depth); addInherited(acl, inherited, positions, depth); case COPY_ONLY: default: break; case ADD_INHERITED: addInherited(newAcl, inherited, positions, depth); break; case TRUNCATE_INHERITED: