|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.windchill.esi.utl.TaskHelper
public final class TaskHelper
Common utility methods of general usefulness to ESI classes and ESI Info*Engine
tasks.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
void |
addMultivaluePersistableParamGroup(String paramName,
String groupName,
com.infoengine.SAK.Tasklet task)
Get the task parameter values and add each one to an element in a group. |
void |
addSuccessMsgGroup(String groupName,
com.infoengine.SAK.Tasklet task)
Adds a group to the task to ensure that receivers are notified of a successful invocation of a service that returns a java void. |
void |
checkParameter(Object obj,
String name)
Test a method parameter to make sure that it is not null. |
void |
checkParameter(String param,
String name)
Test a string to make sure that it is not null and not empty, and not all spaces. |
boolean |
getBooleanStringParameter(String paramName,
boolean defaultValue,
com.infoengine.SAK.Tasklet task)
Obtains a task parameter and returns it as a boolean value. |
boolean |
getBooleanStringParameter(String paramName,
com.infoengine.SAK.Tasklet task)
Obtains a task parameter and returns it as a boolean value. |
Collection |
getMultivalueParam(String name,
com.infoengine.SAK.Tasklet task)
Return a collection of the values of the task parameter identified by the name argument. |
String |
getObjectID(Persistable object)
Returns the UFID for a Persistable. |
String |
getParameterString(String paramName,
com.infoengine.SAK.Tasklet tasklet)
Returns the value of a task parameter. |
Iterator |
getRpcGroupNames(String groupName,
com.infoengine.SAK.Tasklet task)
Obtains the results of an apply-service webject for an ESI RPC, adds all of the groups in the RPC response to the task passed in the argument, and returns an iterator of a collection of group names in the resultant VDB. |
void |
waitForMethodServer()
Waits until the method server is ready. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final String getObjectID(Persistable object)
object - The persistable object whose UFID is desired.
public final void addMultivaluePersistableParamGroup(String paramName,
String groupName,
com.infoengine.SAK.Tasklet task)
throws com.infoengine.util.IEException
paramName - The name of the task parameter whose values are to be obtained.groupName - the name of the Group to add to the task's VDB.task - The task whose parameters are to be obtained and whose VDB is to be updated.
com.infoengine.util.IEException
public final boolean getBooleanStringParameter(String paramName,
com.infoengine.SAK.Tasklet task)
throws com.infoengine.util.IEException
paramName - The parameter to access.task - The task whose parameter is to be examined.
com.infoengine.util.IEException
public final boolean getBooleanStringParameter(String paramName,
boolean defaultValue,
com.infoengine.SAK.Tasklet task)
throws com.infoengine.util.IEException
paramName - The parameter to access.defaultValue - The value to return if the task has no parameter matching the value of the paramName argument.task - The task whose parameter is to be examined.
com.infoengine.util.IEException
public final String getParameterString(String paramName,
com.infoengine.SAK.Tasklet tasklet)
throws com.infoengine.util.IEException
paramName - The name of the parameter to obtain.tasklet - The Taskle whose parameter is to be queried.
com.infoengine.util.IEExceptionpublic final void waitForMethodServer()
public final void addSuccessMsgGroup(String groupName,
com.infoengine.SAK.Tasklet task)
throws com.infoengine.util.IEException
groupName - The name of the group to create.task - The Tasklet whose VDB is to be updated.
com.infoengine.util.IEException
public final Iterator getRpcGroupNames(String groupName,
com.infoengine.SAK.Tasklet task)
throws com.infoengine.util.IEException
groupName - The name of the group to extract from the task argument. It is presumed to be the name of an Group containing one element with a single Att whose name is "result".task -
com.infoengine.util.IEException
public Collection getMultivalueParam(String name,
com.infoengine.SAK.Tasklet task)
throws com.infoengine.util.IEException
name - The name of the parameter whose values are to be obtained.task - The tasklet whose parameter is to be obtained.
com.infoengine.util.IEException
public final void checkParameter(String param,
String name)
throws MissingParameterException
param - name -
MissingParameterException
public final void checkParameter(Object obj,
String name)
throws MissingParameterException
obj - name -
MissingParameterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||