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, 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 |
---|
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
|
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,
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
|
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, 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, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, 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, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, 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, 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, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public boolean copyValueChanged
public MboRemote oldSpecMarkedUnDeleted
public java.lang.String numValueBeforeFormat
public SpecificationMbo(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote canGenerateDesc() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void addDetailInfor(MboRemote wo, MboRemote classspec) throws MXException, java.rmi.RemoteException
SpecificationMboRemote
addDetailInfor
in interface SpecificationMboRemote
mbo
- classspec
- MXException
java.rmi.RemoteException
public void setCopyValueChanged(boolean changed) throws MXException, java.rmi.RemoteException
changed
- true if changed, false if notMXException
java.rmi.RemoteException
public java.lang.String getDomainId() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getClassSpecRecord() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getMaxTableDomainObject() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setMaxTableDomainObject(MboRemote passedDomain) throws MXException, java.rmi.RemoteException
passedDomain
- MXException
java.rmi.RemoteException
public java.lang.String getMeasureUnitId() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getDataType() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void initFieldFlagsOnMbo(java.lang.String attrName) throws MXException
Mbo
initFieldFlagsOnMbo
in class Mbo
MXException
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String generateDesc() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void notifyDescChange() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setALNOrNUMReadOnly() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public MboRemote getClassSpecUseWith() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getClassSpecUseWith(MboRemote thisMbo, MboRemote classspec) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getClassSpecUseWith(MboRemote thisMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setOldSpecMarkedUndeleted(MboRemote oldSpecUndeleted) throws MXException, java.rmi.RemoteException
oldSpecUndeleted
- MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateDesc() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getCorrectOwner() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setValue(java.lang.String attributeName, java.lang.String val, long accessModifier) throws MXException, java.rmi.RemoteException
setValue
in interface MboRemote
setValue
in class Mbo
attributeName
- 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.RemoteException
Mbo.setValue(String,String,long)
public java.lang.String getNumValueBeforeFormat() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateKeyUniqueness() throws MXException, java.rmi.RemoteException
validateKeyUniqueness
in class Mbo
MXException
java.rmi.RemoteException
public void setAssetAttributeMbo(MboRemote attrMbo) throws MXException, java.rmi.RemoteException
attrMbo
- MXException
java.rmi.RemoteException
public MboRemote getAssetAttributeMbo() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getTableDomainObject(java.lang.String domainId) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public void setValue(java.lang.String attributeName, MaxType mboValue, long accessModifier) throws MXException, java.rmi.RemoteException
setValue
in interface MboRemote
setValue
in class Mbo
MXException
java.rmi.RemoteException
Mbo.setValue(String,MaxType,long)
public MboRemote copy(MboSetRemote mboset, long mboAddFlags) throws MXException, java.rmi.RemoteException
Mbo
copy
in interface MboRemote
copy
in class Mbo
mboset
- 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.MXException
java.rmi.RemoteException
Mbo.copy( MboSetRemote mboset, long mboAddFlags)