public abstract class SpecificationMbo extends Mbo implements SpecificationMboRemote
| Modifier and Type | Field and Description |
|---|---|
boolean |
copyValueChanged
Variable for rotating assetspec or locationspec.
|
java.lang.String |
numValueBeforeFormat
08-11675: remember the numvalue as string before MAXTYPE
|
MboRemote |
oldSpecMarkedUnDeleted
The old(existing) that has same attribute/section that is being marked
undeleted, to replace this current(new) spec that will be deleted at save()
|
MULTILANGCOPY, 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 |
|---|
SpecificationMbo(MboSet ms)
Constructs the SpecificationMbo object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
PERFORMANCE TEST: add this:
|
void |
addDetailInfor(MboRemote wo,
MboRemote classspec)
Performs the addion of an ItemSpec, AssetSpec, or LocationSpec.
|
void |
appValidate()
checks if aln or numvalue is entered if the value is required
|
MboRemote |
canGenerateDesc()
Determines if the numvalue/alnvaule plus the measureunit are allowed
to be included in the description generation process.
|
MboRemote |
copy(MboSetRemote mboset,
long mboAddFlags)
Adds a new mbo to the set passed in and copies the information for each
of the fields into the new mbo from this.
|
java.lang.String |
generateDesc()
Generates the description.
|
MboRemote |
getAssetAttributeMbo()
09-22396:
|
MboRemote |
getClassSpecRecord()
get ClassSpec Record for this SpecificationMbo
|
MboRemote |
getClassSpecUseWith()
Return ClassSpecUseWith
|
MboRemote |
getClassSpecUseWith(MboRemote thisMbo)
Return ClassSpecUseWith
|
MboRemote |
getClassSpecUseWith(MboRemote thisMbo,
MboRemote classspec)
Return ClassSpecUseWith
|
MboRemote |
getCorrectOwner() |
java.lang.String |
getDataType()
Gets the internal datatype of either "ALN" or "NUMERIC".
|
java.lang.String |
getDomainId()
Gets the domainId for this Specification.
|
MboRemote |
getMaxTableDomainObject()
Get the MaxTableDomain object for this specification
|
java.lang.String |
getMeasureUnitId()
Gets the measureunitid for this Specification.
|
java.lang.String |
getNumValueBeforeFormat()
08-11675
|
double |
getNumValueFromMIF()
IV90053: for FldSpecificationNumValue to compare values
|
MboRemote |
getTableDomainObject(java.lang.String domainId) |
void |
init()
Initializes the Specification object.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
void |
modify()
Called whenever a change is made to the attributes of SpecificationMbo.
|
void |
notifyDescChange()
set the description of Item/asset/location to its current value.
|
void |
save()
Writes or update the history record for this specification mbo.
|
void |
setALNOrNUMReadOnly()
set readonly ALNvalue or Numvalue depending on the datatype
|
void |
setAssetAttributeMbo(MboRemote attrMbo)
09-17914:AssetAttributeMbo is passed in.
|
void |
setCopyValueChanged(boolean changed) |
void |
setMaxTableDomainObject(MboRemote passedDomain)
Sets the maxTable value
|
void |
setOldSpecMarkedUndeleted(MboRemote oldSpecUndeleted)
Mark the boolean true or false
|
void |
setValue(java.lang.String attributeName,
double val,
long accessModifier)
IV90053: MIF calls setValue() from the inbound tags.
|
void |
setValue(java.lang.String attributeName,
MaxType mboValue,
long accessModifier)
Override the frame work method as the mbo copy method calls setValue passing in the MaxType.
|
void |
setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
08-11675: if the attributename is NUMVALUE, then get the val
|
boolean |
toOverrideScaleForMIF()
IV90053: indicates if FldSpecificationNumValue class shoudl override scale
|
boolean |
toUpdateReadOnly(java.lang.String attrName) |
void |
undelete()
This method undeletes a specification mbo that has been marked for deletion.
|
void |
updateDesc()
07-16935set the description field to be the generated value obtained from
the setup of the classstructureid (in asset catalog setup)
and the values/measureunits in the itemspec set.
|
void |
validateKeyUniqueness()
08-19506: override this method when the new spec mbo is to be deleted
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, deleteDoclinks, 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, 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, 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, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, 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, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, skipCopyField, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, 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, 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, propagateKeyValue, 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, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic boolean copyValueChanged
public MboRemote oldSpecMarkedUnDeleted
public java.lang.String numValueBeforeFormat
public SpecificationMbo(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote canGenerateDesc() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void addDetailInfor(MboRemote wo, MboRemote classspec) throws MXException, java.rmi.RemoteException
SpecificationMboRemoteaddDetailInfor in interface SpecificationMboRemotembo - classspec - MXExceptionjava.rmi.RemoteExceptionpublic void setCopyValueChanged(boolean changed)
throws MXException,
java.rmi.RemoteException
changed - true if changed, false if notMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getDomainId()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getClassSpecRecord() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getMaxTableDomainObject() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setMaxTableDomainObject(MboRemote passedDomain) throws MXException, java.rmi.RemoteException
passedDomain - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getMeasureUnitId()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getDataType()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic void initFieldFlagsOnMbo(java.lang.String attrName)
throws MXException
MboinitFieldFlagsOnMbo in class MboMXExceptionpublic boolean toUpdateReadOnly(java.lang.String attrName)
public void modify()
throws MXException,
java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String generateDesc()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void notifyDescChange()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setALNOrNUMReadOnly()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic MboRemote getClassSpecUseWith() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getClassSpecUseWith(MboRemote thisMbo, MboRemote classspec) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getClassSpecUseWith(MboRemote thisMbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setOldSpecMarkedUndeleted(MboRemote oldSpecUndeleted) throws MXException, java.rmi.RemoteException
oldSpecUndeleted - MXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXExceptionjava.rmi.RemoteExceptionpublic void updateDesc()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getCorrectOwner() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The string value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXException - "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.
"Field is read only" exception will be thrown
if the attribute is READONLY and the
accessModifier does not specify NOACCESSCHECK.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a string value of characters to an
attribute which has datatype of YORN.java.rmi.RemoteExceptionMbo.setValue(String,String,long)public java.lang.String getNumValueBeforeFormat()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void validateKeyUniqueness()
throws MXException,
java.rmi.RemoteException
validateKeyUniqueness in class MboMXExceptionjava.rmi.RemoteExceptionpublic void setAssetAttributeMbo(MboRemote attrMbo) throws MXException, java.rmi.RemoteException
attrMbo - MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getAssetAttributeMbo() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getTableDomainObject(java.lang.String domainId) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void setValue(java.lang.String attributeName,
MaxType mboValue,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboMXExceptionjava.rmi.RemoteExceptionMbo.setValue(String,MaxType,long)public MboRemote copy(MboSetRemote mboset, long mboAddFlags) throws MXException, java.rmi.RemoteException
Mbocopy in interface MboRemotecopy in class Mbomboset - The set into which the new mbo will be added.mboAddFlags - Flags to use when adding the new Mbo.
Values on the attribute are always set with NOACCESSCHECK|NOVALIDATION_AND_NOACTION.MXExceptionjava.rmi.RemoteExceptionMbo.copy( MboSetRemote mboset, long mboAddFlags)public void setValue(java.lang.String attributeName,
double val,
long accessModifier)
throws MXException,
java.rmi.RemoteException
setValue in interface MboRemotesetValue in class MboattributeName - The attribute name within the current object.val - The double value to set to the attribute.accessModifier - The bitwise flags such as NOACCESSCHECK,
NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.MXException - "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.
"Field is read only" exception will be thrown
if the attribute is READONLY and the
accessModifier does not specify NOACCESSCHECK.
"Invalid Data Type" exception will be thrown
for datatype mismatch. For example,
setting a double value to an
attribute which has data type of YORN or
DATETIME.java.rmi.RemoteExceptionMbo.setValue(String,double,long)public boolean toOverrideScaleForMIF()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic double getNumValueFromMIF()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException