public class AssetSpec extends SpecificationMbo implements AssetSpecRemote, SpecHistoryInterface
This is a site level object.
The key attributes for this object are as follows: SiteId, Assetnum, AssetAttrId.
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
ALNValue | Alphanumeric(text) value in entered units for the attribute specified. Editable only when the attribute is of ALN type. Defaults from ClassSpec.DefaultALNValue. |
| AssetAttrid | Asset attribute identifier.Unique to the asset.
|
| ChangeBy, ChangeDate | Name of the user who last updated this object and date of last change. The ChangeBy attribute defaults to the current user unless a value is provided. The ChangeDate attribute defaults to the MXServer date/time unless a value is provided. |
| ClassStructureid | Identifier of the class structure associated with this asset specification.Class structures are the hierarchies of
classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
|
| DisplaySequence | A number to indicate this object's display sequence in the asset's specification. Value is copied from corresponding class specification when the asset specificition is created. |
| AssetNum | Asset Number.
|
| InheritedFromItem | Boolean flag to indicate whether or not asset specification is inherited from an asset's rotating item specification. Default value is No. |
| ItemSpecValueChanged | Indicates whether or not the corresponding item specification value has changed after being inherited. N indicates if AlnValue or NumValue has not been changed; Y indicates the value has been changed since its inheritance from the Item Specification. |
MeasureUnitId | Unit of Measure for the AlnValue or NumValue entered.
Value is initially copied from ClassSpec but can be edited after the copy.
|
NUMValue | Numeric value in entered units for the attribute specified. Editable only when the attribute is of NUMERIC type. |
| OrgId | Identifier of the organization for this specification.
|
| SiteId | Identifier of the site for this specification.
|
| ES01 - ES05 | Cross-over fields from ClassSpec.CS01 to ClassSpec.CS05, respectively |
ClassStructure,
MeasureUnitcopyValueChanged, numValueBeforeFormat, oldSpecMarkedUnDeletedMULTILANGCOPY, 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 |
|---|
AssetSpec(MboSet ms)
Construct the AssetSpec object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
sets defaults values for a new AssetSpec object.
|
void |
addDetailInfor(MboRemote asset,
MboRemote mbo)
copies additional information from Asset and ClassSpec
to this AssetSpec object.
|
void |
canDelete()
Checks to see if this object can be deleted,only
classspec or asset can delete this assetspec object.
|
MboRemote |
canGenerateDesc()
Returns a ClassSpec mbo if the AssetAttrID, AlnValue/NumValue, or MeasureUnitID
can be included in the description generation process for the asset.
|
MboSetRemote |
getSpecHistory()
Returns the specification history table for the implementing object.
|
void |
init()
06-12701: linear assets: make the linear asset fields editable only
when the asset.isLinear is true
|
boolean |
isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
Indicate whether the changeed by user flag should be set to the attribute when it is set along with other key field
when the lookup attribute is being set on this Linear Mbo.
|
boolean |
isSpecModified()
Specifies if the specification object is modified enough to write a history
record.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for assetnum.
|
void |
save()
save the assetSpec object.
|
void |
setCopyValueChanged(boolean changed)
sets instance variable copyValueChanged for a rotating AssetSpec.
|
void |
updateSpecHistory()
Update the history object for the impelementing object.
|
appValidate, copy, generateDesc, getAssetAttributeMbo, getClassSpecRecord, getClassSpecUseWith, getClassSpecUseWith, getClassSpecUseWith, getCorrectOwner, getDataType, getDomainId, getMaxTableDomainObject, getMeasureUnitId, getNumValueBeforeFormat, getTableDomainObject, initFieldFlagsOnMbo, modify, notifyDescChange, setALNOrNUMReadOnly, setAssetAttributeMbo, setMaxTableDomainObject, setOldSpecMarkedUndeleted, setValue, setValue, undelete, updateDesc, validateKeyUniquenessaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initRelationship, isAutoKeyed, isBasedOn, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setUniqueIDValue, 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, unlock, unselect, useDataSecurity, validate, validateAttributes, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, duplicate, 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, 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, setCopyDefaults, 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, validateAttributespublic AssetSpec(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class SpecificationMboMXException - MAXIMO System errorjava.rmi.RemoteException - RMI errorpublic void addDetailInfor(MboRemote asset, MboRemote mbo) throws MXException, java.rmi.RemoteException
addDetailInfor in interface SpecificationMboRemoteaddDetailInfor in class SpecificationMboasset - Asset mbo from which additional information
is obtained for this AssetSpec objectmbo - ClassSpec mbo from which additional information
is obtained for this AssetSpec objectMXApplicationException("asset","notAnAssetRecord") - if mbo
passed in first parameter is not an Asset mboMXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class SpecificationMboMXExceptionpublic void setCopyValueChanged(boolean changed)
throws MXException,
java.rmi.RemoteException
setCopyValueChanged in class SpecificationMbochanged - boolean value to set this instance variable to true or false.MXExceptionjava.rmi.RemoteExceptionpublic MboRemote canGenerateDesc() throws MXException, java.rmi.RemoteException
canGenerateDesc in class SpecificationMboMXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXApplicationException("asset","noDeleteAssetSpec") - if
the object attempting to delete this object is not an
Asset or ClassSpec objectMXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
save in class SpecificationMboMXExceptionjava.rmi.RemoteExceptionpublic void propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
throws MXException,
java.rmi.RemoteException
propagateKeyValue in interface MboRemotepropagateKeyValue in class MbokeyName - Should equal "assetnum" or else nothing will be propagated.keyValue - The new value of assetnum.MXExceptionjava.rmi.RemoteExceptionpublic boolean isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
java.lang.String attributeName)
isChangeByUserWhenSetFromLookup in class MbolookupAttrName - the attribute whose lookup is being called.attributeName - the attribute that is not the lookup attribute.public boolean isSpecModified()
throws MXException,
java.rmi.RemoteException
SpecHistoryInterfaceisSpecModified in interface SpecHistoryInterfaceMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getSpecHistory() throws MXException, java.rmi.RemoteException
SpecHistoryInterfacegetSpecHistory in interface SpecHistoryInterfaceMXExceptionjava.rmi.RemoteExceptionpublic void updateSpecHistory()
throws MXException,
java.rmi.RemoteException
SpecHistoryInterfaceupdateSpecHistory in interface SpecHistoryInterfaceMXExceptionjava.rmi.RemoteException