Class VariableValidationServiceImpl

java.lang.Object
com.atlassian.bamboo.variable.VariableValidationServiceImpl
All Implemented Interfaces:
VariableValidationService

public class VariableValidationServiceImpl extends Object implements VariableValidationService
  • Constructor Details

  • Method Details

    • validateIdForGlobalVariable

      public void validateIdForGlobalVariable(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, long variableId)
      Description copied from interface: VariableValidationService
      Validate if id identifies global variable
      Specified by:
      validateIdForGlobalVariable in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      variableId - the actual id to validate
    • validateIdForPlanVariable

      public void validateIdForPlanVariable(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, long variableId, @NotNull @NotNull ImmutablePlan expectedPlan)
      Description copied from interface: VariableValidationService
      Validate if id identifies plan variable of a given plan
      Specified by:
      validateIdForPlanVariable in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      variableId - the actual id to validate
      expectedPlan - the Plan we expect this variable to be associated to
    • validateIdForDeploymentEnvironmentVariable

      public void validateIdForDeploymentEnvironmentVariable(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, long variableId, long environmentId)
      Description copied from interface: VariableValidationService
      Validate if id identifies an existing variable associated with Deployment Environment *
      Specified by:
      validateIdForDeploymentEnvironmentVariable in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      variableId - the actual id to validate
      environmentId - the id of an com.atlassian.bamboo.deployments.environments.Environment we expect this variable to be associated to
    • validateIdForProjectVariable

      public void validateIdForProjectVariable(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, long variableId, long projectId)
      Description copied from interface: VariableValidationService
      Validate if id identifies project variable of a given project
      Specified by:
      validateIdForProjectVariable in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      variableId - the actual id to validate
      projectId - the if of a Project we expect this variable to be associated to
    • validateKey

      public void validateKey(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull @NotNull String fieldName, @Nullable @Nullable String variableKey)
      Description copied from interface: VariableValidationService
      Validate String against Bamboo general rules for variable keys
      Specified by:
      validateKey in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      fieldName - the name of the field to add the errors to
      variableKey - the actual key to validate
    • validateValueForVariable

      public void validateValueForVariable(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull @NotNull String fieldName, @Nullable @Nullable String variableValue)
      Description copied from interface: VariableValidationService
      Validate String against Bamboo general rules for variable value
      Specified by:
      validateValueForVariable in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      fieldName - the name of the field to add the errors to
      variableValue - the actual value to validate
    • validateValueForEncryptedVariable

      public void validateValueForEncryptedVariable(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull @NotNull String fieldName, @Nullable @Nullable String variableValue)
      Description copied from interface: VariableValidationService
      Validate value of password variable
      Specified by:
      validateValueForEncryptedVariable in interface VariableValidationService
      Parameters:
      validationAware - the object to add errors to if any are found
      fieldName - the name of the field to add the errors to
      variableValue - the actual value to validate