public class CountBook extends StatefulMbo implements CountBookRemote
onListTab, statusChangeButtonSigoption, targetStatusOptionMULTILANGCOPY, 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| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new Mbo is added to the Mboset collection.
|
void |
applyAssignedOwnerGroup(java.lang.String ownergroupID) |
void |
applyOwner(java.lang.String ownerID)
Apply an owner to a record.
|
void |
applyOwnerGroup(java.lang.String ownergroupID)
Apply an ownergroup to a record.
|
void |
beforeSave(CountBookLineSetRemote countBookLinesSetRemote)
The activities to be done when you save a count book.
|
void |
canChangeStatus(java.lang.String changeToStatus,
long accessModifier)
Identifies whether the status of this object be changed to the specified value.
|
void |
changeStatus(java.lang.String status,
java.util.Date asOfDate,
java.lang.String memo,
long accessModifier)
Changes the status of the object.
|
void |
changeStatusToInprgIfApplicable(CountBookLineSetRemote cbLineSet)
Checks if the first physical count is entered, if yes, then the status needs
to be changed to INPRG.
|
void |
delete(long modifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
duplicate()
Duplicate method only throws exception now
|
double |
evaluateCosts()
It returns the total cost of non-serialized items.
|
void |
evaluateMatch(CountBookLineSetRemote cbLineSet)
This function is called when an existing count book is saved It sets the
readonly informative fields for the header tab.
|
void |
generateAutoKey()
This method has the mbo generate a unique identifier for itself.
|
CountBookLineSetRemote |
generateCBLines(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote countBookLinesSetRemote,
java.lang.String countBookNum,
MboSetRemote countBookSelTypeSet,
CountBookServiceRemote cbService)
To generate all needed CBLines
|
protected StatusHandler |
getStatusHandler()
Return the status handler object to be used for the actual changing of the status.
|
protected MboSetRemote |
getStatusHistory()
Return the MboSet object used for storing the status change history.
|
java.lang.String |
getStatusListName()
Return the name of the value list which contains the list of status's.
|
boolean |
hasInvRecBeenAddedByAnotherCountBookSelType(long countBookSelTypeId,
long inventoryRecId,
java.util.HashSet countBookSelTypeToBeDeletedIds,
boolean hasNoBalance) |
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
void |
ownership()
Allows the ability to Take Ownership of a record.
|
CountBookLineSetRemote |
populateCBLinesForBinPattern(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote countBookLinesSetRemote,
java.lang.String countBookNum)
Generates a CBLine For each bin selection criteria
|
CountBookLineSetRemote |
populateCBLinesForCntFrequency(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote countBookLinesSetRemote,
java.lang.String countBookNum,
MboSetRemote countBookSelTypeSet,
CountBookServiceRemote cbService)
To generate a CBLine for specified count frequency date
|
CountBookLineSetRemote |
populateCBLinesForIndividualItem(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote countBookLinesSetRemote,
java.lang.String countBookNum,
MboSetRemote countBookSelTypeSet,
CountBookServiceRemote cbService)
To generate a CBLine for each Individual Item.
|
CountBookLineSetRemote |
populateCBLinesForItemInGroup(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote countBookLinesSetRemote,
java.lang.String countBookNum,
MboSetRemote countBookSelTypeSet,
CountBookServiceRemote cbService)
To generate a CBLine for each Item in the specified group.
|
protected boolean |
skipCopyField(MboValueInfo mvi) |
void |
updateInvRecByCriteriaMap(long countBookSelTypeId,
MboRemote invRec)
Update a map containing a relationship between count book selection criteria
record and its inventory balance records.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, save, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption, statusToOptionNameaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, 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, initFieldFlagsOnMbo, 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, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, 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, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, 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, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic CountBook(MboSet ms) throws java.rmi.RemoteException
ms - java.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
Mboadd in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void beforeSave(CountBookLineSetRemote countBookLinesSetRemote) throws java.rmi.RemoteException, MXException
CountBookRemotebeforeSave in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook#beforeSave()public void canChangeStatus(java.lang.String changeToStatus,
long accessModifier)
throws MXException,
java.rmi.RemoteException
StatefulMbocanChangeStatus in class StatefulMbochangeToStatus - The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value), not
the internal status value (valuelist.maxvalue).accessModifier - If set to NOACCESSCHECK, allows status changes when not normally allowed.MXException - Thrown if the status cannot be changed.java.rmi.RemoteExceptionpublic void changeStatus(java.lang.String status,
java.util.Date asOfDate,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
StatefulMbocanChangeStatus before the change is performed. If the status change
is allowed, the status change is performed and a status history record is written.
If the status change is not allowed, an exception is thrown.If the new status has the same MaxValue as the current status, then only the status and statusDate attributes are updated, and the StatusHandler is not used.
changeStatus in interface CountBookRemotechangeStatus in interface StatefulMboRemotechangeStatus in class StatefulMbostatus - The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value), not
the internal status value (valuelist.maxvalue).asOfDate - The effective date of the new status (java.util.Date).
If this value is null, the current date/time of the server will be used.memo - A string briefly describing the circumstances of the change. The
memo can be null.accessModifier - A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException - Thrown if there is a problem, or the status cannot be changed,
as determined by canChangeStatus(String).java.rmi.RemoteExceptionStatefulMbo.canChangeStatus(String)public void changeStatusToInprgIfApplicable(CountBookLineSetRemote cbLineSet) throws java.rmi.RemoteException, MXException
CountBookRemotechangeStatusToInprgIfApplicable in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.changeStatusToInprgIfApplicable(CountBookLineSetRemote)public void delete(long modifier)
throws MXException,
java.rmi.RemoteException
Mbodelete in interface MboRemotedelete in class Mbomodifier - 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.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mboduplicate in interface MboRemoteduplicate in class MboMXException - MXException MAXIMO System Errorjava.rmi.RemoteException - RemoteException RMI Errorpublic double evaluateCosts()
throws MXException,
java.rmi.RemoteException
CountBookRemoteevaluateCosts in interface CountBookRemoteMXExceptionjava.rmi.RemoteExceptionCountBook.evaluateCosts()public void evaluateMatch(CountBookLineSetRemote cbLineSet) throws MXException, java.rmi.RemoteException
CountBookRemoteevaluateMatch in interface CountBookRemoteMXExceptionjava.rmi.RemoteExceptionCountBook.evaluateMatch(CountBookLineSetRemote)public void generateAutoKey()
throws java.rmi.RemoteException,
MXException
Mbo
For example, an override often takes the following form
(with the appropriate conditions and exception handling):
or in other cases (no entry in autokey table), it could take the following:
generateAutoKey in interface MboRemotegenerateAutoKey in class Mbojava.rmi.RemoteExceptionMXExceptionMboValue.autoKey(),
MboValue.generateUniqueID()public CountBookLineSetRemote generateCBLines(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum, MboSetRemote countBookSelTypeSet, CountBookServiceRemote cbService) throws java.rmi.RemoteException, MXException
CountBookRemotegenerateCBLines in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.generateCBLines(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboSetRemote, CountBookServiceRemote)protected StatusHandler getStatusHandler()
StatefulMbogetStatusHandler in class StatefulMboprotected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
StatefulMbogetStatusHistory in class StatefulMboMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getStatusListName()
StatefulMbogetStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic void init()
throws MXException
Mboinit in class MboMXExceptionpublic void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
MboinitRelationship in class MboMXExceptionjava.rmi.RemoteExceptionpublic CountBookLineSetRemote populateCBLinesForCntFrequency(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum, MboSetRemote countBookSelTypeSet, CountBookServiceRemote cbService) throws java.rmi.RemoteException, MXException
CountBookRemotepopulateCBLinesForCntFrequency in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionpublic CountBookLineSetRemote populateCBLinesForIndividualItem(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum, MboSetRemote countBookSelTypeSet, CountBookServiceRemote cbService) throws java.rmi.RemoteException, MXException
CountBookRemotepopulateCBLinesForIndividualItem in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.populateCBLinesForIndividualItem(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboSetRemote, CountBookServiceRemote)public CountBookLineSetRemote populateCBLinesForItemInGroup(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum, MboSetRemote countBookSelTypeSet, CountBookServiceRemote cbService) throws java.rmi.RemoteException, MXException
CountBookRemotepopulateCBLinesForItemInGroup in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.populateCBLinesForItemInGroup(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboSetRemote, CountBookServiceRemote)protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField in class Mbojava.rmi.RemoteExceptionMXExceptionpublic CountBookLineSetRemote populateCBLinesForBinPattern(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum) throws java.rmi.RemoteException, MXException
CountBookRemotepopulateCBLinesForBinPattern in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.populateCBLinesForBinPattern(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String)public void updateInvRecByCriteriaMap(long countBookSelTypeId,
MboRemote invRec)
throws java.rmi.RemoteException,
MXException
CountBookRemoteupdateInvRecByCriteriaMap in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.updateInvRecByCriteriaMap(long, MboRemote)public boolean hasInvRecBeenAddedByAnotherCountBookSelType(long countBookSelTypeId,
long inventoryRecId,
java.util.HashSet countBookSelTypeToBeDeletedIds,
boolean hasNoBalance)
throws java.rmi.RemoteException
hasInvRecBeenAddedByAnotherCountBookSelType in interface CountBookRemotehasNoBalance - If true will look for inventory records. If false, looks for inventory balance records.java.rmi.RemoteExceptionCountBookService#hasInvRecBeenAddedByAnotherCountBookSelType(long, long, HashSet, boolean)public void applyOwner(java.lang.String ownerID)
throws java.rmi.RemoteException,
MXException
CountBookRemoteapplyOwner in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook#applyOwner()public void applyOwnerGroup(java.lang.String ownergroupID)
throws java.rmi.RemoteException,
MXException
CountBookRemoteapplyOwnerGroup in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook#applyOwnerGroup()public void applyAssignedOwnerGroup(java.lang.String ownergroupID)
throws java.rmi.RemoteException,
MXException
applyAssignedOwnerGroup in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionpublic void ownership()
throws java.rmi.RemoteException,
MXException
CountBookRemoteownership in interface CountBookRemotejava.rmi.RemoteExceptionMXExceptionCountBook.ownership()