com.ibm.tivoli.maximo.interaction.process

Class InteractionMigrator

  • java.lang.Object
    • com.ibm.tivoli.maximo.interaction.process.InteractionMigrator


  • public class InteractionMigrator
    extends java.lang.Object
    Interaction Migrator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List breakObjectWhere(java.lang.String where, int maxLength, java.util.List allWheres)
      Break object and maxdomain where clause based on maximim sice of where clause field
      java.util.List breakRelationWhere(java.lang.String where, int maxLength, java.util.List allWheres)
      Break relation where clause based on maximim sice of where clause field
      java.util.Map buildChildrenWhereClause()
      Build map of where clauses for lower lavel objects
      java.util.List buildCombineWhere(java.util.List domainWhere, java.util.List objectWhere, java.util.List relationWhere, java.lang.String intObjectWhere)
      Build combine list of all where clauses for object package
      java.util.Map buildIntDMWhereClause()
      Build where clases to set to DM packge
      java.util.List buildObjectDMWhereList()
      Build where clases to set to DM packge
      void migrate(java.lang.String groupName, java.lang.String defName, java.util.Map whereMap)
      Create and dictibute migration package
      void migrateInteraction()
      Migrate interaction
      void setDMWhereClause(MboRemote packageDef, java.lang.String groupName, java.lang.String defName, java.util.Map whereMap)
      Set Deployment Manager where clause in the table
      • Methods inherited from class java.lang.Object

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

      • INTERACTION_OBJECT_GROUP

        public static final java.lang.String INTERACTION_OBJECT_GROUP
        Interaction Object Group
        See Also:
        Constant Field Values
      • INTERACTION_INT_GROUP

        public static final java.lang.String INTERACTION_INT_GROUP
        Interaction Integration Group
        See Also:
        Constant Field Values
      • INTERACTION_OBJECT_PKGDEF

        public static final java.lang.String INTERACTION_OBJECT_PKGDEF
        Interaction Object Package Definition
        See Also:
        Constant Field Values
      • INTERACTION_INT_PKGDEF

        public static final java.lang.String INTERACTION_INT_PKGDEF
        Interaction Integration Package Definition
        See Also:
        Constant Field Values
      • INTERACTIONLOGGER

        public static final MXLogger INTERACTIONLOGGER
        Interaction logger for logging messages related to Interaction.
    • Constructor Detail

      • InteractionMigrator

        public InteractionMigrator(java.lang.String name,
                                   MXTransaction trans,
                                   UserInfo userInfo)
                            throws MXException,
                                   java.rmi.RemoteException
        Construct migrator
        Parameters:
        name - - Interaction Name
        trans - - Maximo transaction
        userInfo - - User Info
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • migrateInteraction

        public void migrateInteraction()
                                throws MXException,
                                       java.rmi.RemoteException
        Migrate interaction
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • migrate

        public void migrate(java.lang.String groupName,
                            java.lang.String defName,
                            java.util.Map whereMap)
                     throws MXException,
                            java.rmi.RemoteException
        Create and dictibute migration package
        Parameters:
        groupName - DM group name
        defName - DM package definition name
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • buildObjectDMWhereList

        public java.util.List buildObjectDMWhereList()
                                              throws MXException,
                                                     java.rmi.RemoteException
        Build where clases to set to DM packge
        Returns:
        map of where clases
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • buildIntDMWhereClause

        public java.util.Map buildIntDMWhereClause()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Build where clases to set to DM packge
        Returns:
        map of where clases
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • buildChildrenWhereClause

        public java.util.Map buildChildrenWhereClause()
                                               throws MXException,
                                                      java.rmi.RemoteException
        Build map of where clauses for lower lavel objects
        Returns:
        map of where clases
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • setDMWhereClause

        public void setDMWhereClause(MboRemote packageDef,
                                     java.lang.String groupName,
                                     java.lang.String defName,
                                     java.util.Map whereMap)
                              throws MXException,
                                     java.rmi.RemoteException
        Set Deployment Manager where clause in the table
        Parameters:
        packageDef - package definition MboSet
        groupName - DM group name
        defName - DM package definition name
        whereMap - map of all where clases to set
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • breakRelationWhere

        public java.util.List breakRelationWhere(java.lang.String where,
                                                 int maxLength,
                                                 java.util.List allWheres)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Break relation where clause based on maximim sice of where clause field
        Parameters:
        where - original where clause
        maxLength - maximum length allowed for where clause
        allWheres - list of where clauses
        Returns:
        list of where clases
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • breakObjectWhere

        public java.util.List breakObjectWhere(java.lang.String where,
                                               int maxLength,
                                               java.util.List allWheres)
                                        throws MXException,
                                               java.rmi.RemoteException
        Break object and maxdomain where clause based on maximim sice of where clause field
        Parameters:
        where - original where clause
        maxLength - maximum length allowed for where clause
        allWheres - list of where clauses
        Returns:
        list of where clases
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • buildCombineWhere

        public java.util.List buildCombineWhere(java.util.List domainWhere,
                                                java.util.List objectWhere,
                                                java.util.List relationWhere,
                                                java.lang.String intObjectWhere)
                                         throws MXException,
                                                java.rmi.RemoteException
        Build combine list of all where clauses for object package
        Parameters:
        domainWhere - list of where clauses for maxdomain
        objectWhere - list of where clauses for maxobjectcfg
        relationWhere - list of where clauses for maxrelationship
        intObjectWhere - where clause for maxintobject
        Returns:
        list of where clases
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception