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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, 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, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
hshReqParameters
- The request parameters.ECApplicationException
public 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 RunAsUserSetInSessionCmd
nRunAsUserId
- The userId to act on behalf of.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Problem executing the command.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Invalid parameters were specified.public AccessVector getResources()
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand