|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.userGroup.UserGroup gov.bnl.gums.userGroup.LDAPUserGroup
public class LDAPUserGroup
A group of users defined by an LDAP VO.
The query should be :
Field Summary | |
---|---|
protected ConfigurationStore |
confStore
|
Fields inherited from class gov.bnl.gums.userGroup.UserGroup |
---|
accessIndex, accessTypes |
Constructor Summary | |
---|---|
LDAPUserGroup()
Create a new ldap user group. |
|
LDAPUserGroup(Configuration configuration)
Create a new ldap user group with a configuration. |
|
LDAPUserGroup(Configuration configuration,
java.lang.String name)
Create a new ldap user group with a configuration and a name. |
Method Summary | |
---|---|
UserGroup |
clone(Configuration configuration)
Create a clone of itself |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCertDNField()
Getter for property certDN |
java.util.List |
getMemberList()
Returns the list of user identities that are part of the group. |
java.lang.String |
getPersistenceFactory()
Getter for property persistenceFactory |
java.lang.String |
getQuery()
The LDAP query used to retrieveGetter for property query. |
java.lang.String |
getServer()
Returns the name of the LDAP server used to retrieve the list of users. |
java.lang.String |
getType()
Getter for property type. |
static java.lang.String |
getTypeStatic()
|
int |
hashCode()
|
boolean |
isInGroup(GridUser user)
Determines whether the given user identity is part of the group. |
java.util.Map |
retrievePeopleMap(javax.naming.directory.DirContext ldap)
|
void |
setCertDNField(java.lang.String certDNField)
Setter for property certDN |
void |
setPersistenceFactory(java.lang.String persistenceFactory)
Setter for property persistenceFactory |
void |
setQuery(java.lang.String query)
Changes the LDAP query used to retrieveGetter for property query. |
void |
setServer(java.lang.String server)
Changes the LDAP server used to retrieve the list of users. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String bgColor)
Get string representation of this object for displaying in the diagnostic summary web page |
java.lang.String |
toXML()
Create a clone of itself |
void |
updateMembers()
Updates the local list of the users from the source of the group. |
Methods inherited from class gov.bnl.gums.userGroup.UserGroup |
---|
getAccess, getConfiguration, getDescription, getName, hasReadAllAccess, hasReadSelfAccess, hasWriteAccess, setAccess, setConfiguration, setDescription, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ConfigurationStore confStore
Constructor Detail |
---|
public LDAPUserGroup()
public LDAPUserGroup(Configuration configuration)
public LDAPUserGroup(Configuration configuration, java.lang.String name)
Method Detail |
---|
public static java.lang.String getTypeStatic()
public UserGroup clone(Configuration configuration)
UserGroup
clone
in class UserGroup
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getCertDNField()
public java.util.List getMemberList()
UserGroup
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.
getMemberList
in class UserGroup
public java.lang.String getPersistenceFactory()
public java.lang.String getQuery()
public java.lang.String getServer()
public java.lang.String getType()
UserGroup
getType
in class UserGroup
public int hashCode()
hashCode
in class java.lang.Object
public boolean isInGroup(GridUser user)
UserGroup
isInGroup
in class UserGroup
public java.util.Map retrievePeopleMap(javax.naming.directory.DirContext ldap) throws javax.naming.NamingException
javax.naming.NamingException
public void setCertDNField(java.lang.String certDNField)
certDN
- as stringpublic void setPersistenceFactory(java.lang.String persistenceFactory)
persistenceFactory
- as stringpublic void setQuery(java.lang.String query)
query
- The LDAP query used. i.e. "ou=usatlas,o=atlas,dc=eu-datagrid,dc=org"public void setServer(java.lang.String server)
server
- The name of the server server. i.e. "grid-vo.nikhef.nl"public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String bgColor)
UserGroup
toString
in class UserGroup
bgColor
- back ground color
public java.lang.String toXML()
UserGroup
toXML
in class UserGroup
public void updateMembers()
UserGroup
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.
updateMembers
in class UserGroup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |