public interface PlanValidationService extends PlanValidationServiceXWork1
Modifier and Type | Field and Description |
---|---|
static String |
KEY_REGEXP
Regular expression matching a valid key.
|
Modifier and Type | Method and Description |
---|---|
void |
validateDescription(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String description)
Validate the description field of any object.
|
void |
validateKey(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String errorPrefix,
String key)
Validate any String against Bamboo's generic rules for keys.
|
void |
validateName(com.atlassian.struts.ValidationAware validationAware,
String fieldName,
String errorPrefix,
String name)
Validate any String against Bamboo's generic rules for names.
|
void |
validateNewChainForExistingProject(com.atlassian.struts.ValidationAware validationAware,
String existingProjectKey,
String chainName)
Validate that new chain name (only) is unique within the project
|
void |
validateNewChainForExistingProject(com.atlassian.struts.ValidationAware validationAware,
String existingProjectKey,
String chainKey,
String chainName)
Validate that new chain name and key is unique within the project
|
void |
validateNewJobForExistingChain(com.atlassian.struts.ValidationAware validationAware,
Chain existingChain,
String buildKey,
String buildName) |
void |
validateNewPlanBranchForMaster(com.atlassian.struts.ValidationAware validationAware,
ImmutableChain masterChain,
String branchName)
Validate that new plan branch name (only) is unique within a set of branches with a common master
|
void |
validateNewPlanDetails(com.atlassian.struts.ValidationAware validationAware,
String buildKey,
String buildName)
Ensure that the build key and name are valid
|
void |
validateNewProjectDetails(com.atlassian.struts.ValidationAware validationAware,
String projectName,
String projectKey)
Deprecated.
|
void |
validateNewProjectDetails(com.atlassian.struts.ValidationAware validationAware,
String projectName,
String projectKey,
String projectDescription)
Validate that the new project details are valid
|
void |
validateNewStageForChain(com.atlassian.struts.ValidationAware validationAware,
Chain chain,
String stageName)
Validate the the new stage can be added to the given chain
|
void |
validatePlanToCloneExists(com.atlassian.struts.ValidationAware validationAware,
String buildKeyToClone)
Validate that the plan t clone exists
|
void |
validateStageExistsForChain(com.atlassian.struts.ValidationAware validationAware,
Chain chain,
String stageName)
Ensures that the stage currently exists for a chain
|
validateDescription, validateKey, validateName, validateNewChainForExistingProject, validateNewChainForExistingProject, validateNewJobForExistingChain, validateNewPlanBranchForMaster, validateNewPlanDetails, validateNewProjectDetails, validateNewStageForChain, validatePlanToCloneExists, validateStageExistsForChain
static final String KEY_REGEXP
void validateKey(@NotNull com.atlassian.struts.ValidationAware validationAware, String fieldName, String errorPrefix, String key)
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 validatevoid validateName(@NotNull com.atlassian.struts.ValidationAware validationAware, String fieldName, String errorPrefix, String name)
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 validatevoid validateDescription(@NotNull com.atlassian.struts.ValidationAware validationAware, String fieldName, String description)
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 validatevoid validatePlanToCloneExists(@NotNull com.atlassian.struts.ValidationAware validationAware, @Nullable String buildKeyToClone)
validationAware
- - object to add errors to if any are foundbuildKeyToClone
- - the key of the plan to clonevoid validateNewPlanDetails(@NotNull com.atlassian.struts.ValidationAware validationAware, @Nullable String buildKey, @Nullable String buildName)
validationAware
- - object to add errors to if any are foundbuildKey
- - the key for the planbuildName
- - the name for the planvoid validateNewJobForExistingChain(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull Chain existingChain, @NotNull String buildKey, @Nullable String buildName)
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.void validateNewChainForExistingProject(@NotNull com.atlassian.struts.ValidationAware validationAware, String existingProjectKey, String chainKey, String chainName)
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 chainvoid validateNewChainForExistingProject(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull String existingProjectKey, @NotNull String chainName)
validationAware
- - object to add errors to if any are foundexistingProjectKey
- - the key of an existing projectchainName
- - the name of the new chainvoid validateNewPlanBranchForMaster(@NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull ImmutableChain masterChain, @NotNull String branchName)
validationAware
- object to add errors to if any are foundmasterChain
- the master chainbranchName
- the name of the new chain@Deprecated void validateNewProjectDetails(@NotNull com.atlassian.struts.ValidationAware validationAware, @Nullable String projectName, @Nullable String projectKey)
validateNewProjectDetails(ValidationAware, String, String, String)
validationAware
- object to add errors to if any are foundprojectName
- name of the project to validateprojectKey
- key of the project to validatevoid validateNewProjectDetails(@NotNull com.atlassian.struts.ValidationAware validationAware, @Nullable String projectName, @Nullable String projectKey, @Nullable String projectDescription)
validationAware
- object to add errors to if any are foundprojectName
- name of the project to validateprojectKey
- key of the project to validateprojectDescription
- description of the project to validatevoid validateNewStageForChain(com.atlassian.struts.ValidationAware validationAware, Chain chain, String stageName)
validationAware
- - to add any errors tochain
- - the chain the stage will be added tostageName
- - the stage to be addedvoid validateStageExistsForChain(com.atlassian.struts.ValidationAware validationAware, Chain chain, String stageName)
validationAware
- - to add the errors tochain
- - the chain the stage should exist instageName
- - the stage to check forCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.