Package wt.lifecycle
Class LifeCycleServerHelper
java.lang.Object
wt.lifecycle.LifeCycleServerHelper
Provides server side access to the methods of the LifeCycleServiceSvr
interface.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic LifeCycleManagedsetState(LifeCycleManaged object, State state) Set the State of the LifeCycleManaged object.
-
Method Details
-
setState
public static LifeCycleManaged setState(LifeCycleManaged object, State state) throws LifeCycleException, WTPropertyVetoException Set the State of the LifeCycleManaged object. If the state isn't valid in the current LifeCycle, an exception will be thrown when the object is persisted If the object is already persisted, this method will throw an exception.If used in conjuction with the LifeCycleHelper.setLifeCycle method, the LifeCycleHelper.setLifeCycle method must be executed first. If the LifeCycleHelper.setLifeCycle method is executed after this method, the setting of the state will be wiped out.
Supported API: true- Parameters:
object- the LifeCycleManaged object whose state will be setstate- the state to be set on the LifeCycleManaged object.- Returns:
- LifeCycleManaged
- Throws:
LifeCycleExceptionWTPropertyVetoException
-