hudson.security
Class GlobalSecurityConfiguration

java.lang.Object
  extended by hudson.model.ManagementLink
      extended by hudson.security.GlobalSecurityConfiguration
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject

@Extension(ordinal=2.147483437E9)
public class GlobalSecurityConfiguration
extends ManagementLink

Security configuration.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static com.google.common.base.Predicate<GlobalConfigurationCategory> FILTER
           
 
Fields inherited from class hudson.model.ManagementLink
LIST
 
Constructor Summary
GlobalSecurityConfiguration()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
 void doConfigure(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 String getDescription()
          Returns a short description of what this link does.
 String getDisplayName()
          Gets the string to be displayed.
 String getIconFileName()
          Mostly works like Action.getIconFileName(), except that the expected icon size is 48x48, not 24x24.
 MarkupFormatter getMarkupFormatter()
           
 Permission getRequiredPermission()
           
 int getSlaveAgentPort()
           
 String getUrlName()
          Gets the URL path name.
 
Methods inherited from class hudson.model.ManagementLink
all, getRequiresConfirmation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER

public static com.google.common.base.Predicate<GlobalConfigurationCategory> FILTER
Constructor Detail

GlobalSecurityConfiguration

public GlobalSecurityConfiguration()
Method Detail

getMarkupFormatter

public MarkupFormatter getMarkupFormatter()

getSlaveAgentPort

public int getSlaveAgentPort()

doConfigure

public void doConfigure(org.kohsuke.stapler.StaplerRequest req,
                        org.kohsuke.stapler.StaplerResponse rsp)
                 throws IOException,
                        javax.servlet.ServletException,
                        Descriptor.FormException
Throws:
IOException
javax.servlet.ServletException
Descriptor.FormException

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws Descriptor.FormException
Throws:
Descriptor.FormException

getDisplayName

public String getDisplayName()
Description copied from interface: Action
Gets the string to be displayed. The convention is to capitalize the first letter of each word, such as "Test Result".


getDescription

public String getDescription()
Description copied from class: ManagementLink
Returns a short description of what this link does. This text is the one that's displayed in grey. This can include HTML, although the use of block tags is highly discouraged. Optional.

Overrides:
getDescription in class ManagementLink

getIconFileName

public String getIconFileName()
Description copied from class: ManagementLink
Mostly works like Action.getIconFileName(), except that the expected icon size is 48x48, not 24x24. So if you give just a file name, "/images/48x48" will be assumed.

Specified by:
getIconFileName in interface Action
Specified by:
getIconFileName in class ManagementLink
Returns:
As a special case, return null to exclude this object from the management link. This is useful for defining ManagementLink that only shows up under certain circumstances.
See Also:
Functions.isAnonymous(), Functions.getIconFilePath(Action)

getUrlName

public String getUrlName()
Description copied from class: ManagementLink
Gets the URL path name.

tions For example, if this method returns "xyz", and if the parent object (that this action is associated with) is bound to /foo/bar/zot, then this action object will be exposed to /foo/bar/zot/xyz.

This method should return a string that's unique among other Actions.

The returned string can be an absolute URL, like "http://www.sun.com/", which is useful for directly connecting to external systems.

If the returned string starts with '/', like '/foo', then it's assumed to be relative to the context path of the Jenkins webapp.

In case of ManagementLink, this value is put straight into the href attribute, so relative paths are interpreted against the root Jenkins object.

Specified by:
getUrlName in interface Action
Specified by:
getUrlName in class ManagementLink
Returns:
null if this action object doesn't need to be bound to web (when you do that, be sure to also return null from Action.getIconFileName().
See Also:
Functions.getActionUrl(String, Action)

getRequiredPermission

public Permission getRequiredPermission()
Overrides:
getRequiredPermission in class ManagementLink
Returns:
permission required for user to access this management link, in addition to Jenkins.ADMINISTER


Copyright © 2004-2013. All Rights Reserved.