Package flexagon.fd.core.plugin
Class BasePluginExecutionContext
java.lang.Object
flexagon.fd.core.plugin.BasePluginExecutionContext
-
Constructor Summary
ConstructorsConstructorDescriptionBasePluginExecutionContext(WorkflowExecutionContext pWorkFlowExecutionContext) -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanCurrentInstancePropertyValueOrDefault(String pKey, Boolean pDefault) booleangetBooleanInput(String pInputName) inputs are always expected to be filled in, so default anyway here.booleangetBooleanInputOrDefault(String pInputName, Boolean pDefault) if input not provided, which most likely won't happen then use default.getBooleanInstancePropertyValue(String pInstanceCode, String pKey) getBooleanInstancePropertyValueOrDefault(String pInstanceCode, String pKey, Boolean pDefault) getBooleanProjectPropertyValueOrDefault(String pKey, Boolean pDefault) current target property valuegetCurrentInstancePropertyValueOrDefault(String pKey, Object pDefault) current target property value or default if nullgetDoubleCurrentInstancePropertyValueOrDefault(String pKey, Double pDefault) getDoubleInput(String pInputName) getDoubleInputOrDefault(String pInputName, Double pDefault) getDoubleInstancePropertyValue(String pInstanceCode, String pKey) getDoubleInstancePropertyValueOrDefault(String pInstanceCode, String pKey, Double pDefault) getDoubleProjectPropertyValueOrDefault(String pKey, Double pDefault) getInstancePropertyValue(String pInstanceCode, String pKey) instance property valuegetInstancePropertyValueOrDefault(String pInstanceCode, String pKey, Object pDefault) instance property value or default if nullgetIntegerCurrentInstancePropertyValueOrDefault(String pKey, Integer pDefault) getIntegerInput(String pInputName) getIntegerInputOrDefault(String pInputName, Integer pDefault) getIntegerInstancePropertyValue(String pInstanceCode, String pKey) getIntegerInstancePropertyValueOrDefault(String pInstanceCode, String pKey, Integer pDefault) getIntegerProjectPropertyValueOrDefault(String pKey, Integer pDefault) getLongCurrentInstancePropertyValueOrDefault(String pKey, Long pDefault) getLongInput(String pInputName) getLongInputOrDefault(String pInputName, Long pDefault) getLongInstancePropertyValue(String pInstanceCode, String pKey) getLongInstancePropertyValueOrDefault(String pInstanceCode, String pKey, Long pDefault) getLongProjectPropertyValueOrDefault(String pKey, Long pDefault) project or project version property value.getProjectPropertyValueOrDefault(String pKey, Object pDefault) project or project version property value or default if nullgetStringCurrentInstancePropertyValueOrDefault(String pKey, String pDefault) getStringInput(String pInputName) getStringInputOrDefault(String pInputName, String pDefault) getStringInstancePropertyValue(String pInstanceCode, String pKey) getStringInstancePropertyValueOrDefault(String pInstanceCode, String pKey, String pDefault) getStringProjectPropertyValueOrDefault(String pKey, String pDefault) longbooleanvoidsetOutputs(String pName, Object pValue, DataTypeEnum pDataType) voidvalidateContext(List<String> pRequiredProperties, List<String> pRequiredInputs) voidvalidateContext(List<String> pRequiredProperties, List<String> pRequiredInputs, String pValidateInstance) voidvalidateRequiredInputs(List<String> pRequiredInputs) voidvalidateRequiredPropertiesForCurrentInstance(List<String> pRequiredProperties) voidvalidateRequiredPropertiesForInstance(List<String> pRequiredProperties, String pValidateInstance)
-
Constructor Details
-
BasePluginExecutionContext
public BasePluginExecutionContext() -
BasePluginExecutionContext
-
-
Method Details
-
validateContext
public void validateContext(List<String> pRequiredProperties, List<String> pRequiredInputs) throws FlexCheckedException - Throws:
FlexCheckedException
-
validateContext
public void validateContext(List<String> pRequiredProperties, List<String> pRequiredInputs, String pValidateInstance) throws FlexCheckedException - Throws:
FlexCheckedException
-
validateRequiredInputs
- Throws:
FlexCheckedException
-
validateRequiredPropertiesForInstance
public void validateRequiredPropertiesForInstance(List<String> pRequiredProperties, String pValidateInstance) throws FlexCheckedException - Throws:
FlexCheckedException
-
validateRequiredPropertiesForCurrentInstance
public void validateRequiredPropertiesForCurrentInstance(List<String> pRequiredProperties) throws FlexCheckedException - Throws:
FlexCheckedException
-
getCurrentInstance
-
getWorkflowExecutionContext
-
getWorkingDirectory
-
getArtifactsDirectory
-
getTempDirectory
-
getTestResultsDirectory
-
getScanResultsDirectory
-
getInternalDirectory
-
getReportsDirectory
-
getTransferDirectory
-
getWorkflowExecutionId
public long getWorkflowExecutionId() -
isForceDeploy
public boolean isForceDeploy() -
setOutputs
-
getBooleanInput
inputs are always expected to be filled in, so default anyway here.- Parameters:
pInputName- to get a boolean value from- Returns:
- Boolean value of the input, which can't be null.
-
getBooleanInputOrDefault
if input not provided, which most likely won't happen then use default. This is possible if an input was added and workflow was not updated.- Parameters:
pInputName- the name of the input to checkpDefault- the default to use if the input isn't set- Returns:
- boolean which may be defaulted to pDefault
-
getDoubleInput
-
getDoubleInputOrDefault
-
getStringInput
-
getStringInputOrDefault
-
getIntegerInput
-
getIntegerInputOrDefault
-
getProjectPropertyValue
project or project version property value. -
getProjectPropertyValueOrDefault
project or project version property value or default if null -
getInstancePropertyValue
instance property value- Returns:
- object the value of the instance property
-
getInstancePropertyValueOrDefault
instance property value or default if null- Returns:
- object the value of the instance property, or the default
-
getCurrentInstancePropertyValue
current target property value- Returns:
- object the value of the property on the current target
-
getCurrentInstancePropertyValueOrDefault
current target property value or default if null -
getStringProjectPropertyValue
-
getStringProjectPropertyValueOrDefault
-
getStringInstancePropertyValue
-
getStringInstancePropertyValueOrDefault
-
getStringCurrentInstancePropertyValue
-
getStringCurrentInstancePropertyValueOrDefault
-
getDoubleProjectPropertyValue
-
getDoubleProjectPropertyValueOrDefault
-
getDoubleInstancePropertyValue
-
getDoubleInstancePropertyValueOrDefault
-
getDoubleCurrentInstancePropertyValue
-
getDoubleCurrentInstancePropertyValueOrDefault
-
getIntegerProjectPropertyValue
-
getIntegerProjectPropertyValueOrDefault
-
getIntegerInstancePropertyValue
-
getIntegerInstancePropertyValueOrDefault
-
getIntegerCurrentInstancePropertyValue
-
getIntegerCurrentInstancePropertyValueOrDefault
-
getBooleanProjectPropertyValue
-
getBooleanProjectPropertyValueOrDefault
-
getBooleanInstancePropertyValue
-
getBooleanInstancePropertyValueOrDefault
-
getBooleanCurrentInstancePropertyValue
-
getBooleanCurrentInstancePropertyValueOrDefault
-
getLongInput
-
getLongInputOrDefault
-
getLongProjectPropertyValue
-
getLongProjectPropertyValueOrDefault
-
getLongInstancePropertyValue
-
getLongInstancePropertyValueOrDefault
-
getLongCurrentInstancePropertyValue
-
getLongCurrentInstancePropertyValueOrDefault
-