|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.utils.ACLUtil
public class ACLUtil
Convenience methods for accessing ACL data within ANZO metadata graphs
| Constructor Summary | |
|---|---|
ACLUtil()
|
|
| Method Summary | |
|---|---|
static org.openrdf.model.URI |
getACL(INamedGraphWithMetaData graph)
Returns the ACL for the given named graph. |
static void |
setAddPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
Sets the add permission on the given graph for the given role. |
static void |
setChangeNamedGraphACLPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
Sets the change ACL permission on this graph for the given role. |
static void |
setCreateNamedGraphsPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
Sets the permission to create new graphs for the given role |
static void |
setPermissions(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean read,
boolean add,
boolean remove,
boolean createNamedGraphs,
boolean removeNamedGraphs,
boolean changeNamedGraphACL)
Sets the permissions for the given role on the given named graph. |
static void |
setReadPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
Sets the read permission on the given graph for the given role. |
static void |
setRemoveNamedGraphsPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
Sets the permission to remove the named graphs for the given role |
static void |
setRemovePermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
Sets the remove permission on the given graph for the given role. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACLUtil()
| Method Detail |
|---|
public static void setReadPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
graph - for which the ACL will be changedrole - target role for which the permission is to be setpermission - true to allow the given role permission to read statements from this graph, false otherwise
public static void setAddPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
graph - for which the ACL will be changedrole - target role for which the permission is to be setpermission - true to allow the given role permission to add statements to this graph, false otherwise
public static void setRemovePermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
graph - for which the ACL will be changedrole - target role for which the permission is to be setpermission - true to allow the given role permission to remove statements from this graph, false otherwise
public static void setCreateNamedGraphsPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
graph - for which the ACL will be changedrole - target role for which the permission is to be setpermission - true to allow the given role permission to create a new graph, false otherwise
public static void setRemoveNamedGraphsPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
graph - for which the ACL will be changedrole - target role for which the permission is to be setpermission - true to allow the given role permission to remove the named graph, false otherwise
public static void setChangeNamedGraphACLPermission(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean permission)
graph - for which the ACL will be changedrole - target role for which the permission is to be setpermission - true to allow the given role permission to change this ACL, false otherwise
public static void setPermissions(INamedGraphWithMetaData graph,
org.openrdf.model.URI role,
boolean read,
boolean add,
boolean remove,
boolean createNamedGraphs,
boolean removeNamedGraphs,
boolean changeNamedGraphACL)
graph - for which the ACL will be changedrole - the target role for which permissions are being set for this graphread - true if role has permission to read, false otherwiseadd - true if role has permission to add statements, false otherwiseremove - true if role has permission to remove statements, false otherwisecreateNamedGraphs - true if role has permission to create new NamedGraphs, false otherwiseremoveNamedGraphs - true if role has permission to remove NamedGraphs, false otherwisechangeNamedGraphACL - true if role has permission to change the ACL of the NamedGraph, false otherwisepublic static org.openrdf.model.URI getACL(INamedGraphWithMetaData graph)
graph - the graph for which the ACL will be returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||