public interface PMServiceRemote extends AppServiceRemote
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
crtPARENT
Criteria for Parent PM.
A PM can be a parent if pm.route == null and is not this same PM(it cannot be parent for itself) or one of its children, creating a loop in the hierarchy structure. |
Modifier and Type | Method and Description |
---|---|
PMSetRemote |
generateWork(UserInfo ui,
java.util.Enumeration enumit,
boolean useFreq,
int leadtime) |
void |
generateWorkNoPMSetReturn(UserInfo ui,
java.util.Enumeration enumit,
boolean useFreq,
int leadtime) |
void |
generateWorkNoPMSetReturn(UserInfo ui,
java.util.Enumeration enumit,
boolean useFreq,
int leadtime,
java.lang.String repairFac,
java.lang.String repSite,
boolean useAssetDef) |
PMSetRemote |
genPMsFromMasterAsset(AssetRemote myAssetMbo)
Given an asset mbo, generate PMs from master PMs.
|
void |
meterBasedAutoWogen(MboRemote assetlocMbo) |
void |
meterBasedAutoWogen(MboRemote assetlocMbo,
MboRemote assetLocMeterMbo) |
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
static final java.lang.String crtPARENT
PMSetRemote genPMsFromMasterAsset(AssetRemote myAssetMbo) throws MXException, java.rmi.RemoteException
Get the set of PMs where itemnum = asset.itemnum,
(If assetnum is not null, subquery ensures that we didn't already create this one.)
Get another set of PM (which will probably be empty) belonging to asset mbo.
Loop through the master PMs.
For each, add a member to the asset's set of PMs.
For each added member, set remaining values via pm.setupPMFromMaster.
Return the set of new PMs.
myAssetMbo
- the piece of asset for which PMs are being generatedMXException
java.rmi.Remote
- Exceptionjava.rmi.RemoteException
PMSetRemote generateWork(UserInfo ui, java.util.Enumeration enumit, boolean useFreq, int leadtime) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
PMService.generateWork(psdi.security.UserInfo, java.util.Enumeration, boolean, int)
void generateWorkNoPMSetReturn(UserInfo ui, java.util.Enumeration enumit, boolean useFreq, int leadtime) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
PMService.generateWorkNoPMSetReturn(UserInfo, Enumeration, boolean, int)
void meterBasedAutoWogen(MboRemote assetlocMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void meterBasedAutoWogen(MboRemote assetlocMbo, MboRemote assetLocMeterMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void generateWorkNoPMSetReturn(UserInfo ui, java.util.Enumeration enumit, boolean useFreq, int leadtime, java.lang.String repairFac, java.lang.String repSite, boolean useAssetDef) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
psdi.app.pm.PMService#generateWorkNoPMSetReturn(UserInfo, Enumeration, boolean, int, String, String)