public class AssetService extends AppService implements AssetServiceRemote, MboConstants
Modifier and Type | Field and Description |
---|---|
java.util.Hashtable |
assetsBeingMovedFromMultiAssetLocCI
09-15293
|
static int |
MAXMETERWEIGHTPRCNT
The maximum meter weight percentage value.
|
static int |
MAXPRIORITY
maximum priority value for Priority attribute on the Asset object.
|
critCROSSSITEROTATING, critROTATING
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
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 |
---|
AssetService() |
AssetService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
void |
clearAssetsBeingMovedFromMultiAssetLocCI()
09-15293: need to clear the hastable when done
|
void |
destroy()
Unregister event listeners.
|
MboRemote |
getAsset(UserInfo userInfo,
java.lang.String attribute,
java.lang.String key)
retruns AssetMbo based on the unique key passed
|
java.lang.String |
getAssetForLocation(UserInfo userInfo,
java.lang.String loc)
returns Asset object for the given location.
|
java.util.Hashtable |
getAssetsBeingMovedFromMultiAssetLocCI()
09-15293
|
MboSetRemote |
getRotatingAssetForItem(UserInfo userInfo,
java.lang.String itemnum,
java.lang.String itemsetid)
finds the set of Asset objects possessing the provided itemnum
|
void |
incrInvCost(UserInfo userinfo,
java.lang.String assetnum,
double invCost)
Service method to update the invoice cost on an asset record.
|
void |
init()
Initialization
|
void |
initCriteriaList(java.util.Hashtable criteriaTable)
criteria defined for the AssetService object:
ROTATING - all rotating asset
CROSSSITEROTATING - all rotating asset with out site restriction
|
void |
initEndMeasureAttrs(MboRemote linearMbo) |
void |
initEndOffsetAttrs(MboRemote linearMbo,
java.lang.String attr) |
void |
initLinearAttrs(MboRemote linearMbo) |
void |
initLinearAttrs(MboRemote linearMbo,
java.lang.String altAttr) |
void |
initLinearEndMeasureAttrs(MboRemote linearMbo) |
void |
initLinearEndMeasureAttrs(MboRemote linearMbo,
java.lang.String altAttr)
handled separately from
initLinearAttrs(MboRemote linearMbo, String altAttr) . |
void |
initOffsetAttrs(MboRemote linearMbo,
java.lang.String attr) |
void |
initStartOffsetAttrs(MboRemote linearMbo,
java.lang.String attr) |
void |
moveSingleAsset(MboRemote asset,
java.lang.String newLocation,
java.lang.String newSite,
java.lang.String newParent)
Service Method used to move asset using Webservices.
|
void |
setEndOffsetInfo(MboRemote linearMbo,
java.lang.String attr) |
void |
setLinearInfo(MboRemote linearMbo,
java.lang.String altAttr) |
void |
setLinearMeasureUnitIdInfo(MboRemote linearMbo,
java.lang.String attr) |
void |
setOffsetInfo(MboRemote linearMbo,
java.lang.String altAttr) |
void |
setStartOffsetInfo(MboRemote linearMbo,
java.lang.String attr) |
void |
storeAssetsBeingMovedFromMultiAssetLocCI(MboRemote asset)
09-15293
|
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, 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 static final int MAXPRIORITY
public static final int MAXMETERWEIGHTPRCNT
public java.util.Hashtable assetsBeingMovedFromMultiAssetLocCI
public AssetService() throws java.rmi.RemoteException
java.rmi.RemoteException
public AssetService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv
- java.rmi.RemoteException
public void init()
init
in interface Service
init
in class AppService
This listeners gets setup.
public void destroy()
destroy
in interface Service
destroy
in class AppService
AppService.destroy()
public java.lang.String getAssetForLocation(UserInfo userInfo, java.lang.String loc) throws MXException, java.rmi.RemoteException
getAssetForLocation
in interface AssetServiceRemote
userInfo
- user information to instantiate a mbo setloc
- The location to search for asset.MXException
java.rmi.RemoteException
getAssetForLocation(UserInfo userInfo,String loc)
public MboSetRemote getRotatingAssetForItem(UserInfo userInfo, java.lang.String itemnum, java.lang.String itemsetid) throws MXException, java.rmi.RemoteException
getRotatingAssetForItem
in interface AssetServiceRemote
userInfo
- user information to instantiate a mbo setitemnum
- rotating item used to query Asset setitemsetid
- item set identifier used to query Asset setMXException
java.rmi.RemoteException
psdi.app.asset.AssetService#getRotatingAssetForItem(UserInfo userInfo,String itemnum)
public void initCriteriaList(java.util.Hashtable criteriaTable) throws MXException, java.rmi.RemoteException
initCriteriaList
in class AppService
MXException
java.rmi.RemoteException
public MboRemote getAsset(UserInfo userInfo, java.lang.String attribute, java.lang.String key) throws MXException, java.rmi.RemoteException
userInfo
- key
- MXException
java.rmi.RemoteException
public void incrInvCost(UserInfo userinfo, java.lang.String assetnum, double invCost) throws MXException, java.rmi.RemoteException
userinfo
- -- A UserInfo object to be used for getting a ASSET mboset from the MXServerassetnum
- -- The assetnum to updateinvCost
- -- a quantity to add to the assets invCostMXException
java.rmi.RemoteException
public void moveSingleAsset(MboRemote asset, java.lang.String newLocation, java.lang.String newSite, java.lang.String newParent) throws MXException, java.rmi.RemoteException
moveSingleAsset
in interface AssetServiceRemote
asset
- AssetMbo which has to be moved.newLocation
- The New Location where asset has to be movednewSite
- The New Site where asset has to be movednewParent
- The new Parent where asset should be moved under.MXApplicationException("asset",
- "newsiteundefined")
MXApplicationException("asset", "cantmovemodify")
MXApplicationException("locations", "invalidlocationsite", params)
MXApplicationException("asset", "newstatusundefined", params)MXException
java.rmi.RemoteException
moveSingleAsset(MboRemote asset, String newLocation ,String newSite , String newParent)
public void setLinearInfo(MboRemote linearMbo, java.lang.String altAttr) throws MXException, java.rmi.RemoteException
setLinearInfo
in interface AssetServiceRemote
MXException
java.rmi.RemoteException
setLinearInfo(MboRemote linearMbo, String altAttr)
public void setOffsetInfo(MboRemote linearMbo, java.lang.String altAttr) throws MXException, java.rmi.RemoteException
setOffsetInfo
in interface AssetServiceRemote
MXException
java.rmi.RemoteException
psdi.app.asset.AssetService#setOffsetInfoOnAdd(MboRemote linearMbo, String altAttr)
public void initLinearAttrs(MboRemote linearMbo, java.lang.String altAttr) throws MXException, java.rmi.RemoteException
initLinearAttrs
in interface AssetServiceRemote
MXException
java.rmi.RemoteException
initLinearAttrs(MboRemote linearMbo, String altAttr)
public void initLinearEndMeasureAttrs(MboRemote linearMbo, java.lang.String altAttr) throws MXException, java.rmi.RemoteException
initLinearAttrs(MboRemote linearMbo, String altAttr)
. Because this
method is more expensive, it is called from
psdi.mbo.Mbo#initFieldFlagsOnMbo(String)
instead of from
psdi.mbo.Mbo#init()
.initLinearEndMeasureAttrs
in interface AssetServiceRemote
linearMbo
- altAttr
- MXException
java.rmi.RemoteException
initLinearEndMeasureAttrs(MboRemote, String)
public void initLinearEndMeasureAttrs(MboRemote linearMbo) throws MXException, java.rmi.RemoteException
initLinearEndMeasureAttrs
in interface AssetServiceRemote
MXException
java.rmi.RemoteException
initLinearEndMeasureAttrs(MboRemote)
public void initLinearAttrs(MboRemote linearMbo) throws MXException, java.rmi.RemoteException
initLinearAttrs
in interface AssetServiceRemote
MXException
java.rmi.RemoteException
initLinearAttrs(MboRemote linearMbo)
public void setLinearMeasureUnitIdInfo(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void initOffsetAttrs(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void initEndMeasureAttrs(MboRemote linearMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void initStartOffsetAttrs(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void initEndOffsetAttrs(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setStartOffsetInfo(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setEndOffsetInfo(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Hashtable getAssetsBeingMovedFromMultiAssetLocCI() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void storeAssetsBeingMovedFromMultiAssetLocCI(MboRemote asset) throws MXException, java.rmi.RemoteException
asset
- MXException
java.rmi.RemoteException
public void clearAssetsBeingMovedFromMultiAssetLocCI() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException