org.openanzo.server.repository.structures
Class Privilege

java.lang.Object
  extended by org.openanzo.server.repository.structures.Privilege

public class Privilege
extends java.lang.Object

Enumeration of the privileges available in Anzo.

Author:
Joe Betz

Field Summary
static Privilege Add
          User can add triples to NamedGraph
static Privilege ChangeNamedGraphAcl
          User can change the ACL properties of a NamedGraph
static Privilege InsertNamedGraph
          User can create a new NamedGraph
static Privilege Read
          User can read triples in NamedGraph
static Privilege Remove
          User can remove triples from NamedGraph
static Privilege RemoveNamedGraph
          User can remove a NamedGraph
 
Method Summary
static Privilege[] getAllPrivileges()
          Get array of all privilege types
static Privilege getForPredicate(org.openrdf.model.URI predicate)
          Get the Privilege object for the given predicate
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Read

public static final Privilege Read
User can read triples in NamedGraph


Add

public static final Privilege Add
User can add triples to NamedGraph


Remove

public static final Privilege Remove
User can remove triples from NamedGraph


InsertNamedGraph

public static final Privilege InsertNamedGraph
User can create a new NamedGraph


RemoveNamedGraph

public static final Privilege RemoveNamedGraph
User can remove a NamedGraph


ChangeNamedGraphAcl

public static final Privilege ChangeNamedGraphAcl
User can change the ACL properties of a NamedGraph

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAllPrivileges

public static Privilege[] getAllPrivileges()
Get array of all privilege types

Returns:
array of all privilege types

getForPredicate

public static Privilege getForPredicate(org.openrdf.model.URI predicate)
Get the Privilege object for the given predicate

Parameters:
predicate - to map to Privilege
Returns:
the Privilege object for the given predicate


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.