|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.privs.AccessPrivilege
public class AccessPrivilege
An instance of a granted access privilege.
Field Summary | |
---|---|
static Privilege |
ADMIN
|
static Set<Privilege> |
MANAGE_PRIVILEGES
any of these constitutes MANAGE on a group note, keep most common/likely privs toward the front |
static Privilege |
OPTIN
|
static Privilege |
OPTOUT
|
static Privilege |
READ
|
static Set<Privilege> |
READ_PRIVILEGES
any of these constitutes READ on a group note, keep most common/likely privs toward the front |
static Privilege |
SYSTEM
|
static Privilege |
UPDATE
|
static Privilege |
VIEW
|
static Set<Privilege> |
VIEW_PRIVILEGES
any of these constitutes VIEW on a group note, keep most common/likely privs toward the front |
Constructor Summary | |
---|---|
AccessPrivilege(Group group,
Subject subj,
Subject owner,
Privilege priv,
String klass,
boolean isRevokable,
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 |
static Set<String> |
getAllPrivilegeNames()
Get all privilege names. |
String |
getContextId()
optionally link the audit id with the low level action |
Group |
getGroup()
Get Group that the privilege was granted on. |
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. |
Subject |
getOwner()
Get subject which was granted privilege on this object. |
Privilege |
getPrivilege()
get the privilege, convert from name |
Subject |
getSubject()
Get subject which has this privilege. |
String |
getType()
get type of privilege (e.g. |
int |
hashCode()
|
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 ADMIN
public static final Privilege OPTIN
public static final Privilege OPTOUT
public static final Privilege READ
public static final Privilege SYSTEM
public static final Privilege UPDATE
public static final Privilege VIEW
public static Set<Privilege> VIEW_PRIVILEGES
public static Set<Privilege> READ_PRIVILEGES
public static Set<Privilege> MANAGE_PRIVILEGES
Constructor Detail |
---|
public AccessPrivilege(Group group, Subject subj, Subject owner, Privilege priv, String klass, boolean isRevokable, String contextId1)
group
- subj
- owner
- priv
- klass
- isRevokable
- 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 Group getGroup()
Group
that the privilege was granted on.
Group
public String getImplementationName()
getImplementationName
in interface GrouperPrivilege
public String getName()
getName
in interface GrouperPrivilege
public Subject getOwner()
getOwner
in interface GrouperPrivilege
Subject
that was granted privilege.public 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 static Set<String> getAllPrivilegeNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |