public class RunAsUserSetInSessionCmdImpl extends ControllerCommandImpl implements RunAsUserSetInSessionCmd
This command is used by an administrator to act on behalf of another user for multiple request in a single session. This command is used to switch from the current user identity to run under the identity specified for all subsequent requests.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
Copyright field.
|
defaultCommandClassName, ERRTASK_NAME, NAME, RUN_AS_USERID, VIEW_NAME| Constructor and Description |
|---|
RunAsUserSetInSessionCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
AccessVector |
getResources()
Gets the resources.
|
java.lang.String |
getURL()
Gets the URL specified.
|
boolean |
isGeneric()
Whether or not this command can be invoked by a generic user.
|
void |
performExecute()
Executes the command.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
Sets the request properties.
|
void |
setRunAsUserId(java.lang.Long nRunAsUserId)
Sets the userId to switch to.
|
void |
setURL(java.lang.String strURL)
Sets the URL to redirect to after logging off the user.
|
void |
validateParameters()
Validates the parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public boolean isGeneric()
isGeneric in interface ControllerCommandisGeneric in class ControllerCommandImplpublic void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplhshReqParameters - The request parameters.ECApplicationExceptionpublic void setURL(java.lang.String strURL)
strURL - The URL to redirect to after logging off the user.public java.lang.String getURL()
public void setRunAsUserId(java.lang.Long nRunAsUserId)
setRunAsUserId in interface RunAsUserSetInSessionCmdnRunAsUserId - The userId to act on behalf of.public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - Problem executing the command.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - Invalid parameters were specified.public AccessVector getResources()
getResources in interface ECCommandgetResources in class AbstractECTargetableCommand