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.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(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 XmlFileFor backwards-compatibility with the previousPlugin-derived version.booleanGets 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 EiffelBroadcasterConfigGets this extension's instance.booleanReturns true if persistentDelivery is to be used.Gets the routing key.Returns the currently configuredRoutingKeyProviderimplementation.Gets URI for MQ server.Gets user name.Gets user password.Gets the virtual host name.booleanprotected ObjectMigrates legacy model fields to the current model.voidsetActivityCategories(String activityCategories) Sets the list of categories to attach to the activities.voidSets application id.voidsetEnableBroadcaster(boolean enableBroadcaster) Sets flag whether this plugin is enabled or not.voidsetExchangeName(String exchangeName) Sets the exchange name.voidsetHostnameSource(HostnameSource hostnameSource) Sets the hostname source.voidsetPersistentDelivery(boolean pd) Sets persistent delivery mode.voidsetRoutingKey(String routingKey) Sets the routing key.voidsetRoutingKeyProvider(RoutingKeyProvider routingKeyProvider) Sets whichRoutingKeyProviderimplementation to use to generate routing keys for the events.voidsetServerUri(String serverUri) Sets URI for MQ server.voidsetSystemSigningCredentialsId(String systemSigningCredentialsId) voidsetSystemSigningEnabled(boolean systemSigningEnabled) voidsetSystemSigningHashAlg(HashAlgorithm systemSigningHashAlg) voidsetUserName(String userName) Sets user name.voidsetUserPassword(Secret userPassword) Sets user password.voidsetVirtualHost(String virtualHost) Sets the virtual host name.Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPageMethods 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:
configurein 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:
getConfigFilein 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 configuredRoutingKeyProviderimplementation. -
setRoutingKeyProvider
Sets whichRoutingKeyProviderimplementation 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:
getDisplayNamein 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:
getHelpFilein classDescriptor<GlobalConfiguration>
-