/** * {@inheritDoc} */ @Override public List<AclChange> deleteAccessControlEntries(Long id, AccessControlEntry pattern) { List<AclChange> changes = new ArrayList<AclChange>(); // Will remove from the cache getWritable(id, null, Collections.singletonList(pattern), null, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT); return changes; }
/** * {@inheritDoc} */ @Override public List<AclChange> deleteAccessControlEntries(Long id, AccessControlEntry pattern) { List<AclChange> changes = new ArrayList<AclChange>(); // Will remove from the cache getWritable(id, null, Collections.singletonList(pattern), null, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT); return changes; }
/** * {@inheritDoc} */ @Override public void fixSharedAcl(Long shared, Long defining) { if (defining == null) { throw new IllegalArgumentException("Null defining acl"); } if (shared == null) { throw new IllegalArgumentException("Null shared acl"); } List<AclChange> changes = new ArrayList<AclChange>(); getWritable(shared, defining, null, null, defining, true, changes, WriteMode.CHANGE_INHERITED); }
/** * {@inheritDoc} */ @Override public void fixSharedAcl(Long shared, Long defining) { if (defining == null) { throw new IllegalArgumentException("Null defining acl"); } if (shared == null) { throw new IllegalArgumentException("Null shared acl"); } List<AclChange> changes = new ArrayList<AclChange>(); getWritable(shared, defining, null, null, defining, true, changes, WriteMode.CHANGE_INHERITED); }
/** * {@inheritDoc} */ @Override public List<AclChange> deleteInheritedAccessControlEntries(Long id) { List<AclChange> changes = new ArrayList<AclChange>(); SimpleAccessControlEntry pattern = new SimpleAccessControlEntry(); pattern.setPosition(Integer.valueOf(-1)); // Will remove from the cache getWritable(id, null, Collections.singletonList(pattern), null, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT); return changes; }
/** * {@inheritDoc} */ @Override public List<AclChange> deleteInheritedAccessControlEntries(Long id) { List<AclChange> changes = new ArrayList<AclChange>(); SimpleAccessControlEntry pattern = new SimpleAccessControlEntry(); pattern.setPosition(Integer.valueOf(-1)); // Will remove from the cache getWritable(id, null, Collections.singletonList(pattern), null, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT); return changes; }
/** * {@inheritDoc} */ @Override public List<AclChange> deleteLocalAccessControlEntries(Long id) { List<AclChange> changes = new ArrayList<AclChange>(); SimpleAccessControlEntry pattern = new SimpleAccessControlEntry(); pattern.setPosition(Integer.valueOf(0)); // Will remove from the cache getWritable(id, null, Collections.singletonList(pattern), null, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT); return changes; }
/** * {@inheritDoc} */ @Override public List<AclChange> deleteLocalAccessControlEntries(Long id) { List<AclChange> changes = new ArrayList<AclChange>(); SimpleAccessControlEntry pattern = new SimpleAccessControlEntry(); pattern.setPosition(Integer.valueOf(0)); // Will remove from the cache getWritable(id, null, Collections.singletonList(pattern), null, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT); return changes; }
AclChange current = getWritable(id, parent, exclude, toAdd, inheritsFrom, inherited, positions, depth, mode, requiresVersion); changes.add(current); getWritable(nextId, current.getAfter(), visitedAcls, exclude, toAdd, current.getAfter(), inherited, positions, cascade, depth + 1, changes, mode, cascadeVersion);
AclChange current = getWritable(id, parent, exclude, toAdd, inheritsFrom, inherited, positions, depth, mode, requiresVersion); changes.add(current); getWritable(nextId, current.getAfter(), visitedAcls, exclude, toAdd, current.getAfter(), inherited, positions, cascade, depth + 1, changes, mode, cascadeVersion);
getWritable(id, parent, new HashSet<Long>(), exclude, toAdd, inheritsFrom, inherited, positions, cascade, 0, changes, mode, false);
getWritable(id, parent, new HashSet<Long>(), exclude, toAdd, inheritsFrom, inherited, positions, cascade, 0, changes, mode, false);
getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY); acl = aclCrudDAO.getAclForUpdate(changes.get(0).getAfter()); acl.setInherits(Boolean.TRUE); getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY);
getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY); acl = aclCrudDAO.getAclForUpdate(changes.get(0).getAfter()); acl.setInherits(Boolean.TRUE); getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY);
toAdd.add(entry); getWritable(id, null, Collections.singletonList(exclude), toAdd, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT);
toAdd.add(entry); getWritable(id, null, Collections.singletonList(exclude), toAdd, null, true, changes, WriteMode.COPY_UPDATE_AND_INHERIT);
getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY); AclUpdateEntity acl = aclCrudDAO.getAclForUpdate(changes.get(0).getAfter()); final Long inheritsFrom = acl.getInheritsFrom(); getWritable(acl.getId(), null, null, null, null, true, changes, WriteMode.TRUNCATE_INHERITED);
getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY); AclUpdateEntity acl = aclCrudDAO.getAclForUpdate(changes.get(0).getAfter()); final Long inheritsFrom = acl.getInheritsFrom(); getWritable(acl.getId(), null, null, null, null, true, changes, WriteMode.TRUNCATE_INHERITED);
properties.setVersioned(acl.isVersioned()); Long sharedId = createAccessControlList(properties, null, null).getId(); getWritable(sharedId, id, null, null, id, true, changes, WriteMode.ADD_INHERITED); acl.setInheritedAcl(sharedId); inheritedAclId = sharedId;
properties.setVersioned(acl.isVersioned()); Long sharedId = createAccessControlList(properties, null, null).getId(); getWritable(sharedId, id, null, null, id, true, changes, WriteMode.ADD_INHERITED); acl.setInheritedAcl(sharedId); inheritedAclId = sharedId;