private Acl getAccessControlList(StoreRef storeRef) { return getACLDAO(storeRef).getAccessControlList(storeRef); }
protected Acl getAccessControlList(NodeRef nodeRef) { return getACLDAO(nodeRef).getAccessControlList(nodeRef); }
private Acl getAccessControlList(StoreRef storeRef) { return getACLDAO(storeRef).getAccessControlList(storeRef); }
protected Acl getAccessControlList(NodeRef nodeRef) { return getACLDAO(nodeRef).getAccessControlList(nodeRef); }
public AccessControlListProperties getAccessControlListProperties(NodeRef nodeRef) { Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if(acl == null) { return null; } return aclDaoComponent.getAccessControlListProperties(acl.getId()); }
public AccessControlListProperties getAccessControlListProperties(NodeRef nodeRef) { Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if(acl == null) { return null; } return aclDaoComponent.getAccessControlListProperties(acl.getId()); }
protected CreationReport getMutableAccessControlList(NodeRef nodeRef) { Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if (acl == null) { return createAccessControlList(nodeRef, INHERIT_PERMISSIONS_DEFAULT, null); } else { switch (acl.getAclType()) { case FIXED: case GLOBAL: case SHARED: case LAYERED: // We can not set an ACL on node that has one of these types so we need to make a new one .... return createAccessControlList(nodeRef, INHERIT_PERMISSIONS_DEFAULT, acl); case DEFINING: case OLD: default: // Force a copy on write if one is required getACLDAO(nodeRef).forceCopy(nodeRef); acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); return new CreationReport(acl, Collections.<AclChange> emptyList()); } } }
protected CreationReport getMutableAccessControlList(NodeRef nodeRef) { Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if (acl == null) { return createAccessControlList(nodeRef, INHERIT_PERMISSIONS_DEFAULT, null); } else { switch (acl.getAclType()) { case FIXED: case GLOBAL: case SHARED: case LAYERED: // We can not set an ACL on node that has one of these types so we need to make a new one .... return createAccessControlList(nodeRef, INHERIT_PERMISSIONS_DEFAULT, acl); case DEFINING: case OLD: default: // Force a copy on write if one is required getACLDAO(nodeRef).forceCopy(nodeRef); acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); return new CreationReport(acl, Collections.<AclChange> emptyList()); } } }
private SimpleNodePermissionEntry createSimpleNodePermissionEntry(StoreRef storeRef) { Acl acl = getACLDAO(storeRef).getAccessControlList(storeRef); if (acl == null) { // there isn't an access control list for the node - spoof a null one SimpleNodePermissionEntry snpe = new SimpleNodePermissionEntry(null, true, Collections.<SimplePermissionEntry> emptyList()); return snpe; } else { AccessControlList info = aclDaoComponent.getAccessControlList(acl.getId()); ArrayList<SimplePermissionEntry> spes = new ArrayList<SimplePermissionEntry>(info.getEntries().size()); for (AccessControlEntry entry : info.getEntries()) { SimplePermissionEntry spe = new SimplePermissionEntry(null, entry.getPermission(), entry.getAuthority(), entry.getAccessStatus(), entry.getPosition()); spes.add(spe); } SimpleNodePermissionEntry snpe = new SimpleNodePermissionEntry(null, acl.getInherits(), spes); return snpe; } }
private SimpleNodePermissionEntry createSimpleNodePermissionEntry(StoreRef storeRef) { Acl acl = getACLDAO(storeRef).getAccessControlList(storeRef); if (acl == null) { // there isn't an access control list for the node - spoof a null one SimpleNodePermissionEntry snpe = new SimpleNodePermissionEntry(null, true, Collections.<SimplePermissionEntry> emptyList()); return snpe; } else { AccessControlList info = aclDaoComponent.getAccessControlList(acl.getId()); ArrayList<SimplePermissionEntry> spes = new ArrayList<SimplePermissionEntry>(info.getEntries().size()); for (AccessControlEntry entry : info.getEntries()) { SimplePermissionEntry spe = new SimplePermissionEntry(null, entry.getPermission(), entry.getAuthority(), entry.getAccessStatus(), entry.getPosition()); spes.add(spe); } SimpleNodePermissionEntry snpe = new SimpleNodePermissionEntry(null, acl.getInherits(), spes); return snpe; } }
private SimpleNodePermissionEntry createSimpleNodePermissionEntry(NodeRef nodeRef) Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if (acl == null)
private Acl getMutableAccessControlList(StoreRef storeRef) { Acl acl = getACLDAO(storeRef).getAccessControlList(storeRef); if(acl == null) { SimpleAccessControlListProperties properties = new SimpleAccessControlListProperties(); properties.setAclType(ACLType.DEFINING); properties.setInherits(false); properties.setVersioned(false); acl = aclDaoComponent.createAccessControlList(properties); getACLDAO(storeRef).setAccessControlList(storeRef, acl); } return acl; }
private SimpleNodePermissionEntry createSimpleNodePermissionEntry(NodeRef nodeRef) Acl acl = getACLDAO(nodeRef).getAccessControlList(nodeRef); if (acl == null)
private Acl getMutableAccessControlList(StoreRef storeRef) { Acl acl = getACLDAO(storeRef).getAccessControlList(storeRef); if(acl == null) { SimpleAccessControlListProperties properties = new SimpleAccessControlListProperties(); properties.setAclType(ACLType.DEFINING); properties.setInherits(false); properties.setVersioned(false); acl = aclDaoComponent.createAccessControlList(properties); getACLDAO(storeRef).setAccessControlList(storeRef, acl); } return acl; }
acl = aclDAO.getAccessControlList(nodeRef); if (acl == null)
acl = aclDAO.getAccessControlList(nodeRef); if (acl == null)
acl = aclDAO.getAccessControlList(nodeRef); if (acl == null)
acl = aclDAO.getAccessControlList(nodeRef); if (acl == null)