com.ibm.commerce.usermanagement.commands

Interface RunAsUserSetInSessionCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    RunAsUserSetInSessionCmdImpl


    public interface RunAsUserSetInSessionCmd
    extends ControllerCommand

    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.

    • Field Detail

      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        Default command implementation class.
        See Also:
        Constant Field Values
      • RUN_AS_USERID

        static final java.lang.String RUN_AS_USERID
        This constant defines the RunAsId parameter of the command.
        See Also:
        Constant Field Values
      • VIEW_NAME

        static final java.lang.String VIEW_NAME
        The view that would be forwarded to on successful execution, if a URL is not defined.
        See Also:
        Constant Field Values
      • ERRTASK_NAME

        static final java.lang.String ERRTASK_NAME
        The error view that would be forwarded to, on errors.
        See Also:
        Constant Field Values
    • Method Detail

      • setRunAsUserId

        void setRunAsUserId(java.lang.Long nRunAsId)
        Sets the userId to switch to. Users of type 'A' and 'S' may only switch to type 'R'.
        Parameters:
        nRunAsUserId - The userId to act on behalf of.