Interface RunAsUserSetInSessionCmd

  • All Superinterfaces:
    AccCommand,,,, ControllerCommand, ECCommand, Protectable,,
    All Known Implementing Classes:

    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

        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

        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'.
        nRunAsUserId - The userId to act on behalf of.