com.ibm.commerce.usermanagement.commands

Interface RestoreOriginalUserSetInSessionCmd

  • 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:
    RestoreOriginalUserSetInSessionCmdImpl


    public interface RestoreOriginalUserSetInSessionCmd
    extends ControllerCommand

    This command is used by a user to switch their identity from a forUserId back to their original identity.

    • Field Detail

      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        Default command implementation class.
        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

      • restoreOrginalUserId

        void restoreOrginalUserId()
                           throws ECException
        Switches from the forUserId, which is currently used for execution, back to the original administrative identity.
        Throws:
        ECException - is thrown if there are any problems during this operation
      • getURL

        java.lang.String getURL()
        The URL to redirect to, on successful execution of the command.
        Returns:
        The URL to redirect to on success.