|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.pbac2.pdp.GroupUtils
public class GroupUtils
Helper classes for managing PBAC groups.
Often, many resources share some of their match rules. For example, every account has a different "budget holder", but the same "service administrator".
To avoid storing the service administrator match rules on every account we can instead
create a 'service-admins' group resource and store them on that. Then, every
account contains a MatchRule stating that any member of the
'service-admins' group is an administrator of the account.
Any PBAC resource is a group if it contains a PDP.GROUP_MEMBER_ROLE process role.
This class defines a single simple type which includes this role.
| Field Summary | |
|---|---|
static String |
GROUP_RESOURCE_TYPE
Groups managed using this class must have this PBAC resource type. |
| Constructor Summary | |
|---|---|
GroupUtils()
|
|
| Method Summary | |
|---|---|
static void |
ensureGroupDeployed(String resourceID)
If the group 'resourceID' does not yet exist, create it. |
static void |
ensureGroupDeployed(String resourceID,
MatchRule[] initialRules)
If the group 'resourceID' does not yet exist, create it and add initialRules to its control list. |
static String[] |
getGroups()
Find all PBAC resources which can be used as groups. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GROUP_RESOURCE_TYPE
| Constructor Detail |
|---|
public GroupUtils()
| Method Detail |
|---|
public static void ensureGroupDeployed(String resourceID)
public static void ensureGroupDeployed(String resourceID,
MatchRule[] initialRules)
public static String[] getGroups()
ACLadmin.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||