public class Person extends StatefulMbo implements PersonRemote, AncMbo
Modifier and Type | Field and Description |
---|---|
java.util.Date |
dateTo |
boolean |
toChangeStatus |
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
Constructor and Description |
---|
Person(MboSet ms)
Construct the Person object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
This method is called by the framework when a new Person record is inserted.
|
void |
appValidate()
Validation prior to save.
|
void |
canDelete()
Validation routine before deleting a person.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo)
Calls the changeStatus method with an accessModifier of NONE.
|
void |
delete(long accessModifier)
Delete a person record.
|
void |
deletePersonData() |
void |
deletePrimaryCalendar()
Method to delete the primary calendar of this person.
|
double |
getAvailableHours(java.util.Date startDate,
PersonCalRemote personCal,
AvailCalc availCalc)
This will give you the number of hours available on startDate for the org, calnum, and shiftnum provided.
|
double |
getAvailableHours(java.util.Date startDate,
java.lang.String orgid) |
double |
getAvailableHours(java.util.Date startDate,
java.lang.String orgid,
AvailCalc availCalc)
This will give you the number of hours available on startDate for the org provided.
|
MboRemote |
getAvailableMbo(java.util.Date startDate,
PersonCalRemote personCal,
AvailCalc availCalc)
This returns either the workperiod or modavail mbo for the given parameters.
|
MboRemote |
getAvailableMbo(java.util.Date startDate,
java.lang.String orgid)
This returns either the workperiod or modavail mbo for the given parameters.
|
MboRemote |
getAvailableMbo(java.util.Date startDate,
java.lang.String orgid,
AvailCalc availCalc)
This returns either the workperiod or modavail mbo for the given parameters.
|
java.util.List<MboRemote> |
getAvailableMboList(java.util.Date startDate,
PersonCalRemote personCal,
AvailCalc availCalc)
This returns either the workperiod or modavail mbo for the given parameters.
|
java.util.List<MboRemote> |
getAvailableMboList(java.util.Date startDate,
java.lang.String orgid)
This returns either the workperiod or modavail mbo for the given parameters.
|
java.util.List<MboRemote> |
getAvailableMboList(java.util.Date startDate,
java.lang.String orgid,
AvailCalc availCalc)
This returns either the workperiod or modavail mbo for the given parameters.
|
java.lang.String |
getCalType()
Get the internal string represent the user's default calendar type.
|
java.util.Date |
getDateTo() |
java.lang.String |
getDefaultDisplayName()
Get the default displayname.
|
PersonRemote |
getDelegate(java.util.Date asof)
Returns this person's delegate person record for the date given.
|
java.util.Date |
getEndDateFromCalendar(java.util.Date startDate,
java.lang.String duration,
java.lang.String orgid)
Check the modavail and workperiod tables to find the date that results from advancing *duration* number of hours from starting date.
|
PersonRemote |
getLastDelegate(PersonRemote person,
java.util.Date asof)
Returns ultimate delegate of this person.
|
java.lang.String |
getLocaleStr()
Get the internal string represent the user's default locale.
|
MboRemote |
getPrimaryEmail() |
MboRemote |
getPrimaryPhone() |
java.lang.String |
getStartApp()
Get the user startup application string.
|
java.lang.String |
getStatusListName()
Return the string "PERSONSTATUS".
|
java.lang.String |
getSupervisees()
This method finds all of the Person records that are supervised by this Person object.
|
java.lang.String |
getTimezoneStr()
Get the internal string represent the user's default timezone.
|
double |
getTodaysHours(java.util.Date startDate,
java.lang.String orgid)
This method return the number of work hours left in today for the current person and org.
|
java.lang.String[] |
getValidateOrder()
Returns a String[] of field names.
|
void |
init()
Initialize the Person.
|
boolean |
isActive()
Is this person Active?
|
void |
isDelegateLoopCreated()
This method first checks to see if there is a loop created by the delegate personids.
|
void |
setDateTo(java.util.Date dateTo) |
void |
setPrimaryEmail(MboRemote inEmail) |
void |
setPrimaryPhone(MboRemote inPhone) |
boolean |
toChangeStatusAfterInactive() |
void |
updatePrimaryCalendar()
Method to update the primary calendar of this person.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, 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, 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, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
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
public Person(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public java.lang.String getDefaultDisplayName() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
PersonService.getDefaultDisplayName(java.lang.String, java.lang.String, psdi.security.UserInfo)
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- 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 void isDelegateLoopCreated() throws MXException, java.rmi.RemoteException
isDelegateLoopCreated
in interface PersonRemote
MXException
java.rmi.RemoteException
public java.lang.String getSupervisees() throws MXException, java.rmi.RemoteException
getSupervisees
in interface PersonRemote
MXException
java.rmi.RemoteException
getTimezoneStr()
public void setPrimaryPhone(MboRemote inPhone) throws MXException, java.rmi.RemoteException
setPrimaryPhone
in interface PersonRemote
MXException
java.rmi.RemoteException
public void setPrimaryEmail(MboRemote inEmail) throws MXException, java.rmi.RemoteException
setPrimaryEmail
in interface PersonRemote
MXException
java.rmi.RemoteException
public MboRemote getPrimaryPhone() throws MXException, java.rmi.RemoteException
getPrimaryPhone
in interface PersonRemote
MXException
java.rmi.RemoteException
public MboRemote getPrimaryEmail() throws MXException, java.rmi.RemoteException
getPrimaryEmail
in interface PersonRemote
MXException
java.rmi.RemoteException
public java.util.Date getEndDateFromCalendar(java.util.Date startDate, java.lang.String duration, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getEndDateFromCalendar
in interface PersonRemote
MXException
java.rmi.RemoteException
getEndDateFromCalendar(java.util.Date, java.lang.String, java.lang.String)
public double getTodaysHours(java.util.Date startDate, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getTodaysHours
in interface PersonRemote
MXException
java.rmi.RemoteException
getTodaysHours(java.util.Date, java.lang.String)
public double getAvailableHours(java.util.Date startDate, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getAvailableHours
in interface PersonRemote
MXException
java.rmi.RemoteException
getAvailableHours(java.util.Date, java.lang.String)
public double getAvailableHours(java.util.Date startDate, java.lang.String orgid, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
getAvailableHours
in interface PersonRemote
MXException
java.rmi.RemoteException
getAvailableHours(java.util.Date, java.lang.String)
public double getAvailableHours(java.util.Date startDate, PersonCalRemote personCal, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getAvailableMbo(java.util.Date startDate, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getAvailableMbo
in interface PersonRemote
MXException
java.rmi.RemoteException
getAvailableMbo(Date,String)
public java.util.List<MboRemote> getAvailableMboList(java.util.Date startDate, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getAvailableMboList
in interface PersonRemote
MXException
java.rmi.RemoteException
getAvailableMbo(Date,String)
public MboRemote getAvailableMbo(java.util.Date startDate, java.lang.String orgid, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
getAvailableMbo
in interface PersonRemote
startDate
- orgid
- MXException
java.rmi.RemoteException
getAvailableMbo(Date,String)
public java.util.List<MboRemote> getAvailableMboList(java.util.Date startDate, java.lang.String orgid, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
getAvailableMboList
in interface PersonRemote
startDate
- orgid
- MXException
java.rmi.RemoteException
getAvailableMbo(Date,String)
public MboRemote getAvailableMbo(java.util.Date startDate, PersonCalRemote personCal, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
startDate
- orgid
- MXException
java.rmi.RemoteException
public java.util.List<MboRemote> getAvailableMboList(java.util.Date startDate, PersonCalRemote personCal, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
startDate
- orgid
- MXException
java.rmi.RemoteException
public boolean isActive() throws MXException, java.rmi.RemoteException
isActive
in interface PersonRemote
MXException
java.rmi.RemoteException
isActive()
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
StatefulMbo
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
).date
- The effective date of the new status (java.util.Date
).memo
- A string briefly describing the circumstances of the change. The
memo can be null.MXException
- Thrown if there is a problem, or the status cannot be changed,
as determined by canChangeStatus(String)
.java.rmi.RemoteException
StatefulMbo.changeStatus(String,java.util.Date,String,long)
public PersonRemote getDelegate(java.util.Date asof) throws MXException, java.rmi.RemoteException
getDelegate
in interface PersonRemote
asof
- The date to get the delegate for. Passing null will use the current date/time.MXException
java.rmi.RemoteException
getDelegate(java.util.Date)
public PersonRemote getLastDelegate(PersonRemote person, java.util.Date asof) throws java.rmi.RemoteException, MXException
getLastDelegate
in interface PersonRemote
asof
- As-of Date. If not given, then the current date/time is used.MXException
- Thrown with "person", "DelegateLoop" if there's a loop of delegates, i.e. A delegates to B and B delegates to A.java.rmi.RemoteException
getLastDelegate(psdi.app.person.PersonRemote, java.util.Date)
public java.lang.String getCalType() throws MXException, java.rmi.RemoteException
getCalType
in interface PersonRemote
MXException
java.rmi.RemoteException
getCalType()
public java.lang.String getLocaleStr() throws MXException, java.rmi.RemoteException
getLocaleStr
in interface PersonRemote
MXException
java.rmi.RemoteException
getLocaleStr()
public java.lang.String getTimezoneStr() throws MXException, java.rmi.RemoteException
getTimezoneStr
in interface PersonRemote
MXException
java.rmi.RemoteException
getTimezoneStr()
public void updatePrimaryCalendar() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void deletePrimaryCalendar() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
Mbo
getValidateOrder
in class Mbo
public java.lang.String getStartApp() throws java.rmi.RemoteException, MXException
getStartApp
in interface PersonRemote
MXException
java.rmi.RemoteException
public boolean toChangeStatusAfterInactive() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setDateTo(java.util.Date dateTo) throws MXException, java.rmi.RemoteException
setDateTo
in interface PersonRemote
MXException
java.rmi.RemoteException
public java.util.Date getDateTo() throws MXException, java.rmi.RemoteException
getDateTo
in interface PersonRemote
MXException
java.rmi.RemoteException
public void deletePersonData() throws MXException, java.rmi.RemoteException
deletePersonData
in interface PersonRemote
MXException
java.rmi.RemoteException