public interface VariableValidationService
| Modifier and Type | Method and Description |
|---|---|
void |
validateIdForDeploymentEnvironmentVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId,
long environmentId)
Validate if id identifies an existing variable associated with Deployment Environment *
|
void |
validateIdForGlobalVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId)
Validate if id identifies global variable
|
void |
validateIdForPlanVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId,
ImmutablePlan expectedPlan)
Validate if id identifies plan variable of a given plan
|
void |
validateIdForProjectVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId,
long projectId)
Validate if id identifies project variable of a given project
|
void |
validateKey(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String variableKey)
Validate String against Bamboo general rules for variable keys
|
void |
validateValueForEncryptedVariable(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String variableValue)
Validate value of password variable
|
void |
validateValueForVariable(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String variableValue)
Validate String against Bamboo general rules for variable value
|
void validateIdForGlobalVariable(@NotNull
com.atlassian.struts.ValidationAware validationAware,
long variableId)
validationAware - the object to add errors to if any are foundvariableId - the actual id to validatevoid validateIdForPlanVariable(@NotNull
com.atlassian.struts.ValidationAware validationAware,
long variableId,
@NotNull
ImmutablePlan expectedPlan)
validationAware - the object to add errors to if any are foundvariableId - the actual id to validateexpectedPlan - the Plan we expect this variable to be associated tovoid validateIdForDeploymentEnvironmentVariable(@NotNull
com.atlassian.struts.ValidationAware validationAware,
long variableId,
long environmentId)
validationAware - the object to add errors to if any are foundvariableId - the actual id to validateenvironmentId - the id of an com.atlassian.bamboo.deployments.environments.Environment we expect this variable to be associated tovoid validateKey(@NotNull
com.atlassian.struts.ValidationAware validationAware,
@NotNull
String fieldName,
@Nullable
String variableKey)
validationAware - the object to add errors to if any are foundfieldName - the name of the field to add the errors tovariableKey - the actual key to validatevoid validateValueForVariable(@NotNull
com.atlassian.struts.ValidationAware validationAware,
@NotNull
String fieldName,
@Nullable
String variableValue)
validationAware - the object to add errors to if any are foundfieldName - the name of the field to add the errors tovariableValue - the actual value to validatevoid validateValueForEncryptedVariable(@NotNull
com.atlassian.struts.ValidationAware validationAware,
@NotNull
String fieldName,
@Nullable
String variableValue)
validationAware - the object to add errors to if any are foundfieldName - the name of the field to add the errors tovariableValue - the actual value to validatevoid validateIdForProjectVariable(@NotNull
com.atlassian.struts.ValidationAware validationAware,
long variableId,
long projectId)
validationAware - the object to add errors to if any are foundvariableId - the actual id to validateprojectId - the if of a Project we expect this variable to be associated toCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.