de.theit.hudson.crowd
Class CrowdSecurityRealm.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.security.SecurityRealm>
      extended by de.theit.hudson.crowd.CrowdSecurityRealm.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
CrowdSecurityRealm

@Extension
public static final class CrowdSecurityRealm.DescriptorImpl
extends hudson.model.Descriptor<hudson.security.SecurityRealm>

Descriptor for CrowdSecurityRealm. Used as a singleton. The class is marked as public so that it can be accessed from views.

Since:
06.09.2011 13:35:41
Version:
$Id$
Author:
Thorsten Heit (theit@gmx.de)

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
CrowdSecurityRealm.DescriptorImpl()
          Default constructor.
 
Method Summary
 hudson.util.FormValidation doCheckApplicationName(String applicationName)
          Performs on-the-fly validation of the form field 'application name'.
 hudson.util.FormValidation doCheckGroup(String group)
          Performs on-the-fly validation of the form field 'group name'.
 hudson.util.FormValidation doCheckPassword(String password)
          Performs on-the-fly validation of the form field 'password'.
 hudson.util.FormValidation doCheckUrl(String url)
          Performs on-the-fly validation of the form field 'url'.
 hudson.util.FormValidation doTestConnection(String url, String applicationName, String password, String group)
          Checks whether the connection to the Crowd server can be established using the given credentials.
 String getDisplayName()
          
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdSecurityRealm.DescriptorImpl

public CrowdSecurityRealm.DescriptorImpl()
Default constructor.

Method Detail

doCheckUrl

public hudson.util.FormValidation doCheckUrl(@QueryParameter
                                             String url)
Performs on-the-fly validation of the form field 'url'.

Parameters:
url - The URL of the Crowd server.
Returns:
Indicates the outcome of the validation. This is sent to the browser.

doCheckApplicationName

public hudson.util.FormValidation doCheckApplicationName(@QueryParameter
                                                         String applicationName)
Performs on-the-fly validation of the form field 'application name'.

Parameters:
applicationName - The application name.
Returns:
Indicates the outcome of the validation. This is sent to the browser.

doCheckPassword

public hudson.util.FormValidation doCheckPassword(@QueryParameter
                                                  String password)
Performs on-the-fly validation of the form field 'password'.

Parameters:
password - The application's password.
Returns:
Indicates the outcome of the validation. This is sent to the browser.

doCheckGroup

public hudson.util.FormValidation doCheckGroup(@QueryParameter
                                               String group)
Performs on-the-fly validation of the form field 'group name'.

Parameters:
group - The group name.
Returns:
Indicates the outcome of the validation. This is sent to the browser.

doTestConnection

public hudson.util.FormValidation doTestConnection(@QueryParameter
                                                   String url,
                                                   @QueryParameter
                                                   String applicationName,
                                                   @QueryParameter
                                                   String password,
                                                   @QueryParameter
                                                   String group)
Checks whether the connection to the Crowd server can be established using the given credentials.

Parameters:
url - The URL of the Crowd server.
applicationName - The application name.
password - The application's password.
group - The Crowd group users have to belong to if specified.
Returns:
Indicates the outcome of the validation. This is sent to the browser.

getDisplayName

public String getDisplayName()

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.security.SecurityRealm>
See Also:
Descriptor.getDisplayName()


Copyright © 2004-2011 Hudson. All Rights Reserved.