public class PlusCAssetTemplate extends StatefulMbo implements PlusCAssetTemplateRemote
Modifier and Type | Field and Description |
---|---|
boolean |
duplicate |
onListTab, statusChangeButtonSigoption, targetStatusOption
MULTILANGCOPY, phantomList, phantomQueue
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
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) |
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.
|
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() |
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
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, 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, setDefaultValue, setDefaultValues, setDeleted, 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, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public PlusCAssetTemplate(MboSet ms) throws java.rmi.RemoteException, MXException
ms
- java.rmi.RemoteException
MXException
public void init() throws MXException
Mbo
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
Mbo
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String getStatusListName()
StatefulMbo
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public MboSetRemote generateAssetSpec() throws java.rmi.RemoteException, MXException
generateAssetSpec
in interface PlusCAssetTemplateRemote
java.rmi.RemoteException
MXException
generateAssetSpec()
public void clearClassification() throws java.rmi.RemoteException, MXException
PlusCAssetTemplateRemote
clearClassification
in interface PlusCAssetTemplateRemote
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionclearClassification()
public void initializeDepPeriodsFields() throws java.rmi.RemoteException, MXException
initializeDepPeriodsFields
in interface PlusCAssetTemplateRemote
MXException
java.rmi.RemoteException
initializeDepPeriodsFields()
public MboSetRemote getSpec() throws java.rmi.RemoteException, MXException
getSpec
in interface PlusCAssetTemplateRemote
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptiongetSpec()
public void save() throws MXException, java.rmi.RemoteException
StatefulMbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
Mbo
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- 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.MXException
java.rmi.RemoteException
Mbo.delete(long)
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mbo
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
public void propagateKeyValue(java.lang.String keyName, java.lang.String keyValue) throws MXException, java.rmi.RemoteException
Mbo
propagateKeyValue
in interface MboRemote
propagateKeyValue
in class Mbo
MXException
java.rmi.RemoteException
public void setCopyDefaults() throws MXException, java.rmi.RemoteException
Mbo
setCopyDefaults
in interface MboRemote
setCopyDefaults
in class Mbo
MXException
java.rmi.RemoteException
public boolean warrantyAuthorizedForSite(MboRemote warranty, java.lang.String siteID) throws java.rmi.RemoteException, MXException
warrantyAuthorizedForSite
in interface PlusCAssetTemplateRemote
warranty
- siteID
- java.rmi.RemoteException
MXException
warrantyAuthorizedForSite(MboRemote, String)
public boolean thereAreAuthorizedWarranties(java.lang.String siteID) throws java.rmi.RemoteException, MXException
thereAreAuthorizedWarranties
in interface PlusCAssetTemplateRemote
siteID
- java.rmi.RemoteException
MXException
thereAreAuthorizedWarranties(String)
public boolean isDuplicate() throws java.rmi.RemoteException
PlusCAssetTemplateRemote
isDuplicate
in interface PlusCAssetTemplateRemote
java.rmi.RemoteException
- the remote exceptionisDuplicate()
public void setDuplicate(boolean duplicate) throws java.rmi.RemoteException, MXException
PlusCAssetTemplateRemote
setDuplicate
in interface PlusCAssetTemplateRemote
duplicate
- the new duplicatejava.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionsetDuplicate(boolean)
public MboSetInfo getAssetTemplateMboSetInfo() throws java.rmi.RemoteException, MXException
getAssetTemplateMboSetInfo
in interface PlusCCustomizedTemplateValues
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic void setReadOnlyFields() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateDesc() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String generateDescription(ClassStructureRemote classMbo, PlusCATSpecSet specSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getDescDelimiter(boolean isForClassDesc) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getDescDelimiter() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector sortedClassSpecSet(MboSetRemote classSpecSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote createNewDepreciation() throws MXException, java.rmi.RemoteException
createNewDepreciation
in interface PlusCAssetTemplateRemote
MXException
java.rmi.RemoteException