|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.privs.NamingPrivilege
public class NamingPrivilege
An instance of a granted naming privilege.
Field Summary | |
---|---|
static Privilege |
CREATE
can create objects in this stem |
static Set<Privilege> |
CREATE_PRIVILEGES
any of these constitutes CREATE on a stem note, keep most common/likely privs toward the front |
static Privilege |
STEM
can create stems in this stem |
Constructor Summary | |
---|---|
NamingPrivilege(Stem stem,
Subject subj,
Subject owner,
Privilege priv,
String klass,
boolean isRevokable,
String contextId1)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object other)
|
String |
getContextId()
optionally link the audit id with the low level action |
GrouperAPI |
getGrouperApi()
get the object this privilege is assigned to (e.g. |
String |
getImplementationName()
Get name of implementation class for this privilege type. |
String |
getName()
Get name of privilege. |
Subject |
getOwner()
Get subject which was granted privilege on this object. |
Stem |
getStem()
Get object Stem that the privilege was
granted on. |
Subject |
getSubject()
Get subject which has this privilege. |
String |
getType()
get type of privilege (e.g. |
int |
hashCode()
|
boolean |
isRevokable()
Returns true if privilege can be revoked. |
static Privilege |
listToPriv(String list)
convert a list to a privilege |
static String |
privToList(Privilege privilege)
convert a privilege to a list |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Privilege CREATE
public static final Privilege STEM
public static Set<Privilege> CREATE_PRIVILEGES
Constructor Detail |
---|
public NamingPrivilege(Stem stem, Subject subj, Subject owner, Privilege priv, String klass, boolean isRevokable, String contextId1)
Method Detail |
---|
public static String privToList(Privilege privilege)
privilege
-
public static Privilege listToPriv(String list)
list
-
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
public int hashCode()
hashCode
in class Object
public String getImplementationName()
getImplementationName
in interface GrouperPrivilege
public boolean isRevokable()
isRevokable
in interface GrouperPrivilege
public String getName()
getName
in interface GrouperPrivilege
public Subject getOwner()
getOwner
in interface GrouperPrivilege
Subject
that was granted privilege.public Stem getStem()
Stem
that the privilege was
granted on.
Stem
object.public Subject getSubject()
getSubject
in interface GrouperPrivilege
Subject
that has this privilege.public String toString()
toString
in class Object
public GrouperAPI getGrouperApi()
GrouperPrivilege
getGrouperApi
in interface GrouperPrivilege
GrouperPrivilege.getGrouperApi()
public String getType()
GrouperPrivilege
getType
in interface GrouperPrivilege
GrouperPrivilege.getType()
public String getContextId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |