|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouper.privs.AttributeDefPrivilege
public class AttributeDefPrivilege
An instance of a granted access privilege to attribute.
| Field Summary | |
|---|---|
static java.util.Set<Privilege> |
ADMIN_PRIVILEGES
any of these constitutes ADMIN on an attribute def note, keep most common/likely privs toward the front |
static Privilege |
ATTR_ADMIN
|
static Privilege |
ATTR_OPTIN
|
static Privilege |
ATTR_OPTOUT
|
static Privilege |
ATTR_READ
|
static Privilege |
ATTR_UPDATE
|
static Privilege |
ATTR_VIEW
|
static java.util.Set<Privilege> |
MANAGE_PRIVILEGES
any of these constitutes MANAGE on an attribute def note, keep most common/likely privs toward the front |
static java.util.Set<Privilege> |
READ_PRIVILEGES
any of these constitutes READ on a group note, keep most common/likely privs toward the front |
static java.util.Set<Privilege> |
VIEW_PRIVILEGES
any of these constitutes VIEW on a group 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,
java.lang.String klass1,
boolean isRevokable1,
java.lang.String contextId1)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object other)
|
static java.util.Set<Privilege> |
filter(java.util.Collection<Privilege> privileges)
filter some privs for access privs |
AttributeDef |
getAttributeDef()
Get AttributeDef that the privilege was granted on. |
java.lang.String |
getContextId()
optionally link the audit id with the low level action |
GrouperAPI |
getGrouperApi()
get the object this privilege is assigned to (e.g. group or stem object) |
java.lang.String |
getImplementationName()
Get name of implementation class for this privilege type. |
java.lang.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. |
java.lang.String |
getType()
get type of privilege (e.g. access or naming) |
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(java.lang.String list)
convert a list to a privilege |
static java.lang.String |
privToList(Privilege privilege)
convert a privilege to a list |
java.lang.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 final Privilege ATTR_VIEW
public static java.util.Set<Privilege> VIEW_PRIVILEGES
public static java.util.Set<Privilege> READ_PRIVILEGES
public static java.util.Set<Privilege> MANAGE_PRIVILEGES
public static java.util.Set<Privilege> ADMIN_PRIVILEGES
| Constructor Detail |
|---|
public AttributeDefPrivilege(AttributeDef attributeDef1,
edu.internet2.middleware.subject.Subject subj1,
edu.internet2.middleware.subject.Subject owner1,
Privilege priv,
java.lang.String klass1,
boolean isRevokable1,
java.lang.String contextId1)
attributeDef1 - subj1 - owner1 - priv - klass1 - isRevokable1 - contextId1 - | Method Detail |
|---|
public static java.util.Set<Privilege> filter(java.util.Collection<Privilege> privileges)
privileges -
public static Privilege listToPriv(java.lang.String list)
list -
public static java.lang.String privToList(Privilege privilege)
privilege -
public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.Objectpublic Privilege getPrivilege()
public AttributeDef getAttributeDef()
AttributeDef that the privilege was granted on.
AttributeDefpublic java.lang.String getImplementationName()
getImplementationName in interface GrouperPrivilegepublic java.lang.String getName()
getName in interface GrouperPrivilegepublic edu.internet2.middleware.subject.Subject getOwner()
getOwner in interface GrouperPrivilegeSubject that was granted privilege.public edu.internet2.middleware.subject.Subject getSubject()
getSubject in interface GrouperPrivilegeSubject that has this privilege.public boolean isRevokable()
isRevokable in interface GrouperPrivilegepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public GrouperAPI getGrouperApi()
GrouperPrivilege
getGrouperApi in interface GrouperPrivilegeGrouperPrivilege.getGrouperApi()public java.lang.String getType()
GrouperPrivilege
getType in interface GrouperPrivilegeGrouperPrivilege.getType()public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public java.lang.String getContextId()
public void internalSetSubject(edu.internet2.middleware.subject.Subject subject)
GrouperPrivilege
internalSetSubject in interface GrouperPrivilegeGrouperPrivilege.internalSetSubject(Subject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||