com.atlassian.bamboo.build.creation
Interface PlanValidationServiceXWork1

All Known Subinterfaces:
PlanValidationService
All Known Implementing Classes:
PlanValidationServiceImpl

Deprecated. since 5.1

@Deprecated
public interface PlanValidationServiceXWork1

This interface groups methods using old XWork1 interface. You can avoid using them by explicitely casting to ValidationAware from xwork2


Method Summary
 void validateDescription(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String fieldName, java.lang.String description)
          Deprecated. 
 void validateKey(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String fieldName, java.lang.String errorPrefix, java.lang.String key)
          Deprecated. 
 void validateName(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String fieldName, java.lang.String errorPrefix, java.lang.String name)
          Deprecated. 
 void validateNewChainForExistingProject(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String existingProjectKey, java.lang.String chainName)
          Deprecated. 
 void validateNewChainForExistingProject(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String existingProjectKey, java.lang.String chainKey, java.lang.String chainName)
          Deprecated. 
 void validateNewJobForExistingChain(com.opensymphony.xwork.ValidationAware validationAware, Chain existingChain, java.lang.String buildKey, java.lang.String buildName)
          Deprecated. 
 void validateNewPlanBranchForMaster(com.opensymphony.xwork.ValidationAware validationAware, ImmutableChain masterChain, java.lang.String branchName)
          Deprecated. 
 void validateNewPlanDetails(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String buildKey, java.lang.String buildName)
          Deprecated. 
 void validateNewProjectDetails(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String projectName, java.lang.String projectKey)
          Deprecated. 
 void validateNewStageForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, java.lang.String stageName)
          Deprecated. 
 void validatePlanToCloneExists(com.opensymphony.xwork.ValidationAware validationAware, java.lang.String buildKeyToClone)
          Deprecated. 
 void validateStageExistsForChain(com.opensymphony.xwork.ValidationAware validationAware, Chain chain, java.lang.String stageName)
          Deprecated. 
 

Method Detail

validateKey

@Deprecated
void validateKey(@NotNull
                            com.opensymphony.xwork.ValidationAware validationAware,
                            java.lang.String fieldName,
                            java.lang.String errorPrefix,
                            java.lang.String key)
Deprecated. 

Validate any String against Bamboo's generic rules for keys.

Parameters:
validationAware - - the object to add errors to if any are found
fieldName - - the name of the field to add the errors to
errorPrefix - - 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
                             com.opensymphony.xwork.ValidationAware validationAware,
                             java.lang.String fieldName,
                             java.lang.String errorPrefix,
                             java.lang.String name)
Deprecated. 

Validate any String against Bamboo's generic rules for names.

Parameters:
validationAware - - the object to add errors to if any are found
fieldName - - the name of the field to add the errors to
errorPrefix - - 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
                                    com.opensymphony.xwork.ValidationAware validationAware,
                                    java.lang.String fieldName,
                                    java.lang.String description)
Deprecated. 

Validate the description field of any object. All it really does is check length

Parameters:
validationAware - - the object to add errors to if any are found
fieldName - - the name of the field to add the errors to
description - - the actual text to validate

validatePlanToCloneExists

@Deprecated
void validatePlanToCloneExists(@NotNull
                                          com.opensymphony.xwork.ValidationAware validationAware,
                                          @Nullable
                                          java.lang.String buildKeyToClone)
Deprecated. 

Validate that the plan t clone exists

Parameters:
validationAware - - object to add errors to if any are found
buildKeyToClone - - the key of the plan to clone

validateNewPlanDetails

@Deprecated
void validateNewPlanDetails(@NotNull
                                       com.opensymphony.xwork.ValidationAware validationAware,
                                       @Nullable
                                       java.lang.String buildKey,
                                       @Nullable
                                       java.lang.String buildName)
Deprecated. 

Ensure that the build key & name are valid

Parameters:
validationAware - - object to add errors to if any are found
buildKey - - the key for the plan
buildName - - the name for the plan

validateNewJobForExistingChain

@Deprecated
void validateNewJobForExistingChain(@NotNull
                                               com.opensymphony.xwork.ValidationAware validationAware,
                                               @NotNull
                                               Chain existingChain,
                                               @NotNull
                                               java.lang.String buildKey,
                                               @Nullable
                                               java.lang.String buildName)
Deprecated. 

Parameters:
validationAware - - object to add errors to if any are found
existingChain - - the chain the new job will be added to
buildKey - - the key for the job
buildName - - the name for the job.

validateNewChainForExistingProject

@Deprecated
void validateNewChainForExistingProject(@NotNull
                                                   com.opensymphony.xwork.ValidationAware validationAware,
                                                   java.lang.String existingProjectKey,
                                                   java.lang.String chainKey,
                                                   java.lang.String chainName)
Deprecated. 

Validate that new chain name and key is unique within the project

Parameters:
validationAware - - object to add errors to if any are found
existingProjectKey - - the key of an existing project
chainKey - - the key for the new chain
chainName - - the name of the new chain

validateNewChainForExistingProject

@Deprecated
void validateNewChainForExistingProject(@NotNull
                                                   com.opensymphony.xwork.ValidationAware validationAware,
                                                   @NotNull
                                                   java.lang.String existingProjectKey,
                                                   @NotNull
                                                   java.lang.String chainName)
Deprecated. 

Validate that new chain name (only) is unique within the project

Parameters:
validationAware - - object to add errors to if any are found
existingProjectKey - - the key of an existing project
chainName - - the name of the new chain

validateNewPlanBranchForMaster

@Deprecated
void validateNewPlanBranchForMaster(@NotNull
                                               com.opensymphony.xwork.ValidationAware validationAware,
                                               @NotNull
                                               ImmutableChain masterChain,
                                               @NotNull
                                               java.lang.String branchName)
Deprecated. 

Validate 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 found
masterChain - the master chain
branchName - the name of the new chain

validateNewProjectDetails

@Deprecated
void validateNewProjectDetails(@NotNull
                                          com.opensymphony.xwork.ValidationAware validationAware,
                                          @Nullable
                                          java.lang.String projectName,
                                          @Nullable
                                          java.lang.String projectKey)
Deprecated. 

Validate that the new project details are valid

Parameters:
validationAware - - object to add errors to if any are found
projectName - - name of the project to validate
projectKey - - key of the project to validate

validateNewStageForChain

@Deprecated
void validateNewStageForChain(com.opensymphony.xwork.ValidationAware validationAware,
                                         Chain chain,
                                         java.lang.String stageName)
Deprecated. 

Validate the the new stage can be added to the given chain

Parameters:
validationAware - - to add any errors to
chain - - the chain the stage will be added to
stageName - - the stage to be added

validateStageExistsForChain

@Deprecated
void validateStageExistsForChain(com.opensymphony.xwork.ValidationAware validationAware,
                                            Chain chain,
                                            java.lang.String stageName)
Deprecated. 

Ensures that the stage currently exists for a chain

Parameters:
validationAware - - to add the errors to
chain - - the chain the stage should exist in
stageName - - the stage to check for


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.