|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.privs.NamingPrivilege
public class NamingPrivilege
An instance of a granted naming privilege.
Field Summary | |
---|---|
static Set<Privilege> |
ADMIN_PRIVILEGES
any of these constitutes ADMIN on a stem note, keep most common/likely privs toward the front |
static 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 Set<Privilege> |
ALL_PRIVILEGES
ALL note, keep most common/likely privs toward the front |
static 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 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 Set<Privilege> |
CREATE_IMPLIED_PRIVILEGES
these privileges are implied by CREATE |
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 |
static Privilege |
STEM_ADMIN
can admin stem |
static 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 Set<Privilege> |
STEM_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ATTR_READ |
static 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 Set<Privilege> |
STEM_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ATTR_UPDATE |
static 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 Set<Privilege> |
STEM_IMPLIED_PRIVILEGES
these privileges are implied by STEM |
static 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,
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. |
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. |
String |
getType()
get type of privilege (e.g. |
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(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 final Privilege STEM_ADMIN
public static Set<Privilege> STEM_PRIVILEGES
public static final Privilege STEM_ATTR_READ
public static Set<Privilege> STEM_ATTR_READ_PRIVILEGES
public static final Privilege STEM_ATTR_UPDATE
public static Set<Privilege> STEM_IMPLIED_PRIVILEGES
public static Set<Privilege> STEM_ADMIN_IMPLIED_PRIVILEGES
public static Set<Privilege> CREATE_IMPLIED_PRIVILEGES
public static Set<Privilege> STEM_ATTR_READ_IMPLIED_PRIVILEGES
public static Set<Privilege> STEM_ATTR_UPDATE_IMPLIED_PRIVILEGES
public static Set<Privilege> STEM_ATTR_UPDATE_PRIVILEGES
public static Set<Privilege> CREATE_PRIVILEGES
public static Set<Privilege> ALL_PRIVILEGES
public static Set<Privilege> ATTRIBUTE_READ_PRIVILEGES
public static Set<Privilege> ATTRIBUTE_UPDATE_PRIVILEGES
public static Set<Privilege> ADMIN_PRIVILEGES
public static 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, 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<Object>
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 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 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()
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 |