Class BuildTriggerDescriptorImpl
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.BuildTriggerDescriptorImpl
-
- All Implemented Interfaces:
BuildTriggerDescriptor,ParametersDescriptor
public class BuildTriggerDescriptorImpl extends Object implements BuildTriggerDescriptor
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUILD_PARAMETERS_PARAM_NAME
-
Constructor Summary
Constructors Constructor Description BuildTriggerDescriptorImpl(String id, BuildTriggerServicesFinder triggerServicesFinder, String triggerName, Map<String,String> parameters)BuildTriggerDescriptorImpl(String id, BuildTriggerServicesFinder triggerServicesFinder, String triggerName, Map<String,String> parameters, BuildCustomizationSettings buildCustomizationSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)BuildCustomizationSettingsgetBuildCustomizationSettings()Returns build customizations that should be applied to the builds triggered by this trigger.BuildTriggerServicegetBuildTriggerService()StringgetId()Returns unique id of this descriptorMap<String,String>getParameters()Returns parameters map.Map<String,String>getProperties()Returns trigger properties mapStringgetSignature()Returns signature of the trigger settings.StringgetTriggerName()Return name of the trigger to which these settings correspondStringgetType()Returns type of the parametersinthashCode()StringtoString()
-
-
-
Field Detail
-
BUILD_PARAMETERS_PARAM_NAME
public static final String BUILD_PARAMETERS_PARAM_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildTriggerDescriptorImpl
public BuildTriggerDescriptorImpl(@NotNull String id, @NotNull BuildTriggerServicesFinder triggerServicesFinder, @NotNull String triggerName, @NotNull Map<String,String> parameters)
-
BuildTriggerDescriptorImpl
public BuildTriggerDescriptorImpl(@NotNull String id, @NotNull BuildTriggerServicesFinder triggerServicesFinder, @NotNull String triggerName, @NotNull Map<String,String> parameters, @NotNull BuildCustomizationSettings buildCustomizationSettings)
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from interface:ParametersDescriptorReturns unique id of this descriptor- Specified by:
getIdin interfaceParametersDescriptor- Returns:
- unique id of this descriptor
-
getTriggerName
@NotNull public String getTriggerName()
Description copied from interface:BuildTriggerDescriptorReturn name of the trigger to which these settings correspond- Specified by:
getTriggerNamein interfaceBuildTriggerDescriptor- Returns:
- name of the trigger (same as
ParametersDescriptor.getType())
-
getProperties
@NotNull public Map<String,String> getProperties()
Description copied from interface:BuildTriggerDescriptorReturns trigger properties map- Specified by:
getPropertiesin interfaceBuildTriggerDescriptor- Returns:
- trigger properties map (same as
ParametersDescriptor.getParameters())
-
getSignature
@NotNull public String getSignature()
Description copied from interface:BuildTriggerDescriptorReturns signature of the trigger settings. Triggers are considered equal if their signatures are equal.- Specified by:
getSignaturein interfaceBuildTriggerDescriptor- Returns:
- see above
-
getBuildTriggerService
@NotNull public BuildTriggerService getBuildTriggerService() throws IllegalStateException
- Specified by:
getBuildTriggerServicein interfaceBuildTriggerDescriptor- Returns:
- build trigger service corresponding to this trigger descriptor
- Throws:
IllegalStateException
-
getBuildCustomizationSettings
@NotNull public BuildCustomizationSettings getBuildCustomizationSettings()
Description copied from interface:BuildTriggerDescriptorReturns build customizations that should be applied to the builds triggered by this trigger.- Specified by:
getBuildCustomizationSettingsin interfaceBuildTriggerDescriptor
-
getType
@NotNull public String getType()
Description copied from interface:ParametersDescriptorReturns type of the parameters- Specified by:
getTypein interfaceParametersDescriptor- Returns:
- parameters type
-
getParameters
@NotNull public Map<String,String> getParameters()
Description copied from interface:ParametersDescriptorReturns parameters map.- Specified by:
getParametersin interfaceParametersDescriptor- Returns:
- parameters map
-
-