public class LocationService extends AppService implements LocationServiceRemote
critALL, critCOURIER, critCROSSSITEALL, critCROSSSITEINVENTORY, critCROSSSITENONINVENTORY, critCROSSSITEOPERATING, critCROSSSITEOTHERLOCS, critCROSSSITEPOLOCS, critCROSSSITESTOREOTHERLOCS, critCROSSSITESTOREROOM, critHOLDING, critINVENTORY, critLABOR, critNONINVENTORY, critOPERATING, critOTHERLOCS, critPOLOCS, critREPAIR, critSALVAGE, critSTOREOTHERLOCS, critSTOREROOM, critVENDOR, CROSSSITEINVENTORY_NOHOLDINGAPPLOGGER, 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 |
|---|
LocationService() |
LocationService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
MboSetRemote |
addItemsToStoreroom(UserInfo userInfo,
MboSetRemote itemSet,
MboRemote location,
boolean addKitComponents,
MboRemote matrectrans) |
MboSetRemote |
addItemsToStoreroom(UserInfo userInfo,
MboSetRemote itemSet,
java.lang.String storeroom,
boolean addKitComponents)
Returns the set of inventory objects gotten from the rows selected
in the item set.
|
MboSetRemote |
addItemsToStoreroom(UserInfo userInfo,
MboSetRemote itemSet,
java.lang.String storeroom,
boolean addKitComponents,
MboRemote matrectrans) |
MboSetRemote |
addItemsToStoreroom(UserInfo userInfo,
MboSetRemote itemSet,
java.lang.String storeroom,
java.lang.String siteId,
boolean addKitComponents)
Returns the set of inventory objects gotten from the rows selected
in the item set.
|
boolean |
allowDeletionOfRedundantLocSystemSitePrimarySystem(UserInfo userInfo,
java.lang.String siteId,
MboSetRemote workingSet,
MboRemote locSystemToBeDeleted) |
void |
canAddItemsToStoreroom(UserInfo userInfo)
Can we add items to a storeroom if there is no storeroom defined in the Locations table?
|
java.lang.String |
getDefaultStoreroom(UserInfo userInfo)
Return the default Storeroom.
|
MboSetRemote |
getKitComponentsNotYetInStore(UserInfo userInfo,
ItemRemote item,
java.lang.String storeroom,
java.util.Hashtable defaultBins)
checks to see if all components of a kit exist in the storeroom to which the kit
is being added
|
MboSetRemote |
getKitComponentsNotYetInStore(UserInfo userInfo,
ItemRemote item,
java.lang.String storeroom,
java.lang.String siteId,
java.util.Hashtable defaultBins)
checks to see if all components of a kit exist in the storeroom to which the kit
is being added
|
MboRemote |
getLocation(UserInfo userInfo,
java.lang.String attribute,
java.lang.String key)
retruns LocationMbo based on the unique key passed
|
int |
getNumberOfSystemsForSite(UserInfo userinfo,
java.lang.String siteid) |
int |
getNumberOfSystemsForSite(UserInfo userinfo,
java.lang.String siteid,
MboSetRemote workingSet,
MboRemote locSystemToBeDeleted) |
java.lang.String |
getPrimarySystem(UserInfo userInfo)
returns the primary system for the user's site/organization combination
|
java.lang.String |
getPrimarySystem(UserInfo userInfo,
java.lang.String siteId)
returns the primary system for the given site, user's organization combination
|
MboRemote |
getPrimarySystemForSite(UserInfo userInfo,
java.lang.String siteId)
Get the primary location system for the specified site ID.
|
MboRemote |
getPrimarySystemForSite(UserInfo userInfo,
java.lang.String siteId,
MboSetRemote workingSet)
Get the primary location system for the specified site ID.
|
MboSetRemote |
getStoreLocations(UserInfo userInfo)
Get all the locations of type 'STOREROOM' and not disabled.
|
MboSetRemote |
getSystemsForSite(UserInfo userInfo,
java.lang.String siteId)
Get the location system set for the specified site ID.
|
MboRemote |
getTopLevelinPrimarySystem(UserInfo userInfo,
java.lang.String siteid)
returns the LocHierarchy mbo which represents the top-level node in the
primary system, a hierarchical system
|
MboRemote |
getTopLevelInSystem(UserInfo userInfo,
java.lang.String systemid,
java.lang.String siteId)
returns the LocHierarchy mbo which represents the top-level node in the
given system.
|
java.util.Vector |
getUnauthItemSet() |
void |
initCriteriaList(java.util.Hashtable criteriaTable)
This method defines the cross site and within a site criterias for the LocationService.
|
void |
restart()
Indicates that the LocationService should reload any cached
information.
|
void |
setIsTool(boolean tool)
sets isTool
true - if the tool is added to storeroom,
false - if the item is added to storeroom
|
boolean |
verifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo userInfo,
MboSetRemote workingSet) |
boolean |
verifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo userInfo,
MboSetRemote workingSet,
java.util.Vector<java.lang.String> allowSetToPrimary,
boolean skipOtherSitesPrimarySysVerification) |
boolean |
verifyLocSystemSiteHasOnePrimarySystem(UserInfo userInfo,
java.lang.String siteId,
MboSetRemote workingSet) |
boolean |
verifyLocSystemSiteHasOnePrimarySystem(UserInfo userInfo,
java.lang.String siteId,
MboSetRemote workingSet,
java.util.Vector<java.lang.String> allowSetToPrimary,
boolean skipOtherSitesPrimarySysVerification) |
void |
warningsFromAddItemsToStore()
returns a warning message resulting from the addItemsTostoreroom action if
any items were tried to be added to a storeroom that has a stock category of NS.
|
void |
warningsFromNonStockedOrgs()
returns a warning message resulting from the addItemsTostoreroom action if
any items selected were attempted to be added to a storeroom with the stock category
of non-stock.
|
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, isAppService, isRunning, isSingletonService, 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, isSingletonServicepublic LocationService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic LocationService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv - -- the "Server Environment" this Service is being
created in.java.rmi.RemoteExceptionpublic void restart()
throws java.rmi.RemoteException
restart in interface ServiceRemoterestart in class AppServicejava.rmi.RemoteExceptionpublic void initCriteriaList(java.util.Hashtable criteriaTable)
throws MXException,
java.rmi.RemoteException
| ALL | all location types |
| STOREROOM | locations of type STOREROOM |
| INVENTORY | locations of type STOREROOM, LABOR and COURIER |
| NONINVENTORY | all location types except STOREROOM, LABOR and COURIER |
| OPERATING | locations of type OPERATING |
| OTHERLOCATIONS | locations of type OPERATING, VENDOR and REPAIR |
| CROSSSITEALL | all location types across sites |
| CROSSSITESTOREROOM | locations of type STOREROOM across sites |
| CROSSSITEINVENTORY | locations of type STOREROOM, LABOR and COURIER across sites |
| CROSSSITENONINVENTORY | all location types except STOREROOM, LABOR and COURIER across sites |
| CROSSSITEOPERATING | locations of type OPERATING across sites |
| CROSSSITEOTHERLOCATIONS | locations of type OPERATING, VENDOR and REPAIR across sites |
1. All criteria also exclude disabled locations.
initCriteriaList in class AppServicecriteriaTable - MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getStoreLocations(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getStoreLocations in interface LocationServiceRemoteuserInfo - user information used to request a mbo setMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getDefaultStoreroom(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getDefaultStoreroom in interface LocationServiceRemoteuserInfo - user information used to request a mbo setMXExceptionjava.rmi.RemoteExceptionpsdi.app.location.LocationService#getDefaultStoreroom()public void canAddItemsToStoreroom(UserInfo userInfo) throws MXException, java.rmi.RemoteException
canAddItemsToStoreroom in interface LocationServiceRemoteNone - MXApplicationException - (transferNonRotOnly) thrown if there are no storeroom type
of locations in the Locations table.MXExceptionjava.rmi.RemoteExceptionpsdi.app.location.LocationService#canAddItemsToStoreroom()public MboSetRemote getKitComponentsNotYetInStore(UserInfo userInfo, ItemRemote item, java.lang.String storeroom, java.util.Hashtable defaultBins) throws MXException, java.rmi.RemoteException
getKitComponentsNotYetInStore in interface LocationServiceRemoteuserInfo - user information used to request a mbo setitemSet - the set of itemsstoreroom - the storeroom used to get the location setMXExceptionjava.rmi.RemoteExceptionpsdi.app.location.LocationService#getLocation(UserInfo userInfo,String key)public MboSetRemote getKitComponentsNotYetInStore(UserInfo userInfo, ItemRemote item, java.lang.String storeroom, java.lang.String siteId, java.util.Hashtable defaultBins) throws MXException, java.rmi.RemoteException
getKitComponentsNotYetInStore in interface LocationServiceRemoteuserInfo - user information used to request a mbo setitemSet - the set of itemsstoreroom - the storeroom used to get the location setsiteId - the site id for itemnum/location/itemsetId/siteid combination
to check the component's inventory recordsMXExceptionjava.rmi.RemoteExceptionpsdi.app.location.LocationService#getLocation(UserInfo userInfo,ItemRemote item,String storeroom,String siteid, Hastable defaultBins)public MboSetRemote addItemsToStoreroom(UserInfo userInfo, MboSetRemote itemSet, java.lang.String storeroom, boolean addKitComponents, MboRemote matrectrans) throws MXException, java.rmi.RemoteException
addItemsToStoreroom in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionaddItemsToStoreroom(psdi.security.UserInfo,psdi.mbo.MboSetRemote,java.lang.String,boolean addKitComponents,psdi.mbo.MboRemote matrectrans)public MboSetRemote addItemsToStoreroom(UserInfo userInfo, MboSetRemote itemSet, java.lang.String storeroom, boolean addKitComponents) throws MXException, java.rmi.RemoteException
addItemsToStoreroom in interface LocationServiceRemoteuserInfo - user information used to request a mbo setitemSet - the set of itemsstoreroom - the storeroom used to get the location setMXExceptionjava.rmi.RemoteExceptionaddItemsToStoreroom(psdi.security.UserInfo,psdi.mbo.MboSetRemote,java.lang.String,boolean addKitComponents)public MboSetRemote addItemsToStoreroom(UserInfo userInfo, MboSetRemote itemSet, java.lang.String storeroom, java.lang.String siteId, boolean addKitComponents) throws MXException, java.rmi.RemoteException
addItemsToStoreroom in interface LocationServiceRemoteuserInfo - user information used to request a mbo setitemSet - the set of itemsstoreroom - the storeroom used to get the location setsiteId - the storeroom's siteid for creating inventory records for the componentsMXExceptionjava.rmi.RemoteExceptionaddItemsToStoreroom(psdi.security.UserInfo,psdi.mbo.MboSetRemote,java.lang.String,java.lang.String,boolean addKitComponents)public MboSetRemote addItemsToStoreroom(UserInfo userInfo, MboSetRemote itemSet, MboRemote location, boolean addKitComponents, MboRemote matrectrans) throws MXException, java.rmi.RemoteException
addItemsToStoreroom in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionaddItemsToStoreroom(psdi.security.UserInfo,psdi.mbo.MboSetRemote,java.lang.String,boolean addKitComponents,psdi.mbo.MboRemote matrectrans)public java.util.Vector getUnauthItemSet()
public void warningsFromAddItemsToStore()
throws MXException,
java.rmi.RemoteException
warningsFromAddItemsToStore in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionwarningsFromAddItemsToStore()public void warningsFromNonStockedOrgs()
throws MXException,
java.rmi.RemoteException
warningsFromNonStockedOrgs in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote getTopLevelinPrimarySystem(UserInfo userInfo, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getTopLevelinPrimarySystem in interface LocationServiceRemoteuserInfo - UserInfo for the object calling this methodsiteid - site for which primary system will be obtainedMXExceptionjava.rmi.RemoteExceptiongetTopLevelinPrimarySystem(UserInfo userInfo,String siteId)public java.lang.String getPrimarySystem(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getPrimarySystem in interface LocationServiceRemoteuserInfo - UserInfo for the object calling this methodMXExceptionjava.rmi.RemoteExceptiongetPrimarySystem(psdi.security.UserInfo)public MboRemote getTopLevelInSystem(UserInfo userInfo, java.lang.String systemid, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getTopLevelInSystem in interface LocationServiceRemoteuserInfo - UserInfo for the object calling this methodString - system identificationMXExceptionjava.rmi.RemoteExceptionpsdi.app.location.LocationService#getTopLevelInSystem()public java.lang.String getPrimarySystem(UserInfo userInfo, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getPrimarySystem in interface LocationServiceRemoteuserInfo - UserInfo for the object calling this methodsiteid - Site for which primary system is returnedMXExceptionjava.rmi.RemoteExceptiongetPrimarySystem(psdi.security.UserInfo,java.lang.String)public MboRemote getLocation(UserInfo userInfo, java.lang.String attribute, java.lang.String key) throws MXException, java.rmi.RemoteException
getLocation in interface LocationServiceRemoteuserInfo - key - MXExceptionjava.rmi.RemoteExceptiongetLocation(UserInfo userInfo,String attribute,String key)public void setIsTool(boolean tool)
throws MXException,
java.rmi.RemoteException
setIsTool in interface LocationServiceRemotetrue - for tool, false for itemMXExceptionjava.rmi.RemoteExceptionsetIsTool(boolean tool)public MboSetRemote getSystemsForSite(UserInfo userInfo, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getSystemsForSite in interface LocationServiceRemoteuserInfo - UserInfo objectsiteid - site identifierMXExceptionjava.rmi.RemoteExceptiongetSystemsForSite(UserInfo, String)public MboRemote getPrimarySystemForSite(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet) throws MXException, java.rmi.RemoteException
getPrimarySystemForSite in interface LocationServiceRemoteuserInfo - UserInfo objectsiteid - site identifierMXExceptionjava.rmi.RemoteExceptiongetPrimarySystemForSite(UserInfo, String, MboSetRemote)public MboRemote getPrimarySystemForSite(UserInfo userInfo, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getPrimarySystemForSite in interface LocationServiceRemoteuserInfo - UserInfo objectsiteid - site identifierMXExceptionjava.rmi.RemoteExceptiongetPrimarySystemForSite(UserInfo, String)public boolean verifyLocSystemSiteHasOnePrimarySystem(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet) throws MXException, java.rmi.RemoteException
verifyLocSystemSiteHasOnePrimarySystem in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionverifyLocSystemSiteHasOnePrimarySystem(UserInfo, String, MboSetRemote)public boolean verifyLocSystemSiteHasOnePrimarySystem(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet, java.util.Vector<java.lang.String> allowSetToPrimary, boolean skipOtherSitesPrimarySysVerification) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean allowDeletionOfRedundantLocSystemSitePrimarySystem(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet, MboRemote locSystemToBeDeleted) throws MXException, java.rmi.RemoteException
allowDeletionOfRedundantLocSystemSitePrimarySystem in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionallowDeletionOfRedundantLocSystemSitePrimarySystem(UserInfo, String, MboSetRemote, MboRemote)public boolean verifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo userInfo, MboSetRemote workingSet) throws MXException, java.rmi.RemoteException
verifyAllLocSystemSitesHaveOnePrimarySystem in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionverifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo, MboSetRemote)public boolean verifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo userInfo, MboSetRemote workingSet, java.util.Vector<java.lang.String> allowSetToPrimary, boolean skipOtherSitesPrimarySysVerification) throws MXException, java.rmi.RemoteException
verifyAllLocSystemSitesHaveOnePrimarySystem in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.location.LocationService#verifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo, MboSetRemote, Vector, boolean) public int getNumberOfSystemsForSite(UserInfo userinfo, java.lang.String siteid, MboSetRemote workingSet, MboRemote locSystemToBeDeleted) throws MXException, java.rmi.RemoteException
getNumberOfSystemsForSite in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetNumberOfSystemsForSite(UserInfo, String, MboSetRemote, MboRemote)public int getNumberOfSystemsForSite(UserInfo userinfo, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getNumberOfSystemsForSite in interface LocationServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetNumberOfSystemsForSite(UserInfo, String)