com.atlassian.bamboo.validation
Class ValidationServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.validation.ValidationServiceImpl
All Implemented Interfaces:
ValidationService

public class ValidationServiceImpl
extends java.lang.Object
implements ValidationService


Field Summary
static int DATABASE_STRING_LIMIT
           
static java.lang.String ILLEGAL_NAME_CHARACTERS
           
 
Constructor Summary
ValidationServiceImpl(com.opensymphony.xwork.TextProvider textProvider)
           
 
Method Summary
 ErrorCollection validateDescription(java.lang.String fieldName, java.lang.String description)
          Validate the description field of any object.
 ErrorCollection validateName(java.lang.String fieldName, java.lang.String errorPrefix, java.lang.String name)
          Validate any String against Bamboo's generic rules for names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ILLEGAL_NAME_CHARACTERS

public static final java.lang.String ILLEGAL_NAME_CHARACTERS
See Also:
Constant Field Values

DATABASE_STRING_LIMIT

public static final int DATABASE_STRING_LIMIT
See Also:
Constant Field Values
Constructor Detail

ValidationServiceImpl

public ValidationServiceImpl(com.opensymphony.xwork.TextProvider textProvider)
Method Detail

validateName

@NotNull
public ErrorCollection validateName(@NotNull
                                            java.lang.String fieldName,
                                            @NotNull
                                            java.lang.String errorPrefix,
                                            @Nullable
                                            java.lang.String name)
Description copied from interface: ValidationService
Validate any String against Bamboo's generic rules for names.

Specified by:
validateName in interface ValidationService
Parameters:
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

@NotNull
public ErrorCollection validateDescription(@NotNull
                                                   java.lang.String fieldName,
                                                   @Nullable
                                                   java.lang.String description)
Description copied from interface: ValidationService
Validate the description field of any object. All it really does is check length

Specified by:
validateDescription in interface ValidationService
Parameters:
fieldName - - the name of the field to add the errors to
description - - the actual text to validate


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