Package io.jenkins.plugins.cloudevents
Class CloudEventsGlobalConfig
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- io.jenkins.plugins.cloudevents.CloudEventsGlobalConfig
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class CloudEventsGlobalConfig extends GlobalConfiguration
Jenkins global configuration.
-
-
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 Modifier and Type Field Description static String
PROTOCOL_ERROR_MESSAGE
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description CloudEventsGlobalConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckSinkURL(String sinkURL)
static CloudEventsGlobalConfig
get()
List<String>
getEvents()
String
getSinkType()
String
getSinkURL()
boolean
isCompleted()
boolean
isCreated()
boolean
isEnteredWaiting()
boolean
isFailed()
boolean
isFinalized()
boolean
isLeft()
boolean
isOffline()
boolean
isOnline()
boolean
isStarted()
boolean
isUpdated()
void
setCompleted(boolean completed)
void
setCreated(boolean created)
void
setEnteredWaiting(boolean enteredWaiting)
void
setFailed(boolean failed)
void
setFinalized(boolean finalized)
void
setLeft(boolean left)
void
setOffline(boolean offline)
void
setOnline(boolean online)
void
setSinkType(String sinkType)
void
setSinkURL(String sinkURL)
void
setStarted(boolean started)
void
setUpdated(boolean updated)
boolean
validateProtocolUsed(String sinkURL)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, 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
-
-
-
-
Field Detail
-
PROTOCOL_ERROR_MESSAGE
public static final String PROTOCOL_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static CloudEventsGlobalConfig get()
- Returns:
- the singleton instance
-
getSinkURL
public String getSinkURL()
-
setSinkURL
@DataBoundSetter public void setSinkURL(String sinkURL)
-
getSinkType
public String getSinkType()
-
setSinkType
@DataBoundSetter public void setSinkType(String sinkType)
-
isCreated
public boolean isCreated()
-
setCreated
@DataBoundSetter public void setCreated(boolean created)
-
isUpdated
public boolean isUpdated()
-
setUpdated
@DataBoundSetter public void setUpdated(boolean updated)
-
isEnteredWaiting
public boolean isEnteredWaiting()
-
setEnteredWaiting
@DataBoundSetter public void setEnteredWaiting(boolean enteredWaiting)
-
isLeft
public boolean isLeft()
-
setLeft
@DataBoundSetter public void setLeft(boolean left)
-
isStarted
public boolean isStarted()
-
setStarted
@DataBoundSetter public void setStarted(boolean started)
-
isCompleted
public boolean isCompleted()
-
setCompleted
@DataBoundSetter public void setCompleted(boolean completed)
-
isFinalized
public boolean isFinalized()
-
setFinalized
@DataBoundSetter public void setFinalized(boolean finalized)
-
isFailed
public boolean isFailed()
-
setFailed
@DataBoundSetter public void setFailed(boolean failed)
-
isOnline
public boolean isOnline()
-
setOnline
@DataBoundSetter public void setOnline(boolean online)
-
isOffline
public boolean isOffline()
-
setOffline
@DataBoundSetter public void setOffline(boolean offline)
-
doCheckSinkURL
public FormValidation doCheckSinkURL(@QueryParameter("sinkURL") String sinkURL)
-
validateProtocolUsed
public boolean validateProtocolUsed(String sinkURL)
-
-