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

Class ChangePageBasePartMediator

    • Field Detail

      • COPYRIGHT

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

      • ChangePageBasePartMediator

        public ChangePageBasePartMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as Page creation is done by the ChangePageMediator
        Parameters:
        aNoun - The logical PageType SDO business object.
        aNounPart - The logical PageType 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 physical SDO object.
        Parameters:
        aNoun - The logical PageType SDO business object to update.
        aNounPart - The logical PageType 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 performs no actions as Page deletion is done by the ChangePageMediator
        Parameters:
        aNoun - The logical PageType SDO business object.
        aNounPart - The logical PageType 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 aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method performs no checking as the validation is done by the Change Page mediator.
        Parameters:
        aNoun - The logical PageType SDO business object.
        aNounPart - The logical PageType SDO business object.
        Returns:
        This method returns null.
        Throws:
        DataMediatorException - exception could be thrown if any error occurs
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method checks if the logical Page noun can be updated. If the noun cannot be updated, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Parameters:
        aNoun - The logical PageType SDO business object to validate.
        aNounPart - The logical PageType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        DataMediatorException - exception could be thrown if any error occurs
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method performs no checking as the validation is done by the Change Page mediator.
        Parameters:
        aNoun - The logical PageType SDO business object.
        aNounPart - The logical PageType SDO business object.
        Returns:
        This method returns null.
        Throws:
        DataMediatorException - exception could be thrown if any error occurs
      • 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 PageType 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