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_NOHOLDING
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 |
---|
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, 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
public LocationService() throws java.rmi.RemoteException
java.rmi.RemoteException
public LocationService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv
- -- the "Server Environment" this Service is being
created in.java.rmi.RemoteException
public void restart() throws java.rmi.RemoteException
restart
in interface ServiceRemote
restart
in class AppService
java.rmi.RemoteException
public 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 AppService
criteriaTable
- MXException
java.rmi.RemoteException
public MboSetRemote getStoreLocations(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getStoreLocations
in interface LocationServiceRemote
userInfo
- user information used to request a mbo setMXException
java.rmi.RemoteException
public java.lang.String getDefaultStoreroom(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getDefaultStoreroom
in interface LocationServiceRemote
userInfo
- user information used to request a mbo setMXException
java.rmi.RemoteException
psdi.app.location.LocationService#getDefaultStoreroom()
public void canAddItemsToStoreroom(UserInfo userInfo) throws MXException, java.rmi.RemoteException
canAddItemsToStoreroom
in interface LocationServiceRemote
None
- MXApplicationException
- (transferNonRotOnly) thrown if there are no storeroom type
of locations in the Locations table.MXException
java.rmi.RemoteException
psdi.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 LocationServiceRemote
userInfo
- user information used to request a mbo setitemSet
- the set of itemsstoreroom
- the storeroom used to get the location setMXException
java.rmi.RemoteException
psdi.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 LocationServiceRemote
userInfo
- 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 recordsMXException
java.rmi.RemoteException
psdi.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 LocationServiceRemote
MXException
java.rmi.RemoteException
addItemsToStoreroom(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 LocationServiceRemote
userInfo
- user information used to request a mbo setitemSet
- the set of itemsstoreroom
- the storeroom used to get the location setMXException
java.rmi.RemoteException
addItemsToStoreroom(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 LocationServiceRemote
userInfo
- 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 componentsMXException
java.rmi.RemoteException
addItemsToStoreroom(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 LocationServiceRemote
MXException
java.rmi.RemoteException
addItemsToStoreroom(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 LocationServiceRemote
MXException
java.rmi.RemoteException
warningsFromAddItemsToStore()
public void warningsFromNonStockedOrgs() throws MXException, java.rmi.RemoteException
warningsFromNonStockedOrgs
in interface LocationServiceRemote
MXException
java.rmi.RemoteException
public MboRemote getTopLevelinPrimarySystem(UserInfo userInfo, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getTopLevelinPrimarySystem
in interface LocationServiceRemote
userInfo
- UserInfo for the object calling this methodsiteid
- site for which primary system will be obtainedMXException
java.rmi.RemoteException
getTopLevelinPrimarySystem(UserInfo userInfo,String siteId)
public java.lang.String getPrimarySystem(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getPrimarySystem
in interface LocationServiceRemote
userInfo
- UserInfo for the object calling this methodMXException
java.rmi.RemoteException
getPrimarySystem(psdi.security.UserInfo)
public MboRemote getTopLevelInSystem(UserInfo userInfo, java.lang.String systemid, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getTopLevelInSystem
in interface LocationServiceRemote
userInfo
- UserInfo for the object calling this methodString
- system identificationMXException
java.rmi.RemoteException
psdi.app.location.LocationService#getTopLevelInSystem()
public java.lang.String getPrimarySystem(UserInfo userInfo, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getPrimarySystem
in interface LocationServiceRemote
userInfo
- UserInfo for the object calling this methodsiteid
- Site for which primary system is returnedMXException
java.rmi.RemoteException
getPrimarySystem(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 LocationServiceRemote
userInfo
- key
- MXException
java.rmi.RemoteException
getLocation(UserInfo userInfo,String attribute,String key)
public void setIsTool(boolean tool) throws MXException, java.rmi.RemoteException
setIsTool
in interface LocationServiceRemote
true
- for tool, false for itemMXException
java.rmi.RemoteException
setIsTool(boolean tool)
public MboSetRemote getSystemsForSite(UserInfo userInfo, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getSystemsForSite
in interface LocationServiceRemote
userInfo
- UserInfo objectsiteid
- site identifierMXException
java.rmi.RemoteException
getSystemsForSite(UserInfo, String)
public MboRemote getPrimarySystemForSite(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet) throws MXException, java.rmi.RemoteException
getPrimarySystemForSite
in interface LocationServiceRemote
userInfo
- UserInfo objectsiteid
- site identifierMXException
java.rmi.RemoteException
getPrimarySystemForSite(UserInfo, String, MboSetRemote)
public MboRemote getPrimarySystemForSite(UserInfo userInfo, java.lang.String siteId) throws MXException, java.rmi.RemoteException
getPrimarySystemForSite
in interface LocationServiceRemote
userInfo
- UserInfo objectsiteid
- site identifierMXException
java.rmi.RemoteException
getPrimarySystemForSite(UserInfo, String)
public boolean verifyLocSystemSiteHasOnePrimarySystem(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet) throws MXException, java.rmi.RemoteException
verifyLocSystemSiteHasOnePrimarySystem
in interface LocationServiceRemote
MXException
java.rmi.RemoteException
verifyLocSystemSiteHasOnePrimarySystem(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
MXException
java.rmi.RemoteException
public boolean allowDeletionOfRedundantLocSystemSitePrimarySystem(UserInfo userInfo, java.lang.String siteId, MboSetRemote workingSet, MboRemote locSystemToBeDeleted) throws MXException, java.rmi.RemoteException
allowDeletionOfRedundantLocSystemSitePrimarySystem
in interface LocationServiceRemote
MXException
java.rmi.RemoteException
allowDeletionOfRedundantLocSystemSitePrimarySystem(UserInfo, String, MboSetRemote, MboRemote)
public boolean verifyAllLocSystemSitesHaveOnePrimarySystem(UserInfo userInfo, MboSetRemote workingSet) throws MXException, java.rmi.RemoteException
verifyAllLocSystemSitesHaveOnePrimarySystem
in interface LocationServiceRemote
MXException
java.rmi.RemoteException
verifyAllLocSystemSitesHaveOnePrimarySystem(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 LocationServiceRemote
MXException
java.rmi.RemoteException
psdi.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 LocationServiceRemote
MXException
java.rmi.RemoteException
getNumberOfSystemsForSite(UserInfo, String, MboSetRemote, MboRemote)
public int getNumberOfSystemsForSite(UserInfo userinfo, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getNumberOfSystemsForSite
in interface LocationServiceRemote
MXException
java.rmi.RemoteException
getNumberOfSystemsForSite(UserInfo, String)