public class AMCrewLabor extends Mbo implements AMCrewLaborRemote
| Modifier and Type | Field and Description |
|---|---|
boolean |
datesOverlapping
Flag is set if the 'DatesOverlapping' method is called
|
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 |
|---|
AMCrewLabor(MboSet ms) |
| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new Mbo is added to the Mboset collection.
|
void |
appValidate()
Pre-save validation method.
|
void |
canDelete()
Can the object be deleted ?
This is object specific and should be overridden.
|
boolean |
checkForCalShifNum()
Check for whether the selected labor is available for the Calendar and
Shiftnum of the crew.
|
boolean |
checkForCrewAlreadyAssigned(java.lang.String laborCode,
java.util.Date EffectiveDate)
Check to determine whether the selected labor has already been assigned
to an existing active crew.
|
void |
checkForDatesOverlapping(MboRemote mbo)
If the Labor exists in AMCREWLABOR table and dates are overlapping:
If the existing record has an 'End Date' and specified 'Effect Date or End Date' are between,
existing records 'Effective Date and End Date'
OR
If the existing record has no 'End Date' and the specified 'Effect Date' is after the existing record's
'Effect Date'
|
void |
checkForLaborAlreadyAssigned(java.lang.String laborCode,
java.util.Date SpecifiedEffectiveDate)
If the Specified 'EffectiveDate before CurrentDate':
Check to determine whether the selected labor has already been assigned
to an existing active crew, for the specified EffectiveDate.
|
void |
checkForRules(MboRemote mbo)
Check for the Rules
|
boolean |
checkForValidQualification(java.lang.String sPosition)
To Check the selected Labor has all the qualifications required for the
Craft position
|
protected boolean |
checkLaborCraftSkill(java.lang.String laborCode,
java.lang.String position,
UserInfo userInfo)
Checks whether the selected Labor has all the Craft and Skill Level as
required by the Position.
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
double |
findAvailableTime(java.util.Date shiftStart,
java.util.Date shiftEnd,
java.util.Date crewDate)
Based on the shift start and shift end, we will return the total time available for this tool in hours.
|
boolean |
getCreatedBySplit() |
java.util.Date |
getEffectiveDate(java.util.Date effectivedate)
Calculate Effective Date
|
boolean |
getHasCrewPrompt() |
double |
getStandardRate()
Return standard rate for current labor
|
boolean |
getValidateContractField() |
boolean |
getValidateCraftField() |
boolean |
getValidateLaborField() |
boolean |
getValidateSkillLevelField() |
boolean |
getValidateVendorField() |
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
boolean |
isDatesOverlapping()
If the 'checkForDatesOverlapping' method is called, and called from FldAMCrewLaborLaborCode.Validate()
|
boolean |
isEndDateEarlier() |
boolean |
isLaterEffectiveDate() |
protected MboRemote |
matchLaborCraftSkill(java.lang.String laborCode,
java.lang.String craft,
java.lang.String skillLevel) |
void |
save()
Action when AMCrewLbor record is being saved
|
void |
setCreatedBySplit(boolean cbs) |
void |
setEarlierEndDate(boolean earlierEndDate) |
void |
setEffectiveDateIsLater(boolean laterEffectivedate) |
void |
setHasCrewPrompt(boolean prompt) |
void |
setisDatesOverlapping(boolean datesOverlapping)
set this value from 'checkForDatesOverlapping' method on YES
|
void |
setValidateContractField(boolean validateContractField) |
void |
setValidateCraftField(boolean validateCraftField) |
void |
setValidateLaborField(boolean validateLaborField) |
void |
setValidateSkillLevelField(boolean validateSkillLevelField) |
void |
setValidateVendorField(boolean validateVendorField) |
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, 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, 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, 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, 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 boolean datesOverlapping
public AMCrewLabor(MboSet ms) throws java.rmi.RemoteException
ms - java.rmi.RemoteExceptionpublic void init()
throws MXException
Mboinit in class MboMXExceptionMbo.init()public void add()
throws MXException,
java.rmi.RemoteException
Mboadd in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionMboRemote.add()public void canDelete()
throws MXException,
java.rmi.RemoteException
MbocanDelete in class MboMXExceptionjava.rmi.RemoteExceptionMbo.canDelete()public void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
Mbodelete in interface MboRemotedelete in class MboaccessModifier - 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)protected MboRemote matchLaborCraftSkill(java.lang.String laborCode, java.lang.String craft, java.lang.String skillLevel) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXExceptionjava.rmi.RemoteExceptionpublic boolean checkForCrewAlreadyAssigned(java.lang.String laborCode,
java.util.Date EffectiveDate)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean checkForCalShifNum()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean checkForValidQualification(java.lang.String sPosition)
throws MXException,
java.rmi.RemoteException
sPosition - the position for which the labor is selectedMXExceptionjava.rmi.RemoteExceptionprotected boolean checkLaborCraftSkill(java.lang.String laborCode,
java.lang.String position,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
laborCode - the laborCode of the selected labor from the lookupposition - the value of position as selected by the useruserInfo - the UserInfo objectMXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
MboappValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic double getStandardRate()
throws MXException,
java.rmi.RemoteException
getStandardRate in interface AMCrewLaborRemoteMXExceptionjava.rmi.RemoteExceptionAMCrewLabor.getStandardRate()public java.util.Date getEffectiveDate(java.util.Date effectivedate)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void checkForLaborAlreadyAssigned(java.lang.String laborCode,
java.util.Date SpecifiedEffectiveDate)
throws MXException,
java.rmi.RemoteException
checkForLaborAlreadyAssigned in interface AMCrewLaborRemoteMXExceptionjava.rmi.RemoteExceptionAMCrewLabor.checkForLaborAlreadyAssigned(String,Date)public void checkForDatesOverlapping(MboRemote mbo) throws MXException, java.rmi.RemoteException
checkForDatesOverlapping in interface AMCrewLaborRemoteMXExceptionjava.rmi.RemoteExceptionAMCrewLabor#checkForDatesOverlapping(mbo)public void checkForRules(MboRemote mbo) throws MXException, java.rmi.RemoteException
checkForRules in interface AMCrewLaborRemoteMXExceptionjava.rmi.RemoteExceptionAMCrewLabor#checkForRules(mbo)public boolean isDatesOverlapping()
throws MXException,
java.rmi.RemoteException
isDatesOverlapping in interface AMCrewLaborRemoteMXExceptionjava.rmi.RemoteExceptionAMCrewLabor.isDatesOverlapping()public void setisDatesOverlapping(boolean datesOverlapping)
throws MXException,
java.rmi.RemoteException
setisDatesOverlapping in interface AMCrewLaborRemoteMXExceptionjava.rmi.RemoteExceptionAMCrewLabor#setisDatesOverlapping()public void setValidateLaborField(boolean validateLaborField)
public boolean getValidateLaborField()
public void setValidateCraftField(boolean validateCraftField)
public boolean getValidateCraftField()
public void setValidateSkillLevelField(boolean validateSkillLevelField)
public boolean getValidateSkillLevelField()
public void setValidateVendorField(boolean validateVendorField)
public boolean getValidateVendorField()
public void setValidateContractField(boolean validateContractField)
public boolean getValidateContractField()
public void setEffectiveDateIsLater(boolean laterEffectivedate)
public boolean isLaterEffectiveDate()
public void setEarlierEndDate(boolean earlierEndDate)
public boolean isEndDateEarlier()
public double findAvailableTime(java.util.Date shiftStart,
java.util.Date shiftEnd,
java.util.Date crewDate)
throws MXException,
java.rmi.RemoteException
shiftStart - shiftEnd - MXExceptionjava.rmi.RemoteExceptionpublic void setCreatedBySplit(boolean cbs)
public boolean getCreatedBySplit()
public boolean getHasCrewPrompt()
public void setHasCrewPrompt(boolean prompt)