hudson.plugins.collabnet.auth
Class CNAuthProjectProperty.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.model.JobProperty<?>>
      extended by hudson.model.JobPropertyDescriptor
          extended by hudson.plugins.collabnet.auth.CNAuthProjectProperty.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
CNAuthProjectProperty

@Extension
public static class CNAuthProjectProperty.DescriptorImpl
extends hudson.model.JobPropertyDescriptor

Descriptor class.


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
CNAuthProjectProperty.DescriptorImpl()
           
 
Method Summary
 hudson.util.FormValidation doProjectCheck(java.lang.String project)
          Form validation for the project field.
 java.lang.String getCollabNetUrl()
           
 java.lang.String getDisplayName()
           
 java.lang.String[] getProjects()
          Get a list of projects to choose from.
 boolean isApplicable(java.lang.Class<? extends hudson.model.Job> jobType)
           
 hudson.model.JobProperty<?> newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors
 
Methods inherited from class hudson.model.Descriptor
configure, configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, 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

CNAuthProjectProperty.DescriptorImpl

public CNAuthProjectProperty.DescriptorImpl()
Method Detail

newInstance

public hudson.model.JobProperty<?> newInstance(org.kohsuke.stapler.StaplerRequest req,
                                               net.sf.json.JSONObject formData)
                                        throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.JobPropertyDescriptor
Parameters:
req - config page parameters.
Returns:
new CNAuthProjectProperty object, instantiated from the configuration form vars.
Throws:
FormException
hudson.model.Descriptor.FormException

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
Returns:
string to display.

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.Job> jobType)
Overrides:
isApplicable in class hudson.model.JobPropertyDescriptor
Parameters:
jobType -
Returns:
true when the CNAuthorizationStrategy is in effect.

doProjectCheck

public hudson.util.FormValidation doProjectCheck(@QueryParameter
                                                 java.lang.String project)
Form validation for the project field.

Parameters:
project -

getProjects

public java.lang.String[] getProjects()
Get a list of projects to choose from.

Returns:
an array of project names.

getCollabNetUrl

public java.lang.String getCollabNetUrl()
Returns:
the CollabNet server url.


Copyright © 2010. All Rights Reserved.