Videoautomat

videoautomat.transition
Class LogOnTransition

java.lang.Object
  extended by videoautomat.transition.LogOnTransition

public class LogOnTransition
extends Object

a Transition that proves the selected name and password and with success leads to the SaleProcessLogOn.getMainGate(), otherwise it returns the SaleProcessLogOn.getFaultGate().

Author:
Alexander Herrmann

Constructor Summary
LogOnTransition(LogOnForm lof)
          Constructor for referencing the LogOnForm
 
Method Summary
 Gate perform(SaleProcess sp, User user)
          Proves the user and its password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogOnTransition

public LogOnTransition(LogOnForm lof)
Constructor for referencing the LogOnForm

Parameters:
lof -
Method Detail

perform

public Gate perform(SaleProcess sp,
                    User user)
Proves the user and its password. If successful registeres user, puts user to ProcessContext and redirects to SaleProcessLogOn.getMainGate(). Otherwise returns to SaleProcessLogOn.getFaultGate().

Parameters:
sp - - the current SaleProcess
user - - the current User

Videoautomat