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

Class ChangeLayoutPageLocationPartMediator

    • Constructor Detail

      • ChangeLayoutPageLocationPartMediator

        public ChangeLayoutPageLocationPartMediator()
    • 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 Page Location physical SDO to create.
        Parameters:
        aNoun - The logical LayoutType SDO to create.Cannot be null.
        aNounPart - The logical PageLocationType SDO to create.Cannot be null.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method removes the Page Location physical SDO from the physical data container.
        Parameters:
        aNoun - The logical LayoutType SDO. Cannot be null.
        aNounPart - The logical PageLocationType SDO. Cannot be null.
        Throws:
        AbstractApplicationException
      • update

        public void update(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method updates the physical data container with the modified the Page Location physical SDO.
        Parameters:
        aNoun - The logical LayoutType SDO. Cannot be null.
        aNounPart - The logical PageLocationType SDO. Cannot be null.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
        This method returns the physical SDO from the PhysicalDataContainer that matches the Page Location noun part.
        Parameters:
        aNoun - The logical LayoutType SDO. Cannot be null.
        aNounPart - The logical PageLocationType SDO. Cannot be null.
        Returns:
        This method returns the physical PageLayoutLocation object if it is found, otherwise it returns null.
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method checks if the Page Location 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:
        aNoun - The logical LayoutType SDO. Cannot be null.
        aNounPart - The logical PageLocationType 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 aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method checks if the Page Location 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:
        aNoun - The logical LayoutType SDO to validate. Cannot be null.
        aNounPart - The logical PageLocationType 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 aNoun,
                                             java.lang.Object aNounPart)
                                      throws DataMediatorException
        This method checks if the Page Location 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:
        aNoun - The logical LayoutType SDO.Cannot be null.
        aNounPart - The logical PageLocationType 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
      • initialize

        public void initialize(java.util.Map aMapNounPart,
                               PhysicalDataContainer aParentPhysicalDataContainer)
                        throws java.lang.Exception
        Initializes the change part mediator, resolves the noun parts and initializes the physical data container. Also initializes each Page Location noun part with corresponding activity id from its physical entity.
        Specified by:
        initialize in interface ChangeBusinessObjectPartMediator
        Overrides:
        initialize in class AbstractChangeBusinessObjectPartMediatorImpl
        Parameters:
        aMapNounPart - The noun part details
        aParentPhysicalDataContainer - The parent container
        Throws:
        java.lang.Exception
        See Also:
        com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.ChangeBusinessObjectPartMediator#initialize(java.lang.Object, java.util.List, com.ibm.commerce.foundation.server.services.dataaccess.PhysicalDataContainer, java.lang.Object)