|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.BTTOperation
com.ibm.btt.base.BTTServerOperation
public class BTTServerOperation
The BTTServerOperation class derives from BTTOperation and implements the interface ServerOperation. This is an abstract class and cannot be instantiated. A BTTServerOperation has one attribute called originWorkstation that contains the terminal identifier (TID) of the workstation that performed the request. This is used by the operation to send events to the client using the client/server mechanism interface.
Field Summary | |
---|---|
(package private) java.lang.String |
originWorkstation
|
Fields inherited from class com.ibm.btt.base.BTTOperation |
---|
aOperationRepliedListener, COMPID, externalizer |
Constructor Summary | |
---|---|
BTTServerOperation()
This constructor creates a BTTServerOperation object. |
|
BTTServerOperation(java.lang.String anOperationName)
This constructor creates a new instance of ServerOperation with its corresponding Context (obtained from the definition files through anOperationName). |
|
BTTServerOperation(java.lang.String anOperationName,
Context aParentContext)
This constructor creates a new instance of ServerOperation (obtained from the definition files through anOperationName) chained to aParentContext. |
|
BTTServerOperation(java.lang.String anOperationName,
java.lang.String aParentContext)
This constructor creates a new instance of ServerOperation (obtained from the definition files through anOperationName) chained to the Context Named aParentContextName. |
Method Summary | |
---|---|
static BTTServerOperation |
createOperation(java.lang.String anOperationName,
Context flowContext)
get the operation instance according to the operation name and the flow context |
void |
execute()
Implements the server operation logic. |
FormatElement |
getCSReplyFormat()
Returns the csReplyFormat formatElement of the formats Hashtable. |
FormatElement |
getCSRequestFormat()
Returns the csRquestFormat formatElement of the formats Hashtable. |
java.lang.String |
getOriginWorkstation()
Returns the workstation terminal identifier (TID) belonging to the workstation that performed the request, which caused the operation to be executed. |
void |
runInSession(java.lang.String aSessionID)
Searches in the table of sessions for the input session (see Context Interface). |
void |
setCSReplyFormat(FormatElement aFormat)
Sets the csReplyFormat formatElement of the formats Hashtable to aFormat. |
void |
setCSRequestFormat(FormatElement aFormat)
Sets the csRequetsFormat formatElement of the formats Hashtable to aFormat. |
void |
setOriginWorkstation(java.lang.String aString)
Sets the workstation terminal identifier (TID) belonging to the workstation that performed the request. |
boolean |
updateContext(KeyedCollection kcReqData)
Updates dse_errorMessages field in the context with the results of the validation. |
boolean |
updateContext(KeyedCollection kcReqData,
java.lang.String convType)
Updates dse_errorMessages field in the context with the results of the validation. |
boolean |
validate(KeyedCollection kcReq)
Validates all the elements in the specified keyedCollection. |
boolean |
validate(KeyedCollection kcReq,
java.lang.String convType)
Validates all the elements in the specified keyedCollection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.btt.base.Operation |
---|
addElement, addOperationRepliedListener, chainTo, close, getApplicationId, getContext, getContextName, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getParent, getService, getType, getValueAt, isChained, prune, removeAt, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setKeyedCollection, setName, setType, setValueAt, unchain, xValidate |
Methods inherited from interface com.ibm.btt.base.Cacheable |
---|
isCacheable, reinitialize |
Field Detail |
---|
java.lang.String originWorkstation
Constructor Detail |
---|
public BTTServerOperation()
public BTTServerOperation(java.lang.String anOperationName) throws java.io.IOException
anOperationName
- java.lang.String
java.io.IOException
public BTTServerOperation(java.lang.String anOperationName, Context aParentContext) throws java.io.IOException, DSEInvalidRequestException
anOperationName
- java.lang.StringaParentContext
- com.ibm.btt.base.Context
java.io.IOException
DSEInvalidRequestException
public BTTServerOperation(java.lang.String anOperationName, java.lang.String aParentContext) throws java.io.IOException, DSEInvalidRequestException, DSEObjectNotFoundException
anOperationName
- java.lang.StringaParentContext
- java.lang.String
java.io.IOException
DSEInvalidRequestException
DSEObjectNotFoundException
Method Detail |
---|
public void execute() throws java.lang.Exception
execute
in interface Operation
execute
in class BTTOperation
java.lang.Exception
public FormatElement getCSReplyFormat()
getCSReplyFormat
in interface ServerOperation
public FormatElement getCSRequestFormat()
public java.lang.String getOriginWorkstation()
getOriginWorkstation
in interface ServerOperation
public void setCSReplyFormat(FormatElement aFormat)
setCSReplyFormat
in interface ServerOperation
aFormat
- com.ibm.btt.base.FormatElementpublic void setCSRequestFormat(FormatElement aFormat)
aFormat
- com.ibm.btt.base.FormatElementpublic void setOriginWorkstation(java.lang.String aString)
setOriginWorkstation
in interface ServerOperation
aString
- java.lang.Stringpublic boolean updateContext(KeyedCollection kcReqData) throws DSETypeException, DSEObjectNotFoundException, DSEInvalidArgumentException
kcReqData
- com.ibm.btt.base.KeyedCollection
DSETypeException.
DSEObjectNotFoundException.
DSEInvalidArgumentException.
DSETypeException
DSEObjectNotFoundException
DSEInvalidArgumentException
public boolean updateContext(KeyedCollection kcReqData, java.lang.String convType) throws DSETypeException, DSEObjectNotFoundException, DSEInvalidArgumentException
kcReqData
- com.ibm.btt.base.KeyedCollectionconvType
- java.lang.String
DSETypeException.
DSEObjectNotFoundException.
DSEInvalidArgumentException.
DSETypeException
DSEObjectNotFoundException
DSEInvalidArgumentException
public boolean validate(KeyedCollection kcReq) throws DSEObjectNotFoundException, DSEInvalidArgumentException
kcReq
- com.ibm.btt.base.KeyedCollection
DSEObjectNotFoundException.
DSEInvalidArgumentException.
DSEObjectNotFoundException
DSEInvalidArgumentException
public boolean validate(KeyedCollection kcReq, java.lang.String convType) throws DSEObjectNotFoundException, DSEInvalidArgumentException
kcReq
- com.ibm.btt.base.KeyedCollectionconvType
- java.lang.String
DSEObjectNotFoundException.
DSEInvalidArgumentException.
DSEObjectNotFoundException
DSEInvalidArgumentException
public static BTTServerOperation createOperation(java.lang.String anOperationName, Context flowContext) throws java.io.IOException, DSEInvalidRequestException
anOperationName
- java.lang.StringflowContext
- com.ibm.btt.base.Context
java.io.IOException
DSEInvalidRequestException
public void runInSession(java.lang.String aSessionID) throws java.lang.Exception
runInSession
in interface ServerOperation
java.lang.Exception
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |