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.
|
Constructor and Description |
---|
RunAsUserSetInSessionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccessVector | getResources()
Gets the resources.
|
protected java.lang.Long | getRunAsUserId()
Gets the userId to switch to.
|
java.lang.String | getURL()
Gets the URL specified.
|
boolean | isGeneric()
Whether or not this command can be invoked by a generic user.
|
protected boolean | isSwitchAllowed()
Determines whether the user is allowed to switch to the specified active organization.
|
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.
|
public static final java.lang.String COPYRIGHT
public boolean isGeneric()
public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
public void setURL(java.lang.String strURL)
public java.lang.String getURL()
public void setRunAsUserId(java.lang.Long nRunAsUserId)
protected java.lang.Long getRunAsUserId()
public void performExecute() throws ECException
protected boolean isSwitchAllowed() throws ECException
public void validateParameters() throws ECException
public AccessVector getResources()