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 String
BUILD_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 boolean
equals(Object o)
BuildCustomizationSettings
getBuildCustomizationSettings()
Returns build customizations that should be applied to the builds triggered by this trigger.BuildTriggerService
getBuildTriggerService()
String
getId()
Returns unique id of this descriptorMap<String,String>
getParameters()
Returns parameters map.Map<String,String>
getProperties()
Returns trigger properties mapString
getSignature()
Returns signature of the trigger settings.String
getTriggerName()
Return name of the trigger to which these settings correspondString
getType()
Returns type of the parametersint
hashCode()
String
toString()
-
-
-
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:ParametersDescriptor
Returns unique id of this descriptor- Specified by:
getId
in interfaceParametersDescriptor
- Returns:
- unique id of this descriptor
-
getTriggerName
@NotNull public String getTriggerName()
Description copied from interface:BuildTriggerDescriptor
Return name of the trigger to which these settings correspond- Specified by:
getTriggerName
in interfaceBuildTriggerDescriptor
- Returns:
- name of the trigger (same as
ParametersDescriptor.getType()
)
-
getProperties
@NotNull public Map<String,String> getProperties()
Description copied from interface:BuildTriggerDescriptor
Returns trigger properties map- Specified by:
getProperties
in interfaceBuildTriggerDescriptor
- Returns:
- trigger properties map (same as
ParametersDescriptor.getParameters()
)
-
getSignature
@NotNull public String getSignature()
Description copied from interface:BuildTriggerDescriptor
Returns signature of the trigger settings. Triggers are considered equal if their signatures are equal.- Specified by:
getSignature
in interfaceBuildTriggerDescriptor
- Returns:
- see above
-
getBuildTriggerService
@NotNull public BuildTriggerService getBuildTriggerService() throws IllegalStateException
- Specified by:
getBuildTriggerService
in interfaceBuildTriggerDescriptor
- Returns:
- build trigger service corresponding to this trigger descriptor
- Throws:
IllegalStateException
-
getBuildCustomizationSettings
@NotNull public BuildCustomizationSettings getBuildCustomizationSettings()
Description copied from interface:BuildTriggerDescriptor
Returns build customizations that should be applied to the builds triggered by this trigger.- Specified by:
getBuildCustomizationSettings
in interfaceBuildTriggerDescriptor
-
getType
@NotNull public String getType()
Description copied from interface:ParametersDescriptor
Returns type of the parameters- Specified by:
getType
in interfaceParametersDescriptor
- Returns:
- parameters type
-
getParameters
@NotNull public Map<String,String> getParameters()
Description copied from interface:ParametersDescriptor
Returns parameters map.- Specified by:
getParameters
in interfaceParametersDescriptor
- Returns:
- parameters map
-
-