psdi.webclient.system.controller

Interface DMTransform

  • All Known Implementing Classes:
    DMTransformImpl


    public interface DMTransform
    Interface used to perform data model transformations from an external data model type to a Maximo based data model. Implementations of this interface should be registered as a Maximo system property with the key in the format "mxe.int.transform.dmtype". "dmtype" should be replaced with the actual data model type. The value is the fully qualified class name that implements this interface. For example, the system property used for the Common Data Model is "mxe.int.transform.CDM=psdi.webclient.system.controller.DMTransformImpl".
    • Method Detail

      • transform

        java.lang.Object transform(WebClientSession session,
                                   java.lang.Object target)
        Performs a transformation of the target object. This transformation should take as its input information of a specific data model type. E.g. For the Common Data Model (CDM) data model type, the target object will be a List of Map objects, one for each resource. For other data model types, the target will most likely be a String, the format of which is defined by the data model type and should be communicated to anyone passing in data with that data model type.
        Parameters:
        session - A reference to the current web client session
        target - The object to be transformed
        Returns:
        The transformed object