|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.variable.VariableValidationServiceImpl
public class VariableValidationServiceImpl
Constructor Summary | |
---|---|
VariableValidationServiceImpl(com.opensymphony.xwork2.TextProvider textProvider,
VariableDefinitionManager variableDefinitionManager)
|
Method Summary | |
---|---|
void |
validateIdForDeploymentEnvironmentVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId,
long environmentId)
Validate if id identifies an existing variable associated with Deployment Environment * |
void |
validateIdForDeploymentEnvironmentVariable(com.opensymphony.xwork.ValidationAware validationAware,
long variableId,
long environmentId)
|
void |
validateIdForGlobalVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId)
Validate if id identifies global variable |
void |
validateIdForGlobalVariable(com.opensymphony.xwork.ValidationAware validationAware,
long variableId)
|
void |
validateIdForPlanVariable(com.atlassian.struts.ValidationAware validationAware,
long variableId,
ImmutablePlan expectedPlan)
Validate if id identifies plan variable of a given plan |
void |
validateIdForPlanVariable(com.opensymphony.xwork.ValidationAware validationAware,
long variableId,
ImmutablePlan expectedPlan)
|
void |
validateKey(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String variableKey)
Validate String against Bamboo general rules for variable keys |
void |
validateKey(com.opensymphony.xwork.ValidationAware validationAware,
String fieldName,
String variableKey)
|
void |
validateValueForVariable(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String variableValue)
Validate String against Bamboo general rules for variable value |
void |
validateValueForVariable(com.opensymphony.xwork.ValidationAware validationAware,
String fieldName,
String variableValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableValidationServiceImpl(com.opensymphony.xwork2.TextProvider textProvider, VariableDefinitionManager variableDefinitionManager)
Method Detail |
---|
public void validateIdForGlobalVariable(@NotNull com.atlassian.struts.ValidationAware validationAware, long variableId)
VariableValidationService
validateIdForGlobalVariable
in interface VariableValidationService
validationAware
- the object to add errors to if any are foundvariableId
- the actual id to validatepublic void validateIdForPlanVariable(@NotNull com.atlassian.struts.ValidationAware validationAware, long variableId, @NotNull ImmutablePlan expectedPlan)
VariableValidationService
validateIdForPlanVariable
in interface VariableValidationService
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 topublic void validateIdForDeploymentEnvironmentVariable(@NotNull com.atlassian.struts.ValidationAware validationAware, long variableId, long environmentId)
VariableValidationService
validateIdForDeploymentEnvironmentVariable
in interface VariableValidationService
validationAware
- the object to add errors to if any are foundvariableId
- the actual id to validateenvironmentId
- the id of an Environment
we expect this variable to be associated topublic void validateKey(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull String fieldName, @Nullable String variableKey)
VariableValidationService
validateKey
in interface VariableValidationService
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 validatepublic void validateValueForVariable(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull String fieldName, @Nullable String variableValue)
VariableValidationService
validateValueForVariable
in interface VariableValidationService
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 validatepublic void validateIdForGlobalVariable(@NotNull com.opensymphony.xwork.ValidationAware validationAware, long variableId)
validateIdForGlobalVariable
in interface VariableValidationService
public void validateIdForPlanVariable(@NotNull com.opensymphony.xwork.ValidationAware validationAware, long variableId, @NotNull ImmutablePlan expectedPlan)
validateIdForPlanVariable
in interface VariableValidationService
public void validateIdForDeploymentEnvironmentVariable(@NotNull com.opensymphony.xwork.ValidationAware validationAware, long variableId, long environmentId)
validateIdForDeploymentEnvironmentVariable
in interface VariableValidationService
public void validateKey(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull String fieldName, @Nullable String variableKey)
validateKey
in interface VariableValidationService
public void validateValueForVariable(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull String fieldName, @Nullable String variableValue)
validateValueForVariable
in interface VariableValidationService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |