com.ibm.commerce.member.facade.server.commands

Class AcknowledgePersonCreateGuestCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.TargetableCommandImpl
      • com.ibm.websphere.command.CacheableCommandImpl
        • com.ibm.commerce.member.facade.server.commands.AcknowledgePersonCreateGuestCmdImpl
  • All Implemented Interfaces:
    MessageMappingResponseCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AcknowledgePersonCreateGuestCmdImpl
    extends com.ibm.websphere.command.CacheableCommandImpl
    implements MessageMappingResponseCmd
    The purpose of this command is to implement the logic used to create the Acknowledge Person response to a Create Guest Process Person service request. The response of this request should contain the generic internal Unique ID of the guest user along with the identity ID and signature in the person's credentials. The identity ID and signature can be used as a way to establish a session for the user and this information will be found in the User Data area of the credentials.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Constructor Summary

      Constructors 
      Constructor and Description
      AcknowledgePersonCreateGuestCmdImpl()
      Creates an instance of the Acknowledge Person command for the Create Guest action.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      BusinessObjectDocumentType getBusinessObjectDocument()
      This method returns the Acknowledge Person response for a create guest Process Person request.
      boolean isReadyToCallExecute()
      This method always returns that the command is ready to execute.
      void performExecute()
      This method uses the command context of the controller command to build an Acknowledge Person response with just the credential information populated.
      void reset()
      Resets the command.
      void setControllerCommand(ControllerCommand controllerCommand)
      This method sets the controller command that was used to execute the business logic for the create guest service request.
      void setException(java.lang.Exception exception)
      This method sets the exception that resulted when executing the business logic.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Constructor Detail

      • AcknowledgePersonCreateGuestCmdImpl

        public AcknowledgePersonCreateGuestCmdImpl()
        Creates an instance of the Acknowledge Person command for the Create Guest action.
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method always returns that the command is ready to execute.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Specified by:
        isReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Returns:
        Always true.
      • setControllerCommand

        public void setControllerCommand(ControllerCommand controllerCommand)
        This method sets the controller command that was used to execute the business logic for the create guest service request.
        Specified by:
        setControllerCommand in interface MessageMappingResponseCmd
        Parameters:
        controllerCommand - The controller command implementation that created the guest user.
      • setException

        public void setException(java.lang.Exception exception)
        This method sets the exception that resulted when executing the business logic.
        Specified by:
        setException in interface MessageMappingResponseCmd
        Parameters:
        exception - The exception that occurred.
      • reset

        public void reset()
        Resets the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class com.ibm.websphere.command.CacheableCommandImpl
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method uses the command context of the controller command to build an Acknowledge Person response with just the credential information populated. In the User Data of the credential information will be the identity Id and signature of the session for the guest user. This will only be performed if the exception has not been set.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception - There is a problem populating the response.