com.ibm.commerce.catalog.facade.server.services.dataaccess.bom.mediator

Class ChangeCatalogGroupRuleMediator

    • Constructor Detail

      • ChangeCatalogGroupRuleMediator

        public ChangeCatalogGroupRuleMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        Creates the physical entities corresponding to the logical noun part and adds to the root physical entity. This operation is not supported for this mediator.
        Parameters:
        aNoun - (CatalogGroupType) The logical noun that contains the noun part
        aNounPart - (CatalogGroupIdentifierType) The noun part for which the corresponding physical entities needs to be created (CatalogGroup) The root physical entity which will hold the created physical entities for the noun part
        Throws:
        AbstractApplicationException
      • update

        public void update(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        Updates the logical noun part
        Parameters:
        aNoun - (CatalogGroupType) The logical noun that contains the noun part
        aNounPart - (RuleType) The noun part for which the corresponding physical entities needs to be updated (CatalogGroup) The root physical entity which will hold the updated physical entities for the noun part
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        Deletes the logical noun part
        Parameters:
        aNoun - The CatalogGroup noun
        aNounPart - The RuleType noun part
        Throws:
        AbstractApplicationException
        See Also:
        com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.ChangeBusinessObjectPartMediator#delete(java.lang.Object, java.lang.Object, java.lang.Object)
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
        Checks if the object to be created is present in the physical data container. If the entity is already present then a validation error will be added to the return list
        Parameters:
        aNoun - The noun
        aNounPart - The noun part
        Returns:
        List of validation errors
        See Also:
        ChangeBusinessObjectPartMediator.validateCreate(java.lang.Object, java.lang.Object)
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
        Performs the following validations:
        • Checks if the catalog group entry to be changed is present in the physical data container.
        • Checks if the catalog group entry found in the catalog context is a master catalog
        If any of the above validations failed, a validation error will be added to the return list.
        Parameters:
        aNoun - The noun
        aNounPart - The noun part
        Returns:
        List of validation errors
        See Also:
        ChangeBusinessObjectPartMediator.validateChange(java.lang.Object, java.lang.Object)
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
        Checks if the object to be removed is present in the physical data container. If the entity is not present then a validation error will be added to the return list
        Parameters:
        aNoun - The noun
        aNounPart - The noun part
        Returns:
        List of validation errors
        See Also:
        ChangeBusinessObjectPartMediator.validateDelete(java.lang.Object, java.lang.Object)