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

Class BusinessObjectMediatorFactory

  • java.lang.Object
    • com.ibm.commerce.foundation.server.services.dataaccess.bom.BusinessObjectMediatorFactory


  • public class BusinessObjectMediatorFactory
    extends java.lang.Object
    The factory creates the mediators for the physical to logical and logical to physical transformations. The mediators will be configured in the wc-business-object-mediator.xml mediator configuration file and loaded by the foundation.
    • Constructor Detail

      • BusinessObjectMediatorFactory

        public BusinessObjectMediatorFactory()
    • Method Detail

      • getInstance

        public static BusinessObjectMediatorFactory getInstance(java.lang.String astrComponentId)
                                                         throws java.lang.Exception
        Get an instance of the BusinessObjectManager for the component
        Parameters:
        astrComponentId - The component Id
        Returns:
        The instance of BusinessObjectManager for the component
        Throws:
        java.lang.Exception
      • getComponentId

        public java.lang.String getComponentId()
        Returns:
        The component Id
      • getReadBusinessObjectMediator

        public ReadBusinessObjectMediator getReadBusinessObjectMediator(java.lang.Object aPhysicalEntity)
                                                                 throws java.lang.Exception
        Gets the mediator for reading the physical entity
        Parameters:
        aPhysicalEntity - The physical entity to be transformed
        Returns:
        The configured mediator
        Throws:
        java.lang.Exception
      • getBusinessObjectMediator

        public BusinessObjectMediator getBusinessObjectMediator(java.lang.Object object,
                                                                java.lang.Class mediatorType)
                                                         throws AbstractApplicationException
        This method returns the business object mediator for the given object and mediator class.
        Parameters:
        object - The object to return a mediator for.
        mediatorType - The type of mediator to return.
        Returns:
        The mediator implementation for the specified mediator type and object. If no mediator is found, null is return.
        Throws:
        AbstractApplicationException - A problem instantiating a mediator.
      • getChangeBusinessObjectMediator

        public ChangeBusinessObjectMediator getChangeBusinessObjectMediator(java.lang.Object aNoun)
                                                                     throws java.lang.Exception
        Get the mediator for the noun
        Parameters:
        aNoun - The noun for which the mediator is required
        Returns:
        The configured mediator
        Throws:
        java.lang.Exception
      • getChangeBusinessObjectPartMediator

        public ChangeBusinessObjectPartMediator getChangeBusinessObjectPartMediator(java.lang.Object aNoun,
                                                                                    java.lang.Object aNounPart)
                                                                             throws java.lang.Exception
        Gets the mediator for the noun part
        Parameters:
        aNoun - The logical noun
        aNounPart - The logical noun part contained in the noun
        Returns:
        The mediator for the noun part
        Throws:
        java.lang.Exception
      • getMediatorsConfigurations

        public java.util.List getMediatorsConfigurations()
        Return a list of configuration objects for mediators. Mediators are configured in the wc-business-object-mediator.xml configuration file.
        Returns:
        list of configuration objects of type BusinessObjectMediatorConfig.