|
||||||||||
| 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 java.util.Set<Privilege> |
ADMIN_PRIVILEGES
any of these constitutes ADMIN on a stem note, keep most common/likely privs toward the front |
static Privilege |
CREATE
can create objects in this stem |
static java.util.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,
edu.internet2.middleware.subject.Subject subj,
edu.internet2.middleware.subject.Subject owner,
Privilege priv,
java.lang.String klass,
boolean isRevokable,
java.lang.String contextId1)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getContextId()
optionally link the audit id with the low level action |
GrouperAPI |
getGrouperApi()
get the object this privilege is assigned to (e.g. group or stem object) |
java.lang.String |
getImplementationName()
Get name of implementation class for this privilege type. |
java.lang.String |
getName()
Get name of privilege. |
edu.internet2.middleware.subject.Subject |
getOwner()
Get subject which was granted privilege on this object. |
Stem |
getStem()
Get object Stem that the privilege was
granted on. |
edu.internet2.middleware.subject.Subject |
getSubject()
Get subject which has this privilege. |
java.lang.String |
getType()
get type of privilege (e.g. access or naming) |
int |
hashCode()
|
void |
internalSetSubject(edu.internet2.middleware.subject.Subject subject)
if we are caching subject objects, then set it here... |
boolean |
isRevokable()
Returns true if privilege can be revoked. |
static Privilege |
listToPriv(java.lang.String list)
convert a list to a privilege |
static java.lang.String |
privToList(Privilege privilege)
convert a privilege to a list |
java.lang.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 java.util.Set<Privilege> CREATE_PRIVILEGES
public static java.util.Set<Privilege> ADMIN_PRIVILEGES
| Constructor Detail |
|---|
public NamingPrivilege(Stem stem,
edu.internet2.middleware.subject.Subject subj,
edu.internet2.middleware.subject.Subject owner,
Privilege priv,
java.lang.String klass,
boolean isRevokable,
java.lang.String contextId1)
| Method Detail |
|---|
public static java.lang.String privToList(Privilege privilege)
privilege -
public static Privilege listToPriv(java.lang.String list)
list -
public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getImplementationName()
getImplementationName in interface GrouperPrivilegepublic boolean isRevokable()
isRevokable in interface GrouperPrivilegepublic java.lang.String getName()
getName in interface GrouperPrivilegepublic edu.internet2.middleware.subject.Subject getOwner()
getOwner in interface GrouperPrivilegeSubject that was granted privilege.public Stem getStem()
Stem that the privilege was
granted on.
Stem object.public edu.internet2.middleware.subject.Subject getSubject()
getSubject in interface GrouperPrivilegeSubject that has this privilege.public java.lang.String toString()
toString in class java.lang.Objectpublic GrouperAPI getGrouperApi()
GrouperPrivilege
getGrouperApi in interface GrouperPrivilegeGrouperPrivilege.getGrouperApi()public java.lang.String getType()
GrouperPrivilege
getType in interface GrouperPrivilegeGrouperPrivilege.getType()public java.lang.String getContextId()
public void internalSetSubject(edu.internet2.middleware.subject.Subject subject)
GrouperPrivilege
internalSetSubject in interface GrouperPrivilegeGrouperPrivilege.internalSetSubject(Subject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||