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

Class ChangePageSEOURLPartMediator

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangePageSEOURLPartMediator

        public ChangePageSEOURLPartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method populates the physical data container with the SEO URL physical SDO to create. physical SDO object.
        Parameters:
        aNoun - The logical PageType SDO business object.
        aNounPart - The logical SEOURLType SDO business object.
        Throws:
        AbstractApplicationException - exception could be thrown if any error occurs
      • update

        public void update(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method updates the physical data container with the modified SEO URL physical SDO object.
        Parameters:
        aNoun - The logical PageType SDO business object to update.
        aNounPart - The logical SEOURLType SDO business object to update.
        Throws:
        AbstractApplicationException - exception could be thrown if any error occurs
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method removes the SEO URL physical SDO from the physical data container.
        Parameters:
        aNoun - The logical PageType SDO business object.
        aNounPart - The logical SEOURLType SDO business object.
        Throws:
        AbstractApplicationException - exception could be thrown if any error occurs
      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the XPath for the main Page noun part.
        Returns:
        The XPath for the main Page noun part.
      • validateCreate

        public java.util.List validateCreate(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws DataMediatorException
        This method checks if the SEOURL noun part can be created. If the noun part cannot be created, the appropriate error exception is added to the list of exceptions and returned to the caller.
        Parameters:
        noun - The logical PageType SDO. Cannot be null.
        nounPart - The logical SEOURLType SDO. Cannot be null.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty. Cannot be null.
        Throws:
        DataMediatorException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws DataMediatorException
        This method checks if the SEOURL noun part can be deleted. If the noun part cannot be deleted, the appropriate error exception is added to the list of exceptions and returned to the caller.
        Parameters:
        noun - The logical PageType SDO.Cannot be null.
        nounPart - The logical SEOURLType SDO.Cannot be null.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.Cannot be null.
        Throws:
        DataMediatorException
      • validateChange

        public java.util.List validateChange(java.lang.Object noun,
                                             java.lang.Object nounPart)
                                      throws DataMediatorException
        This method checks if the SEO URL noun part can be changed. If the noun part cannot be changed, the appropriate error exception is added to the list of exceptions and returned to the caller.
        Parameters:
        noun - The logical PageType SDO to validate. Cannot be null.
        nounPart - The logical SEOURLType SDO. Cannot be null.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty. Cannot be null.
        Throws:
        DataMediatorException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
                                            throws DataMediatorException
        This method returns the physical SDO from the PhysicalDataContainer that was created in the ChangePageMediator mediator.
        Parameters:
        aNoun - The logical PageType SDO.
        aNounPart - The logical SEOURLType SDO.
        Returns:
        This method returns the PhysicalPage object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException - exception could be thrown if any error occurs