public class SiteService extends AppService implements SiteServiceRemote
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 |
---|
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, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public SiteService() throws java.rmi.RemoteException
SiteCache init
.java.rmi.RemoteException
SiteCache
,
MXServer.addToMaximoCache(java.lang.String, psdi.mbo.MaximoCache)
public SiteService(MXServer mxServer) throws java.rmi.RemoteException
SiteCache init
.java.rmi.RemoteException
SiteCache
,
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 SiteServiceRemote
siteID
- The site for which the orgID is being requested.userInfo
- UserInfo making the request.MXException
java.rmi.RemoteException
SiteCache.getOrgForSite(java.lang.String, psdi.security.UserInfo)
public boolean orgHasASite(java.lang.String orgID) throws MXException, java.rmi.RemoteException
orgHasASite
in interface SiteServiceRemote
orgID
- The organization being checked.MXException
java.rmi.RemoteException
orgHasASite(java.lang.String)
public java.util.Hashtable getAllSites() throws MXException, java.rmi.RemoteException
getAllSites
in interface SiteServiceRemote
MXException
java.rmi.RemoteException
SiteCache.getAllSites()
public void validateOrgForSite(UserInfo userInfo, java.lang.String orgId, java.lang.String siteId) throws MXException, java.rmi.RemoteException
validateOrgForSite
in interface SiteServiceRemote
userInfo
- 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.MXException
java.rmi.RemoteException
validateOrgForSite(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 SiteServiceRemote
userInfo
- UserInfo objectorgid
- organization identifierMXException
java.rmi.RemoteException
getItemSetIdForOrg(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 SiteServiceRemote
userInfo
- UserInfo objectorgid
- organization identifierMXException
java.rmi.RemoteException
getCompanySetIdForOrg(psdi.security.UserInfo, java.lang.String)