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, 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 |
---|
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.
|
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.
|
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?
|
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
|
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, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, initFieldFlagsOnMbo, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, 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, 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, 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, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public ItemStruct(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- MXException
java.rmi.RemoteException
public boolean isTop() throws MXException, java.rmi.RemoteException
isTop
in interface ItemStructRemote
MXException
java.rmi.RemoteException
isTop()
public MboSetRemote getTop() throws MXException, java.rmi.RemoteException
getTop
in interface ItemStructRemote
MXException
java.rmi.RemoteException
isTop
public boolean hasChildren() throws MXException, java.rmi.RemoteException
hasChildren
in interface ItemStructRemote
MXException
java.rmi.RemoteException
hasChildren()
public boolean hasParents() throws MXException, java.rmi.RemoteException
hasParents
in interface ItemStructRemote
MXException
java.rmi.RemoteException
hasParents()
public MboSetRemote getChildren() throws MXException, java.rmi.RemoteException
getChildren
in interface ItemStructRemote
MXException
java.rmi.RemoteException
getChildren()
public MboSetRemote getParents() throws MXException, java.rmi.RemoteException
getParents
in interface ItemStructRemote
MXException
java.rmi.RemoteException
parentCheck
public java.lang.String[] getHierarchy() throws MXException, java.rmi.RemoteException
getHierarchy
in interface ItemStructRemote
MXException
java.rmi.RemoteException
String[] getHierarchy(Vector hierarchy)
public void applyIAS(MboRemote thisOwner, ItemRemote myItemMbo) throws MXException, java.rmi.RemoteException
applyIAS
in interface ItemStructRemote
myItemMbo
- 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.MXException
java.rmi.RemoteException
applyIAS(MboRemote thisOwner, ItemRemote myItemMbo)
public ItemRemote getMyItemMbo() throws MXException, java.rmi.RemoteException
getMyItemMbo
in interface ItemStructRemote
MXException
java.rmi.RemoteException
getMyItemMbo()
public MboRemote getMyAssetMbo() throws MXException, java.rmi.RemoteException
getMyAssetMbo
in interface ItemStructRemote
MXException
java.rmi.RemoteException
getMyAssetMbo()
public MboRemote getMyAssetInputMbo() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getMyLocationMbo() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getAutoKey() throws MXException, java.rmi.RemoteException
getAutoKey
in interface ItemStructRemote
MXException
java.rmi.RemoteException
getAutoKey()
public void setAutoKey() throws MXException, java.rmi.RemoteException
setAutoKey
in interface ItemStructRemote
MXException
java.rmi.RemoteException
setAutoKey()
public boolean isRotating() throws MXException, java.rmi.RemoteException
isRotating
in interface ItemStructRemote
MXException
java.rmi.RemoteException
isRotating()
public void init() throws MXException
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException
canDelete
in class Mbo
MXException
Item.canModifyKitStructure()
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long access) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
access
- modifier such as NOACCESCHECK.MXException
java.rmi.RemoteException
Mbo.delete(long)
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyIAS(MboSetRemote adoptedItemStructSet, boolean justTopItem) throws MXException, java.rmi.RemoteException
copyIAS
in interface ItemStructRemote
adoptedItemStructSet
- 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.MXException
java.rmi.RemoteException
copyItemOnly
,
save
,
copyDescendants
public void copyItemOnly(boolean justTheItem) throws MXException, java.rmi.RemoteException
copyItemOnly
in interface ItemStructRemote
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.MXException
java.rmi.RemoteException
copyIAS
,
copyDescendants
public java.lang.String getOrgForGL(java.lang.String lookupAttr) throws MXException, java.rmi.RemoteException
getOrgForGL
in interface MboRemote
getOrgForGL
in class Mbo
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 void setIsApplyIAS(boolean isInApplyIAS) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException