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

Class ChangeCatalogFilterDescriptionMediator

    • Constructor Detail

      • ChangeCatalogFilterDescriptionMediator

        public ChangeCatalogFilterDescriptionMediator()
    • 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
        Parameters:
        aNoun - (CatalogFilterType) The logical noun that contains the noun part
        aNounPart - (DescriptionType) The noun part for which the corresponding physical entities needs to be created
        Throws:
        AbstractApplicationException - Error during create
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        Deletes the logical noun part. The delete action on the logical noun part is copied to the physical implementation. Deletion of logical noun part may result in update of physical entity in the form of mark for delete or may result in an actual delete from physical data store
        Parameters:
        aNoun - (CatalogFilterType) The logical noun having the noun part to be deleted
        aNounPart - (DescriptionType) The logical noun part that needs to be deleted
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
        Find the catalog description physical entity in the data graph corresponding to the logical object
        Parameters:
        aNoun - The logical noun
        aNounPart - The logical noun part
        Returns:
        The physical entity, null if not found
        See Also:
        ChangeBusinessObjectPartMediator.findPhysicalEntity(java.lang.Object, java.lang.Object)
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        Get the xpath for this noun part mediator. For description mediator the path will be "/Description"
        Returns:
        an array of NounPart part XPath
        See Also:
        ChangeBusinessObjectPartMediator.getNounPartXPaths()
      • update

        public void update(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        Updates the physical entity corresponding to the logical noun part
        Parameters:
        aNoun - (CatalogFilterType) The logical noun that contains the noun part
        aNounPart - (DescriptionType) The noun part for which the corresponding physical entities needs to be updated
        Throws:
        AbstractApplicationException - Error during update
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
        Checks if the object to be changed 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.validateChange(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)
      • 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)