edu.internet2.middleware.grouper.privs
Class Privilege

java.lang.Object
  extended by edu.internet2.middleware.grouper.privs.Privilege
All Implemented Interfaces:
Serializable

public class Privilege
extends Object
implements Serializable

Privilege schema specification. Access the constants for Groups from AccessPrivilege and Stems from NamingPrivilege.

Version:
$Id: Privilege.java,v 1.9 2009/09/21 06:14:26 mchyzer Exp $
Author:
blair christensen.
See Also:
Serialized Form

Field Summary
static long serialVersionUID
          constant
 
Method Summary
 boolean equals(Object obj)
          string equals
static Set getAccessPrivs()
           
static Set getAttributeDefPrivs()
          get attribute def privs
 Field getField()
          return the list name
static Privilege getInstance(String name)
           
 String getListName()
          return the list name
 String getName()
           
static Set getNamingPrivs()
          get stem (naming) privs
 int hashCode()
          generate hash code
static boolean isAccess(Privilege p)
           
static boolean isAttributeDef(Privilege p)
           
static boolean isNaming(Privilege p)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
constant

See Also:
Constant Field Values
Method Detail

hashCode

public int hashCode()
generate hash code

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
string equals

Overrides:
equals in class Object
Returns:
if equal

getListName

public String getListName()
return the list name

Returns:
the list name

getField

public Field getField()
               throws SchemaException
return the list name

Returns:
the list name
Throws:
SchemaException

getAccessPrivs

public static Set getAccessPrivs()
Returns:
access (group) privs

getInstance

public static Privilege getInstance(String name)
Parameters:
name -
Returns:
priv

getNamingPrivs

public static Set getNamingPrivs()
get stem (naming) privs

Returns:
set

getAttributeDefPrivs

public static Set getAttributeDefPrivs()
get attribute def privs

Returns:
attr def privs

isAccess

public static boolean isAccess(Privilege p)
Parameters:
p -
Returns:
if access

isNaming

public static boolean isNaming(Privilege p)
Parameters:
p -
Returns:
if naming (stem)

isAttributeDef

public static boolean isAttributeDef(Privilege p)
Parameters:
p -
Returns:
if attribute def

getName

public String getName()
Returns:
name

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()