com.ibm.tivoli.maximo.fdmbo.map.app

Class JSONMapping

  • java.lang.Object
    • psdi.mbo.Mbo
      • com.ibm.tivoli.maximo.fdmbo.map.app.JSONMapping
    • Constructor Detail

      • JSONMapping

        public JSONMapping(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Constructor
        Parameters:
        ms - The JSONMapping MboSet.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
    • Method Detail

      • analyze

        public void analyze(byte[] jsonData)
                     throws MXException,
                            java.rmi.RemoteException
        Analyze sample JSON.
        Parameters:
        jsonData - JSON Data
        Throws:
        MXException
        java.rmi.RemoteException
      • getResourceInfo

        public JSONResourceInfo getResourceInfo()
        Get reference to ResourceInfo object.
        Returns:
        reference to ResourceInfo object
        Throws:
        MXException
        java.rmi.RemoteException
      • setResourceInfo

        public void setResourceInfo(JSONResourceInfo resInfo)
        Set resourceInfo object.
        Parameters:
        resInfo - Resource Info
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Called when this mbo is being deleted. This method deletes all the corresponding JSONMAPDETAIL entries associated with this object
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - the access modifier
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Called when this mbo is being deleted. This method deletes all the corresponding JSONMAPDETAIL entries associated with this object
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Parameters:
        accessModifier - the access modifier
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Over-rides the method in the super class. If the field need not be copied during copy() return true else return false. The following fields are not copied from the source Mbo to the target Mbo.
        • MAPNAME
        Overrides:
        skipCopyField in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates JSONMapping record and its related MBOs. The related mbos includes JSONMappingDetail
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created JSON Map.
        Throws:
        MXException
        java.rmi.RemoteException