public class ItemStruct extends Mbo implements ItemStructRemote
This is a organization level object.
The key attributes in this object are as follows: OrgId, ItemId, Itemnum, ItemSetID, Instance
The attributes in this object are as follows:
Assetnum | Non-persistent attribute. Is the new asset created when IAS is being applied on the parent asset. |
GlAccouunt | Non-persistent attribute.
Used to store general ledger account.
|
| Instance | Indicates the number of instances of this itemnum within the entire Itemstruct table. In other words, number of item assembly structures this itemnum belongs to. This value increments by one for each new Itemstruct object created for a given itemnum from the previous maximum Instance value for the itemnum. |
| Itemid | Top-level item for the item assembly structure. |
Itemnum | Item Number.
|
ItemSetID | Identifier of the itemset identifier for this object.
|
| Ldkey | Long description key used when a long description is added under the Remark attribute. |
IasDescription | Non-persistent attribute. Is used to hold the description entered for the new location/asset generated through apply IAS process. |
Location | Non-persistent attribute. Is the new location created when IAS is applied on the parent location. |
| OrgId | Identifier of the organization for this item assembly structure.
|
Parent | Parent item number. |
| Parinst | Number of parent instance in an IAS. Itemnum can be a parent to other itemnums in more than one hierarchy, this value refers to the correct parent instance for the current Itemstruct object. |
| Quantity | Spare part quantity. This is the quantity set to the Sparepart which is created when IAS is applied to the piece of asset. |
Rotsuspacct | Non-persistent column. Used to store rotating suspense account. |
| Remark | Remark is associated with itemnum within an item assembly structure (IAS). Remark applies only to the itemnum within the context of the IAS and so is different from the Description attribute of the itemnum's Item object. Remark is read-only except when this Itemstruct object represents the top-level itemnum within the IAS, that is the parent attribute is null. |
| IAS1 - IAS5 | extra fields |
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 |
|---|
ItemStruct(MboSet ms)
Construct the ITEMSTRUCT object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a new ItemStruct record
Field defaults are set
|
void |
applyIAS(MboRemote thisOwner,
ItemRemote myItemMbo)
Public method for starting the Apply IAS procedure.
|
void |
appValidate()
appValidate()
Application validation routine called before the itemstruct object is saved
Method validates if the top level item has no parent.
|
void |
canDelete()
before allowing this ItemStruct to be deleted, checks to
make sure that structure to which this ItemStruct belongs, if
it is a kit, has not yet been added to a storeroom.
|
protected void |
copyDescendants()
copies this item's children to the current hierarchy if this item has its own sub-hierarchy
When adding a top level ItemStruct, there is no need of copy descendants.
|
void |
copyIAS(MboSetRemote adoptedItemStructSet,
boolean justTopItem)
begins the copy IAS process.
|
void |
copyItemOnly(boolean justTheItem)
|
void |
delete(long access)
delete(long) routine
A itemstruct record is deleted when it itself and its children are
being disconnected from the system.
|
protected void |
doCopy(MboSetRemote newChildren,
int parentsinstance)
This ItemStruct's job for doCopy is
1 copy a new ItemStruct in the passed newChildren mboset for the new ItemID;
Note this is just itemonly copy.
2 Ask its own children to do the same. |
boolean |
getAutoKey()
For apply IAS: should the new asset/location created be autokeyed?
|
MboSetRemote |
getChildren()
returns the set of Itemstruct objects that are children to this
Itemstruct object
|
java.lang.String[] |
getHierarchy()
begins the process of finding all this ItemStruct object's ancestors.
|
MboRemote |
getMyAssetInputMbo()
For Apply IAS to asset via virtual mbo AssetInput, return the assetInput mbo related to this node on the ItemStruct tree.
|
MboRemote |
getMyAssetMbo()
For Apply IAS to asset, return the asset mbo related to this node on the ItemStruct tree.
|
ItemRemote |
getMyItemMbo()
For Apply IAS, returns the Item mbo
related to this node on the ItemStruct tree.
|
MboRemote |
getMyLocationMbo()
For Apply IAS to location, return the location mbo related to this node on the ItemStruct tree.
|
java.lang.String |
getOrgForGL(java.lang.String lookupAttr)
Override Mbo.getOrgForGL as ITEMSTRUCT is an ITEMSET object and
GLAccount needs ORGID to work.
|
MboSetRemote |
getParents()
returns the Itemstruct set that contains the parent to this
Itemstruct object
|
MboSetRemote |
getTop()
gets the topmost mbo for the current Itemstruct hierarchy mboset.
|
boolean |
hasChildren()
Does this Itemstruct object have children?
|
boolean |
hasParents()
Is the item NOT top level, that is, does it have a parent?
|
void |
init()
init routine
Fields are readonly after insert
|
boolean |
isRotating()
For Apply IAS, is this node a rotating item.
|
boolean |
isTop()
Is the item top level, that is, is it without a parent?
|
protected void |
notifyIASDescChange()
if IASDescription was changed
|
void |
save()
Save() routine - upon insert of a child item, copy its children to the current hierarchy
if the child item has its own sub hierarchy.
|
void |
setAutoKey()
For Apply IAS:set the private variable autoKey to true, meaning the new
asset/location generated based on this IAS will be autokeyed.
|
void |
setIsApplyIAS(boolean isInApplyIAS)
08-18077: indicates this itemstruct is in apply ias
|
protected void |
setMyAssetInputMbo(MboRemote assetInput)
Keeps the AssetInput instance for this ItemStruct as IAS is being called on this object.
|
protected void |
setMyAssetMbo(MboRemote asset)
For Apply IAS to asset, the asset being applied IAS.
|
protected void |
setMyLocationMbo(MboRemote loc)
For Apply IAS:set the location mbo related to this IAS.
|
void |
setValue(java.lang.String attributeName,
java.lang.String val,
long accessModifier)
06-14915: override setValue to copy non-persistent value glaccount to
the new location created as a result of Apply IAS.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, 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, 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, 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, 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, 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, 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 ItemStruct(MboSet ms) throws MXException, java.rmi.RemoteException
ms - MXExceptionjava.rmi.RemoteExceptionpublic boolean isTop()
throws MXException,
java.rmi.RemoteException
isTop in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.isTop()public MboSetRemote getTop() throws MXException, java.rmi.RemoteException
getTop in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionisToppublic boolean hasChildren()
throws MXException,
java.rmi.RemoteException
hasChildren in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.hasChildren()public boolean hasParents()
throws MXException,
java.rmi.RemoteException
hasParents in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.hasParents()public MboSetRemote getChildren() throws MXException, java.rmi.RemoteException
getChildren in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.getChildren()public MboSetRemote getParents() throws MXException, java.rmi.RemoteException
getParents in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionparentCheckpublic java.lang.String[] getHierarchy()
throws MXException,
java.rmi.RemoteException
getHierarchy in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionString[] getHierarchy(Vector hierarchy)public void applyIAS(MboRemote thisOwner, ItemRemote myItemMbo) throws MXException, java.rmi.RemoteException
applyIAS in interface ItemStructRemotemyItemMbo - The Item mbo related to this node on the
ItemStruct tree. May be nullthisOwner - For Apply IAS, the mbo that is having the
IAS applied to it. May not be null! For Apply IAS to Asset,
this is the Asset Mbo related to this node on the ItemStruct
tree.MXExceptionjava.rmi.RemoteExceptionItemStruct.applyIAS(MboRemote thisOwner, ItemRemote myItemMbo)public ItemRemote getMyItemMbo() throws MXException, java.rmi.RemoteException
getMyItemMbo in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.getMyItemMbo()public MboRemote getMyAssetMbo() throws MXException, java.rmi.RemoteException
getMyAssetMbo in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.getMyAssetMbo()protected void setMyAssetMbo(MboRemote asset) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getMyAssetInputMbo() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void setMyAssetInputMbo(MboRemote assetInput) throws MXException, java.rmi.RemoteException
assetInput - an instance of AssetInputRemote, a non-persistent object created
in the Receive Rotating Items page.MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getMyLocationMbo() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void setMyLocationMbo(MboRemote loc) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void notifyIASDescChange()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean getAutoKey()
throws MXException,
java.rmi.RemoteException
getAutoKey in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.getAutoKey()public void setAutoKey()
throws MXException,
java.rmi.RemoteException
setAutoKey in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.setAutoKey()public boolean isRotating()
throws MXException,
java.rmi.RemoteException
isRotating in interface ItemStructRemoteMXExceptionjava.rmi.RemoteExceptionItemStruct.isRotating()public void init()
throws MXException
init in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException
canDelete in class MboMXExceptionItem.canModifyKitStructure()public void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic void delete(long access)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class Mboaccess - modifier such as NOACCESCHECK.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXExceptionjava.rmi.RemoteExceptionprotected void copyDescendants()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void doCopy(MboSetRemote newChildren, int parentsinstance) throws MXException, java.rmi.RemoteException
newChildren - the MboSet where the new ItemStruct is copied.parentsinstance - used for recursive calls of this method. It is the instance
of the last ItemStruct added in the previous call to this method
that will be the parent instance of the ItemStruct that is about
to be added in the ensuing recursive call. Should be -1 when this
method is called from anywhere but within itself.MXExceptionjava.rmi.RemoteExceptionpublic void copyIAS(MboSetRemote adoptedItemStructSet, boolean justTopItem) throws MXException, java.rmi.RemoteException
copyIAS in interface ItemStructRemoteadoptedItemStructSet - top-level ItemStruct MBOs that are to be copied to the current ItemStruct
hierarchy (identified by the itemid attribute of the current ItemStruct
MBO). This set should be obtained using the ItemStructSetRemote.COPYIASDLG
relationship. The set will include a number of MBOs selected in the
UI for copying to the current ItemStruct MBO.justTopItem - boolean flag to indicate whether the descendants of the top-level ItemStruct MBOs
being copied to the current ItemStruct hierarchy should also be copied. If true,
only the top-level MBOs are copied.MXExceptionjava.rmi.RemoteExceptioncopyItemOnly,
save,
copyDescendantspublic void copyItemOnly(boolean justTheItem)
throws MXException,
java.rmi.RemoteException
copyItemOnly in interface ItemStructRemotejustTopItem - boolean flag to indicate whether the descendants of the top-level ItemStruct MBOs
being copied to the current ItemStruct hierarchy should also be copied. If true,
only the top-level MBOs are copied.MXExceptionjava.rmi.RemoteExceptioncopyIAS,
copyDescendantspublic java.lang.String getOrgForGL(java.lang.String lookupAttr)
throws MXException,
java.rmi.RemoteException
getOrgForGL in interface MboRemotegetOrgForGL in class MboMXExceptionjava.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 void setIsApplyIAS(boolean isInApplyIAS)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException