Class AttributeDefPrivilege
java.lang.Object
edu.internet2.middleware.grouper.privs.AttributeDefPrivilege
- All Implemented Interfaces:
GrouperPrivilege
,Comparable
An instance of a granted access privilege to attribute.
- Version:
- $Id: AttributeDefPrivilege.java,v 1.1 2009-09-21 06:14:26 mchyzer Exp $
-
Field Summary
Modifier and TypeFieldDescriptionALL privileges note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_ADMINany of these constitutes ADMIN on an attribute def note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_DEF_ATTR_READany of these constitutes ATTR_DEF_ATTR_READ on a group note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_DEF_ATTR_UPDATEany of these constitutes ATTR_DEF_ATTR_UPDATE on an attribute def note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_OPTINany of these constitutes ATTR_OPTIN on an attribute def note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_OPTOUTany of these constitutes ATTR_OPTOUT on an attribute def note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_READany of these constitutes READ on a group note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_UPDATEany of these constitutes ATTR_UPDATE on an attribute def note, keep most common/likely privs toward the frontstatic final Privilege
these privileges are implied by ATTR_VIEWany of these constitutes VIEW on a group note, keep most common/likely privs toward the frontany of these constitutes MANAGE on an attribute def note, keep most common/likely privs toward the front -
Constructor Summary
ConstructorDescriptionAttributeDefPrivilege
(AttributeDef attributeDef1, Subject subj1, Subject owner1, Privilege priv, String klass1, boolean isRevokable1, String contextId1) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
filter
(Collection<Privilege> privileges) filter some privs for access privsGetAttributeDef
that the privilege was granted on.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.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
-
ATTR_ADMIN
-
ATTR_OPTIN
-
ATTR_OPTOUT
-
ATTR_READ
-
ATTR_UPDATE
-
ATTR_OPTIN_PRIVILEGES
any of these constitutes ATTR_OPTIN on an attribute def note, keep most common/likely privs toward the front -
ATTR_OPTOUT_PRIVILEGES
any of these constitutes ATTR_OPTOUT on an attribute def note, keep most common/likely privs toward the front -
ATTR_VIEW
-
ATTR_DEF_ATTR_READ
-
ATTR_DEF_ATTR_UPDATE
-
ATTR_VIEW_PRIVILEGES
any of these constitutes VIEW on a group note, keep most common/likely privs toward the front -
ALL_PRIVILEGES
ALL privileges note, keep most common/likely privs toward the front -
ATTR_DEF_ATTR_READ_PRIVILEGES
any of these constitutes ATTR_DEF_ATTR_READ on a group note, keep most common/likely privs toward the front -
ATTR_DEF_ATTR_UPDATE_PRIVILEGES
any of these constitutes ATTR_DEF_ATTR_UPDATE on an attribute def note, keep most common/likely privs toward the front -
ATTR_UPDATE_PRIVILEGES
any of these constitutes ATTR_UPDATE on an attribute def note, keep most common/likely privs toward the front -
ATTR_READ_PRIVILEGES
any of these constitutes READ on a group note, keep most common/likely privs toward the front -
MANAGE_PRIVILEGES
any of these constitutes MANAGE on an attribute def note, keep most common/likely privs toward the front -
ATTR_ADMIN_PRIVILEGES
any of these constitutes ADMIN on an attribute def note, keep most common/likely privs toward the front -
ATTR_ADMIN_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_ADMIN -
ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_UPDATE -
ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_READ -
ATTR_OPTIN_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_OPTIN -
ATTR_OPTOUT_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_OPTOUT -
ATTR_VIEW_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_VIEW -
ATTR_DEF_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_DEF_ATTR_UPDATE -
ATTR_DEF_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_DEF_ATTR_READ
-
-
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
-
getAttributeDef
GetAttributeDef
that the privilege was granted on.- Returns:
AttributeDef
-
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
- 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:
-