com.ibm.tivoli.maximo.fdmbo

Class ExternalResourceProcessor

  • java.lang.Object
    • com.ibm.tivoli.maximo.fdmbo.ExternalResourceProcessor


  • public class ExternalResourceProcessor
    extends java.lang.Object
    Merge resource processer. Merges records retrieved from a json resource into a target Mboset.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.json.java.JSONArtifact processResource()
      This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
      com.ibm.json.java.JSONArtifact processResource(int currentPage)
      This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
      com.ibm.json.java.JSONArtifact processResource(int pageSize, int currentPage)
      This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalResourceProcessor

        public ExternalResourceProcessor(java.lang.String resourceName,
                                         UserInfo userInfo)
                                  throws MXException,
                                         java.rmi.RemoteException
        Parse and separate the federated resources into a list, in its intended order.
        Parameters:
        federatedResourcesStr - The resource name and relationship pairs as defined in the application's presentation. The format of the string is ResourceName1~Relatioinship1, ResourceName2~Relationship2, ... The part "~Relationship" is optional but recommended. ResourceName is the name of the json resource of where the federated mbos come from Relationship is the name of the relationship from the main mbo (e.g. Asset) to the federated mboset (e.g. ArcGISMboSet).
        targetset - The mbo set into which the federated mbos are merged
        fdOwner - The owner mbo of the targetSet.
        Throws:
        MXException
        java.rmi.RemoteException
      • ExternalResourceProcessor

        public ExternalResourceProcessor(JSONResourceInfo resourceInfo,
                                         MboRemote owner)
                                  throws MXException,
                                         java.rmi.RemoteException
        Parse and separate the federated resources into a list, in its intended order.
        Parameters:
        federatedResourcesStr - The resource name and relationship pairs as defined in the application's presentation. The format of the string is ResourceName1~Relatioinship1, ResourceName2~Relationship2, ... The part "~Relationship" is optional but recommended. ResourceName is the name of the json resource of where the federated mbos come from Relationship is the name of the relationship from the main mbo (e.g. Asset) to the federated mboset (e.g. ArcGISMboSet).
        targetset - The mbo set into which the federated mbos are merged
        fdOwner - The owner mbo of the targetSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • processResource

        public com.ibm.json.java.JSONArtifact processResource()
                                                       throws MXException,
                                                              java.rmi.RemoteException
        This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
        Parameters:
        resourceInfo - The json resource's info object
        fdOwner - The owner mbo of the target mboset
        rootObject - The name of the json resource root object.
        fdRelation - Relationship from targetSet's owner (e.g. targetSet being ASsetSpec and its owner is Asset) to the federated mboset
        Returns:
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • processResource

        public com.ibm.json.java.JSONArtifact processResource(int currentPage)
                                                       throws MXException,
                                                              java.rmi.RemoteException
        This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
        Parameters:
        resourceInfo - The json resource's info object
        fdOwner - The owner mbo of the target mboset
        rootObject - The name of the json resource root object.
        fdRelation - Relationship from targetSet's owner (e.g. targetSet being ASsetSpec and its owner is Asset) to the federated mboset
        Returns:
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • processResource

        public com.ibm.json.java.JSONArtifact processResource(int pageSize,
                                                              int currentPage)
                                                       throws MXException,
                                                              java.rmi.RemoteException
        This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
        Parameters:
        resourceInfo - The json resource's info object
        fdOwner - The owner mbo of the target mboset
        rootObject - The name of the json resource root object.
        fdRelation - Relationship from targetSet's owner (e.g. targetSet being ASsetSpec and its owner is Asset) to the federated mboset
        Returns:
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception