Class EiffelBroadcasterConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelBroadcasterConfig
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension
@Symbol("eiffel-broadcaster")
public final class EiffelBroadcasterConfig
extends GlobalConfiguration
Adds the EiffelBroadcaster plugin configuration to the system config page.
- Author:
- Isac Holm <isac.holm@axis.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) doFillSystemSigningCredentialsIdItems
(Item item, String credentialsId) doTestConnection
(String uri, String name, Secret pw) Tests connection to the server URI.Returns the list of categories to attach to the activities, expressed as a multi-line string.Returns the list of categories to attach to the activities.getAppId()
Returns application id.protected XmlFile
For backwards-compatibility with the previousPlugin
-derived version.boolean
Gets whether this plugin is enabled or not.Gets the exchange name.getHelpFile
(String fieldName) Returns a custom help file location for fields where the Stapler doesn't locate it automatically.Returns the hostname source.static EiffelBroadcasterConfig
Gets this extension's instance.boolean
Returns true if persistentDelivery is to be used.Gets the routing key.Returns the currently configuredRoutingKeyProvider
implementation.Gets URI for MQ server.Gets user name.Gets user password.Gets the virtual host name.boolean
protected Object
Migrates legacy model fields to the current model.void
setActivityCategories
(String activityCategories) Sets the list of categories to attach to the activities.void
Sets application id.void
setEnableBroadcaster
(boolean enableBroadcaster) Sets flag whether this plugin is enabled or not.void
setExchangeName
(String exchangeName) Sets the exchange name.void
setHostnameSource
(HostnameSource hostnameSource) Sets the hostname source.void
setPersistentDelivery
(boolean pd) Sets persistent delivery mode.void
setRoutingKey
(String routingKey) Sets the routing key.void
setRoutingKeyProvider
(RoutingKeyProvider routingKeyProvider) Sets whichRoutingKeyProvider
implementation to use to generate routing keys for the events.void
setServerUri
(String serverUri) Sets URI for MQ server.void
setSystemSigningCredentialsId
(String systemSigningCredentialsId) void
setSystemSigningEnabled
(boolean systemSigningEnabled) void
setSystemSigningHashAlg
(HashAlgorithm systemSigningHashAlg) void
setUserName
(String userName) Sets user name.void
setUserPassword
(Secret userPassword) Sets user password.void
setVirtualHost
(String virtualHost) Sets the virtual host name.Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
EiffelBroadcasterConfig
public EiffelBroadcasterConfig()
-
-
Method Details
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
readResolve
Migrates legacy model fields to the current model. Called by the XStream unmarshaler. -
getConfigFile
For backwards-compatibility with the previousPlugin
-derived version.- Overrides:
getConfigFile
in classDescriptor<GlobalConfiguration>
- Returns:
- XmlFile representing the configuration file.
-
getEnableBroadcaster
public boolean getEnableBroadcaster()Gets whether this plugin is enabled or not.- Returns:
- true if this plugin is enabled.
-
setEnableBroadcaster
@DataBoundSetter public void setEnableBroadcaster(boolean enableBroadcaster) Sets flag whether this plugin is enabled or not.- Parameters:
enableBroadcaster
- true if this plugin is enabled.
-
getServerUri
Gets URI for MQ server.- Returns:
- the URI.
-
setServerUri
Sets URI for MQ server.- Parameters:
serverUri
- the URI.
-
getUserName
Gets user name.- Returns:
- the user name.
-
setUserName
Sets user name.- Parameters:
userName
- the user name.
-
getUserPassword
Gets user password.- Returns:
- the user password.
-
setUserPassword
Sets user password.- Parameters:
userPassword
- the user password.
-
getInstance
Gets this extension's instance. -
getExchangeName
Gets the exchange name.- Returns:
- the exchange name.
-
setExchangeName
Sets the exchange name.- Parameters:
exchangeName
- the exchange name.
-
getVirtualHost
Gets the virtual host name.- Returns:
- the virtual host name.
-
setVirtualHost
Sets the virtual host name.- Parameters:
virtualHost
- the exchange name.
-
getRoutingKey
Gets the routing key.- Returns:
- the routing key.
-
setRoutingKey
Sets the routing key. This method exists for backwards compatibility reasons. Any non-null value will be passed tosetRoutingKeyProvider(RoutingKeyProvider)
and this setter's underlying attribute will be set to null.- Parameters:
routingKey
- the routing key.
-
getRoutingKeyProvider
Returns the currently configuredRoutingKeyProvider
implementation. -
setRoutingKeyProvider
Sets whichRoutingKeyProvider
implementation to use to generate routing keys for the events. -
getPersistentDelivery
public boolean getPersistentDelivery()Returns true if persistentDelivery is to be used.- Returns:
- if persistentDelivery is to be used.
-
setPersistentDelivery
@DataBoundSetter public void setPersistentDelivery(boolean pd) Sets persistent delivery mode.- Parameters:
pd
- if persistentDelivery is to be used.
-
getAppId
Returns application id.- Returns:
- application id.
-
setAppId
Sets application id.- Parameters:
appId
- Application id to use
-
getActivityCategories
Returns the list of categories to attach to the activities, expressed as a multi-line string. -
getActivityCategoriesList
Returns the list of categories to attach to the activities. -
setActivityCategories
Sets the list of categories to attach to the activities. -
getHostnameSource
Returns the hostname source. -
setHostnameSource
Sets the hostname source. -
isSystemSigningEnabled
public boolean isSystemSigningEnabled() -
setSystemSigningEnabled
@DataBoundSetter public void setSystemSigningEnabled(boolean systemSigningEnabled) -
getSystemSigningCredentialsId
-
setSystemSigningCredentialsId
-
getSystemSigningHashAlg
-
setSystemSigningHashAlg
-
getEventValidator
-
getRoutingKeyProviderDescriptors
public ExtensionList<RoutingKeyProvider.RoutingKeyProviderDescriptor> getRoutingKeyProviderDescriptors() -
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
doFillSystemSigningCredentialsIdItems
public ListBoxModel doFillSystemSigningCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId) -
doTestConnection
public FormValidation doTestConnection(@QueryParameter("serverUri") String uri, @QueryParameter("userName") String name, @QueryParameter("userPassword") Secret pw) throws javax.servlet.ServletException Tests connection to the server URI.- Parameters:
uri
- the URI.name
- the user name.pw
- the user password.- Returns:
- FormValidation object that indicates ok or error.
- Throws:
javax.servlet.ServletException
- Exception for servlet.
-
getHelpFile
Returns a custom help file location for fields where the Stapler doesn't locate it automatically.- Overrides:
getHelpFile
in classDescriptor<GlobalConfiguration>
-