|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.privs.AttributeDefPrivilege
public class AttributeDefPrivilege
An instance of a granted access privilege to attribute.
Field Summary | |
---|---|
static Set<Privilege> |
ALL_PRIVILEGES
ALL privileges note, keep most common/likely privs toward the front |
static Privilege |
ATTR_ADMIN
|
static Set<Privilege> |
ATTR_ADMIN_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_ADMIN |
static Set<Privilege> |
ATTR_ADMIN_PRIVILEGES
any of these constitutes ADMIN on an attribute def note, keep most common/likely privs toward the front |
static Privilege |
ATTR_DEF_ATTR_READ
|
static Set<Privilege> |
ATTR_DEF_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_DEF_ATTR_READ |
static Set<Privilege> |
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 |
static Privilege |
ATTR_DEF_ATTR_UPDATE
|
static Set<Privilege> |
ATTR_DEF_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_DEF_ATTR_UPDATE |
static Set<Privilege> |
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 |
static Privilege |
ATTR_OPTIN
|
static Set<Privilege> |
ATTR_OPTIN_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_OPTIN |
static Set<Privilege> |
ATTR_OPTIN_PRIVILEGES
any of these constitutes ATTR_OPTIN on an attribute def note, keep most common/likely privs toward the front |
static Privilege |
ATTR_OPTOUT
|
static Set<Privilege> |
ATTR_OPTOUT_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_OPTOUT |
static Set<Privilege> |
ATTR_OPTOUT_PRIVILEGES
any of these constitutes ATTR_OPTOUT on an attribute def note, keep most common/likely privs toward the front |
static Privilege |
ATTR_READ
|
static Set<Privilege> |
ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_READ |
static Set<Privilege> |
ATTR_READ_PRIVILEGES
any of these constitutes READ on a group note, keep most common/likely privs toward the front |
static Privilege |
ATTR_UPDATE
|
static Set<Privilege> |
ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_UPDATE |
static Set<Privilege> |
ATTR_UPDATE_PRIVILEGES
any of these constitutes ATTR_UPDATE on an attribute def note, keep most common/likely privs toward the front |
static Privilege |
ATTR_VIEW
|
static Set<Privilege> |
ATTR_VIEW_IMPLIED_PRIVILEGES
these privileges are implied by ATTR_VIEW |
static Set<Privilege> |
ATTR_VIEW_PRIVILEGES
any of these constitutes VIEW on a group note, keep most common/likely privs toward the front |
static Set<Privilege> |
MANAGE_PRIVILEGES
any of these constitutes MANAGE on an attribute def note, keep most common/likely privs toward the front |
Constructor Summary | |
---|---|
AttributeDefPrivilege(AttributeDef attributeDef1,
edu.internet2.middleware.subject.Subject subj1,
edu.internet2.middleware.subject.Subject owner1,
Privilege priv,
String klass1,
boolean isRevokable1,
String contextId1)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object other)
|
static Set<Privilege> |
filter(Collection<Privilege> privileges)
filter some privs for access privs |
AttributeDef |
getAttributeDef()
Get AttributeDef that the privilege was granted on. |
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. |
Privilege |
getPrivilege()
get the privilege, convert from name |
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 ATTR_ADMIN
public static final Privilege ATTR_OPTIN
public static final Privilege ATTR_OPTOUT
public static final Privilege ATTR_READ
public static final Privilege ATTR_UPDATE
public static Set<Privilege> ATTR_OPTIN_PRIVILEGES
public static Set<Privilege> ATTR_OPTOUT_PRIVILEGES
public static final Privilege ATTR_VIEW
public static final Privilege ATTR_DEF_ATTR_READ
public static final Privilege ATTR_DEF_ATTR_UPDATE
public static Set<Privilege> ATTR_VIEW_PRIVILEGES
public static Set<Privilege> ALL_PRIVILEGES
public static Set<Privilege> ATTR_DEF_ATTR_READ_PRIVILEGES
public static Set<Privilege> ATTR_DEF_ATTR_UPDATE_PRIVILEGES
public static Set<Privilege> ATTR_UPDATE_PRIVILEGES
public static Set<Privilege> ATTR_READ_PRIVILEGES
public static Set<Privilege> MANAGE_PRIVILEGES
public static Set<Privilege> ATTR_ADMIN_PRIVILEGES
public static Set<Privilege> ATTR_ADMIN_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_UPDATE_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_READ_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_OPTIN_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_OPTOUT_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_VIEW_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_DEF_ATTR_UPDATE_IMPLIED_PRIVILEGES
public static Set<Privilege> ATTR_DEF_ATTR_READ_IMPLIED_PRIVILEGES
Constructor Detail |
---|
public AttributeDefPrivilege(AttributeDef attributeDef1, edu.internet2.middleware.subject.Subject subj1, edu.internet2.middleware.subject.Subject owner1, Privilege priv, String klass1, boolean isRevokable1, String contextId1)
attributeDef1
- subj1
- owner1
- priv
- klass1
- isRevokable1
- contextId1
- Method Detail |
---|
public static Set<Privilege> filter(Collection<Privilege> privileges)
privileges
-
public static Privilege listToPriv(String list)
list
-
public static String privToList(Privilege privilege)
privilege
-
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
public Privilege getPrivilege()
public AttributeDef getAttributeDef()
AttributeDef
that the privilege was granted on.
AttributeDef
public String getImplementationName()
getImplementationName
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 edu.internet2.middleware.subject.Subject getSubject()
getSubject
in interface GrouperPrivilege
Subject
that has this privilege.public boolean isRevokable()
isRevokable
in interface GrouperPrivilege
public String toString()
toString
in class Object
Object.toString()
public GrouperAPI getGrouperApi()
GrouperPrivilege
getGrouperApi
in interface GrouperPrivilege
GrouperPrivilege.getGrouperApi()
public String getType()
GrouperPrivilege
getType
in interface GrouperPrivilege
GrouperPrivilege.getType()
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
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 |