public class PVCRegisterDeviceCmdImpl extends ControllerCommandImpl implements PVCRegisterDeviceCmd
PvC
) device in USERPVCDEV table.
Behaviour
New registration is done by registrationExec method.
Update is done by updateExec method.
Modifier and Type | Field and Description |
---|---|
boolean |
address1Nothing
The flag of the
devaddress1 parameter exist or not. |
boolean |
address2Nothing
The flag of the
devaddress2 parameter exist or not. |
boolean |
addrtype1Nothing
The flag of the
devaddrtype1 parameter exist or not. |
boolean |
addrtype2Nothing
The flag of the
devaddrtype2 parameter exist or not. |
static java.lang.String |
COPYRIGHT
IBM copyright notice field
|
static java.lang.String |
ERRTASK_NAME
The
viewname that is called in an error occurs. |
defaultCommandClassName, NAME
Constructor and Description |
---|
PVCRegisterDeviceCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress1()
Get the address 1.
|
java.lang.String |
getAddress2()
Get the address 2.
|
java.lang.String |
getAddrType1()
Get the address type 1.
|
java.lang.String |
getAddrType2()
Get the address type 2.
|
java.lang.Integer |
getDeviceFmtId()
Get the device format ID
|
java.lang.String |
getLogonId()
Get the logon ID.
|
java.lang.String |
getPassword()
Get the password.
|
java.lang.Integer |
getPreferredTimeout()
Get the preferred timeout value.
|
java.lang.Integer |
getProtect()
Get the protect.
|
java.lang.String |
getPvcRegMode()
Get the PvC registration mode.
|
java.lang.Long |
getPVCSessionId()
Get the PvC session ID.
|
java.lang.Integer |
getStatus()
Get the status of PVCSESSION STATUS.
|
java.lang.String |
getURL()
Get the redirect URL for this command.
|
java.lang.Long |
getUserId()
Get the user ID.
|
boolean |
isAddress1Nothing()
Get the flag of the
devaddress1 parameter exist or not. |
boolean |
isAddress2Nothing()
Get the flag of the
devaddress2 parameter exist or not. |
boolean |
isAddrtype1Nothing()
Get the flag of the
devaddrtype1 parameter exist or not. |
boolean |
isAddrtype2Nothing()
Get the flag of the
devaddrtype2 parameter exist or not. |
boolean |
isGeneric()
Checks to see if this is a generic command.
|
void |
performExecute()
The business logic for this command.
|
void |
registrationExec()
Register PvC device information.
|
void |
setAddress1(java.lang.String newAddress1)
Sets the address 1.
|
void |
setAddress1Nothing(boolean newAddress1Nothing)
Sets the flag of the
devaddress1 parameter exist or not. |
void |
setAddress2(java.lang.String newAddress2)
Sets the address 2.
|
void |
setAddress2Nothing(boolean newAddress2Nothing)
Sets the flag of the
devaddress2 parameter exist or not. |
void |
setAddrType1(java.lang.String newAddrType1)
Sets the address type 1.
|
void |
setAddrtype1Nothing(boolean newAddrtype1Nothing)
Sets the flag of the
devaddrtype1 parameter exist or not. |
void |
setAddrType2(java.lang.String newAddrType2)
Sets the address type 2.
|
void |
setAddrtype2Nothing(boolean newAddrtype2Nothing)
Sets the flag of the
devaddrtype2 parameter exist or not. |
void |
setDeviceFmtId(java.lang.Integer newDeviceFmtId)
Sets the device format ID.
|
void |
setLogonId(java.lang.String newLogonId)
Sets the logon ID.
|
void |
setPassword(java.lang.String newPassword)
Sets the password.
|
void |
setPreferredTimeout(java.lang.Integer newPreferredTimeout)
Sets the preferred timeout value.
|
void |
setProtect(java.lang.Integer newProtect)
Sets the protect.
|
void |
setPvcRegMode(java.lang.String newPvcRegMode)
Sets the PvC registration mode.
|
void |
setPVCSessionId(java.lang.Long newPVCSessionId)
Sets the PvC session ID.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
Receives the parameters for this command, and stored into member variables.
|
void |
setStatus(java.lang.Integer newStatus)
Sets the status of PVCSESSION STATUS.
|
void |
setURL(java.lang.String newURL)
Sets the redirect URL for this command.
|
void |
setUserId(java.lang.Long newUserId)
Sets the user ID.
|
void |
updateExec()
Updates PvC device information.
|
void |
validateParameters()
Checks the parameters for 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
that is called in an error occurs.public boolean address1Nothing
devaddress1
parameter exist or not.public boolean addrtype1Nothing
devaddrtype1
parameter exist or not.public boolean address2Nothing
devaddress2
parameter exist or not.public boolean addrtype2Nothing
devaddrtype2
parameter exist or not.public java.lang.String getAddress1()
public java.lang.String getAddress2()
public java.lang.String getAddrType1()
public java.lang.String getAddrType2()
public java.lang.Integer getDeviceFmtId()
public java.lang.String getLogonId()
public java.lang.String getPassword()
public java.lang.Integer getPreferredTimeout()
public java.lang.Integer getProtect()
public java.lang.String getPvcRegMode()
public java.lang.Long getPVCSessionId()
public java.lang.Integer getStatus()
public java.lang.String getURL()
public java.lang.Long getUserId()
getUserId
in interface ECCommand
getUserId
in class AbstractECTargetableCommand
public boolean isAddress1Nothing()
devaddress1
parameter exist or not.devaddress1
parameter not exist; false otherwise.public boolean isAddress2Nothing()
devaddress2
parameter exist or not.devaddress2
parameter not exist; false otherwise.public boolean isAddrtype1Nothing()
devaddrtype1
parameter exist or not.devaddrtype1
parameter not exist; false otherwise.public boolean isAddrtype2Nothing()
devaddrtype2
parameter exist or not.devaddrtype2
parameter not exist; false otherwise.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 registrationExec() throws ECException
ECException
- If an error occurs while processing this method.public void setAddress1(java.lang.String newAddress1)
setAddress1
in interface PVCRegisterDeviceCmd
newAddress1
- The address1.public void setAddress1Nothing(boolean newAddress1Nothing)
devaddress1
parameter exist or not.newAddress1Nothing
- The flag of the devaddress1
parameter exist or not.public void setAddress2(java.lang.String newAddress2)
setAddress2
in interface PVCRegisterDeviceCmd
newAddress2
- The address 2.public void setAddress2Nothing(boolean newAddress2Nothing)
devaddress2
parameter exist or not.newAddress2Nothing
- The flag of the devaddress2
parameter exist or not.public void setAddrType1(java.lang.String newAddrType1)
setAddrType1
in interface PVCRegisterDeviceCmd
newAddrType1
- The address type 1.public void setAddrtype1Nothing(boolean newAddrtype1Nothing)
devaddrtype1
parameter exist or not.newAddrtype1Nothing
- The flag of the devaddrtype1
parameter exist or not.public void setAddrType2(java.lang.String newAddrType2)
setAddrType2
in interface PVCRegisterDeviceCmd
newAddrType2
- The address type 2.public void setAddrtype2Nothing(boolean newAddrtype2Nothing)
devaddrtype2
parameter exist or not.newAddrtype2Nothing
- The flag of the devaddrtype2
parameter exist or not.public void setDeviceFmtId(java.lang.Integer newDeviceFmtId)
setDeviceFmtId
in interface PVCRegisterDeviceCmd
newDeviceFmtId
- The device format ID.public void setLogonId(java.lang.String newLogonId)
setLogonId
in interface PVCRegisterDeviceCmd
newLogonId
- The logon ID.public void setPassword(java.lang.String newPassword)
setPassword
in interface PVCRegisterDeviceCmd
newPassword
- The password.public void setPreferredTimeout(java.lang.Integer newPreferredTimeout)
setPreferredTimeout
in interface PVCRegisterDeviceCmd
newPreferredTimeout
- The preferred timeout value.public void setProtect(java.lang.Integer newProtect)
setProtect
in interface PVCRegisterDeviceCmd
newProtect
- The protect.public void setPvcRegMode(java.lang.String newPvcRegMode)
setPvcRegMode
in interface PVCRegisterDeviceCmd
newPvcRegMode
- The PVC registration mode.public void setPVCSessionId(java.lang.Long newPVCSessionId)
setPVCSessionId
in interface PVCRegisterDeviceCmd
newPVCSessionId
- The PVC session ID.public void setRequestProperties(TypedProperty hshReqParameters) throws ECException
This method does the following in the list.
devaddress1
, the devaddrtype1
, the devaddress2
and the devaddrtype2
from requestProperties.
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProp
- The parameters for this command.ECException
- If an error occurs while processing this methodpublic void setStatus(java.lang.Integer newStatus)
setStatus
in interface PVCRegisterDeviceCmd
newStatus
- The status of PVCSESSION STATUS.public void setURL(java.lang.String newURL)
setURL
in interface PVCRegisterDeviceCmd
newURL
- The redirect URL.public void setUserId(java.lang.Long newUserId)
setUserId
in interface PVCRegisterDeviceCmd
newUserId
- The user ID.public void updateExec() throws ECException
ECException
- If an error occurs while processing this method.public void validateParameters() throws ECException
This method checks the following in the list. If an error occured, throws exception.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If an error occurs while processing this method.