public class PVCBufferUrlCmdImpl extends ControllerCommandImpl implements PVCBufferUrlCmd
Behaviour
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field
|
static java.lang.String |
ERRTASK_NAME
The
viewname called when an error occurs. |
defaultCommandClassName, NAME
Constructor and Description |
---|
PVCBufferUrlCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildParameters(java.lang.String bufParams,
java.lang.String inParams)
Merges parameters stored in PVCBUFFER.PARAMETERS2K and parameters sent to the command.
|
java.lang.String |
changeReqPropToString(TypedProperty reqProp)
Convert name and value pairs in TypedProperty object to string format.
|
TypedProperty |
changeStringToReqProp(java.lang.String strParm)
Convert parameter string to TypedProperty object.
|
boolean |
checkTimeout(java.sql.Timestamp now,
java.sql.Timestamp create)
Check if data in buffer has expired.
|
PVCAdapter |
getAdapter()
Get PVC adapter set in command context.
|
java.lang.String |
getB_exec()
Get the value of the
b_exec parameter. |
java.lang.String |
getB_new()
Get the value of the
b_new parameter. |
java.lang.String |
getB_update()
Get the value of the
b_update parameter. |
java.lang.String |
getErrUrl()
Get the redirect view name, if an error occurs while processing this command.
|
java.lang.String |
getNo()
Get the string of
b_no parameter value. |
java.lang.String[] |
getNoArray()
Get the string array of the
b_no parameters string. |
java.lang.String |
getParameters()
Set the parameters string.
|
java.lang.String |
getPostUrl()
Get the redirect URL of this command.
|
long |
getTimeout()
Get the buffer timeout value.
|
java.lang.String |
getUrl()
Get the URL of the target command.
|
java.lang.Long |
getUserId()
Get the user ID.
|
boolean |
isGeneric()
Check to see if this is a generic command.
|
void |
performExecute()
The business logic for this command.
|
void |
setAdapter(PVCAdapter newAdapter)
Set the PVC adapter object.
|
void |
setB_exec(java.lang.String newB_exec)
Set the value of the
b_exec parameter. |
void |
setB_new(java.lang.String newB_new)
Set the value of the
b_new parameter. |
void |
setB_update(java.lang.String newB_update)
Set the value of the
b_update parameter. |
void |
setErrUrl(java.lang.String newErrUrl)
Set the redirect view name.
|
void |
setNo(java.lang.String newNo)
Set the string of
b_no parameter value. |
void |
setParameters(java.lang.String newParameters)
Set the parameters string.
|
void |
setPostUrl(java.lang.String newPostUrl)
Set the redirect URL of this command.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
Extracts parameter from request properties.
|
void |
setTimeout(long newTimeout)
Set the buffer timeout value.
|
void |
setUrl(java.lang.String newUrl)
Set the redirect URL of the
targetale command. |
void |
setUserId(java.lang.Long newUserId)
Set the user ID.
|
void |
validateParameters()
Check validity of parameters sent to this command.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
viewname
called when an error occurs.public java.lang.String buildParameters(java.lang.String bufParams, java.lang.String inParams)
bufParams
- Buffered parameters in PVCBUFFER.PARAMETER2KinParams
- Parameters sent to the commandpublic java.lang.String changeReqPropToString(TypedProperty reqProp)
Name
- and value pairspublic TypedProperty changeStringToReqProp(java.lang.String strParm)
strParam
- URL encoded parameter stringpublic boolean checkTimeout(java.sql.Timestamp now, java.sql.Timestamp create)
now
- Current timestampcreate
- Creation date of the record in PVCBUFFER table, value of PVCBUFFER.CREATEDpublic PVCAdapter getAdapter()
public java.lang.String getB_exec()
b_exec
parameter.b_exec
parameter.public java.lang.String getB_new()
b_new
parameter.b_new
parameter.public java.lang.String getB_update()
b_update
parameter.b_update
parameter.public java.lang.String getErrUrl()
public java.lang.String getNo()
b_no
parameter value.b_no
parameter value.public java.lang.String[] getNoArray()
b_no
parameters string.b_no
parameters string.public java.lang.String getParameters()
public java.lang.String getPostUrl()
public long getTimeout()
public java.lang.String getUrl()
public java.lang.Long getUserId()
getUserId
in interface ECCommand
getUserId
in class AbstractECTargetableCommand
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If an error occurs while processing this method.public void setAdapter(PVCAdapter newAdapter)
newAdapter
- The PVC adapter object.public void setB_exec(java.lang.String newB_exec)
b_exec
parameter.setB_exec
in interface PVCBufferUrlCmd
newB_exec
- The value of the b_exec
parameter.public void setB_new(java.lang.String newB_new)
b_new
parameter.setB_new
in interface PVCBufferUrlCmd
newB_new
- The value of the b_new
parameter.public void setB_update(java.lang.String newB_update)
b_update
parameter.setB_update
in interface PVCBufferUrlCmd
newB_update
- The value of the b_update
parameter.public void setErrUrl(java.lang.String newErrUrl)
setErrUrl
in interface PVCBufferUrlCmd
newErrUrl
- The redirect view name.public void setNo(java.lang.String newNo)
b_no
parameter value.newNo
- The string of b_no
parameter value.public void setParameters(java.lang.String newParameters)
setParameters
in interface PVCBufferUrlCmd
newParameters
- The parameters string.public void setPostUrl(java.lang.String newPostUrl)
newPointUrl
- The redirect URL of this command.public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProp
- The parameters sent to the command.ECApplicationException
- If an error occurs while processing the methodpublic void setTimeout(long newTimeout)
setTimeout
in interface PVCBufferUrlCmd
newTimeout
- The buffer timeout value.public void setUrl(java.lang.String newUrl)
targetale
command.setUrl
in interface PVCBufferUrlCmd
newUrl
- The target redirect URL.public void setUserId(java.lang.Long newUserId)
setUserId
in interface PVCBufferUrlCmd
newUserId
- The user ID.public void validateParameters() throws ECException
This method does following checks. If an error occurs the method throws ECException.
b_new
, b_update
or b_exec
parameter
b_new
, check to exist the b_url
and b_err
parameter.
b_update
, check to exist the b_err
parameter.
b_exec
, check to exist the b_err
parameter.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If an error occurs while processing this method