Class ProcessPersonCreateGuestCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ProcessPersonCreateGuestCmd, Protectable,,,,,,

    public class ProcessPersonCreateGuestCmdImpl
    extends ControllerCommandImpl
    implements ProcessPersonCreateGuestCmd
    This command is an instance of the Create Guest action of the Process Person service. This command leverages the foundation to create a new guest user and session to associate with the guest user. The guest user and session will be permanent and can be used for subsequent service requests if required.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessPersonCreateGuestCmdImpl

        public ProcessPersonCreateGuestCmdImpl()
        Creates an instance of ProcessPersonCreateGuestCmd.
    • Method Detail

      • isGeneric

        public boolean isGeneric()
        This method is called by the foundation to determine whether the generic user can execute this command. This method will always return false because if the generic user is executing the command, the foundation should create a new guest user.
        Specified by:
        isGeneric in interface ControllerCommand
        isGeneric in class ControllerCommandImpl
        Always false will be returned for force the foundation to create a guest user when the command executes.
      • performExecute

        public void performExecute()
                            throws ECException
        This method validates that the current user executing the command is a guest user. The foundation should ensure that the current user executing the command is a guest user but if not, this method will create a guest user and create a new session for the created guest user.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECException - There is a problem creating the guest user.
      • getGuestUser

        public UserAccessBean getGuestUser()
        This method returns the UserAccessBean associated with the guest user that is created.
        Specified by:
        getGuestUser in interface ProcessPersonCreateGuestCmd
        The user access bean of the created guest user.
      • setRequestProperties

        public void setRequestProperties(TypedProperty hshReqParameters)
                                  throws ECException
        This method sets the request properties. migrateGuestUser in the request parameters specifies whether guest user migration is needed; they are used when the current user is already guest and when this guest is to be migrated to be a new guest.
        Specified by:
        setRequestProperties in interface ControllerCommand
        setRequestProperties in class ControllerCommandImpl
        hshReqParameters - The request parameters.
        ECException - if an exception takes place.