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

Class ChangeLayoutMediator

    • Constructor Detail

      • ChangeLayoutMediator

        public ChangeLayoutMediator()
    • 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 Layout data, including any provided user data, from the logical Layout noun.
        Parameters:
        aNoun - The logical LayoutType SDO business object to create.
        Throws:
        AbstractApplicationException
      • 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 LayoutType SDO business object to delete.
        Throws:
        AbstractApplicationException
      • 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 LayoutType SDO.
        Returns:
        This method returns the physical SDO object if it is found, otherwise it returns null.
        Throws:
        DataMediatorException
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical Layout 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 LayoutType 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
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical Layout 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 LayoutType 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
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun)
                                      throws DataMediatorException
        This method checks if the logical Layout 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 LayoutType 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