com.ibm.commerce.contract.catalogfilter.commands

Class CheckCatalogFilterAssignmentCmdImpl

  • java.lang.Object
    • CacheableCommandImpl
      • com.ibm.commerce.contract.catalogfilter.commands.CheckCatalogFilterAssignmentCmdImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCatalogFilterId()
      This method returns the identifier of the catalog filter to be checked.
      java.util.HashMap getRelatedObjects()
      This method returns the related object that is using the given catgalog filter.
      boolean isReadyToCallExecute()
      This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command.
      void performExecute()
      This method executes the business logic of this command implementation.
      void reset()
      This method resets the command fields.
      void setCatalogFilterId(java.lang.String catalogFilterId)
      This method sets the identifier of the catalog filter to be checked.
      void validateParameters()
      This method extracts and validates the input parameters of this command implementation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CheckCatalogFilterAssignmentCmdImpl

        public CheckCatalogFilterAssignmentCmdImpl()
    • Method Detail

      • getCatalogFilterId

        public java.lang.String getCatalogFilterId()
        This method returns the identifier of the catalog filter to be checked.
        Returns:
        String
      • getRelatedObjects

        public java.util.HashMap getRelatedObjects()
        This method returns the related object that is using the given catgalog filter.
        Specified by:
        getRelatedObjects in interface CheckCatalogFilterAssignmentCmd
        Returns:
        HashMap
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Returns:
        A boolean that is true if the command is ready to execute and false otherwise.
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method executes the business logic of this command implementation.
        Throws:
        java.lang.Exception
      • reset

        public void reset()

        This method resets the command fields.

        After this method is invoked, and proper attributes are set, the command can be executed again.

      • setCatalogFilterId

        public void setCatalogFilterId(java.lang.String catalogFilterId)
        This method sets the identifier of the catalog filter to be checked.
        Specified by:
        setCatalogFilterId in interface CheckCatalogFilterAssignmentCmd
        Parameters:
        catalogFilterId -
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        This method extracts and validates the input parameters of this command implementation.
        Throws:
        com.ibm.commerce.exception.ECException - This exception is thrown in case of failures.