public class SiteService extends AppService implements SiteServiceRemote
APPLOGGER, 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 |
|---|
SiteService()
Call
SiteCache init. |
SiteService(MXServer mxServer)
Call
SiteCache init. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Hashtable |
getAllSites()
Get a listing of all sites.
|
java.lang.String |
getCompanySetIdForOrg(UserInfo userInfo,
java.lang.String orgId)
Get the company set ID for the specified organization ID.
|
java.lang.String |
getItemSetIdForOrg(UserInfo userInfo,
java.lang.String orgId)
Get the item set ID for the specified organization ID.
|
java.lang.String |
getOrgForSite(java.lang.String siteID,
UserInfo userInfo)
Return the organization for the specified site.
|
boolean |
orgHasASite(java.lang.String orgID)
Determines whether the organization contains at least one Site.
|
void |
validateOrgForSite(UserInfo userInfo,
java.lang.String orgId,
java.lang.String siteId)
Validates that the specified site is within the specified organization.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, init, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic SiteService()
throws java.rmi.RemoteException
SiteCache init.java.rmi.RemoteExceptionSiteCache,
MXServer.addToMaximoCache(java.lang.String, psdi.mbo.MaximoCache)public SiteService(MXServer mxServer) throws java.rmi.RemoteException
SiteCache init.java.rmi.RemoteExceptionSiteCache,
MXServer.addToMaximoCache(java.lang.String, psdi.mbo.MaximoCache)public java.lang.String getOrgForSite(java.lang.String siteID,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
getOrgForSite in interface SiteServiceRemotesiteID - The site for which the orgID is being requested.userInfo - UserInfo making the request.MXExceptionjava.rmi.RemoteExceptionSiteCache.getOrgForSite(java.lang.String, psdi.security.UserInfo)public boolean orgHasASite(java.lang.String orgID)
throws MXException,
java.rmi.RemoteException
orgHasASite in interface SiteServiceRemoteorgID - The organization being checked.MXExceptionjava.rmi.RemoteExceptionorgHasASite(java.lang.String)public java.util.Hashtable getAllSites()
throws MXException,
java.rmi.RemoteException
getAllSites in interface SiteServiceRemoteMXExceptionjava.rmi.RemoteExceptionSiteCache.getAllSites()public void validateOrgForSite(UserInfo userInfo, java.lang.String orgId, java.lang.String siteId) throws MXException, java.rmi.RemoteException
validateOrgForSite in interface SiteServiceRemoteuserInfo - UserInfo objectorgid - organization that will be searched for the specified sitesiteid - site to be checkedMXApplicationException("locations", - "invalidorgsite", params)is thrown
when the site is in not in the organization.MXExceptionjava.rmi.RemoteExceptionvalidateOrgForSite(psdi.security.UserInfo, java.lang.String, java.lang.String)public java.lang.String getItemSetIdForOrg(UserInfo userInfo, java.lang.String orgId) throws MXException, java.rmi.RemoteException
getItemSetIdForOrg in interface SiteServiceRemoteuserInfo - UserInfo objectorgid - organization identifierMXExceptionjava.rmi.RemoteExceptiongetItemSetIdForOrg(psdi.security.UserInfo, java.lang.String)public java.lang.String getCompanySetIdForOrg(UserInfo userInfo, java.lang.String orgId) throws MXException, java.rmi.RemoteException
getCompanySetIdForOrg in interface SiteServiceRemoteuserInfo - UserInfo objectorgid - organization identifierMXExceptionjava.rmi.RemoteExceptiongetCompanySetIdForOrg(psdi.security.UserInfo, java.lang.String)