|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.theit.hudson.crowd.CrowdConfigurationService
public class CrowdConfigurationService
This class contains all objects that are necessary to access the REST services on the remote Crowd server. In addition to this it contains some helper methods
| Constructor Summary | |
|---|---|
CrowdConfigurationService(String pGroupName,
boolean pNestedGroups)
Creates a new Crowd configuration object. |
|
| Method Summary | |
|---|---|
Collection<org.acegisecurity.GrantedAuthority> |
getAuthoritiesForUser(String username)
Retrieves the list of all (nested) groups from the Crowd server that the user is a member of. |
boolean |
isGroupActive()
Checks if the group exists on the remote Crowd server and is active. |
boolean |
isGroupMember(String username)
Checks whether the user is a member of a certain Crowd group whose members are allowed to login into Hudson / Jenkins. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrowdConfigurationService(String pGroupName,
boolean pNestedGroups)
pGroupName - The group name to use when authenticating Crowd users. May not
be null.pNestedGroups - Specifies whether nested groups should be used when validating
users against the group name.| Method Detail |
|---|
public boolean isGroupMember(String username)
username - The name of the user to check. May not be null.
true if and only if the group exists, is active and
the user is either a direct group member or, if nested groups may
be used, a nested group member. false else.public boolean isGroupActive()
true if and only if:
false else.public Collection<org.acegisecurity.GrantedAuthority> getAuthoritiesForUser(String username)
username - The name of the user. May not be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||