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, critROTATINGALLROWS, 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, USERAPPLOGGER, 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 |
|---|
AssetService() |
AssetService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeStatus(MboRemote mbo,
java.lang.String status,
boolean rollToAllChildren,
boolean removeFromActiveRoutes,
boolean removeFromActiveSP,
boolean changePMStatus) |
void |
clearAssetsBeingMovedFromMultiAssetLocCI()
09-15293: need to clear the hastable when done
|
MboRemote |
createChange(MboRemote mbo,
java.lang.String jpnum) |
MboRemote |
createIncident(MboRemote mbo,
java.lang.String tickettemplateid) |
MboRemote |
createProblem(MboRemote mbo,
java.lang.String tickettemplateid) |
MboRemote |
createServiceRequest(MboRemote mbo,
java.lang.String tickettemplateid) |
MboRemote |
createWorkorder(MboRemote mbo,
java.lang.String jpnum) |
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
|
boolean |
hasActivePM(MboRemote mbo) |
boolean |
hasActiveRoutes(MboRemote mbo) |
boolean |
hasActiveSP(MboRemote mbo) |
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
|
java.lang.String |
uploadObservation(OslcRequest request) |
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, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic static final int MAXPRIORITY
public static final int MAXMETERWEIGHTPRCNT
public java.util.Hashtable assetsBeingMovedFromMultiAssetLocCI
public AssetService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic AssetService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv - java.rmi.RemoteExceptionpublic void init()
init in interface Serviceinit in class AppServiceThis listeners gets setup.public void destroy()
destroy in interface Servicedestroy in class AppServiceAppService.destroy()public java.lang.String getAssetForLocation(UserInfo userInfo, java.lang.String loc) throws MXException, java.rmi.RemoteException
getAssetForLocation in interface AssetServiceRemoteuserInfo - user information to instantiate a mbo setloc - The location to search for asset.MXExceptionjava.rmi.RemoteExceptiongetAssetForLocation(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 AssetServiceRemoteuserInfo - user information to instantiate a mbo setitemnum - rotating item used to query Asset setitemsetid - item set identifier used to query Asset setMXExceptionjava.rmi.RemoteExceptionpsdi.app.asset.AssetService#getRotatingAssetForItem(UserInfo userInfo,String itemnum)public void initCriteriaList(java.util.Hashtable criteriaTable)
throws MXException,
java.rmi.RemoteException
initCriteriaList in class AppServiceMXExceptionjava.rmi.RemoteExceptionpublic MboRemote getAsset(UserInfo userInfo, java.lang.String attribute, java.lang.String key) throws MXException, java.rmi.RemoteException
userInfo - key - MXExceptionjava.rmi.RemoteExceptionpublic 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 invCostMXExceptionjava.rmi.RemoteExceptionpublic void moveSingleAsset(MboRemote asset, java.lang.String newLocation, java.lang.String newSite, java.lang.String newParent) throws MXException, java.rmi.RemoteException
moveSingleAsset in interface AssetServiceRemoteasset - 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)MXExceptionjava.rmi.RemoteExceptionmoveSingleAsset(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 AssetServiceRemoteMXExceptionjava.rmi.RemoteExceptionsetLinearInfo(MboRemote linearMbo, String altAttr)public void setOffsetInfo(MboRemote linearMbo, java.lang.String altAttr) throws MXException, java.rmi.RemoteException
setOffsetInfo in interface AssetServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.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 AssetServiceRemoteMXExceptionjava.rmi.RemoteExceptioninitLinearAttrs(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 AssetServiceRemotelinearMbo - altAttr - MXExceptionjava.rmi.RemoteExceptioninitLinearEndMeasureAttrs(MboRemote, String)public void initLinearEndMeasureAttrs(MboRemote linearMbo) throws MXException, java.rmi.RemoteException
initLinearEndMeasureAttrs in interface AssetServiceRemoteMXExceptionjava.rmi.RemoteExceptioninitLinearEndMeasureAttrs(MboRemote)public void initLinearAttrs(MboRemote linearMbo) throws MXException, java.rmi.RemoteException
initLinearAttrs in interface AssetServiceRemoteMXExceptionjava.rmi.RemoteExceptioninitLinearAttrs(MboRemote linearMbo)public void setLinearMeasureUnitIdInfo(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void initOffsetAttrs(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void initEndMeasureAttrs(MboRemote linearMbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void initStartOffsetAttrs(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void initEndOffsetAttrs(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setStartOffsetInfo(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setEndOffsetInfo(MboRemote linearMbo, java.lang.String attr) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Hashtable getAssetsBeingMovedFromMultiAssetLocCI()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void storeAssetsBeingMovedFromMultiAssetLocCI(MboRemote asset) throws MXException, java.rmi.RemoteException
asset - MXExceptionjava.rmi.RemoteExceptionpublic void clearAssetsBeingMovedFromMultiAssetLocCI()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void changeStatus(MboRemote mbo, java.lang.String status, boolean rollToAllChildren, boolean removeFromActiveRoutes, boolean removeFromActiveSP, boolean changePMStatus) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createWorkorder(MboRemote mbo, java.lang.String jpnum) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createProblem(MboRemote mbo, java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createIncident(MboRemote mbo, java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createServiceRequest(MboRemote mbo, java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createChange(MboRemote mbo, java.lang.String jpnum) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean hasActiveRoutes(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean hasActiveSP(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean hasActivePM(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String uploadObservation(OslcRequest request) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException