Class NamingPrivilege
java.lang.Object
edu.internet2.middleware.grouper.privs.NamingPrivilege
- All Implemented Interfaces:
GrouperPrivilege
,Comparable<Object>
An instance of a granted naming privilege.
- Version:
- $Id: NamingPrivilege.java,v 1.8 2009-04-13 20:24:29 mchyzer Exp $
-
Field Summary
Modifier and TypeFieldDescriptionany of these constitutes ADMIN on a stem note, keep most common/likely privs toward the frontany of these constitutes some sort of ADMIN on a stem note, keep most common/likely privs toward the frontALL note, keep most common/likely privs toward the frontany of these constitutes STEM_ATTR_READ on a group note, keep most common/likely privs toward the frontany of these constitutes STEM_ATTR_UPDATE on a group note, keep most common/likely privs toward the frontstatic final Privilege
can create objects in this stemthese privileges are implied by CREATEany of these constitutes CREATE on a stem note, keep most common/likely privs toward the frontstatic final Privilege
can create stems in this stemstatic final Privilege
can admin stemthese privileges are implied by STEM_ADMINstatic final Privilege
can read attributes on this stemthese privileges are implied by STEM_ATTR_READany of these constitutes STEM_ATTR_READ on a stem note, keep most common/likely privs toward the frontstatic final Privilege
can update attributes on this stemthese privileges are implied by STEM_ATTR_UPDATEany of these constitutes STEM_ATTR_UPDATE on a stem note, keep most common/likely privs toward the frontthese privileges are implied by STEMany of these constitutes STEM on a stem note, keep most common/likely privs toward the frontstatic final Privilege
can create objects in this stemthese privileges are implied by STEM_VIEWany of these constitutes STEM_VIEW on a group note, keep most common/likely privs toward the front -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
optionally link the audit id with the low level actionget the object this privilege is assigned to (e.g.Get name of implementation class for this privilege type.getName()
Get name of privilege.getOwner()
Get subject which was granted privilege on this object.getStem()
Get objectStem
that the privilege was granted on.Get subject which has this privilege.getType()
get type of privilege (e.g.int
hashCode()
void
internalSetSubject
(Subject subject) if we are caching subject objects, then set it here...boolean
Returns true if privilege can be revoked.static Privilege
listToPriv
(String list) convert a list to a privilegestatic String
privToList
(Privilege privilege) convert a privilege to a listtoString()
-
Field Details
-
STEM_VIEW
can create objects in this stem -
CREATE
can create objects in this stem -
STEM
can create stems in this stem -
STEM_ADMIN
can admin stem -
STEM_PRIVILEGES
any of these constitutes STEM on a stem note, keep most common/likely privs toward the front -
STEM_ATTR_READ
can read attributes on this stem -
STEM_ATTR_READ_PRIVILEGES
any of these constitutes STEM_ATTR_READ on a stem note, keep most common/likely privs toward the front -
STEM_ATTR_UPDATE
can update attributes on this stem -
STEM_IMPLIED_PRIVILEGES
these privileges are implied by STEM -
STEM_ADMIN_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ADMIN -
CREATE_IMPLIED_PRIVILEGES
these privileges are implied by CREATE -
STEM_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ATTR_READ -
STEM_VIEW_IMPLIED_PRIVILEGES
these privileges are implied by STEM_VIEW -
STEM_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by STEM_ATTR_UPDATE -
STEM_ATTR_UPDATE_PRIVILEGES
any of these constitutes STEM_ATTR_UPDATE on a stem note, keep most common/likely privs toward the front -
CREATE_PRIVILEGES
any of these constitutes CREATE on a stem note, keep most common/likely privs toward the front -
ALL_PRIVILEGES
ALL note, keep most common/likely privs toward the front -
ATTRIBUTE_READ_PRIVILEGES
any of these constitutes STEM_ATTR_READ on a group note, keep most common/likely privs toward the front -
STEM_VIEW_PRIVILEGES
any of these constitutes STEM_VIEW on a group note, keep most common/likely privs toward the front -
ATTRIBUTE_UPDATE_PRIVILEGES
any of these constitutes STEM_ATTR_UPDATE on a group note, keep most common/likely privs toward the front -
ADMIN_PRIVILEGES
any of these constitutes ADMIN on a stem note, keep most common/likely privs toward the front -
ALL_ADMIN_PRIVILEGES
any of these constitutes some sort of ADMIN on a stem note, keep most common/likely privs toward the front
-
-
Constructor Details
-
NamingPrivilege
-
-
Method Details
-
privToList
convert a privilege to a list- Parameters:
privilege
-- Returns:
- the list name
-
listToPriv
convert a list to a privilege- Parameters:
list
-- Returns:
- the privilege
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
- See Also:
-
hashCode
public int hashCode() -
getImplementationName
Get name of implementation class for this privilege type.- Specified by:
getImplementationName
in interfaceGrouperPrivilege
- Returns:
- Class name of implementing class.
-
isRevokable
public boolean isRevokable()Returns true if privilege can be revoked.- Specified by:
isRevokable
in interfaceGrouperPrivilege
- Returns:
- Boolean true if privilege can be revoked.
-
getName
Get name of privilege.- Specified by:
getName
in interfaceGrouperPrivilege
- Returns:
- Name of privilege.
-
getOwner
Get subject which was granted privilege on this object.- Specified by:
getOwner
in interfaceGrouperPrivilege
- Returns:
Subject
that was granted privilege.
-
getStem
Get objectStem
that the privilege was granted on.- Returns:
Stem
object.
-
getSubject
Get subject which has this privilege.- Specified by:
getSubject
in interfaceGrouperPrivilege
- Returns:
Subject
that has this privilege.
-
toString
-
getGrouperApi
Description copied from interface:GrouperPrivilege
get the object this privilege is assigned to (e.g. group or stem object)- Specified by:
getGrouperApi
in interfaceGrouperPrivilege
- Returns:
- the group or stem
- See Also:
-
getType
Description copied from interface:GrouperPrivilege
get type of privilege (e.g. access or naming)- Specified by:
getType
in interfaceGrouperPrivilege
- Returns:
- the type
- See Also:
-
getContextId
optionally link the audit id with the low level action- Returns:
- context id
-
internalSetSubject
Description copied from interface:GrouperPrivilege
if we are caching subject objects, then set it here... do not change the subject here- Specified by:
internalSetSubject
in interfaceGrouperPrivilege
- See Also:
-