void |
add()
Add a new Commodity Code
The following fields are initialized with their respective values
isservice True or False based on the type
servicetype Set to Provide or Procure based on the type
parent Set the parent name if its a commodity code
itemsetid Set the Insert Itemset for this user
void |
addServiceCommodityChildren(MboSetRemote commodities,
java.lang.String parentcommodity)
Adds children service commodities from a multiselect list.
|
void |
associateAssetsToCommodity(MboSetRemote assets) |
void |
associateLocationsToCommodity(MboSetRemote locations) |
void |
canDelete()
Commodity.canDelete()-
Checks to see if this object can be deleted
if it is a group and has codes attached, throw exception
if it is a group and is associated, throw exception
if it is a code and is associated, throw exception
|
void |
delete(long access)
Override and Delete based on canDelete()
|
void |
init()
Initialize the Commodity object for Service Commodities
|
boolean |
isCommodityCode()
Determines if this object is a commodity code or a commodity group
|
boolean |
isServiceCommodity()
Determine if this object is a Service Commodity or a Commodity
|
void |
saveMultiList(MboSetRemote msr,
java.lang.String company,
java.lang.String parent)
Called exclusively by the UI to save Multi Selected commodities
|
-
Methods inherited from class psdi.mbo.Mbo
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, 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, 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, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, 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, setDefaultValue, setDefaultValues, setDeleted, 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, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, 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
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psdi.mbo.MboRemote
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, 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, 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
-
-
Constructor Detail
-
Commodity
public Commodity(MboSet ms)
throws MXException,
java.rmi.RemoteException
Construct the Commodity Object
- Parameters:
ms -
- Throws:
MXException, - RemoteException
MXException
java.rmi.RemoteException
-
Method Detail
-
isServiceCommodity
public boolean isServiceCommodity()
throws MXException,
java.rmi.RemoteException
Determine if this object is a Service Commodity or a Commodity
- Specified by:
isServiceCommodity in interface CommodityRemote
- Returns:
- boolean - If this MBO is a Service Commodity or not
- Throws:
MXException, - RemoteException
MXException
java.rmi.RemoteException
-
canDelete
public void canDelete()
throws MXException,
java.rmi.RemoteException
Commodity.canDelete()-
Checks to see if this object can be deleted
if it is a group and has codes attached, throw exception
if it is a group and is associated, throw exception
if it is a code and is associated, throw exception
- Overrides:
canDelete in class Mbo
- Throws:
MXException - - will throw this exception if it can't be deleted
java.rmi.RemoteException
MXException, - RemoteException
-
delete
public void delete(long access)
throws MXException,
java.rmi.RemoteException
Override and Delete based on canDelete()
- Specified by:
delete in interface MboRemote
- Overrides:
delete in class Mbo
- Parameters:
access - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.
- Throws:
MXException, - RemoteException
MXException
java.rmi.RemoteException
- See Also:
Mbo.delete(long)
-
isCommodityCode
public boolean isCommodityCode()
throws MXException,
java.rmi.RemoteException
Determines if this object is a commodity code or a commodity group
- Specified by:
isCommodityCode in interface CommodityRemote
- Returns:
- True if this object is a commodity code otherwise False
- Throws:
MXException, - RemoteException
MXException
java.rmi.RemoteException
-
saveMultiList
public void saveMultiList(MboSetRemote msr,
java.lang.String company,
java.lang.String parent)
throws MXException,
java.rmi.RemoteException
Called exclusively by the UI to save Multi Selected commodities
- Specified by:
saveMultiList in interface CommodityRemote
- Parameters:
msr - - Current Commodities MboSet
company - - company
parent - - Parent Commodity
- Throws:
MXException, - RemoteException
MXException
java.rmi.RemoteException
-
addServiceCommodityChildren
public void addServiceCommodityChildren(MboSetRemote commodities,
java.lang.String parentcommodity)
throws MXException,
java.rmi.RemoteException
Adds children service commodities from a multiselect list.
- Specified by:
addServiceCommodityChildren in interface CommodityRemote
- Parameters:
commodities - - commodities MboSet
parentcommodity - - parent commodity id
- Throws:
MXException
java.rmi.RemoteException
|