videoautomat.transition
Class LogOnTransition
java.lang.Object
|
+--videoautomat.transition.LogOnTransition
- All Implemented Interfaces:
- Serializable, sale.Transition
- public class LogOnTransition
- extends Object
- implements sale.Transition
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
- See Also:
- Serialized Form
Constructor Summary |
LogOnTransition(users.stdforms.LogOnForm lof)
Constructor for referencing the LogOnForm |
Method Summary |
sale.Gate |
perform(sale.SaleProcess sp,
users.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(users.stdforms.LogOnForm lof)
- Constructor for referencing the
LogOnForm
- Parameters:
lof
-
perform
public sale.Gate perform(sale.SaleProcess sp,
users.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()
.
- Specified by:
perform
in interface sale.Transition
- Parameters:
sp
- - the current SaleProcess
user
- - the current User