Class ValidateUserState

  • All Implemented Interfaces:
    State

    public class ValidateUserState
    extends AbstractValidationState
    State to perform validation of the supplied username. Checks include: - Valid characters. Easy to guess user names. Duplicate users.
    Author:
    Darran Lofthouse
    • Method Detail

      • getValidationStates

        protected Collection<State> getValidationStates()
        Description copied from class: AbstractValidationState
        Get a Collection containing all states required to perform the validation needed. On initialisation an Iterator will be created for this collection - each time this state is called the next state returned by the Iterator will be called to perform validation. Once the Iterator is exhausted the success state will be returned instead. If validation fails then it is expected that the individual validation states will transition away from this state, this is why there is no error or failure state.
        Specified by:
        getValidationStates in class AbstractValidationState