Package org.nuclos.api.provider
Class StatemodelProvider
java.lang.Object
org.nuclos.api.provider.StatemodelProvider
StatemodelProvider
provides methods for reading, setting or changing state information
for BusinessObject
s.- Author:
- Matthias Reichart
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Stateful>
voidchangeState
(T t, int iNumeral) Deprecated.static <T extends Stateful>
voidchangeState
(T t, State sState) Deprecated.void
setStatemodelService
(StatemodelService service)
-
Constructor Details
-
StatemodelProvider
StatemodelProvider()
-
-
Method Details
-
setStatemodelService
-
changeState
Deprecated.- UseStateful.changeStatus(State)
to ensure type-safetyThis method changes the state of a givenBusinessObject
.The passed numeral will be checked wether it can be assigned to the
BusinessObject
or not;In case of an invalid numeral the method will throw an exception.
- Parameters:
t
- -BusinessObject
that state must be changediNumeral
- - The Numeral of the new state- Throws:
Exception
-
changeState
@Deprecated public static <T extends Stateful> void changeState(T t, State sState) throws BusinessException Deprecated.This method changes the state of a givenBusinessObject
.The passed numeral is type-safe. It is checked wether the state is valid for the statemodel.
In case of an invalid numeral or a non-fitting state/statemodel an BusinessException will be thrown back.
- Parameters:
t
- -BusinessObject
that state must be changedsState
-- Throws:
BusinessException
-
Stateful.changeStatus(State)
to ensure type-safety