public class CountBook extends StatefulMbo implements CountBookRemote
onListTab, statusChangeButtonSigoption, targetStatusOption
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
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, statusToOptionName
addMboSetForRequiredCheck, 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, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, 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, validateAttributes
public CountBook(MboSet ms) throws java.rmi.RemoteException
ms
- java.rmi.RemoteException
public void add() throws MXException, java.rmi.RemoteException
Mbo
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void beforeSave(CountBookLineSetRemote countBookLinesSetRemote) throws java.rmi.RemoteException, MXException
CountBookRemote
beforeSave
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook#beforeSave()
public void canChangeStatus(java.lang.String changeToStatus, long accessModifier) throws MXException, java.rmi.RemoteException
StatefulMbo
canChangeStatus
in class StatefulMbo
changeToStatus
- 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.RemoteException
public void changeStatus(java.lang.String status, java.util.Date asOfDate, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
StatefulMbo
canChangeStatus
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 CountBookRemote
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- 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.RemoteException
StatefulMbo.canChangeStatus(String)
public void changeStatusToInprgIfApplicable(CountBookLineSetRemote cbLineSet) throws java.rmi.RemoteException, MXException
CountBookRemote
changeStatusToInprgIfApplicable
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.changeStatusToInprgIfApplicable(CountBookLineSetRemote)
public void delete(long modifier) throws MXException, java.rmi.RemoteException
Mbo
delete
in interface MboRemote
delete
in class Mbo
modifier
- 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.MXException
java.rmi.RemoteException
Mbo.delete(long)
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mbo
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
- MXException MAXIMO System Errorjava.rmi.RemoteException
- RemoteException RMI Errorpublic double evaluateCosts() throws MXException, java.rmi.RemoteException
CountBookRemote
evaluateCosts
in interface CountBookRemote
MXException
java.rmi.RemoteException
CountBook.evaluateCosts()
public void evaluateMatch(CountBookLineSetRemote cbLineSet) throws MXException, java.rmi.RemoteException
CountBookRemote
evaluateMatch
in interface CountBookRemote
MXException
java.rmi.RemoteException
CountBook.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 MboRemote
generateAutoKey
in class Mbo
java.rmi.RemoteException
MXException
MboValue.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
CountBookRemote
generateCBLines
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.generateCBLines(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboSetRemote, CountBookServiceRemote)
protected StatusHandler getStatusHandler()
StatefulMbo
getStatusHandler
in class StatefulMbo
protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
StatefulMbo
getStatusHistory
in class StatefulMbo
MXException
java.rmi.RemoteException
public java.lang.String getStatusListName()
StatefulMbo
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public void init() throws MXException
Mbo
init
in class Mbo
MXException
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
Mbo
initRelationship
in class Mbo
MXException
java.rmi.RemoteException
public 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
CountBookRemote
populateCBLinesForCntFrequency
in interface CountBookRemote
java.rmi.RemoteException
MXException
public 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
CountBookRemote
populateCBLinesForIndividualItem
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.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
CountBookRemote
populateCBLinesForItemInGroup
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.populateCBLinesForItemInGroup(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboSetRemote, CountBookServiceRemote)
protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField
in class Mbo
java.rmi.RemoteException
MXException
public CountBookLineSetRemote populateCBLinesForBinPattern(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum) throws java.rmi.RemoteException, MXException
CountBookRemote
populateCBLinesForBinPattern
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.populateCBLinesForBinPattern(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String)
public void updateInvRecByCriteriaMap(long countBookSelTypeId, MboRemote invRec) throws java.rmi.RemoteException, MXException
CountBookRemote
updateInvRecByCriteriaMap
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.updateInvRecByCriteriaMap(long, MboRemote)
public boolean hasInvRecBeenAddedByAnotherCountBookSelType(long countBookSelTypeId, long inventoryRecId, java.util.HashSet countBookSelTypeToBeDeletedIds, boolean hasNoBalance) throws java.rmi.RemoteException
hasInvRecBeenAddedByAnotherCountBookSelType
in interface CountBookRemote
hasNoBalance
- If true will look for inventory records. If false, looks for inventory balance records.java.rmi.RemoteException
CountBookService#hasInvRecBeenAddedByAnotherCountBookSelType(long, long, HashSet, boolean)
public void applyOwner(java.lang.String ownerID) throws java.rmi.RemoteException, MXException
CountBookRemote
applyOwner
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook#applyOwner()
public void applyOwnerGroup(java.lang.String ownergroupID) throws java.rmi.RemoteException, MXException
CountBookRemote
applyOwnerGroup
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook#applyOwnerGroup()
public void applyAssignedOwnerGroup(java.lang.String ownergroupID) throws java.rmi.RemoteException, MXException
applyAssignedOwnerGroup
in interface CountBookRemote
java.rmi.RemoteException
MXException
public void ownership() throws java.rmi.RemoteException, MXException
CountBookRemote
ownership
in interface CountBookRemote
java.rmi.RemoteException
MXException
CountBook.ownership()