public class AMCrew extends StatefulMbo implements AMCrewRemote
| Modifier and Type | Field and Description |
|---|---|
boolean |
availabilityDataCalculated
The calculateAvailabilityData() method is called once for each labor row on the Available Crew
dialog of the Assignment tab and is triggered by the first access to any of the fields.
|
static java.lang.String |
crewDurCrewPos |
static java.lang.String |
crewDurDynamic |
static java.lang.String |
crewDurStatic |
java.util.Date |
dateTo |
protected java.util.Date[] |
serverDateColumn |
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 |
associateCrewType()
Associate the Crew Type copying all requirements (crafts, qualifications and tools)
|
void |
calculateAvailabilityData()
The method calculates the values for the nonpersistent fields StartTime, Availability (i.e.
|
void |
canDelete()
Business Rules : 1.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
Changes the status of the object.
|
void |
changeStatus(java.lang.String newStatus,
java.lang.String memo) |
void |
checkCalendarAndShift()
This method checks whether this crew has a calendar and a shift
associated with it.
|
void |
childHasChanged() |
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
duplicate()
Duplicate method only throws exception now
|
java.lang.String |
getAddressString()
There is no address string with LBSLocation.
|
java.lang.Double |
getAltitude() |
java.lang.Double |
getAltitudeAccuracy() |
double |
getAssignedHours(boolean insideCurrentDateWorkingTime,
java.util.Date wpStartDateTime,
java.util.Date wpEndDateTime,
MboSetRemote dayNAssignmentSet)
Sums up the assigned hours of the assignments in the assignment set, but
only those portions of them that are actually inside working time.
|
double |
getAvailableHours(java.util.Date startDate)
Get either the number of workhours for this day, either from the modavail
table, if there is an entry, or from the workperiod table.
|
MboRemote |
getAvailableMbo(java.util.Date startDate)
Get either the WorkPeriod mbo or the ModAvail mbo if there is one.
|
java.util.List |
getAvailableMboList(java.util.Date startDate)
This returns either the workperiod or modavail mbo for the given parameters.
|
java.util.Date |
getClientDTFromServerDT(java.util.Date serverDateTime,
java.util.GregorianCalendar scratchCal)
Generates a datetime in the client time zone from a datetime in the
server time zone, using previously calculated zone offsets.
|
MboRemote |
getCompositeWP(java.util.List modAvailList,
java.util.Date workDate)
This takes a List of ModAvail mbos and combines them with the WorkPeriod of the same workdate,
if any, into a single "composite" workperiod.
|
java.util.Date |
getCrewDate()
Get crew date
|
int |
getCrewMemberCount(java.util.Date desiredDate)
Get members count related to MaxVar CREWDURATION for a specific date
|
java.util.Date |
getCurrentShiftEndDate(java.util.Date endDate) |
double |
getCurrentShiftHours(java.util.Date workdate) |
java.util.Date |
getCurrentShiftStartDate(java.util.Date effectiveDate) |
java.util.Date |
getDateTime(java.util.Date workdt,
java.util.Date sttime) |
java.util.Date |
getDateTo() |
MboSetRemote |
getDayNAssignmentSet(MboRemote theCrewMbo,
java.util.Date wpStartDateTime,
java.util.Date wpEndDateTime)
Fetch the mboset of those assignments for this crew that start within the
working time of the dayN under consideration.
|
java.util.Date |
getEarliestUnassignedDateTime(MboSetRemote dayNAssignmentSet,
java.util.Date rangeStartDateTime,
java.util.Date rangeFinishDateTime)
This is passed a mboSet of assignments and a datetime range.
|
double[] |
getEligibleHours() |
java.lang.Double |
getHeading() |
java.util.Collection |
getLabors(java.util.Date currentDate)
Get all labors assigned on this crew for the currentDate
|
java.util.Date |
getLastUpdate() |
java.lang.Double |
getLatitudeY()
Return a double value with the the Latitude (or Y) coordinate of the current entitty.
|
java.lang.Double |
getLocationAccuracy() |
java.lang.Double |
getLongitudeX()
Return a double value with the the Longitude (or X) coordinate of the current entitty.
|
MboSetRemote |
getMboSet(java.lang.String name)
Get a related MboSet for the object using the named relationship.
|
protected java.lang.String |
getRecordType() |
java.util.Date[] |
getServerDateColumn() |
java.util.Date |
getServerDTFromClientDT(java.util.Date clientDateTime,
java.util.GregorianCalendar scratchCal)
Generates a datetime in the server time zone from a datetime in the
client time zone, using previously calculated zone offsets.
|
java.lang.Double |
getSpeed() |
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.
|
java.util.Collection |
getTools(java.util.Date currentDate)
Get all tools assigned on this crew for the currentDate
|
MboRemote |
getValidContract(java.util.Date startDate)
Get the valid contract for the Crew.
|
java.util.Date |
getWPEndDateTime(MboRemote WorkTimeMbo,
java.util.Date wpStartDateTime,
java.util.GregorianCalendar scratchCal)
Gets the end datetime for the workperiod.
|
java.lang.Boolean |
hasCoords()
Check if this autolocatable object has coordinates filled (LAT,LONG)
|
void |
init()
Initialize the AMCrew Mbo object
|
boolean |
isAMGridCreated() |
boolean |
isGISDataReadonly()
Indicate if the current GIS entity is editable or not.
|
void |
refreshkRequirements()
Refresh the required crafts, qualifications and tools.
|
void |
saveGISData(java.lang.String address,
java.lang.String lat,
java.lang.String lng)
The address here is not saved as this will be writing out to LBSLocation table which
does not contain an address.
|
void |
saveLBSData(java.lang.Double lat,
java.lang.Double lng,
java.lang.Double locationAccuracy,
java.lang.Double altitudeAccuracy,
java.lang.Double altitude,
java.lang.Double heading,
java.lang.Double speed) |
void |
setAMGridCreated(boolean gridCreated) |
void |
setCrewDate(java.util.Date date)
Set crew date
|
void |
setDateTo(java.util.Date dateTo) |
void |
setServerDateColumn(java.util.Date[] newServerDateColumn) |
void |
setWorkHrs(java.util.Date DayOneClientDate)
Sets the available hours for the 7 dayN attributes (all non-persistent).
|
protected boolean |
skipCopyField(MboValueInfo mvi) |
void |
updateStandardRate()
Update standard rate field by calculating the sum of all labor
and asset rates
|
canChangeMaxStatus, canChangeStatus, 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, 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, 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, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, 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, 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, waitcanChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, 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 static final java.lang.String crewDurStatic
public static final java.lang.String crewDurDynamic
public static final java.lang.String crewDurCrewPos
protected java.util.Date[] serverDateColumn
public boolean availabilityDataCalculated
public java.util.Date dateTo
public AMCrew(MboSet ms) throws java.rmi.RemoteException
ms - java.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionMbo.init()public void add()
throws MXException,
java.rmi.RemoteException
Mboadd in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionMboRemote.add()public void changeStatus(java.lang.String status,
java.util.Date date,
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 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).date - 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 canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic 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)public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mboduplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionMboRemote.duplicate()protected StatusHandler getStatusHandler()
StatefulMbogetStatusHandler in class StatefulMboStatefulMbo.getStatusHandler()protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
StatefulMbogetStatusHistory in class StatefulMboMXExceptionjava.rmi.RemoteExceptionStatefulMbo.getStatusHistory()public java.lang.String getStatusListName()
StatefulMbogetStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMboStatefulMbo.getStatusListName()protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField in class Mbojava.rmi.RemoteExceptionMXExceptionMbo.skipCopyField(psdi.mbo.MboValueInfo)public void associateCrewType()
throws MXException,
java.rmi.RemoteException
associateCrewType in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.associateCrewType()public void refreshkRequirements()
throws MXException,
java.rmi.RemoteException
refreshkRequirements in interface AMCrewRemotecrewtemplate - MXExceptionjava.rmi.RemoteExceptionAMCrew.refreshkRequirements()public void checkCalendarAndShift()
throws MXException,
java.rmi.RemoteException
checkCalendarAndShift in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.checkCalendarAndShift()public void changeStatus(java.lang.String newStatus,
java.lang.String memo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setWorkHrs(java.util.Date DayOneClientDate)
throws MXException,
java.rmi.RemoteException
setWorkHrs in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.setWorkHrs(Date)public java.util.Date getServerDTFromClientDT(java.util.Date clientDateTime,
java.util.GregorianCalendar scratchCal)
throws MXException,
java.rmi.RemoteException
getServerDTFromClientDT in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getServerDTFromClientDT(Date, GregorianCalendar)public java.util.Date getClientDTFromServerDT(java.util.Date serverDateTime,
java.util.GregorianCalendar scratchCal)
throws MXException,
java.rmi.RemoteException
getClientDTFromServerDT in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getClientDTFromServerDT(Date, GregorianCalendar)public MboRemote getAvailableMbo(java.util.Date startDate) throws MXException, java.rmi.RemoteException
getAvailableMbo in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getAvailableMbo(Date)public java.util.List getAvailableMboList(java.util.Date startDate)
throws MXException,
java.rmi.RemoteException
getAvailableMboList in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getAvailableMbo(Date)public java.util.Date getDateTime(java.util.Date workdt,
java.util.Date sttime)
getDateTime in interface AMCrewRemoteworkdt - sttime - AMCrew.getDateTime(Date, Date)public java.util.Date getWPEndDateTime(MboRemote WorkTimeMbo, java.util.Date wpStartDateTime, java.util.GregorianCalendar scratchCal) throws MXException, java.rmi.RemoteException
getWPEndDateTime in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getWPEndDateTime(MboRemote, Date, GregorianCalendar)public MboSetRemote getDayNAssignmentSet(MboRemote theCrewMbo, java.util.Date wpStartDateTime, java.util.Date wpEndDateTime) throws MXException, java.rmi.RemoteException
getDayNAssignmentSet in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getDayNAssignmentSet(MboRemote, Date, Date)public double getAvailableHours(java.util.Date startDate)
throws MXException,
java.rmi.RemoteException
getAvailableHours in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getAvailableHours(Date)public double getAssignedHours(boolean insideCurrentDateWorkingTime,
java.util.Date wpStartDateTime,
java.util.Date wpEndDateTime,
MboSetRemote dayNAssignmentSet)
throws MXException,
java.rmi.RemoteException
getAssignedHours in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getAssignedHours(boolean, Date, Date, MboSetRemote)public java.util.Date[] getServerDateColumn()
throws MXException,
java.rmi.RemoteException
getServerDateColumn in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getServerDateColumn()public void setServerDateColumn(java.util.Date[] newServerDateColumn)
throws MXException,
java.rmi.RemoteException
setServerDateColumn in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.setServerDateColumn(Date[])public java.util.Collection getLabors(java.util.Date currentDate)
throws MXException,
java.rmi.RemoteException
getLabors in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getLabors(Date)public java.util.Collection getTools(java.util.Date currentDate)
throws MXException,
java.rmi.RemoteException
getTools in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.getTools(Date)public boolean isAMGridCreated()
throws MXException,
java.rmi.RemoteException
isAMGridCreated in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.isAMGridCreated()public void setAMGridCreated(boolean gridCreated)
throws MXException,
java.rmi.RemoteException
setAMGridCreated in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.setAMGridCreated(boolean)protected java.lang.String getRecordType()
getRecordType in class Mbopublic void childHasChanged()
throws MXException,
java.rmi.RemoteException
childHasChanged in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.childHasChanged()public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
MbogetMboSet in interface MboRemotegetMboSet in class Mboname - The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException - "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteExceptionMbo.getMboSet(java.lang.String)public void calculateAvailabilityData()
throws MXException,
java.rmi.RemoteException
calculateAvailabilityData in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.calculateAvailabilityData()public void updateStandardRate()
throws MXException,
java.rmi.RemoteException
updateStandardRate in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionAMCrew.updateStandardRate()public java.util.Date getEarliestUnassignedDateTime(MboSetRemote dayNAssignmentSet, java.util.Date rangeStartDateTime, java.util.Date rangeFinishDateTime) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.Double getLatitudeY()
throws MXException,
java.rmi.RemoteException
GISablegetLatitudeY in interface GISableMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Boolean hasCoords()
throws MXException,
java.rmi.RemoteException
GISablehasCoords in interface GISableMXException - the mX exceptionjava.rmi.RemoteException - the remote exceptionpublic java.lang.Double getLongitudeX()
throws MXException,
java.rmi.RemoteException
GISablegetLongitudeX in interface GISableMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getAddressString()
throws MXException,
java.rmi.RemoteException
getAddressString in interface GISableMXExceptionjava.rmi.RemoteExceptionpublic boolean isGISDataReadonly()
throws MXException,
java.rmi.RemoteException
GISableisGISDataReadonly in interface GISableMXExceptionjava.rmi.RemoteExceptionpublic void saveGISData(java.lang.String address,
java.lang.String lat,
java.lang.String lng)
throws MXException,
java.rmi.RemoteException
saveGISData in interface GISableMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Double getLocationAccuracy()
throws MXException,
java.rmi.RemoteException
getLocationAccuracy in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Double getAltitude()
throws MXException,
java.rmi.RemoteException
getAltitude in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Double getAltitudeAccuracy()
throws MXException,
java.rmi.RemoteException
getAltitudeAccuracy in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Double getHeading()
throws MXException,
java.rmi.RemoteException
getHeading in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getLastUpdate()
throws MXException,
java.rmi.RemoteException
getLastUpdate in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic java.lang.Double getSpeed()
throws MXException,
java.rmi.RemoteException
getSpeed in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic void saveLBSData(java.lang.Double lat,
java.lang.Double lng,
java.lang.Double locationAccuracy,
java.lang.Double altitudeAccuracy,
java.lang.Double altitude,
java.lang.Double heading,
java.lang.Double speed)
throws MXException,
java.rmi.RemoteException
saveLBSData in interface LBSMXExceptionjava.rmi.RemoteExceptionpublic MboRemote getValidContract(java.util.Date startDate) throws MXException, java.rmi.RemoteException
getValidContract in interface AMCrewRemotestartDate - MXExceptionjava.rmi.RemoteExceptionAMCrew.getValidContract(Date)public MboRemote getCompositeWP(java.util.List modAvailList, java.util.Date workDate) throws MXException, java.rmi.RemoteException
getCompositeWP in interface AMCrewRemotemodAvailList - A list of ModAvail mbos for the given WorkDate, or a list containing a
single workperiod, if no ModAvail rows were defined, or a list with a
single null entry, if no workperiod was defined.workDate - The date in question.person - The person for whom the Modavail objects were defined.orgid - The OrgID.MXExceptionjava.rmi.RemoteExceptionpublic double getCurrentShiftHours(java.util.Date workdate)
throws MXException,
java.rmi.RemoteException
java.rmi.RemoteExceptionMXExceptionpublic java.util.Date getCurrentShiftStartDate(java.util.Date effectiveDate)
throws MXException,
java.rmi.RemoteException
getCurrentShiftStartDate in interface AMCrewRemotejava.rmi.RemoteExceptionMXExceptionAMCrew.getCurrentShiftStartDate(Date)public java.util.Date getCurrentShiftEndDate(java.util.Date endDate)
throws MXException,
java.rmi.RemoteException
getCurrentShiftEndDate in interface AMCrewRemotejava.rmi.RemoteExceptionMXExceptionAMCrew.getCurrentShiftEndDate(Date)public void setCrewDate(java.util.Date date)
throws MXException,
java.rmi.RemoteException
setCrewDate in interface AMCrewRemotejava.rmi.RemoteExceptionMXExceptionAMCrew.setCrewDate(Date date)public java.util.Date getCrewDate()
throws MXException,
java.rmi.RemoteException
getCrewDate in interface AMCrewRemotejava.rmi.RemoteExceptionMXExceptionAMCrew.getCrewDate()public int getCrewMemberCount(java.util.Date desiredDate)
throws MXException,
java.rmi.RemoteException
getCrewMemberCount in interface AMCrewRemotedesiredDate - The date you want to know the members countMXExceptionjava.rmi.RemoteExceptionMXApplicationExceptionAMCrew.getCrewMemberCount(Date desiredDate)public void setDateTo(java.util.Date dateTo)
throws MXException,
java.rmi.RemoteException
setDateTo in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getDateTo()
throws MXException,
java.rmi.RemoteException
getDateTo in interface AMCrewRemoteMXExceptionjava.rmi.RemoteExceptionpublic double[] getEligibleHours()
throws MXException,
java.rmi.RemoteException
getEligibleHours in interface AMCrewRemoteMXExceptionjava.rmi.RemoteException