psdi.app.lictrack

Class MaxLicMonitorService

    • Constructor Detail

      • MaxLicMonitorService

        public MaxLicMonitorService()
                             throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • MaxLicMonitorService

        public MaxLicMonitorService(MXServer mxServer)
                             throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getLicProductKeys

        public java.lang.String getLicProductKeys()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Returns the product list
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getLictrackLogger

        public static MXLogger getLictrackLogger()
        * @return the lictrack logger
      • getProductKEYS

        public java.util.HashSet getProductKEYS()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getProductName

        public java.lang.String getProductName(java.lang.String prodId)
                                        throws java.rmi.RemoteException,
                                               MXException
        Utility routine Given the maxprodid it returns the product name
        Parameters:
        prodId - String value of Maxprodid
        Returns:
        String value of PRODUCTNAME column
        Throws:
        MXException
        java.rmi.RemoteException
      • checkMaxprodidInAppTable

        public boolean checkMaxprodidInAppTable(java.lang.String prodId)
                                         throws java.rmi.RemoteException,
                                                MXException
        Check the maxlicprodapps table for the existence of any records that have MAXPRODID that matches the incoming prodId. If a match is found then the apps for prodId are already installed.
        Parameters:
        prodId - Value of Maxprodid column
        Returns:
        idFound boolean
        Throws:
        java.rmi.RemoteException
        MXException
      • checkAppInAppTable

        public boolean checkAppInAppTable(java.lang.String appName)
                                   throws java.rmi.RemoteException,
                                          MXException
        Check the maxlicprodapps table for the existence of any records that have APPNAME that matches the incoming appName. If a match is found then the app is installed. Currently only used to check the existence of the ANYWHERE AWADMIN app.
        Parameters:
        appName -
        Returns:
        boolean
        Throws:
        java.rmi.RemoteException
        MXException
      • getLicenseType

        public java.util.List getLicenseType(java.lang.String userId)
                                      throws java.rmi.RemoteException,
                                             java.lang.Exception
        Throws:
        java.rmi.RemoteException
        java.lang.Exception
      • setMasLicenseType

        public void setMasLicenseType(MXTransaction mxTran,
                                      MboRemote user,
                                      java.lang.String userId,
                                      java.lang.String productId,
                                      java.lang.String licenseType,
                                      boolean isAdmin)
                               throws java.lang.Exception,
                                      java.rmi.RemoteException
        This method sets the MAS License type of user. This method should be used by the Sync process. This method doesn't override the usertype calculated by manage. For every user, we keep two values, one calculated by manage, another updated by Sync process.
        Parameters:
        userId -
        productId -
        licenseType -
        isAdmin -
        Throws:
        MXException
        java.rmi.RemoteException
        java.lang.Exception