public class PMSet extends MboSet implements PMSetRemote, MboSetRemote
dmDeploySet, dmDeploySkipFieldValidation, fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, mboVec, mrdVec, perfStats, strNoBaseLangValueEntered, toBeSavedACTIVEASSET, ACTIVELOC, ACTIVELOC2, ANCESTORS, ASSET, ASSOCASSET, ASSOCLOC, ASSOCPMFORASSET, ASSOCPMFORLOC, CHILDREN, DESCENDANTS, DOCLINKS, HIERARCHY, ITEM, JOBPLAN, LOCATIONS, MASTERPM, MEASUREPOINT, ORGLOCATION, PARENT, PMANCESTOR, PMMETER, PMSEASONS, PMSEQUENCE, PMSTATUSDUMMY, PMWORKGENERATION, PRIMARYSYSLOCPM, ROUTES, SITELOCATION, WORKORDERINSERTONLY, INSERTORUPDATE, UPDATEONLYALLROWS, 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 |
|---|
PMSet(MboServerInterface ms)
Construct the set
|
| Modifier and Type | Method and Description |
|---|---|
void |
canAdd()
Determines whether PM's can be added to this Set or not.
|
void |
canGenerateWork()
Determines whether work orders can be generated or not.
|
boolean |
checkWFEnabled()
This method checks whether to start the workflow process after the generation of workorder
from PM depending on the maxvar 'WFONPMGENERATION'.
|
void |
deleteForecast() |
void |
filterByLinearAsset(MboSetRemote fltrSet)
This method filters PM records by Linear asset.
|
void |
generateForecast(int genDuration)
Generates forecast for every PM in the set.
|
void |
generateWork(boolean useFreqCrit,
int leadTime)
Method that generates work orders for every PM in the set.
|
void |
generateWork(boolean useFreqCrit,
int leadTime,
boolean isCalledFromCrontask)
Method that generates work orders for every PM in the set.
|
void |
generateWorkPMAlerts()
This method is called by the PMAlertBean to generate Work Orders
on the selected PMs from the PMAlert Dialog.
|
protected Mbo |
getMboInstance(MboSet ms)
Generate a new PM object
|
java.util.Hashtable |
getOriginalPMQbe() |
java.lang.String |
getOriginalPMUserWhere() |
java.util.Vector |
getPMsChangeStatusVector()
IJ01049: vector stores pms in the pmSet via relationship "$assetPMs"
|
PM |
getTopPMFromVector(MboRemote oneTop)
IJ01049:compare the top PM in the vector.
|
void |
init()
Set AutoKeyFlag off if child PM is creating a record.
|
boolean |
isESigNeeded(java.lang.String optionName)
IJ07338:only apply to change status
|
void |
lockUnlockForecast(boolean lockForecast) |
void |
onlyTopLevels()
Takes the current where clause of the set and limits it further
to PM's which aren't sub-work orders.
|
void |
reset()
reset method is overriden to set back the flags related to WorkFlow to the default
values.
|
void |
resetEsigCounter() |
void |
resetMeterReadings()
This method resets all the meterreadings of the PM based on the asset number.
|
void |
setEsigSinged(boolean signed)
IJ28446: if the change staus code is executed, then user has signed esig
window.
|
void |
setOriginalPMQbe(java.util.Hashtable inQbe) |
void |
setOriginalPMUserWhere(java.lang.String inWhere) |
abortSql, add, add, addAliasForML, addAliasForML, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addFederatedMboToSorter, addJoinedAttribute, addMbo, addMbo, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyAppSpecificAuthorization, applyRowSecurity, avg, cancelAndClose, checkMethodAccess, checkMethodAccess, cleanup, clear, clearBatchedPreparedStmt, clearBatchedPreparedStmts, clearESigTransactionIdThread, clearESigTransIDForAdmin, clearIgnoredAutokeyAttrs, clearLongOpPipe, clearToBeSaved, clearTransactionReference, clearWarnings, close, commit, commitTransaction, copy, copy, copy, copyForDM, count, count, countAndCleanup, countAndCleanup, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, deleteMbo, determineRequiredFieldsFromERM, dump, earliestDate, enableMethod, executeBatch, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, forceDBSort, getAllAppAlwaysFieldFlags, getAllowQualifiedRestriction, getAlwaysFlags, getAlwaysFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getAttrRestrictions, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getFloat, getFromClause, getIgnoredAutokeyAttrs, getInsertCompanySet, getInsertItemSet, getInsertOrg, getInsertSite, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxAppsWhere, getMaxMessage, getMbo, getMbo, getMboCtx, getMboForUniqueId, getMboLogger, getMboServer, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMultiSiteWhere, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getPreparedStmt, getProfile, getProxy, getQbe, getQbe, getQbe, getQbeSiteAuthorization, getQbeWhere, getQualifiedWhere, getQueryTimeout, getRelationName, getRelationship, getRetainRecordLimit, getRowRestrictions, getSecurityLogger, getSelectClause, getSelectClause, getSelection, getSelectionWhere, getSelectWhereClause, getSetOrderByForUI, getSharedMboSet, getSize, getSkipFirstNRows, getSqlLogger, getSQLOptions, getString, getTranslator, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserPrefWhere, getUserWhere, getUserWhere, getWarnings, getWhere, getZombie, handleMLMbo, handleMLMbo, hasMLQbe, hasQbe, hasWarnings, ignoreAutokeyAttr, ignoreAutokeyAttr, ignoreQbeExactMatchSet, includeRelatedMbosOfOwnersChildren, incrementDeletedCount, init, initDataDictionary, insertDeltaRow, insertMbo, isBasedOn, isClosed, isDeltaStorage, isDMDeploySet, isDMSkipFieldValidation, isDownloadSet, isEAuditFieldModified, isEAuditNeeded, isEmpty, isESigFieldModified, isESigNeeded, isFlagSet, isIgnoreQbeExactMatchSet, isInMemorySort, isJoinedAttribute, isLookup, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, isRetainRecordEnabled, isTableDomainLookup, latestDate, locateMbo, logESigVerification, logRowUpdatedException, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, moveToKey, newMboIndex, notExist, positionState, processML, remove, remove, remove, removeAllJoinedAttributes, removeCtx, removeJoinedAttribute, resetForRefreshOnSave, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, save, save, saveMbos, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setBindValueAsBytes, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDiscardableFlag, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setEAuditFieldModified, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFederatedResources, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboCtx, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setNoSaveFlag, setOrderBy, setOrderByNVL, setOverrideSelectClause, setOverrideSelectFromClause, setOverrideSelectWhereClause, setOwner, setPreserveOrderByCase, setProxy, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSkipFirstNRows, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, smartFind, smartFind, sort, splitOrderBy, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, updateMbo, updateMboSetRetainMboPositionData, updateRelatedMboSetRetainMboPositionData, useStoredQuery, validate, validateTransaction, verifyESigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, close, commit, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, earliestDate, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, getApp, getAppAlwaysFieldFlags, getAppWhere, getCompleteWhere, getCurrentPosition, getDBFetchMaxRows, getDefaultValue, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getKeyAttributes, getList, getList, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getProfile, getQbe, getQbe, getQbe, getQbeWhere, getQueryTimeout, getRelationName, getRelationship, getSelection, getSelectionWhere, getSetOrderByForUI, getSize, getSQLOptions, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserWhere, getWarnings, getWhere, getZombie, hasMLQbe, hasQbe, hasWarnings, ignoreQbeExactMatchSet, incrementDeletedCount, init, isBasedOn, isDMDeploySet, isDMSkipFieldValidation, isDownloadSet, isEmpty, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, newMboIndex, notExist, positionState, processML, remove, remove, remove, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOwner, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, verifyESiggetBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getString, isNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNullcommitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransactionpublic PMSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
ms - The Mbo Server interfaceMXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException,
java.rmi.RemoteException
init in class MboSetMXExceptionjava.rmi.RemoteExceptionMboSet.setOwner(MboRemote)protected Mbo getMboInstance(MboSet ms) throws MXException, java.rmi.RemoteException
getMboInstance in class MboSetms - MboSetMXExceptionjava.rmi.RemoteExceptionpublic void canGenerateWork()
throws java.rmi.RemoteException,
MXException
canGenerateWork in interface PMSetRemoteMXException - If there are unsaved modifications to the PM,
then MXApplicationException("PM","SetUnsavedNoGen")java.rmi.RemoteExceptionPMSet.canGenerateWork()public void generateWork(boolean useFreqCrit,
int leadTime)
throws MXException,
java.rmi.RemoteException
generateWork in interface PMSetRemoteuserFreqCrit - Flag whether to use frequency criteria or not to figure out when to
generate work orders.leadTime - The number of days ahead to generate work orders for.MXExceptionjava.rmi.RemoteExceptionPM.generateWork(boolean, int, boolean)public void generateWork(boolean useFreqCrit,
int leadTime,
boolean isCalledFromCrontask)
throws MXException,
java.rmi.RemoteException
generateWork in interface PMSetRemoteuserFreqCrit - Flag whether to use frequency criteria or not to figure out when to
generate work orders.leadTime - The number of days ahead to generate work orders for.isCalledFromCrontask - If this method is called from a CronTaskMXExceptionjava.rmi.RemoteExceptionPM.generateWork(boolean, int, boolean)public void resetMeterReadings()
throws MXException,
java.rmi.RemoteException
resetMeterReadings in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionPMSet.resetMeterReadings()public void onlyTopLevels()
throws MXException,
java.rmi.RemoteException
onlyTopLevels in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionPMSetRemote.onlyTopLevels()public void canAdd()
throws MXException
canAdd in class MboSetMXExceptionpublic boolean checkWFEnabled()
throws MXException,
java.rmi.RemoteException
MXException - If workflow process is not enabled, then MXApplicationException("MASTERPM", "WFMessage");java.rmi.RemoteExceptionpublic void reset()
throws MXException,
java.rmi.RemoteException
reset in interface MboSetRemotereset in class MboSetMXExceptionjava.rmi.RemoteExceptionMboSet.save()public void generateWorkPMAlerts()
throws MXException,
java.rmi.RemoteException
generateWorkPMAlerts in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionPMSet.generateWorkPMAlerts()public void filterByLinearAsset(MboSetRemote fltrSet) throws MXException, java.rmi.RemoteException
filterByLinearAsset in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.Hashtable getOriginalPMQbe()
throws MXException,
java.rmi.RemoteException
getOriginalPMQbe in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getOriginalPMUserWhere()
throws MXException,
java.rmi.RemoteException
getOriginalPMUserWhere in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setOriginalPMUserWhere(java.lang.String inWhere)
throws MXException,
java.rmi.RemoteException
setOriginalPMUserWhere in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setOriginalPMQbe(java.util.Hashtable inQbe)
throws MXException,
java.rmi.RemoteException
setOriginalPMQbe in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic void generateForecast(int genDuration)
throws MXException,
java.rmi.RemoteException
generateForecast in interface PMSetRemotegenDuration - The number of days ahead to generate forecast for.MXExceptionjava.rmi.RemoteExceptionpsdi.skd.app.pm.SKDPMSet#generateForecast()public void deleteForecast()
throws MXException,
java.rmi.RemoteException
deleteForecast in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.skd.app.pm.SKDPMSet#deleteForecast()public void lockUnlockForecast(boolean lockForecast)
throws MXException,
java.rmi.RemoteException
lockUnlockForecast in interface PMSetRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.skd.app.pm.SKDPMSet#lockUnlockForecast(boolean lockForecast)public PM getTopPMFromVector(MboRemote oneTop) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector getPMsChangeStatusVector()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void resetEsigCounter()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isESigNeeded(java.lang.String optionName)
throws MXException,
java.rmi.RemoteException
isESigNeeded in interface MboSetRemoteisESigNeeded in class MboSetMXExceptionjava.rmi.RemoteExceptionpublic void setEsigSinged(boolean signed)
throws MXException,
java.rmi.RemoteException
set - MXExceptionjava.rmi.RemoteException