com.ibm.tivoli.maximo.report.birt.servlet

Class ReportServletUtils

  • java.lang.Object
    • com.ibm.tivoli.maximo.report.birt.servlet.ReportServletUtils


  • public class ReportServletUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean authenticate(javax.servlet.http.HttpServletRequest request, java.lang.String mxToken, java.lang.String userId, java.lang.String tenantCode)
      Authenticate the request.
      static boolean authenticate(javax.servlet.http.HttpServletRequest request, java.lang.String mxToken, java.lang.String userId, java.lang.String tenantCode, boolean isDirectPrint)
      Authenticate the request.
      static java.lang.String[] convertSafeToOriginalValue(java.lang.String[] paramValues) 
      static void encodeForSecureAttachment(java.util.Vector attVec, java.util.Vector securedAttachFlags, WebClientSession clientSession, java.lang.String tenantCode) 
      static void encodeForSecureAttachment(java.util.Vector attVec, java.util.Vector securedAttachFlags, WebClientSession clientSession, java.lang.String tenantCode, javax.servlet.http.HttpServletRequest requ) 
      static java.lang.String getRequestParameterValue(javax.servlet.http.HttpServletRequest request, java.lang.String paramName) 
      static java.lang.String[] getRequestParameterValues(javax.servlet.http.HttpServletRequest request, java.lang.String paramName) 
      static java.lang.String[] getRequestParameterValues(javax.servlet.http.HttpServletRequest request, java.lang.String paramName, boolean convertToUft8) 
      static boolean isAuthenticatedSession(javax.servlet.http.HttpServletRequest request) 
      • Methods inherited from class java.lang.Object

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

      • ReportServletUtils

        public ReportServletUtils()
    • Method Detail

      • authenticate

        public static boolean authenticate(javax.servlet.http.HttpServletRequest request,
                                           java.lang.String mxToken,
                                           java.lang.String userId,
                                           java.lang.String tenantCode)
        Authenticate the request.
        Parameters:
        request - the http request
        mxToken - mxtoken
        userId - userid
        tenantCode - tenantCode
        Returns:
        boolean is authenticated.
      • authenticate

        public static boolean authenticate(javax.servlet.http.HttpServletRequest request,
                                           java.lang.String mxToken,
                                           java.lang.String userId,
                                           java.lang.String tenantCode,
                                           boolean isDirectPrint)
        Authenticate the request.
        Parameters:
        request - the http request
        mxToken - mxtoken
        userId - userid
        tenantCode - tenantCode
        isDirectPrint - is direct print
        Returns:
        boolean is authenticated.
      • isAuthenticatedSession

        public static boolean isAuthenticatedSession(javax.servlet.http.HttpServletRequest request)
      • encodeForSecureAttachment

        public static void encodeForSecureAttachment(java.util.Vector attVec,
                                                     java.util.Vector securedAttachFlags,
                                                     WebClientSession clientSession,
                                                     java.lang.String tenantCode)
                                              throws MXException,
                                                     java.rmi.RemoteException
        Parameters:
        attVec - The vector to be encrypted for secured attachment
        securedAttachFlags - This tells if a corresponding element in attVec has to be encrypted. If this is null then all elements are encrypted.
        clientSession - WebClientSession
        Throws:
        MXException
        java.rmi.RemoteException
      • encodeForSecureAttachment

        public static void encodeForSecureAttachment(java.util.Vector attVec,
                                                     java.util.Vector securedAttachFlags,
                                                     WebClientSession clientSession,
                                                     java.lang.String tenantCode,
                                                     javax.servlet.http.HttpServletRequest requ)
                                              throws MXException,
                                                     java.rmi.RemoteException
        Parameters:
        attVec - The vector to be encrypted for secured attachment
        securedAttachFlags - This tells if a corresponding element in attVec has to be encrypted. If this is null then all elements are encrypted.
        clientSession - WebClientSession
        requ - The HttpServletRequest so that the session attributes can be retrieved.
        Throws:
        MXException
        java.rmi.RemoteException
      • getRequestParameterValue

        public static java.lang.String getRequestParameterValue(javax.servlet.http.HttpServletRequest request,
                                                                java.lang.String paramName)
      • getRequestParameterValues

        public static java.lang.String[] getRequestParameterValues(javax.servlet.http.HttpServletRequest request,
                                                                   java.lang.String paramName)
      • getRequestParameterValues

        public static java.lang.String[] getRequestParameterValues(javax.servlet.http.HttpServletRequest request,
                                                                   java.lang.String paramName,
                                                                   boolean convertToUft8)
      • convertSafeToOriginalValue

        public static java.lang.String[] convertSafeToOriginalValue(java.lang.String[] paramValues)