Companion
Properties
DEFAULT_LANGUAGE
default
language used
EMAIL_MAX_LENGTH
the max
valid length for the email
EMAIL_REGEX
regular
expression to validate the emails value
emailValidator
helper to
validate the emails values
HOST_ADDRESS_KEY
the key for
the "host_address" field
LANGUAGES_SUPPORTED
list of
the supported languages
MAX_REVENUE_LABELS_NUMBER_LENGTH
the max valid number of labels for revenue
NAME_MAX_LENGTH
the max valid
length for the username
PASSWORD_MAX_LENGTH
the max
valid length for the password
PASSWORD_MIN_LENGTH
the min
valid length for the password
REVENUE_DESCRIPTION_MAX_LENGTH
the max valid length for the revenue description
REVENUE_TITLE_MAX_LENGTH
the
max valid length for the revenue title
SURNAME_MAX_LENGTH
the max
valid length for the surname
urlValidator
helper to
validate the urls values
WRONG_CURRENCY_MESSAGE
error
message used when the currency inserted is not valid
WRONG_EMAIL_MESSAGE
error
message used when the email inserted is not valid
WRONG_LANGUAGE_MESSAGE
error
message used when the language inserted is not valid
WRONG_NAME_MESSAGE
error
message used when the name inserted is not valid
WRONG_PASSWORD_MESSAGE
error
message used when the password inserted is not valid
WRONG_SURNAME_MESSAGE
error
message used when the surname inserted is not valid
Functions
Method to validate an email
Method to validate a host
Method to validate an input
Method to validate a language
Method to validate a name
Method to validate a password
Method to validate a server secret
Method to validate a surname