com.ibm.tivoli.maximo.fdmbo

Class MergeResourceProcessor

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


  • public class MergeResourceProcessor
    extends java.lang.Object
    Merge resource processer. Merges records retrieved from a json resource into a target Mboset.
    • Constructor Detail

      • MergeResourceProcessor

        public MergeResourceProcessor(java.lang.String federatedResourcesStr,
                                      MboSetRemote targetSet,
                                      MboRemote fdOwner)
                               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

      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • supportsUpdate

        public boolean supportsUpdate()
      • loadFederatedMbos

        public void loadFederatedMbos(MboRemote ownerMbo)
                               throws MXException,
                                      java.rmi.RemoteException
        Loads the federated mbos into this mboset.
        Throws:
        MXException
        java.rmi.RemoteException
      • isFederatedMbosLoaded

        public boolean isFederatedMbosLoaded()
        Returns:
        Returns true if federated mbos have been loaded.
      • setFederatedMbosLoaded

        public void setFederatedMbosLoaded(boolean federatedMbosLoaded)
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String expression)
                    throws MXException,
                           java.rmi.RemoteException
        Qbe is set on the target set, translate the qbe onto the source set.
        Throws:
        MXException
        java.rmi.RemoteException
      • reset

        public void reset()
                   throws MXException,
                          java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException