public class AccessPrivilege extends Object implements GrouperPrivilege, Comparable<Object>
Modifier and Type | Field and Description |
---|---|
static Privilege |
ADMIN |
static Set<Privilege> |
ADMIN_IMPLIED_PRIVILEGES
these privileges are implied by ADMIN
|
static Set<Privilege> |
ADMIN_PRIVILEGES
any of these constitutes ADMIN on a group
note, keep most common/likely privs toward the front
|
static Set<Privilege> |
ALL_PRIVILEGES
these are all the group access privileges
note, keep most common/likely privs toward the front
|
static Set<Privilege> |
ATTRIBUTE_READ_PRIVILEGES
any of these constitutes GROUP_ATTR_READ on a group
note, keep most common/likely privs toward the front
|
static Set<Privilege> |
ATTRIBUTE_UPDATE_PRIVILEGES
any of these constitutes GROUP_ATTR_UPDATE on a group
note, keep most common/likely privs toward the front
|
static Privilege |
GROUP_ATTR_READ |
static Set<Privilege> |
GROUP_ATTR_READ_IMPLIED_PRIVILEGES
these privileges are implied by GROUP_ATTR_READ
|
static Set<Privilege> |
GROUP_ATTR_READ_PRIVILEGES
any of these constitutes GROUP_ATTR_READ on a group
note, keep most common/likely privs toward the front
|
static Privilege |
GROUP_ATTR_UPDATE |
static Set<Privilege> |
GROUP_ATTR_UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by GROUP_ATTR_UPDATE
|
static Set<Privilege> |
GROUP_ATTR_UPDATE_PRIVILEGES
any of these constitutes GROUP_ATTR_UPDATE on a group
note, keep most common/likely privs toward the front
|
static Set<Privilege> |
MANAGE_PRIVILEGES
any of these constitutes MANAGE on a group
note, keep most common/likely privs toward the front
|
static Set<Privilege> |
OPT_OR_READ_PRIVILEGES
if any of the opt privs, or update, or read, or admin.
|
static Privilege |
OPTIN |
static Set<Privilege> |
OPTIN_IMPLIED_PRIVILEGES
these privileges are implied by OPTIN
|
static Set<Privilege> |
OPTIN_PRIVILEGES
any of these constitutes OPTIN on a group
note, keep most common/likely privs toward the front
|
static Privilege |
OPTOUT |
static Set<Privilege> |
OPTOUT_IMPLIED_PRIVILEGES
these privileges are implied by OPTOUT
|
static Set<Privilege> |
OPTOUT_PRIVILEGES
any of these constitutes OPTOUT on a group
note, keep most common/likely privs toward the front
|
static Privilege |
READ |
static Set<Privilege> |
READ_IMPLIED_PRIVILEGES
these privileges are implied by 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 Set<Privilege> |
UPDATE_IMPLIED_PRIVILEGES
these privileges are implied by UPDATE
|
static Set<Privilege> |
UPDATE_PRIVILEGES
any of these constitutes UPDATE on a group
note, keep most common/likely privs toward the front
|
static Privilege |
VIEW |
static Set<Privilege> |
VIEW_ENTITY_PRIVILEGES
any of these constitutes VIEW on an entity
note, keep most common/likely privs toward the front
|
static Set<Privilege> |
VIEW_IMPLIED_PRIVILEGES
these privileges are implied by VIEW
|
static Set<Privilege> |
VIEW_PRIVILEGES
any of these constitutes VIEW on a group
note, keep most common/likely privs toward the front
|
Constructor and Description |
---|
AccessPrivilege(Group group,
Subject subj,
Subject owner,
Privilege priv,
String klass,
boolean isRevokable,
String contextId1) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object that) |
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() |
void |
internalSetSubject(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() |
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 Set<Privilege> OPTOUT_PRIVILEGES
public static Set<Privilege> OPTIN_PRIVILEGES
public static Set<Privilege> OPT_OR_READ_PRIVILEGES
public static final Privilege VIEW
public static final Privilege GROUP_ATTR_READ
public static Set<Privilege> GROUP_ATTR_READ_PRIVILEGES
public static final Privilege GROUP_ATTR_UPDATE
public static Set<Privilege> GROUP_ATTR_UPDATE_PRIVILEGES
public static Set<Privilege> VIEW_PRIVILEGES
public static Set<Privilege> ALL_PRIVILEGES
public static Set<Privilege> ATTRIBUTE_READ_PRIVILEGES
public static Set<Privilege> ATTRIBUTE_UPDATE_PRIVILEGES
public static Set<Privilege> UPDATE_PRIVILEGES
public static Set<Privilege> VIEW_ENTITY_PRIVILEGES
public static Set<Privilege> READ_PRIVILEGES
public static Set<Privilege> ADMIN_PRIVILEGES
public static Set<Privilege> ADMIN_IMPLIED_PRIVILEGES
public static Set<Privilege> UPDATE_IMPLIED_PRIVILEGES
public static Set<Privilege> READ_IMPLIED_PRIVILEGES
public static Set<Privilege> OPTIN_IMPLIED_PRIVILEGES
public static Set<Privilege> OPTOUT_IMPLIED_PRIVILEGES
public static Set<Privilege> VIEW_IMPLIED_PRIVILEGES
public static Set<Privilege> GROUP_ATTR_UPDATE_IMPLIED_PRIVILEGES
public static Set<Privilege> GROUP_ATTR_READ_IMPLIED_PRIVILEGES
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 Privilege getPrivilege()
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 that)
compareTo
in interface Comparable<Object>
Comparable.compareTo(java.lang.Object)
public String getContextId()
public void internalSetSubject(Subject subject)
GrouperPrivilege
internalSetSubject
in interface GrouperPrivilege
GrouperPrivilege.internalSetSubject(Subject)
Copyright © 2016 Internet2. All rights reserved.