public class MaxLicMonitorService extends AppService implements MaxLicMonitorServiceRemote
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix| Constructor and Description |
|---|
MaxLicMonitorService() |
MaxLicMonitorService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAppInAppTable(java.lang.String appName)
Check the maxlicprodapps table for the existence of any records that have APPNAME
that matches the incoming appName.
|
boolean |
checkMaxprodidInAppTable(java.lang.String prodId)
Check the maxlicprodapps table for the existence of any records that have MAXPRODID
that matches the incoming prodId.
|
java.util.List |
getLicenseType(java.lang.String userId) |
java.lang.String |
getLicProductKeys()
Returns the product list
|
static MXLogger |
getLictrackLogger()
* @return the lictrack logger
|
java.util.HashSet |
getProductKEYS() |
java.lang.String |
getProductName(java.lang.String prodId)
Utility routine
Given the maxprodid it returns the product name
|
void |
init()
Initialize the Application Service.
|
void |
setMasLicenseType(MXTransaction mxTran,
MboRemote user,
java.lang.String userId,
java.lang.String productId,
java.lang.String licenseType,
boolean isAdmin)
This method sets the MAS License type of user.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic MaxLicMonitorService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic MaxLicMonitorService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv - --
the "Server Environment" this Service is being created in.java.rmi.RemoteExceptionpublic void init()
AppServiceinit in interface Serviceinit in class AppServiceServicepublic java.lang.String getLicProductKeys()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic static MXLogger getLictrackLogger()
public java.util.HashSet getProductKEYS()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getProductName(java.lang.String prodId)
throws java.rmi.RemoteException,
MXException
prodId - String value of MaxprodidMXExceptionjava.rmi.RemoteExceptionpublic boolean checkMaxprodidInAppTable(java.lang.String prodId)
throws java.rmi.RemoteException,
MXException
prodId - Value of Maxprodid columnjava.rmi.RemoteExceptionMXExceptionpublic boolean checkAppInAppTable(java.lang.String appName)
throws java.rmi.RemoteException,
MXException
appName - java.rmi.RemoteExceptionMXExceptionpublic java.util.List getLicenseType(java.lang.String userId)
throws java.rmi.RemoteException,
java.lang.Exception
java.rmi.RemoteExceptionjava.lang.Exceptionpublic 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
userId - productId - licenseType - isAdmin - MXExceptionjava.rmi.RemoteExceptionjava.lang.Exception