com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator

Interface ChangeBusinessObjectMediator

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void applyChanges()
      Applies changes of the physical data continer to the persistent storage with the help of data service layer (DSL)
      void change(java.lang.Object aNoun)
      Updates the logical noun and the noun parts.
      void create(java.lang.Object aNoun)
      Creates the physical entity corresponding to the logical noun.
      void delete(java.lang.Object aNoun)
      Deletes the logical noun.
      java.lang.Object findPhysicalEntity(java.lang.Object aNoun)
      Finds the physical entity corresponding to the noun in the physical data container associated with this mediator.
      ChangeBusinessObjectPartMediator getChangeNounPartMediator(java.util.Map aMapNoun)
      The map of noun and noun parts.
      java.util.List getNouns()
      Gets the list of nouns associated with this mediator.
      PhysicalDataContainer getPhysicalDataContainer()
      Gets the physical data container associated with this mediator.
      java.lang.String getUpdateAccessProfile()
      This method returns the update access profile defined for a particular part mediator.
      void initialize(java.util.List aListNoun)
      Initializes the change mediator with the nouns submitted for the change request.
      void setUpdateAccessProfile(java.lang.String astrAccessProfile)
      This method set the update access profile which is defined in the wc-business-object-mediator.xml file
      java.util.List validateChange(java.lang.Object aNoun)
      Performs basic validation if the physical entity corresponding to the noun is already present in the physical data container that was initialized.
      java.util.List validateCreate(java.lang.Object aNoun)
      Performs basic validation if the physical entity corresponding to the noun is already present in the physical data container that was initialized.
      java.util.List validateDelete(java.lang.Object aNoun)
      Performs basic validation if the physical entity corresponding to the noun is already present in the physical data container that was initialized.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • getNouns

        java.util.List getNouns()
        Gets the list of nouns associated with this mediator.
        Returns:
        The list of nouns containing the noun parts that has change
      • initialize

        void initialize(java.util.List aListNoun)
                 throws java.lang.Exception
        Initializes the change mediator with the nouns submitted for the change request.
        Parameters:
        aListNoun - The list of nouns containing the noun parts that has change
        Throws:
        java.lang.Exception - Error while initializing
      • getPhysicalDataContainer

        PhysicalDataContainer getPhysicalDataContainer()
        Gets the physical data container associated with this mediator.
        Returns:
        The physical data container
      • validateCreate

        java.util.List validateCreate(java.lang.Object aNoun)
                               throws AbstractApplicationException
        Performs basic validation if the physical entity corresponding to the noun is already present in the physical data container that was initialized.
        Parameters:
        aNoun - The noun
        Returns:
        List of validation errors
        Throws:
        AbstractApplicationException
      • validateChange

        java.util.List validateChange(java.lang.Object aNoun)
                               throws AbstractApplicationException
        Performs basic validation if the physical entity corresponding to the noun is already present in the physical data container that was initialized.
        Parameters:
        aNoun - The noun
        Returns:
        List of validation errors
        Throws:
        AbstractApplicationException
      • validateDelete

        java.util.List validateDelete(java.lang.Object aNoun)
                               throws AbstractApplicationException
        Performs basic validation if the physical entity corresponding to the noun is already present in the physical data container that was initialized.
        Parameters:
        aNoun - The noun
        Returns:
        List of validation errors
        Throws:
        AbstractApplicationException
      • create

        void create(java.lang.Object aNoun)
             throws AbstractApplicationException
        Creates the physical entity corresponding to the logical noun.
        Parameters:
        aNoun - The logical business object for which the physical entity needs to be created
        Throws:
        AbstractApplicationException
      • delete

        void delete(java.lang.Object aNoun)
             throws AbstractApplicationException
        Deletes the logical noun. The delete action on the logical noun is copied to the physical implementation. Deletion of a logical noun may result in the update of a physical entity in the form of a mark for delete, or may result in an actual delete from the physical data store.
        Parameters:
        aNoun - The logical noun that should be deleted
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        java.lang.Object findPhysicalEntity(java.lang.Object aNoun)
                                     throws AbstractApplicationException
        Finds the physical entity corresponding to the noun in the physical data container associated with this mediator.
        Parameters:
        aNoun - The logical noun
        Returns:
        The physical entity, null if not found
        Throws:
        AbstractApplicationException
      • setUpdateAccessProfile

        void setUpdateAccessProfile(java.lang.String astrAccessProfile)
        This method set the update access profile which is defined in the wc-business-object-mediator.xml file
        Parameters:
        astrAccessProfile - The name of the aceess profile.
      • getUpdateAccessProfile

        java.lang.String getUpdateAccessProfile()
        This method returns the update access profile defined for a particular part mediator.
        Returns:
        The name of the access profile.