|
||||||||||
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 java.util.Set<Privilege> |
ALL_ADMIN_PRIVILEGES
any of these constitutes some sort of ADMIN on a stem note, keep most common/likely privs toward the front |
static java.util.Set<Privilege> |
ALL_PRIVILEGES
ALL note, keep most common/likely privs toward the front |
static java.util.Set<Privilege> |
ATTRIBUTE_READ_PRIVILEGES
any of these constitutes STEM_ATTR_READ on a group note, keep most common/likely privs toward the front |
static java.util.Set<Privilege> |
ATTRIBUTE_UPDATE_PRIVILEGES
any of these constitutes STEM_ATTR_UPDATE on a group note, keep most common/likely privs toward the front |
static Privilege |
CREATE
can create objects in this stem |
static java.util.Set<Privilege> |
CREATE_IMPLIED_PRIVILEGES
these privileges are implied by CREATE |
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 |
static Privilege |
STEM_ADMIN
can admin stem |
static java.util.Set<Privilege> |
STEM_ADMIN_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ADMIN |
static Privilege |
STEM_ATTR_READ
can read attributes on this stem |
static java.util.Set<Privilege> |
STEM_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ATTR_READ |
static java.util.Set<Privilege> |
STEM_ATTR_READ_PRIVILEGES
any of these constitutes STEM_ATTR_READ on a stem note, keep most common/likely privs toward the front |
static Privilege |
STEM_ATTR_UPDATE
can update attributes on this stem |
static java.util.Set<Privilege> |
STEM_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ATTR_UPDATE |
static java.util.Set<Privilege> |
STEM_ATTR_UPDATE_PRIVILEGES
any of these constitutes STEM_ATTR_UPDATE on a stem note, keep most common/likely privs toward the front |
static java.util.Set<Privilege> |
STEM_IMPLIED_PRIVILEGES
these privileges are implied by STEM |
static java.util.Set<Privilege> |
STEM_PRIVILEGES
any of these constitutes STEM on a stem note, keep most common/likely privs toward the front |
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 final Privilege STEM_ADMIN
public static java.util.Set<Privilege> STEM_PRIVILEGES
public static final Privilege STEM_ATTR_READ
public static java.util.Set<Privilege> STEM_ATTR_READ_PRIVILEGES
public static final Privilege STEM_ATTR_UPDATE
public static java.util.Set<Privilege> STEM_IMPLIED_PRIVILEGES
public static java.util.Set<Privilege> STEM_ADMIN_IMPLIED_PRIVILEGES
public static java.util.Set<Privilege> CREATE_IMPLIED_PRIVILEGES
public static java.util.Set<Privilege> STEM_ATTR_READ_IMPLIED_PRIVILEGES
public static java.util.Set<Privilege> STEM_ATTR_UPDATE_IMPLIED_PRIVILEGES
public static java.util.Set<Privilege> STEM_ATTR_UPDATE_PRIVILEGES
public static java.util.Set<Privilege> CREATE_PRIVILEGES
public static java.util.Set<Privilege> ALL_PRIVILEGES
public static java.util.Set<Privilege> ATTRIBUTE_READ_PRIVILEGES
public static java.util.Set<Privilege> ATTRIBUTE_UPDATE_PRIVILEGES
public static java.util.Set<Privilege> ADMIN_PRIVILEGES
public static java.util.Set<Privilege> ALL_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.Object
Object.equals(java.lang.Object)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
Comparable.compareTo(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getImplementationName()
getImplementationName
in interface GrouperPrivilege
public boolean isRevokable()
isRevokable
in interface GrouperPrivilege
public java.lang.String getName()
getName
in interface GrouperPrivilege
public edu.internet2.middleware.subject.Subject getOwner()
getOwner
in interface GrouperPrivilege
Subject
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 GrouperPrivilege
Subject
that has this privilege.public java.lang.String toString()
toString
in class java.lang.Object
public GrouperAPI getGrouperApi()
GrouperPrivilege
getGrouperApi
in interface GrouperPrivilege
GrouperPrivilege.getGrouperApi()
public java.lang.String getType()
GrouperPrivilege
getType
in interface GrouperPrivilege
GrouperPrivilege.getType()
public java.lang.String getContextId()
public void internalSetSubject(edu.internet2.middleware.subject.Subject subject)
GrouperPrivilege
internalSetSubject
in interface GrouperPrivilege
GrouperPrivilege.internalSetSubject(Subject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |