Class AccessPrivilege
java.lang.Object
edu.internet2.middleware.grouper.privs.AccessPrivilege
- All Implemented Interfaces:
GrouperPrivilege
,Comparable<Object>
An instance of a granted access privilege.
- Version:
- $Id: AccessPrivilege.java,v 1.12 2009-09-25 16:13:45 tzeller Exp $
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Privilege
these privileges are implied by ADMINany of these constitutes ADMIN on a group note, keep most common/likely privs toward the frontthese are all the group access privileges note, keep most common/likely privs toward the frontany of these constitutes GROUP_ATTR_READ on a group note, keep most common/likely privs toward the frontany of these constitutes GROUP_ATTR_UPDATE on a group note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by GROUP_ATTR_READany of these constitutes GROUP_ATTR_READ on a group note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by GROUP_ATTR_UPDATEany of these constitutes GROUP_ATTR_UPDATE on a group note, keep most common/likely privs toward the frontany of these constitutes MANAGE on a group note, keep most common/likely privs toward the frontif any of the opt privs, or update, or read, or admin.static final Privilege
these privileges are implied by OPTINany of these constitutes OPTIN on a group note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by OPTOUTany of these constitutes OPTOUT on a group note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by READany of these constitutes READ on a group note, keep most common/likely privs toward the frontstatic final Privilege
static final Privilege
these privileges are implied by UPDATEany of these constitutes UPDATE on a group note, keep most common/likely privs toward the frontstatic final Privilege
any of these constitutes VIEW on an entity note, keep most common/likely privs toward the frontthese privileges are implied by VIEWany of these constitutes VIEW on a group note, keep most common/likely privs toward the front -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
filter
(Collection<Privilege> privileges) filter some privs for access privsGet all privilege names.optionally link the audit id with the low level actiongetGroup()
GetGroup
that the privilege was granted on.get 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.get the privilege, convert from nameGet 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
-
ADMIN
-
OPTIN
-
OPTOUT
-
READ
-
SYSTEM
-
UPDATE
-
OPTOUT_PRIVILEGES
any of these constitutes OPTOUT on a group note, keep most common/likely privs toward the front -
OPTIN_PRIVILEGES
any of these constitutes OPTIN on a group note, keep most common/likely privs toward the front -
OPT_OR_READ_PRIVILEGES
if any of the opt privs, or update, or read, or admin. to see if someone can opt themselves out of their membership -
VIEW
-
GROUP_ATTR_READ
-
GROUP_ATTR_READ_PRIVILEGES
any of these constitutes GROUP_ATTR_READ on a group note, keep most common/likely privs toward the front -
GROUP_ATTR_UPDATE
-
GROUP_ATTR_UPDATE_PRIVILEGES
any of these constitutes GROUP_ATTR_UPDATE on a group note, keep most common/likely privs toward the front -
VIEW_PRIVILEGES
any of these constitutes VIEW on a group note, keep most common/likely privs toward the front -
ALL_PRIVILEGES
these are all the group access privileges note, keep most common/likely privs toward the front -
ATTRIBUTE_READ_PRIVILEGES
any of these constitutes GROUP_ATTR_READ on a group note, keep most common/likely privs toward the front -
ATTRIBUTE_UPDATE_PRIVILEGES
any of these constitutes GROUP_ATTR_UPDATE on a group note, keep most common/likely privs toward the front -
UPDATE_PRIVILEGES
any of these constitutes UPDATE on a group note, keep most common/likely privs toward the front -
VIEW_ENTITY_PRIVILEGES
any of these constitutes VIEW on an entity note, keep most common/likely privs toward the front -
READ_PRIVILEGES
any of these constitutes READ on a group note, keep most common/likely privs toward the front -
ADMIN_PRIVILEGES
any of these constitutes ADMIN on a group note, keep most common/likely privs toward the front -
ADMIN_IMPLIED_PRIVILEGES
these privileges are implied by ADMIN -
UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by UPDATE -
READ_IMPLIED_PRIVILEGES
these privileges are implied by READ -
OPTIN_IMPLIED_PRIVILEGES
these privileges are implied by OPTIN -
OPTOUT_IMPLIED_PRIVILEGES
these privileges are implied by OPTOUT -
VIEW_IMPLIED_PRIVILEGES
these privileges are implied by VIEW -
GROUP_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by GROUP_ATTR_UPDATE -
GROUP_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by GROUP_ATTR_READ -
MANAGE_PRIVILEGES
any of these constitutes MANAGE on a group note, keep most common/likely privs toward the front
-
-
Constructor Details
-
Method Details
-
filter
filter some privs for access privs- Parameters:
privileges
-- Returns:
- a new set of privs
-
listToPriv
convert a list to a privilege- Parameters:
list
-- Returns:
- the privilege
-
privToList
convert a privilege to a list- Parameters:
privilege
-- Returns:
- the list name
-
equals
-
hashCode
public int hashCode() -
getPrivilege
get the privilege, convert from name- Returns:
- named Privilege
-
getGroup
GetGroup
that the privilege was granted on.- Returns:
Group
-
getImplementationName
Get name of implementation class for this privilege type.- Specified by:
getImplementationName
in interfaceGrouperPrivilege
- Returns:
- Class name of implementing class.
-
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.
-
getSubject
Get subject which has this privilege.- Specified by:
getSubject
in interfaceGrouperPrivilege
- Returns:
Subject
that has this privilege.
-
isRevokable
public boolean isRevokable()Returns true if privilege can be revoked.- Specified by:
isRevokable
in interfaceGrouperPrivilege
- Returns:
- Boolean true if privilege can be revoked.
-
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:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
- 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:
-
getAllPrivilegeNames
Get all privilege names.- Returns:
- the set of privilege names
-