|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlanValidationService
A stateless, non-transactional service that provides common services for plan validation
Field Summary | |
---|---|
static java.lang.String |
KEY_REGEXP
Regular expression matching a valid key. |
Method Summary | |
---|---|
PlanConfigHelper |
getBuilderConfigHelper()
|
PlanConfigHelper |
getBuildStrategyConfigHelper()
|
PlanConfigHelper |
getRepositoryConfigHelper()
|
PlanConfigHelper |
getWebRepositoryConfigHelper()
|
void |
validateDescription(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String fieldName,
java.lang.String description)
Validate the description field of any object. |
void |
validateKey(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String fieldName,
java.lang.String errorPrefix,
java.lang.String key)
Validate any String against Bamboo's generic rules for keys. |
void |
validateName(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String fieldName,
java.lang.String errorPrefix,
java.lang.String name)
Validate any String against Bamboo's generic rules for names. |
void |
validateNewBuildForExistingProject(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String existingProjectKey,
java.lang.String buildKey,
java.lang.String buildName)
Validate that name new plan is unique within the project |
void |
validateNewChainForExistingProject(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String existingProjectKey,
java.lang.String chainKey,
java.lang.String chainName)
Validate that name new chain is unique within the project |
void |
validateNewJobForExistingChain(com.opensymphony.xwork.ValidationAware validationAware,
Chain existingChain,
java.lang.String buildKey,
java.lang.String buildName)
|
void |
validateNewPlanDetails(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String buildKey,
java.lang.String buildName)
Ensure that the build key & name are valid |
void |
validateNewProjectDetails(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String projectName,
java.lang.String projectKey)
Validate that the new project details are valid |
void |
validateNewStageForChain(com.opensymphony.xwork.ValidationAware validationAware,
Chain chain,
java.lang.String stageName)
Validate the the new stage can be added to the given chain |
void |
validatePlanToCloneExists(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String buildKeyToClone)
Validate that the plan t clone exists |
void |
validateStageExistsForChain(com.opensymphony.xwork.ValidationAware validationAware,
Chain chain,
java.lang.String stageName)
Ensures that the stage currently exists for a chain |
Field Detail |
---|
static final java.lang.String KEY_REGEXP
Method Detail |
---|
void validateKey(@NotNull com.opensymphony.xwork.ValidationAware validationAware, java.lang.String fieldName, java.lang.String errorPrefix, java.lang.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.opensymphony.xwork.ValidationAware validationAware, java.lang.String fieldName, java.lang.String errorPrefix, java.lang.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.opensymphony.xwork.ValidationAware validationAware, java.lang.String fieldName, java.lang.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.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String buildKeyToClone)
validationAware
- - object to add errors to if any are foundbuildKeyToClone
- - the key of the plan to clonevoid validateNewPlanDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String buildKey, @Nullable java.lang.String buildName)
validationAware
- - object to add errors to if any are foundbuildKey
- - the key for the planbuildName
- - the name for the planvoid validateNewBuildForExistingProject(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String existingProjectKey, @Nullable java.lang.String buildKey, @Nullable java.lang.String buildName)
validationAware
- - object to add errors to if any are foundexistingProjectKey
- - the key of an existing projectbuildKey
- - the key for the new planbuildName
- - the name of the new planvoid validateNewJobForExistingChain(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull Chain existingChain, @NotNull java.lang.String buildKey, @Nullable java.lang.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.opensymphony.xwork.ValidationAware validationAware, java.lang.String existingProjectKey, java.lang.String chainKey, java.lang.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 validateNewProjectDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String projectName, @Nullable java.lang.String projectKey)
validationAware
- - object to add errors to if any are foundprojectName
- - name of the project to validateprojectKey
- - key of the project to validatevoid validateNewStageForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, java.lang.String stageName)
validationAware
- - to add any errors tochain
- - the chain the stage will be added tostageName
- - the stage to be addedvoid validateStageExistsForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, java.lang.String stageName)
validationAware
- - to add the errors tochain
- - the chain the stage should exist instageName
- - the stage to check forPlanConfigHelper getRepositoryConfigHelper()
PlanConfigHelper getBuildStrategyConfigHelper()
PlanConfigHelper getBuilderConfigHelper()
PlanConfigHelper getWebRepositoryConfigHelper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |