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 BusinessObjects.- Author:
- Matthias Reichart
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Stateful>
voidchangeState(T t, int iNumeral) Deprecated.static <T extends Stateful>
voidchangeState(T t, State sState) Deprecated.voidsetStatemodelService(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
BusinessObjector not;In case of an invalid numeral the method will throw an exception.
- Parameters:
t- -BusinessObjectthat 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- -BusinessObjectthat state must be changedsState-- Throws:
BusinessException
-
Stateful.changeStatus(State)to ensure type-safety