com.ibm.tivoli.maximo.interaction.app.createint

Class IntGenerator

    • Field Detail

      • optimizedRequest

        public WSIO optimizedRequest
      • optimizedResponse

        public WSIO optimizedResponse
      • INTERACTIONLOGGER

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

      • IntGenerator

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add new IntGenerator. Whole UI is based on one Mbo as it will be used to fill multiple levels in wizard.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Overwitten for IntGenerator MBO.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • parseWSDL

        public void parseWSDL()
                       throws MXException,
                              java.rmi.RemoteException
        Parse WSDL to show all services ports and operations of WSDL.
        Throws:
        MXException
        java.rmi.RemoteException
      • setPortAndOperation

        public boolean setPortAndOperation()
                                    throws MXException,
                                           java.rmi.RemoteException
        Set selected service, port and operation to the top level Mbo. It will be called every time user change something on Step 1.
        Specified by:
        setPortAndOperation in interface IntGeneratorRemote
        Returns:
        indicator if parsing need to be regenarated
        Throws:
        MXException
        java.rmi.RemoteException
      • viewSchema

        public void viewSchema()
                        throws MXException,
                               java.rmi.RemoteException
        Get all schema information for selected service, port and operation. Fill relation tree for non-optimized data
        Specified by:
        viewSchema in interface IntGeneratorRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • viewOptimizedSchemaRequest

        public void viewOptimizedSchemaRequest(boolean fill)
                                        throws MXException,
                                               java.rmi.RemoteException
        Optimize schema request.
        Specified by:
        viewOptimizedSchemaRequest in interface IntGeneratorRemote
        Parameters:
        fill - is UI optimized request tree need to be filled
        Throws:
        MXException
        java.rmi.RemoteException
      • viewOptimizedSchemaResponse

        public void viewOptimizedSchemaResponse(boolean fill)
                                         throws MXException,
                                                java.rmi.RemoteException
        Optimize schema response.
        Specified by:
        viewOptimizedSchemaResponse in interface IntGeneratorRemote
        Parameters:
        fill - is UI optimized response tree need to be filled
        Throws:
        MXException
        java.rmi.RemoteException
      • fillObjStrUi

        public void fillObjStrUi(boolean isReq)
                          throws MXException,
                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • processnode

        public void processnode(WSIOTreeSetRemote treeSet,
                                java.util.LinkedHashMap removeMap,
                                boolean isRequest)
                         throws MXException,
                                java.rmi.RemoteException
        Process Individual note. Will be called is not need to be deleted or undeleted.
        Specified by:
        processnode in interface IntGeneratorRemote
        Parameters:
        treeSet - WSIO tree set
        removeMap - Map of id's which need to be deleted
        isRequest - request/response identifier.
        Throws:
        MXException
        java.rmi.RemoteException
      • validateMappings

        public java.lang.String validateMappings(boolean isResponse)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Validate all mappings.
        Specified by:
        validateMappings in interface IntGeneratorRemote
        Parameters:
        isResponse - request/Response indicator
        Throws:
        MXException
        java.rmi.RemoteException
      • createIntegrationArtifacts

        public java.lang.String createIntegrationArtifacts(java.lang.String label,
                                                           byte[] presentataion)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Create all intgration artifcts
        Specified by:
        createIntegrationArtifacts in interface IntGeneratorRemote
        Parameters:
        label - Last step label will be used for logging
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • addRemoveID

        public java.util.LinkedHashMap addRemoveID(java.lang.String id)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Add id of removed node to the map
        Specified by:
        addRemoveID in interface IntGeneratorRemote
        Parameters:
        id - id of the node to remove
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • undoRemove

        public java.util.LinkedHashMap undoRemove(java.lang.String id)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Undo remove of the node by id
        Specified by:
        undoRemove in interface IntGeneratorRemote
        Parameters:
        id - id of the node to remove
        Returns:
        Removed map
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • undoAllRemove

        public java.util.LinkedHashMap undoAllRemove()
                                              throws MXException,
                                                     java.rmi.RemoteException
        Undo remove of all nodes
        Specified by:
        undoAllRemove in interface IntGeneratorRemote
        Returns:
        Removed map
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • undoRemoveLast

        public java.util.LinkedHashMap undoRemoveLast()
                                               throws MXException,
                                                      java.rmi.RemoteException
        Undo remove of the last node
        Specified by:
        undoRemoveLast in interface IntGeneratorRemote
        Returns:
        Removed map
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getRemoveMap

        public java.util.LinkedHashMap getRemoveMap()
                                             throws MXException,
                                                    java.rmi.RemoteException
        Get Map with all removed id's
        Returns:
        remove map
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getOBPInfo

        public OBPInfo getOBPInfo()
                           throws MXException,
                                  java.rmi.RemoteException
        Get OBP Info object
        Returns:
        OBP Info object
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getOBPGenerator

        public OBPGenerator getOBPGenerator()
                                     throws MXException,
                                            java.rmi.RemoteException
        Get OBP Generator object
        Returns:
        OBP Generator object
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getParentTbName

        public java.lang.String getParentTbName(java.lang.String hierPath)
                                         throws MXException,
                                                java.rmi.RemoteException
        Get parent table name
        Parameters:
        hierPath - hierarachy path
        Returns:
        name of the parent table
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • checkMappingObject

        public void checkMappingObject(java.lang.String colsRelation)
                                throws MXException,
                                       java.rmi.RemoteException
        Will check mapping object when it changed param colsRelation relationship from mapping to attributes
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • setWSIO

        public void setWSIO(WSIO in)
                     throws MXException,
                            java.rmi.RemoteException
        Sets WSIO object. param WSIO object
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • setWSIOAttribute

        public void setWSIOAttribute(WSIOAttribute inAttr)
                              throws MXException,
                                     java.rmi.RemoteException
        Sets WSIOAttribute object. param WSIOAttribute object
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getWSIO

        public WSIO getWSIO()
                     throws MXException,
                            java.rmi.RemoteException
        Return WSIO object.
        Returns:
        WSIO object
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getWSIOAttribute

        public WSIOAttribute getWSIOAttribute()
                                       throws MXException,
                                              java.rmi.RemoteException
        Return WSIOAttribute object.
        Returns:
        WSIOAttribute object
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • fillAttributes

        public MboSetRemote fillAttributes(MboRemote parent,
                                           MboRemote thisMbo,
                                           boolean removeExisting)
                                    throws MXException,
                                           java.rmi.RemoteException
        Return map of all attributes. This will be used by the UI lookup to show all attributes.
        Specified by:
        fillAttributes in interface IntGeneratorRemote
        Parameters:
        parent - Set with all attributes.
        thisMbo - Target Mbo to lookup attributes.
        removeExisting - remove exissting attributes.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • getExistingAttributes

        public java.util.Map getExistingAttributes(MboSetRemote set,
                                                   MboRemote thisMbo)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Return map of all attributes existsing in a given set. They will be xcluded form list set.
        Parameters:
        set - Set with all attributes.
        thisMbo - Target Mbo to lookup attributes.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • logStep

        public void logStep(int step,
                            java.lang.String label)
                     throws MXException,
                            java.rmi.RemoteException
        Log Wizard Steps.
        Specified by:
        logStep in interface IntGeneratorRemote
        Parameters:
        step - step level.
        label - Step Label
        Throws:
        MXException
        java.rmi.RemoteException
      • logWSIOStep

        public void logWSIOStep(boolean isReq,
                                java.lang.String label)
                         throws MXException,
                                java.rmi.RemoteException
        Log WSIO Steps.
        Specified by:
        logWSIOStep in interface IntGeneratorRemote
        Parameters:
        step - step level.
        label - Step Label
        Throws:
        MXException
        java.rmi.RemoteException
      • logMappingStep

        public void logMappingStep(boolean isReq,
                                   java.lang.String label,
                                   java.lang.String wsioObjectName,
                                   java.lang.String objectName,
                                   java.lang.String objectRelationName,
                                   java.lang.String attributeName,
                                   java.lang.String locationPath,
                                   java.lang.String value)
                            throws MXException,
                                   java.rmi.RemoteException
        Log Mapping Steps.
        Specified by:
        logMappingStep in interface IntGeneratorRemote
        Parameters:
        isReq - request/response identifier.
        label - Step Label
        wsioObjectName - WSIO Object Name Label
        objectName - Object name Label
        objectRelationName - Object relation Label
        attributeName - Attribute Name Label
        locationPath - Location Path Label
        value - Value Label
        Throws:
        MXException
        java.rmi.RemoteException
      • logUISelectionStep

        public void logUISelectionStep(boolean isReq,
                                       java.lang.String label)
                                throws MXException,
                                       java.rmi.RemoteException
        Log UI generation Steps.
        Specified by:
        logUISelectionStep in interface IntGeneratorRemote
        Parameters:
        isReq - request/response identifier.
        label - Step Label
        Throws:
        MXException
        java.rmi.RemoteException