public class TenantRegCache extends java.lang.Object implements MaximoCache, FixedLoggers
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, 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 |
---|
TenantRegCache() |
Modifier and Type | Method and Description |
---|---|
long |
getCustomerID(UserInfo info)
Get tenant code from the tenant id.
|
java.lang.String |
getDescription(int id)
Get description from the tenant id.
|
java.lang.String |
getName()
Returns the name of the cache object.
|
long |
getNumberOfSeats(UserInfo info)
Get tenant code from the tenant id.
|
java.lang.String |
getPartNumber(int id)
Get part number from the tenant id.
|
long |
getStartTime(int id)
Get start time from the tenant id.
|
long |
getSubscriptionID(UserInfo info)
Get tenant code from the tenant id.
|
java.lang.String |
getTenantCode(int id)
Get tenant code from the tenant id.
|
java.lang.String |
getTenantCode(UserInfo info)
Get tenant code from the tenant id.
|
int |
getTenantIDFromTenantCode(java.lang.String tenantCode)
Get the tenant id from the tenant code.
|
java.lang.String |
getTenantLoginId(UserInfo info)
Get tenant code from the tenant id.
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getTenantSessions() |
boolean |
hasTenant(int tenantID) |
boolean |
hasTenantSession(int tenantID) |
void |
init()
Initialize the cache object.
|
void |
reload()
Reloads the cache object.
|
void |
reload(java.lang.String key)
Initialize a specific component of the cache identified by the key.
|
void |
removeTenantSession(int tenantID) |
void |
setTenantSession(int tenantID) |
void |
tenantStartupRoutine() |
public void reload() throws MXException
reload
in interface MaximoCache
MXException
public void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
key
- MXException
public java.lang.String getName()
getName
in interface MaximoCache
public void init() throws MXException
MaximoCache
init
in interface MaximoCache
MXException
public void tenantStartupRoutine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean hasTenant(int tenantID) throws MXException
MXException
public boolean hasTenantSession(int tenantID) throws MXException
MXException
public void setTenantSession(int tenantID) throws MXException
MXException
public java.util.Map<java.lang.Integer,java.lang.Integer> getTenantSessions() throws MXException
MXException
public void removeTenantSession(int tenantID) throws MXException
MXException
public int getTenantIDFromTenantCode(java.lang.String tenantCode) throws MXException
tenantCode
- MXException
- if tenant code does not exist or is not active.public java.lang.String getTenantCode(UserInfo info) throws MXException
tenantCode
- MXException
public java.lang.String getTenantLoginId(UserInfo info) throws MXException
tenantCode
- MXException
public java.lang.String getTenantCode(int id) throws MXException
tenantCode
- MXException
public java.lang.String getPartNumber(int id) throws MXException
tenantCode
- MXException
public java.lang.String getDescription(int id) throws MXException
tenantCode
- MXException
public long getSubscriptionID(UserInfo info) throws MXException
tenantCode
- MXException
public long getCustomerID(UserInfo info) throws MXException
tenantCode
- MXException
public long getStartTime(int id) throws MXException
tenantCode
- MXException
public long getNumberOfSeats(UserInfo info) throws MXException
tenantCode
- MXException