public class PersonGroup extends Mbo implements PersonGroupRemote
This is a Database level object.
The key attribute for this object is PersonGroup.
The attributes in this object are as follows:
Attribute Description
Attribute | Description |
---|---|
PersonGroup | The id of the Person Group (Autonumber is enabled by default). |
Description | The description of the person group. This is a long description owner. |
Persongroupid | key autogenerated by the system |
PersonGroup
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 |
---|
PersonGroup(MboSet ms)
Construct the PersonGroup object
|
Modifier and Type | Method and Description |
---|---|
void |
appValidate()
Validate the person group.
|
void |
canDelete()
Function called before delete() to check if a PersonGroup mbo
can be deleted.
|
void |
delete(long accessModifier)
Delete the persongroup record and delete associated persongroupteam
records
|
MboRemote |
duplicate()
This method creates a duplicate persongroup
|
void |
duplicateCheck()
Checks for the PersonGroupTeam members to see if there
are any duplicates.
|
PersonSetRemote |
getAvailablePersonforBroadcast(java.lang.String orgID,
java.lang.String siteID)
Obtain the available PersonGroupTeam for workflow assignment(w/broadcast) by checking
useforsite and usefororg values
site default equal to input site
org default equal to input org
It returns the mbo of the person group team records based on useforsite and usefororg values.
|
PersonRemote |
getCurrentFirstAvailablePerson(java.util.Date date,
java.lang.String orgID,
java.lang.String siteID)
Obtain the first available PersonGroupTeam for this work order by checking
the calendar of the Person Group members in this order
primary members by sequence number
alternates by the same primary member order and the alternate sequence number
if no valid member is found one is selected in this order:
site default equal to input site
org default equal to input org
group default
It returns the mbo of the person group team record.
|
PersonRemote |
getCurrentResponsiblePerson(java.util.Date date)
Get the responsible person in the persongroup.
|
PersonRemote |
getCurrentResponsiblePerson(java.util.Date date,
java.lang.String orgID,
java.lang.String siteID)
Get the responsible person in the persongroup.
|
PersonRemote |
getNextAvailablePerson(java.util.Date date,
java.lang.String skipPersonId)
Returns the next available Person in the person group in the sequence after the given Person.
|
PersonRemote |
getNextAvailablePerson(java.util.Date date,
java.lang.String orgID,
java.lang.String siteID,
java.lang.String skipPersonId)
Returns the next available Person in the person group in the sequence after the given Person.
|
PersonGroupTeamSetRemote |
getResponsibleParty()
Obtain the initial responsible party (primary members not alternates)
for this persongroup.
|
PersonSetRemote |
getResponsiblePeople()
Obtain all members (primary and alternate)
for this person group.
|
void |
validateLevels()
Checks for the PersonGroupTeam members to ensure that if any members
are at the group level that they are also not at another level.
|
MboRemote |
validGroupDefault()
Checks for the PersonGroupTeam members DefaultGroup 'Y'
only one PersonGroupTeam for a PersonGroup can have 'Y' for
GroupDefault.
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, 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, 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, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, 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
add, addMboSetForRequiredCheck, 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, 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 PersonGroup(MboSet ms) throws MXException, java.rmi.RemoteException
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
access
- modifier used for the delete passed to super.deleteMXException
java.rmi.RemoteException
Mbo.delete(long)
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXApplicationException
MXException
java.rmi.RemoteException
public void validateLevels() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MXApplicationException("persongroup","incompatibleusefororg")
MXApplicationException("persongroup","incompatibleuseforsite")
public MboRemote validGroupDefault() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MXApplicationException("persongroup","MoreThanOneGroupDefault")
public void duplicateCheck() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MXApplicationException("persongroup","groupmemberAlreadyExists")
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
skipCopyField(psdi.mbo.MboValueInfo)
public PersonGroupTeamSetRemote getResponsibleParty() throws MXException, java.rmi.RemoteException
getResponsibleParty
in interface PersonGroupRemote
MXException
java.rmi.RemoteException
psdi.app.persongroup.getCurrentFirstAvailablePerson().
public PersonSetRemote getAvailablePersonforBroadcast(java.lang.String orgID, java.lang.String siteID) throws MXException, java.rmi.RemoteException
getAvailablePersonforBroadcast
in interface PersonGroupRemote
MXException
java.rmi.RemoteException
getResponsibleParty()
public PersonRemote getCurrentFirstAvailablePerson(java.util.Date date, java.lang.String orgID, java.lang.String siteID) throws MXException, java.rmi.RemoteException
Date
- of interestMXException
java.rmi.RemoteException
getResponsibleParty()
public PersonRemote getCurrentResponsiblePerson(java.util.Date date) throws MXException, java.rmi.RemoteException
getCurrentResponsiblePerson
in interface PersonGroupRemote
Date
- of interestMXException
java.rmi.RemoteException
getCurrentFirstAvailablePerson(Date date, String orgID, String siteID)
public PersonRemote getCurrentResponsiblePerson(java.util.Date date, java.lang.String orgID, java.lang.String siteID) throws MXException, java.rmi.RemoteException
getCurrentResponsiblePerson
in interface PersonGroupRemote
Date
- of interestString
- orgID - organization IDString
- siteID - site IDMXException
java.rmi.RemoteException
public PersonSetRemote getResponsiblePeople() throws MXException, java.rmi.RemoteException
getResponsiblePeople
in interface PersonGroupRemote
MXException
java.rmi.RemoteException
public PersonRemote getNextAvailablePerson(java.util.Date date, java.lang.String skipPersonId) throws MXException, java.rmi.RemoteException
getNextAvailablePerson
in interface PersonGroupRemote
date
- date for which avaialbility needs to be checked.skipPersonId
- Person Id in the sequence from which to find the next available person
in the person group. If null is specified for this, returns the first available person
in the person group.MXException
java.rmi.RemoteException
public PersonRemote getNextAvailablePerson(java.util.Date date, java.lang.String orgID, java.lang.String siteID, java.lang.String skipPersonId) throws MXException, java.rmi.RemoteException
getNextAvailablePerson
in interface PersonGroupRemote
date
- date for which avaialbility needs to be checked.orgID
- organization idsiteID
- site idskipPersonId
- Person Id in the sequence from which to find the next available person
in the person group. If null is specified for this, returns the first available person
in the person group.MXException
java.rmi.RemoteException