public class NamingPrivilege extends Object implements GrouperPrivilege, Comparable<Object>
Modifier and Type | Field and Description |
---|---|
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_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 and Description |
---|
NamingPrivilege(Stem stem,
Subject subj,
Subject owner,
Privilege priv,
String klass,
boolean isRevokable,
String contextId1) |
Modifier and Type | Method and Description |
---|---|
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() |
void |
internalSetSubject(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() |
public static final Privilege CREATE
public static final Privilege STEM
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> 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 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 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 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(Subject subject)
GrouperPrivilege
internalSetSubject
in interface GrouperPrivilege
GrouperPrivilege.internalSetSubject(Subject)
Copyright © 2016 Internet2. All rights reserved.