videoautomat.transition
Class LogOnTransition
java.lang.Object
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 |
LogOnTransition
public LogOnTransition(LogOnForm lof)
- Constructor for referencing the
LogOnForm
- Parameters:
lof
-
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