com.ibm.tivoli.maximo.intservice

Class WebMethodService

  • java.lang.Object
    • com.ibm.tivoli.maximo.intservice.WebMethodService


  • public class WebMethodService
    extends java.lang.Object
    EJB for invoking action services.

    • Constructor Summary

      Constructors 
      Constructor and Description
      WebMethodService() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte[] action(byte[] actionData, java.lang.String maxServiceName) 
      void freeDBConnection(ConnectionKey conKey) 
      protected java.lang.String getBidiFormat(java.lang.String maxServiceName) 
      java.sql.Connection getDBConnection(ConnectionKey conKey) 
      byte[] maxAPIKeySecureAction(java.lang.String apikey, byte[] actionData, java.lang.String maxServiceName) 
      byte[] maxSecureAction(java.lang.String loginid, java.lang.String password, byte[] actionData, java.lang.String maxServiceName) 
      byte[] secureAction(byte[] actionData, java.lang.String maxServiceName, java.security.Principal principal)
      Gateway method to MAXIMO.
      protected byte[] transformFromMaximoBidiFormatTo(byte[] responseData, java.lang.String bidiFormat) 
      protected org.jdom2.Document transformToMaximoBidiFormatFrom(org.jdom2.Document doc, java.lang.String bidiFormat) 
      byte[] wsAction(byte[] actionData, java.lang.String wsName) 
      byte[] wsMaxAPIKeySecureAction(java.lang.String apikey, byte[] actionData, java.lang.String wsName) 
      byte[] wsMaxSecureAction(java.lang.String loginid, java.lang.String password, byte[] actionData, java.lang.String wsName) 
      byte[] wsSecureAction(byte[] actionData, java.lang.String wsName, java.security.Principal principal) 
      • Methods inherited from class java.lang.Object

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

      • WebMethodService

        public WebMethodService()
    • Method Detail

      • action

        public byte[] action(byte[] actionData,
                             java.lang.String maxServiceName)
                      throws MXException
        Throws:
        MXException
      • wsAction

        public byte[] wsAction(byte[] actionData,
                               java.lang.String wsName)
                        throws MXException
        Throws:
        MXException
      • maxSecureAction

        public byte[] maxSecureAction(java.lang.String loginid,
                                      java.lang.String password,
                                      byte[] actionData,
                                      java.lang.String maxServiceName)
                               throws MXException
        Throws:
        MXException
      • maxAPIKeySecureAction

        public byte[] maxAPIKeySecureAction(java.lang.String apikey,
                                            byte[] actionData,
                                            java.lang.String maxServiceName)
                                     throws MXException
        Throws:
        MXException
      • wsMaxAPIKeySecureAction

        public byte[] wsMaxAPIKeySecureAction(java.lang.String apikey,
                                              byte[] actionData,
                                              java.lang.String wsName)
                                       throws MXException
        Throws:
        MXException
      • wsMaxSecureAction

        public byte[] wsMaxSecureAction(java.lang.String loginid,
                                        java.lang.String password,
                                        byte[] actionData,
                                        java.lang.String wsName)
                                 throws MXException
        Throws:
        MXException
      • secureAction

        public byte[] secureAction(byte[] actionData,
                                   java.lang.String maxServiceName,
                                   java.security.Principal principal)
                            throws MXException
        Gateway method to MAXIMO. Processes the data for validity and writes the data to the Queue - thus guarenteeing delivery. Will reject the data if the data interface is disabled in MAXIMO.
        Returns:
        String The response code form MAXIMO.
        Throws:
        MXException
      • wsSecureAction

        public byte[] wsSecureAction(byte[] actionData,
                                     java.lang.String wsName,
                                     java.security.Principal principal)
                              throws MXException
        Throws:
        MXException
      • getBidiFormat

        protected java.lang.String getBidiFormat(java.lang.String maxServiceName)
      • transformToMaximoBidiFormatFrom

        protected org.jdom2.Document transformToMaximoBidiFormatFrom(org.jdom2.Document doc,
                                                                     java.lang.String bidiFormat)
                                                              throws MXException,
                                                                     java.io.UnsupportedEncodingException
        Throws:
        MXException
        java.io.UnsupportedEncodingException
      • transformFromMaximoBidiFormatTo

        protected byte[] transformFromMaximoBidiFormatTo(byte[] responseData,
                                                         java.lang.String bidiFormat)
                                                  throws MXException,
                                                         java.io.UnsupportedEncodingException
        Throws:
        MXException
        java.io.UnsupportedEncodingException
      • getDBConnection

        public java.sql.Connection getDBConnection(ConnectionKey conKey)
      • freeDBConnection

        public void freeDBConnection(ConnectionKey conKey)