public class PlusCAssetTemplate extends StatefulMbo implements PlusCAssetTemplateRemote
| Modifier and Type | Field and Description |
|---|---|
boolean |
duplicate |
onListTab, statusChangeButtonSigoption, targetStatusOptionMULTILANGCOPY, phantomList, phantomQueueALLROWS, 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| Constructor and Description |
|---|
PlusCAssetTemplate(MboSet ms) |
| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new Mbo is added to the Mboset collection.
|
void |
clearClassification()
Clear classification.
|
MboRemote |
createNewDepreciation() |
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
duplicate()
Duplicate method only throws exception now
|
MboSetRemote |
generateAssetSpec() |
java.lang.String |
generateDescription(ClassStructureRemote classMbo,
PlusCATSpecSet specSet) |
protected void |
generateMetersForMeterGroup() |
MboSetInfo |
getAssetTemplateMboSetInfo()
Checks if, for every meter defined as meter frequency for any attached Master PM, there is a similar one
attached to the template.
|
java.lang.String |
getDescDelimiter() |
java.lang.String |
getDescDelimiter(boolean isForClassDesc) |
MboSetRemote |
getSpec()
Gets the PlusTATSpecSet and reset it if mboset hasn't mbos to be deleted.
|
protected StatusHandler |
getStatusHandler()
Checks if the attributes required to generate the depreciation scheduled are set.
|
protected MboSetRemote |
getStatusHistory()
Return the MboSet object used for storing the status change history.
|
java.lang.String |
getStatusListName()
Return the name of the value list which contains the list of status's.
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
initializeDepPeriodsFields()
Initialize plustdepperiodsdate or plustdepperiodsmeter from plustdepperiods value
|
boolean |
isDuplicate()
Checks if is duplicate.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Method for propagating key value.
|
void |
save()
Overrides the save of Mbo so that a row is added to the status history
table when a new object is saved.
|
void |
setCopyDefaults()
Programmer should override this method a initialize any fields that are not copied correctly by the
copy() method.
|
void |
setDuplicate(boolean duplicate)
Sets the duplicate.
|
void |
setReadOnlyFields() |
protected boolean |
skipCopyField(MboValueInfo mvi)
Called in @link psdi.mbo.Mbo#copy(MboSetRemote, long)
|
java.util.Vector |
sortedClassSpecSet(MboSetRemote classSpecSet)
IV73397: the sequence now is in ClassSpecUseWith records, sort the CLASSPEC records and
store in a Vector by the sequence.
|
boolean |
thereAreAuthorizedWarranties(java.lang.String siteID)
Checks if there are any warranties authorized for the site identified by siteID.
|
void |
updateDesc()
sets the description field to the generated value obtained from the setup of the classstructureid (in asset
catalog setup) and the values/measureunits in the assetspec set.
|
boolean |
warrantyAuthorizedForSite(MboRemote warranty,
java.lang.String siteID)
Checks if there is a record in the CONTRACTAUTH table whose authsideid attribute matches
the siteID.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption, statusToOptionNameaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic PlusCAssetTemplate(MboSet ms) throws java.rmi.RemoteException, MXException
ms - java.rmi.RemoteExceptionMXExceptionpublic void init()
throws MXException
Mboinit in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
Mboadd in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionprotected StatusHandler getStatusHandler()
getStatusHandler in class StatefulMboMXExceptionjava.rmi.RemoteExceptionprotected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
StatefulMbogetStatusHistory in class StatefulMboMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getStatusListName()
StatefulMbogetStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMboprotected void generateMetersForMeterGroup()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic MboSetRemote generateAssetSpec() throws java.rmi.RemoteException, MXException
generateAssetSpec in interface PlusCAssetTemplateRemotejava.rmi.RemoteExceptionMXExceptionPlusCAssetTemplate.generateAssetSpec()public void clearClassification()
throws java.rmi.RemoteException,
MXException
PlusCAssetTemplateRemoteclearClassification in interface PlusCAssetTemplateRemotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionPlusCAssetTemplate.clearClassification()public void initializeDepPeriodsFields()
throws java.rmi.RemoteException,
MXException
initializeDepPeriodsFields in interface PlusCAssetTemplateRemoteMXExceptionjava.rmi.RemoteExceptionPlusCAssetTemplate.initializeDepPeriodsFields()public MboSetRemote getSpec() throws java.rmi.RemoteException, MXException
getSpec in interface PlusCAssetTemplateRemotejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionPlusCAssetTemplate.getSpec()public void save()
throws MXException,
java.rmi.RemoteException
StatefulMbosave in class StatefulMboMXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
Mbodelete in interface MboRemotedelete in class MboaccessModifier - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mboduplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionprotected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField in class Mbomvi - java.rmi.RemoteExceptionMXExceptionpublic void propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
throws MXException,
java.rmi.RemoteException
MbopropagateKeyValue in interface MboRemotepropagateKeyValue in class MboMXExceptionjava.rmi.RemoteExceptionpublic void setCopyDefaults()
throws MXException,
java.rmi.RemoteException
MbosetCopyDefaults in interface MboRemotesetCopyDefaults in class MboMXExceptionjava.rmi.RemoteExceptionpublic boolean warrantyAuthorizedForSite(MboRemote warranty, java.lang.String siteID) throws java.rmi.RemoteException, MXException
warrantyAuthorizedForSite in interface PlusCAssetTemplateRemotewarranty - siteID - java.rmi.RemoteExceptionMXExceptionPlusCAssetTemplate.warrantyAuthorizedForSite(MboRemote, String)public boolean thereAreAuthorizedWarranties(java.lang.String siteID)
throws java.rmi.RemoteException,
MXException
thereAreAuthorizedWarranties in interface PlusCAssetTemplateRemotesiteID - java.rmi.RemoteExceptionMXExceptionPlusCAssetTemplate.thereAreAuthorizedWarranties(String)public boolean isDuplicate()
throws java.rmi.RemoteException
PlusCAssetTemplateRemoteisDuplicate in interface PlusCAssetTemplateRemotejava.rmi.RemoteException - the remote exceptionPlusCAssetTemplate.isDuplicate()public void setDuplicate(boolean duplicate)
throws java.rmi.RemoteException,
MXException
PlusCAssetTemplateRemotesetDuplicate in interface PlusCAssetTemplateRemoteduplicate - the new duplicatejava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionPlusCAssetTemplate.setDuplicate(boolean)public MboSetInfo getAssetTemplateMboSetInfo() throws java.rmi.RemoteException, MXException
getAssetTemplateMboSetInfo in interface PlusCCustomizedTemplateValuesjava.rmi.RemoteException - the remote exceptionMXException - the mX exceptionpublic void setReadOnlyFields()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void updateDesc()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String generateDescription(ClassStructureRemote classMbo, PlusCATSpecSet specSet) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getDescDelimiter(boolean isForClassDesc)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getDescDelimiter()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector sortedClassSpecSet(MboSetRemote classSpecSet) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createNewDepreciation() throws MXException, java.rmi.RemoteException
createNewDepreciation in interface PlusCAssetTemplateRemoteMXExceptionjava.rmi.RemoteException