|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.userGroup.UserGroup
public abstract class UserGroup
An interface that defines a group of people, which GUMS will associate to a mapping policy. An implementation could take/manage a list of users in any way it wanted, or it could combine different groups.
Field Summary | |
---|---|
protected int |
accessIndex
|
protected java.lang.String[] |
accessTypes
|
Constructor Summary | |
---|---|
UserGroup()
Create a new user group. |
|
UserGroup(Configuration configuration)
Create a new user group with a configuration. |
|
UserGroup(Configuration configuration,
java.lang.String name)
Create a new user group with a configuration and a name. |
Method Summary | |
---|---|
abstract UserGroup |
clone(Configuration configuration)
Create a clone of itself |
java.lang.String |
getAccess()
Getter for property access, that determines what a member of this user group has access to in GUMS. |
Configuration |
getConfiguration()
Getter for property configuration. |
java.lang.String |
getDescription()
Getter for property description. |
abstract java.util.List |
getMemberList()
Returns the list of user identities that are part of the group. |
java.lang.String |
getName()
Getter for property name. |
java.lang.String |
getType()
Getter for property type. |
static java.lang.String |
getTypeStatic()
|
boolean |
hasReadAllAccess()
|
boolean |
hasReadSelfAccess()
|
boolean |
hasWriteAccess()
|
abstract boolean |
isInGroup(GridUser user)
Determines whether the given user identity is part of the group. |
void |
setAccess(java.lang.String access)
Setter for property access |
void |
setConfiguration(Configuration configuration)
Setter for property configuration. |
void |
setDescription(java.lang.String description)
Setter for property description. |
void |
setName(java.lang.String name)
Setter for property name. |
abstract java.lang.String |
toString(java.lang.String bgColor)
Get string representation of this object for displaying in the diagnostic summary web page |
abstract java.lang.String |
toXML()
Create a clone of itself |
abstract void |
updateMembers()
Updates the local list of the users from the source of the group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] accessTypes
protected int accessIndex
Constructor Detail |
---|
public UserGroup()
public UserGroup(Configuration configuration)
configuration
- name
- public UserGroup(Configuration configuration, java.lang.String name)
configuration
- name
- Method Detail |
---|
public static java.lang.String getTypeStatic()
public abstract UserGroup clone(Configuration configuration)
configuration
-
public java.lang.String getAccess()
public Configuration getConfiguration()
public java.lang.String getDescription()
public abstract java.util.List getMemberList()
Some UserGroups, however, could be defined by a rule that doesn't allow listing. For example, a group could be 'all the users with a DOEGrids certificate'. Though one could argue whether or not is a good idea to have such a group, one can implement one and throw an UnsupportedOperationException. This will make it impossible for GUMS to create a grid-mapfile, but would still allow direct user to account mapping through a call-out.
public java.lang.String getName()
public java.lang.String getType()
public boolean hasReadAllAccess()
public boolean hasReadSelfAccess()
public boolean hasWriteAccess()
public abstract boolean isInGroup(GridUser user)
userDN
- the certificate DN.
public void setAccess(java.lang.String access)
access
- public void setConfiguration(Configuration configuration)
configuration
- public void setDescription(java.lang.String description)
description
- public void setName(java.lang.String name)
name
- public abstract java.lang.String toString(java.lang.String bgColor)
bgColor
- back ground color
public abstract java.lang.String toXML()
configuration
-
public abstract void updateMembers()
Most user groups will get the information from a separate database accessible via WAN. For that reason, the user group will maintain a local cache with the list of members, which can be updated through this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |