public class ContactGroup extends PermissionedContact implements DependanceListener, ReloadEventListener
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTACT_GROUP_MEMBERS_CACHE_KEY
Key used to retrieve cached data for contact group maps
|
static GlobalId |
DBCLASS_GID
Groups businesses and people together
|
static java.lang.String |
DBCLASS_NAME
Groups businesses and people together
|
static java.lang.String |
GROUP_CONTACTS_CACHE_KEY |
static java.lang.String |
IGNORE_EXCLUDES
ignore the exclusion of contacts from groups
|
DBEVERYONE_CONTACT, DBFIELD_MOBILE, DBUSERS_ADMIN, DBUSERS_CONTACT
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
ContactGroup(DBClass def,
DataSource dataSource)
Creates new Group.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearCache(GlobalKey changedKey)
Automatically called for eventDataLoaded() with this GlobalKey and getCleanVersion() with null for the global key.
|
void |
eventDependantAdded(GlobalKey addedKey,
GlobalKey sourceFieldKey)
A record that points to this record was added.
|
void |
eventDependantRemoved(GlobalKey removedKey,
GlobalKey sourceFieldKey)
A record that points to this record was removed.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
clear the cache
|
void |
eventReload(DBObject obj)
Called when a watched DBObject is reloaded, internally or externally.
|
protected void |
extCheckModifyAccess(DBField field)
Additional access checking for write access of this object.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
PersonGroupType |
findGroupType(java.lang.String... args)
link to PersonGroupType.
|
PersonGroupType |
getGroupType(java.lang.String... args) |
protected PermissionedContact |
getIsMemberOfUser(DataSource ds,
FldParams params)
Finds the correct user to be checking if they are a member of this group
|
boolean |
hideAssignToGroup(java.lang.String... args) |
ContactGroup |
setGroupType(com.aspc.dal.dbobj.contact.PersonGroupType value,
java.lang.String... args) |
ContactGroup |
setHideAssignToGroup(boolean value,
java.lang.String... args) |
getCode, getGroups, getMembers, hasEntitlement, isMemberOf, isMemberOfGroup, isValid, setCode
canReceiveAlert, decodeUnsubscribeId, displayName, encodeUnsubscribeId, extFixUp, extGetDerivedGlobalKey, extPostSaveRecord, extPreSaveRecord, extPreValidate, extValidateRecord, findContactPerson, findCountry, findDisplayMailCountry, findDisplayMailState, findKey, findLastModifiedBy, findMailCountry, findMailState, findState, getAddress, getContactId, getContactPerson, getCoordinate, getCountry, getCurrentEmail, getDisplayEmail, getDisplayMailAddress, getDisplayMailCountry, getDisplayMailPostCode, getDisplayMailState, getDisplayMailSuburbCity, getEmail, getFax, getFullTextSearchScore, getKeyWords, getLastModifiedBy, getLastModifiedTime, getMailAddress, getMailCountry, getMailPostCode, getMailState, getMailSuburbCity, getMapsHREF, getName, getNotes, getPhone, getPostcode, getPrimaryType, getProperties, getReferencesUUID, getSequence, getSocialFacebook, getSocialGithub, getSocialGooglePlus, getSocialInstagram, getSocialLinkedIn, getSocialPinterest, getSocialTwitter, getSocialYoutube, getState, getSuburbCity, getTFN, getTmpAttachmentKey, getUnsubscribeURL, getUUID, getWeakReferencesUUID, hasReadAccess, isAdmin, isChildNode, isContains, isDescendantNode, isDirectory, isInternal, isNoEmailCorrespondance, isNoEmailCorrespondanceDrv, isPrivate, isPublic, isReferenceable, isSameNode, isVersionable, lastModified, listNodes, makeQuery, makeSearchPlan, setAddress, setAdmin, setContactId, setContactPerson, setCoordinate, setCountry, setEmail, setFax, setKeyWords, setLastModifiedBy, setLastModifiedTime, setMailAddress, setMailCountry, setMailPostCode, setMailState, setMailSuburbCity, setName, setNoEmailCorrespondance, setNotes, setPhone, setPostcode, setPrimaryType, setPrivate, setProperties, setReferenceable, setReferencesUUID, setSequence, setSocialFacebook, setSocialGithub, setSocialGooglePlus, setSocialInstagram, setSocialLinkedIn, setSocialPinterest, setSocialTwitter, setSocialYoutube, setState, setSuburbCity, setTFN, setTmpAttachmentKey, setUUID, setVersionable, setWeakReferencesUUID, toString, vDisplayName, vName
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPreDeleteRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, touch, undelete, validateField, validateRecord, validateSubType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
registerWatchedObject
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String IGNORE_EXCLUDES
public static final java.lang.String CONTACT_GROUP_MEMBERS_CACHE_KEY
public static final java.lang.String GROUP_CONTACTS_CACHE_KEY
public ContactGroup(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class def.dataSource
- The current datasourcejava.lang.Exception
- A serious problem@CheckReturnValue @Nullable public PersonGroupType getGroupType(java.lang.String... args)
@CheckReturnValue @Nonnull public final PersonGroupType findGroupType(java.lang.String... args) throws NotFoundException
PersonGroupType
(String, Searchable)args
- the optional argumentsNotFoundException
- PersonGroupType was not found@Nonnull public ContactGroup setGroupType(com.aspc.dal.dbobj.contact.PersonGroupType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean hideAssignToGroup(java.lang.String... args)
@Nonnull public ContactGroup setHideAssignToGroup(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class Contact
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- a serious problempublic void eventDependantAdded(GlobalKey addedKey, GlobalKey sourceFieldKey)
eventDependantAdded
in interface DependanceListener
addedKey
- The record's key that was added.sourceFieldKey
- Via which field is this object linked ?public void eventDependantRemoved(GlobalKey removedKey, GlobalKey sourceFieldKey)
eventDependantRemoved
in interface DependanceListener
removedKey
- The record key that was removed.sourceFieldKey
- Via which field was this object linked ?@OverridingMethodsMustInvokeSuper protected void clearCache(@Nullable GlobalKey changedKey)
clearCache
in class DBObject
changedKey
- The key that was changed.@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class PermissionedContact
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess(@Nonnull DBField field) throws DBAccessException
extCheckModifyAccess
in class DBObject
field
- the field to check if modifications are allowedDBAccessException
- No access to modifypublic void eventReload(@Nonnull DBObject obj)
eventReload
in interface ReloadEventListener
obj
- The object that was reloaded.protected PermissionedContact getIsMemberOfUser(DataSource ds, FldParams params) throws java.lang.Exception
ds
- the data sourceparams
- field parameters containing details of the user to be checkedjava.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.