Interface PlanValidationServiceXWork1
-
- All Known Subinterfaces:
PlanValidationService
- All Known Implementing Classes:
PlanValidationServiceImpl
@Deprecated public interface PlanValidationServiceXWork1
Deprecated.since 5.1This interface groups methods using old XWork1 interface. You can avoid using them by explicitely casting to ValidationAware from xwork2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
validateDescription(@NotNull com.opensymphony.xwork.ValidationAware validationAware, String fieldName, String description)
Deprecated.since 5.1void
validateKey(@NotNull com.opensymphony.xwork.ValidationAware validationAware, String fieldName, String errorPrefix, String key)
Deprecated.since 5.1void
validateName(@NotNull com.opensymphony.xwork.ValidationAware validationAware, String fieldName, String errorPrefix, String name)
Deprecated.since 5.1void
validateNewChainForExistingProject(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull String existingProjectKey, @NotNull String chainName)
Deprecated.since 5.1void
validateNewChainForExistingProject(@NotNull com.opensymphony.xwork.ValidationAware validationAware, String existingProjectKey, String chainKey, String chainName)
Deprecated.since 5.1void
validateNewJobForExistingChain(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull Chain existingChain, @NotNull String buildKey, @Nullable String buildName)
Deprecated.since 5.1void
validateNewPlanBranchForMaster(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull ImmutableChain masterChain, @NotNull String branchName)
Deprecated.since 5.1void
validateNewPlanDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable String buildKey, @Nullable String buildName)
Deprecated.since 5.1void
validateNewProjectDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable String projectName, @Nullable String projectKey)
Deprecated.since 5.1void
validateNewStageForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, String stageName)
Deprecated.since 5.1void
validatePlanToCloneExists(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable String buildKeyToClone)
Deprecated.since 5.1void
validateStageExistsForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, String stageName)
Deprecated.since 5.1
-
-
-
Method Detail
-
validateKey
@Deprecated void validateKey(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, String fieldName, String errorPrefix, String key)
Deprecated.since 5.1Validate any String against Bamboo's generic rules for keys.- Parameters:
validationAware
- - the object to add errors to if any are foundfieldName
- - the name of the field to add the errors toerrorPrefix
- - the prefix to put in front of the standardised error keys. (e.g. "plan", "chain")key
- - the actual string to validate
-
validateName
@Deprecated void validateName(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, String fieldName, String errorPrefix, String name)
Deprecated.since 5.1Validate any String against Bamboo's generic rules for names.- Parameters:
validationAware
- - the object to add errors to if any are foundfieldName
- - the name of the field to add the errors toerrorPrefix
- - the prefix to put in front of the standardised error keys. (e.g. "plan", "chain")name
- - the actual string to validate
-
validateDescription
@Deprecated void validateDescription(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, String fieldName, String description)
Deprecated.since 5.1Validate the description field of any object. All it really does is check length- Parameters:
validationAware
- - the object to add errors to if any are foundfieldName
- - the name of the field to add the errors todescription
- - the actual text to validate
-
validatePlanToCloneExists
@Deprecated void validatePlanToCloneExists(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable @Nullable String buildKeyToClone)
Deprecated.since 5.1Validate that the plan t clone exists- Parameters:
validationAware
- - object to add errors to if any are foundbuildKeyToClone
- - the key of the plan to clone
-
validateNewPlanDetails
@Deprecated void validateNewPlanDetails(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable @Nullable String buildKey, @Nullable @Nullable String buildName)
Deprecated.since 5.1Ensure that the build key and name are valid- Parameters:
validationAware
- - object to add errors to if any are foundbuildKey
- - the key for the planbuildName
- - the name for the plan
-
validateNewJobForExistingChain
@Deprecated void validateNewJobForExistingChain(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull @NotNull Chain existingChain, @NotNull @NotNull String buildKey, @Nullable @Nullable String buildName)
Deprecated.since 5.1- Parameters:
validationAware
- - object to add errors to if any are foundexistingChain
- - the chain the new job will be added tobuildKey
- - the key for the jobbuildName
- - the name for the job.
-
validateNewChainForExistingProject
@Deprecated void validateNewChainForExistingProject(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, String existingProjectKey, String chainKey, String chainName)
Deprecated.since 5.1Validate that new chain name and key is unique within the project- Parameters:
validationAware
- - object to add errors to if any are foundexistingProjectKey
- - the key of an existing projectchainKey
- - the key for the new chainchainName
- - the name of the new chain
-
validateNewChainForExistingProject
@Deprecated void validateNewChainForExistingProject(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull @NotNull String existingProjectKey, @NotNull @NotNull String chainName)
Deprecated.since 5.1Validate that new chain name (only) is unique within the project- Parameters:
validationAware
- - object to add errors to if any are foundexistingProjectKey
- - the key of an existing projectchainName
- - the name of the new chain
-
validateNewPlanBranchForMaster
@Deprecated void validateNewPlanBranchForMaster(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull @NotNull ImmutableChain masterChain, @NotNull @NotNull String branchName)
Deprecated.since 5.1Validate that new plan branch name (only) is unique within a set of branches with a common master- Parameters:
validationAware
- object to add errors to if any are foundmasterChain
- the master chainbranchName
- the name of the new chain
-
validateNewProjectDetails
@Deprecated void validateNewProjectDetails(@NotNull @NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable @Nullable String projectName, @Nullable @Nullable String projectKey)
Deprecated.since 5.1Validate that the new project details are valid- Parameters:
validationAware
- - object to add errors to if any are foundprojectName
- - name of the project to validateprojectKey
- - key of the project to validate
-
validateNewStageForChain
@Deprecated void validateNewStageForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, String stageName)
Deprecated.since 5.1Validate the the new stage can be added to the given chain- Parameters:
validationAware
- - to add any errors tochain
- - the chain the stage will be added tostageName
- - the stage to be added
-
validateStageExistsForChain
@Deprecated void validateStageExistsForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, String stageName)
Deprecated.since 5.1Ensures that the stage currently exists for a chain- Parameters:
validationAware
- - to add the errors tochain
- - the chain the stage should exist instageName
- - the stage to check for
-
-