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

Class ChangePageMediator

    • Field Detail

      • COPYRIGHT

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

      • ChangePageMediator

        public ChangePageMediator()
    • Method Detail

      • create

        public void create(java.lang.Object aNoun)
                    throws AbstractApplicationException
        This method populates the physical data container with the physical SDO object to create. It sets all the Page data, including any provided user data, from the logical Page noun.
        Parameters:
        aNoun - The logical PageType SDO business object to create.
        Throws:
        AbstractApplicationException - exception could be thrown if any error occurs
      • delete

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

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

        public java.util.List validateCreate(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical Page noun can be created. If the noun cannot be created, 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.
        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
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun)
                                      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.
        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)
                                      throws DataMediatorException
        This method checks if the logical Page noun can be deleted. If the noun cannot be deleted, 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.
        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