public class RestoreOriginalUserSetInSessionCmdImpl extends ControllerCommandImpl implements RestoreOriginalUserSetInSessionCmd
This command is used to switch the current active organization. The active organization enables a user to be entitled not only to contracts that belong to his/her parent organization but also where he/she plays an Organization participant role. The organization that the switch is being made to must not be locked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright field.
|
defaultCommandClassName, ERRTASK_NAME, NAME, VIEW_NAME
Constructor and Description |
---|
RestoreOriginalUserSetInSessionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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 |
restoreOrginalUserId()
Switches from the forUserId, which is currently used for execution, back to the
original administrative identity.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
Sets the request properties.
|
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, getResources, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public RestoreOriginalUserSetInSessionCmdImpl()
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()
getURL
in interface RestoreOriginalUserSetInSessionCmd
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 void restoreOrginalUserId() throws ECException
restoreOrginalUserId
in interface RestoreOriginalUserSetInSessionCmd
ECException
- Problems restoring the identity.