Class DBMember
- All Implemented Interfaces:
DBConstants,DBData,EditableData,JcmsConstants,ImportConstants,MashupConstants,Storable,JaliosConstants,LangPropertyArgument,Serializable,Cloneable,Comparable<BasicStorable>
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.jalios.jcms.Member
Member.AccountSelector, Member.AdministratorSelector, Member.AllAuthenticationSelector, Member.Appearance, Member.BelongsToWorkspaceOrChildSelector, Member.ClearanceLevelSelector, Member.ContactSelector, Member.DisabledSelector, Member.EnabledSelector, Member.ExternalAuthenticationSelector, Member.FirstNameComparator<T extends Member>, Member.GroupComparator<T extends Member>, Member.GroupSelector, Member.GuestSelector, Member.LangComparator<T extends Member>, Member.LastLdapSyncComparator<T extends Member>, Member.LastLoginDateComparator<T extends Member>, Member.LdapAccountComparator<T extends Member>, Member.LDAPSelector, Member.LoginComparator<T extends Member>, Member.NameComparator<T extends Member>, Member.NotificationPeriodSelector, Member.PublicationCountComparator<T extends Member>, Member.RightComparator<T extends Member>, Member.SessionComparator<T extends Member>, Member.TextSelector, Member.UsageSelector, Member.ValidEmailSelector, Member.WorkerSelectorNested classes/interfaces inherited from class com.jalios.jcms.Data
Data.AuthorComparator<T extends Data>, Data.AuthorizedSelector, Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator<T extends Data>, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator<T extends Data>, Data.RowIdComparator<T extends Data>, Data.StrongLockSelectorNested classes/interfaces inherited from class com.jalios.jstore.BasicStorable
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.jalios.jcms.Member
address, alertRuleSet, assistant, assistantDBID, ASYNC_DELETE, canEditCategories, canManageContentStaled, canPublishContent, canUpdateDeleteContent, clearanceLevel, country, CTX_SKIP_ACTIVITY, CTX_SKIP_DUPLICATE_EMAIL_CHECK, CTX_SKIP_DUPLICATE_LOGIN_CHECK, declaredGroups, declaredManager, declaredManagerDBID, delegateMbrIdSet, delegateMbrIdSetInit, delegateMemberSet, delegateMemberSetDBID, DELETE_PHOTO_ON_DISABLE_PROP, department, DISABLED_PASSWORD, DO_NOT_REASSIGN_PUBLICATION, email, encodedAlertRules, EXTERNAL_PASSWORD, EXTRADBDATA_LAST_LOGIN_TIME, FEATURE_CADDY_ACL, firstName, fullEmail, fullName, groups, GUEST_GROUP_VID, IGNORE_LOGIN_DATE, info, isAdmin, isEmailVisible, isWorkspaceSetUpToDate, jobTitle, language, lastLdapSynchro, ldapSync, locale, locality, login, MAX_LAST_LOGIN_DATE_HISTORY, MEMBER_STATUS_AWAY, MEMBER_STATUS_DND, MEMBER_STATUS_OFFLINE, MEMBER_STATUS_ONLINE, mobile, name, notification, organization, password, phone, photo, PHOTO_DELETE, poBox, postalCode, readCategorySet, region, rightFromClassMap, salutation, street, UGC_COUNT_LIMIT_THREAD, usage, USAGE_ACCOUNT, USAGE_CONTACT, USE_CATEGORY_GROUP_AND_MEMBER, USE_CATEGORY_GROUP_ONLY, USE_CATEGORY_MEMBER_ONLY, useCategoryMode, useCategorySet, zoneIdFields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO, WYSIWYG_INLINE_EDIT_REQUEST_PARAMETERFields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, mdate, storeFields inherited from interface com.jalios.jcms.db.DBConstants
ALL_CATEGORIES_SET_FIELD, ATTACH_WS_SET_FIELD, AUTH_GRP_SET_FIELD, AUTH_MBR_SET_FIELD, AUTHOR_ID_FIELD, CATEGORIES_SET_FIELD, CDATE_FIELD, CHANNEL_JCMSDB_PROP, CLASSIFICATION_LEVEL_FIELD, DBDATA_URID, EXTENDED_READ_RIGHTS, HAS_ATTACH_WS_FIELD, HAS_NO_READ_RIGHTS, HIBERNATE_MAPPING_ADATE, HIBERNATE_MAPPING_AUTHOR, HIBERNATE_MAPPING_CDATE, HIBERNATE_MAPPING_EDATE, HIBERNATE_MAPPING_HAS_ATTACH_WS, HIBERNATE_MAPPING_HASNOREADRIGHTS, HIBERNATE_MAPPING_MAININSTANCE_ID, HIBERNATE_MAPPING_MAJORVERSION, HIBERNATE_MAPPING_MDATE, HIBERNATE_MAPPING_MERGE_DATE, HIBERNATE_MAPPING_MERGE_ID, HIBERNATE_MAPPING_MINORVERSION, HIBERNATE_MAPPING_OPAUTHOR, HIBERNATE_MAPPING_PDATE, HIBERNATE_MAPPING_PSTATUS, HIBERNATE_MAPPING_READ_ACK, HIBERNATE_MAPPING_READERCOUNT, HIBERNATE_MAPPING_RESTRICTIVE_UPDATE_RIGHTS, HIBERNATE_MAPPING_TITLE, HIBERNATE_MAPPING_TRACKED, HIBERNATE_MAPPING_UDATE, HIBERNATE_MAPPING_VOTECOUNT, HIBERNATE_MAPPING_VOTESCORE, HIBERNATE_MAPPING_WORKFLOW_ID, HIBERNATE_MAPPING_WORKSPACE_ID, MAX_HIBERNATE_MAPPING_PUBLICATION, MDATE_FIELD, OPAUTHOR_ID_FIELD, PSTATUS_FIELD, ROW_ID_FIELD, SCROLL_FETCH_SIZE, WORKFLOW_ID_FIELD, WORKSPACE_ID_FIELDFields inherited from interface com.jalios.jcms.mashup.ImportConstants
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROPFields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEARFields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DATA_DIRECTORY, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GENERATIONAL_STORE_DIRECTORY, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_MINI, PHOTO_MINI_HEIGHT, PHOTO_MINI_PROP_PREFIX, PHOTO_MINI_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PHOTO_XLARGE, PHOTO_XLARGE_HEIGHT, PHOTO_XLARGE_PROP_PREFIX, PHOTO_XLARGE_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, SVGSPRITE_ICON_PREFIX, TEMPLATE_TAB, THEME_DIR, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, TYPES_UNKNOWN_CLASS_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XMLFields inherited from interface com.jalios.jcms.mashup.MashupConstants
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd this member to a given group (this changes is not saved)booleanbelongsToGroup(Group group) This convenient method returns true if this member belongs to a given group.belongsToRole(boolean checkGroups) booleanbelongsToRole(WKRole role) booleanbelongsToRole(WKRole role, boolean checkGroups) booleanConvenience methodbooleanCheck if the member can create a workspacebooleancanCreateWorkspace(Workspace model) Check if the member can duplicate the model to create a workspacebooleanConvenience methodbooleanChecks if if this member can publish something else than UGC.convertToMember(Member opAuthor) Converts this DBMember to a member.static voidexportCSV(Collection<String> dbMemberIdColl, String lang, Writer writer) Export a dataSet to CSVvoidexportXmlField(StringBuffer sb, int indentLevel) Fills the given StringBuffer with Xml export of fields of this data.Returns the assistant of this Member.Get the value of contentSet.Retrieves the country of this member.Returns the declared manager of this member.Retrieve the id of the declared manager, without loading it in DB if it as DBMemberGets the Members allowed to login as this member using delegation.getDelegateMemberSet(boolean queryDB) Internal method used to guarantee proper access to both JStore Member and JcmsDB DBMember set in the delegated members set.Internal method used to guarantee proper storage of DBMember set delegated members.Retrieves whether this member's email is visible to other members or not.getGids()Returns the Group ids to which this member belongs.Group[]Returns all the groups this member belongs to.getInfo()Gets informations available for this member.Retrieve the language of this Member.Retrieves the last login Date of this Member.Retrieve the last login Date of this Member.Retrieve a comma seperated list of last login time of this member.Check if LDAP synchronisation is enabled for this DBMember.static DBMembergetMemberFromEmail(String email, boolean checkDisabled) Retrieve the DBMember having the specified email.static DBMembergetMemberFromLogin(String login, boolean checkDisabled) Retrieve the DBMember having the specified login.Get the NotificationRetrieve a Set containing all the Publication of which this member is the author.Gets the TreeSet of Category used for Publication read right.Get the value of rightFromClassMap.Returns an instance of this object to update it.booleanprotected booleanprotected voidinternalSetLastLoginDate(Date date) Performs the persistance of the new last login date.booleanisAdmin()Checks if this member is an administrator of the site.voidRefresh the groups (force groups to be inferred from declared groups)voidRefresh the workspaces this member belongs to.voidremoveGroup(Group group) Remove this member from a given group(this changes is not saved)voidsetAddress(String address) Set the address of this member.voidsetAdmin(boolean isAdmin) Sets if this member can administrate the site.voidsetAssistant(Member mbr) Sets the assistant of this Member.voidvoidsetCountry(String countryCode) Set the country of this member.voidsetDeclaredGroups(Group[] v) Set the value of declaredGroups.voidsetDeclaredManager(Member mbr) Sets the declared manager of this member.voidvoidSet which members are authorized to delegate to this member.voidInternal method used to guarantee proper storage of DBMember set delegated members.voidsetDepartment(String department) Set the department of this member.voidSet the email address of this member.voidsetEmailPublic(Boolean visible) Sets whether this member's email is visible to other members or not.voidsetFirstName(String firstName) Set the first name of this member.voidSet some informations available for this member.voidsetJobTitle(String jobTitle) Set the job title of this member.voidsetLanguage(String lang) Set the language of this Member.voidsetLastLoginTimes(String lastLoginTimes) Set the comma seperated list of last login time of this member.voidsetLdapSynchro(Boolean ldapSync) Set whether to enable LDAP synchronisation for this DBMember.voidsetLocality(String locality) Set the address locality of this Member.voidSet the login of this member.voidSet the mobile phone number of this member.voidSet the name of this member.voidsetNotification(Notification notification) Sets the NotificationvoidsetOrganization(String organization) Set the organization of this member.voidsetPassword(String password) Set the (hashed) password of this member.voidSet the phone number of this member.voidSet the address postal office box of this Member.voidsetPostalCode(String postalCode) Set the address postal code of this Member.voidSet the value of readCategorySet.voidSet the address region of this Member.voidSet the value of rightFromClassMap.voidsetSalutation(String salutation) Set the salutation of this member.voidSet the street address of this Member.voidsetUseCategoryMode(int v) Set the value of useCategoryMode.voidSet the value of useCategorySet.voidupdateContentSet(Content content, boolean add) Update contentSet indexvoidupdatePublicationSet(Publication pub, boolean add) Update publicationSet indexvoidupdateWorkspaceSet(Workspace ws, boolean add) Update workspaceSet indexMethods inherited from class com.jalios.jcms.Member
alertSignup, belongsToGroup, belongsToWorkspace, buildPhotoFilename, canArchive, canBeReadBy, canCreateContact, canDeleteOther, canDeleteOther, canDeleteOther, canDeleteOther, canDeleteOther, canEditCategories, canEditCategories, canExportGroups, canExportMembers, canManageCategory, canManageCategory, canPublish, canPublish, canPublish, canPublish, canPublish, canPublish, canPublishAll, canPublishContent, canPublishSome, canPublishSome, canPublishSome, canRead, canRead, canRead, canRequestUnlock, canSendMail, canUnlock, canUpdateDeleteContent, canUpdateDeleteContent, canUpdateOther, canUpdateOther, canUpdateOther, canUpdateOther, canUpdateOther, canUploadPhoto, canUseCaddy, canUseCategory, canUseCategory, canUseDescendantCategories, canWorkOn, canWorkOn, checkAccess, checkAccessIfAclExists, checkCreate, checkDelete, checkIntegrity, checkManagerInRole, checkMember, checkMemberGroupModification, checkWrite, cleanHybridCollections, deleteMemberData, deleteMemberUserContent, disable, exportXmlRelated, fillExportXmlFieldAttributes, getAddress, getAdministratedWorkspaceSet, getAlertList, getAlertList, getAlertRuleSet, getAlertRuleSet, getAllCategoryRootSet, getAppearance, getAssistant, getAssistantDBID, getBelongsToWorkspaceSelector, getCategoryRootSet, getCategoryRootSet, getClearanceLevel, getComparator, getCookieMaxAge, getCSVHeader, getDataIcon, getDataIconHtml, getDataImage, getDataImage, getDataName, getDeclaredGroups, getDeclaredGroupSet, getDeclaredGroupSet, getDeclaredManager, getDeclaredManagerDBID, getDefaultFieldStatus, getDelegationHolderSet, getDepartment, getEditCategoryMode, getEffectiveClearanceLevel, getEmail, getEncodedAlertRules, getExpandedUseCategorySet, getFavoriteWorkspace, getFieldValue, getFirstName, getFirstNameComparator, getFollowedPublicationList, getFriendlyName, getFullEmail, getFullName, getGroupComparator, getGroupSet, getHtmlIcon, getHtmlIcon, getIcon, getIcon, getIconParameter, getIndexingDate, getInitials, getInitialsColor, getInitialsTextColor, getJobTitle, getLangComparator, getLangSalutation, getLastLdapSyncComparator, getLastLdapSynchro, getLastLoginDateComparator, getLastName, getLdapComparator, getLdapSync, getLocale, getLocality, getLogin, getLoginComparator, getManagedMemberSet, getManagedMemberSet, getManager, getManager, getMemberColorPreference, getMemberFromPhoto, getMobile, getMobilePhoneNumber, getName, getNameComparator, getOrganization, getOrganizationAndDepartment, getOrganizationGroupSet, getPassword, getPhone, getPhoneNumber, getPhoto, getPoBox, getPostalCode, getPreference, getPreference, getPublicationCount, getPublicationCountComparator, getRegion, getRight, getRight, getRight, getRightComparator, getSalutation, getSessionComparator, getSignupConfirmationUrl, getStatus, getStreet, getStructuredAddress, getTeamPortal, getTypeBadge, getUsage, getUsageLabel, getUsageName, getUseCategoryMode, getUseCategorySet, getZoneId, handleDeleteMemberUserContent, hasAcl, hasAnyAddress, hasPhoto, hasRead, hasStructuredAddress, indexLogin, internalCanCreateWorkspace, internalCanDeleteOther, internalCanManageCategory, internalCanPublish, internalCanUpdateDeleteOtherCommon, internalCanUpdateOther, internalCanUseCategory, internalCheckMember, internalIsWorker, invalidateCanManageContent, isAccount, isAdmin, isAllAuthentication, isAManager, isAssistedBy, isContact, isDeclaredGroup, isDisabled, isEmailValid, isEmailVisible, isExternalAuthentication, isGuest, isImportEnabled, isLdapAccount, isManagerOf, isValidAccount, isWorkAdmin, isWorker, isWorker, performBeforeWrite, performDelete, performDeleteAsync, performUpdate, reassignMemberPubs, refreshLoginIndex, removeAllPhotos, removeMemberAttendeeCalendarEvent, saveMemberAppearancePreference, saveMemberColorPreference, savePreference, setAlertRuleSet, setAssistantDBID, setClearanceLevel, setDeclaredManagerDBID, setEmailVisible, setEncodedAlertRules, setFieldValue, setLastLdapSynchro, setLastLoginDate, setLastName, setLdapSync, setLocale, setPhoto, setUsage, setZoneId, splitHybridCollections, toCSV, toString, unindexLogin, updateDelegationHolderSet, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updatePhoto, updateRightsMethods inherited from class com.jalios.jcms.Data
canBeReadBy, canBeUnlockedBy, canRequestUnlock, checkAndPerformCreate, checkAndPerformCreate, checkAndPerformDelete, checkAndPerformDelete, checkAndPerformUpdate, checkAndPerformUpdate, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkStrongLockMember, checkUpdate, checkUpdate, cleanHybridCollection, cleanHybridCollection, cleanHybridCollection, clone, computeDBIDArray, computeDBIDList, computeDBIDSet, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, getAllReferrerSet, getAllReferrerSet, getAllRelatedData, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconAlt, getDataIconCSS, getDataIconHtml, getDataIconTitle, getDataImage, getDataNameComparator, getDate, getDate, getDateSelector, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, getGenericThumbnail, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLangPropertyValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockInfo, getLockMember, getLongFieldValue, getLongFieldValue, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpAuthorId, getOpDelegate, getReadAuthorizedSelector, getReferrerSet, getRowId, getRowIdComparator, getStrongLock, getStrongLockContext, getStrongLockContextData, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getVirtualIDSet, importXml, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, initializeDBDataCollections, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, mergeHybridLink, performAfterWrite, performCreate, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, putStrongLock, releaseStrongLock, releaseStrongLock, removeAllRelatedData, removeAllRelatedData, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpAuthorId, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateDisplayLinkHtmlAttributes, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSetMethods inherited from class com.jalios.jstore.BasicStorable
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, hashCode, isStored, resetInternalCaches, resolveAtt, resolveVal, setAttributes, setAttributes, setCdate, setDdate, setId, setStore, toXml
-
Field Details
-
HIBERNATE_MAPPING_USAGE
public static final int HIBERNATE_MAPPING_USAGE- See Also:
-
HIBERNATE_MAPPING_LOGIN
public static final int HIBERNATE_MAPPING_LOGIN- See Also:
-
HIBERNATE_MAPPING_PASSWORD
public static final int HIBERNATE_MAPPING_PASSWORD- See Also:
-
HIBERNATE_MAPPING_SALUTATION
public static final int HIBERNATE_MAPPING_SALUTATION- See Also:
-
HIBERNATE_MAPPING_LASTNAME
public static final int HIBERNATE_MAPPING_LASTNAME- See Also:
-
HIBERNATE_MAPPING_FIRSTNAME
public static final int HIBERNATE_MAPPING_FIRSTNAME- See Also:
-
HIBERNATE_MAPPING_ORGANIZATION
public static final int HIBERNATE_MAPPING_ORGANIZATION- See Also:
-
HIBERNATE_MAPPING_DEPARTMENT
public static final int HIBERNATE_MAPPING_DEPARTMENT- See Also:
-
HIBERNATE_MAPPING_JOBTITLE
public static final int HIBERNATE_MAPPING_JOBTITLE- See Also:
-
HIBERNATE_MAPPING_PHONE
public static final int HIBERNATE_MAPPING_PHONE- See Also:
-
HIBERNATE_MAPPING_MOBILE
public static final int HIBERNATE_MAPPING_MOBILE- See Also:
-
HIBERNATE_MAPPING_ADDRESS
public static final int HIBERNATE_MAPPING_ADDRESS- See Also:
-
HIBERNATE_MAPPING_LOCALE
public static final int HIBERNATE_MAPPING_LOCALE- See Also:
-
HIBERNATE_MAPPING_PHOTO
public static final int HIBERNATE_MAPPING_PHOTO- See Also:
-
HIBERNATE_MAPPING_EMAIL
public static final int HIBERNATE_MAPPING_EMAIL- See Also:
-
HIBERNATE_MAPPING_EMAILPUBLIC
public static final int HIBERNATE_MAPPING_EMAILPUBLIC- See Also:
-
HIBERNATE_MAPPING_GIDS
public static final int HIBERNATE_MAPPING_GIDS- See Also:
-
HIBERNATE_MAPPING_LASTLOGINTIMES
public static final int HIBERNATE_MAPPING_LASTLOGINTIMES- See Also:
-
HIBERNATE_MAPPING_ENCODEDALERTRULES
public static final int HIBERNATE_MAPPING_ENCODEDALERTRULES- See Also:
-
HIBERNATE_MAPPING_STREET
public static final int HIBERNATE_MAPPING_STREET- See Also:
-
HIBERNATE_MAPPING_POSTALCODE
public static final int HIBERNATE_MAPPING_POSTALCODE- See Also:
-
HIBERNATE_MAPPING_POBOX
public static final int HIBERNATE_MAPPING_POBOX- See Also:
-
HIBERNATE_MAPPING_REGION
public static final int HIBERNATE_MAPPING_REGION- See Also:
-
HIBERNATE_MAPPING_LOCALITY
public static final int HIBERNATE_MAPPING_LOCALITY- See Also:
-
HIBERNATE_MAPPING_DECLAREDMANAGERID
public static final int HIBERNATE_MAPPING_DECLAREDMANAGERID- See Also:
-
HIBERNATE_MAPPING_ASSISTANTID
public static final int HIBERNATE_MAPPING_ASSISTANTID- See Also:
-
HIBERNATE_MAPPING_LDAPSYNCHRO
public static final int HIBERNATE_MAPPING_LDAPSYNCHRO- See Also:
-
HIBERNATE_MAPPING_LASTLDAPSYNCHRO
public static final int HIBERNATE_MAPPING_LASTLDAPSYNCHRO- See Also:
-
HIBERNATE_MAPPING_ZONEID
public static final int HIBERNATE_MAPPING_ZONEID- See Also:
-
HIBERNATE_MAPPING_OPAUTHORID
public static final int HIBERNATE_MAPPING_OPAUTHORID- See Also:
-
gids
-
lastLoginDateSet
-
declaredManagerId
-
assistantId
-
-
Constructor Details
-
DBMember
public DBMember() -
DBMember
Constructor by copy : creates a new instance of DBMember from the specified Member.Warning : Do not use this constructor to create an update instance for a DBMember, instead use
getUpdateInstance():Member updated = (Member) member.getUpdateInstance(); update.performUpdate(...)
- Parameters:
other- the member to copy, must not be null.- Since:
- jcms-6.1.0
-
-
Method Details
-
getUpdateInstance
Description copied from class:DataReturns an instance of this object to update it.- Overrides:
getUpdateInstancein classMember- Returns:
- an instance of this object to update it.
-
toFullString
- Overrides:
toFullStringin classMember
-
exportCSV
Export a dataSet to CSV- Parameters:
dbMemberIdColl- the set of DBMember's id to be exportedlang- the languagewriter- the writer where to print the export- Since:
- jcms-5.0.0
-
exportXmlField
Description copied from class:DataFills the given StringBuffer with Xml export of fields of this data.- Overrides:
exportXmlFieldin classMember- Parameters:
sb- the StringBufferindentLevel- the indent level
-
internalIsWorker
protected boolean internalIsWorker()- Overrides:
internalIsWorkerin classMember
-
canPublishContent
Description copied from class:MemberChecks if if this member can publish something else than UGC.- Overrides:
canPublishContentin classMember- Parameters:
ws- the Workspace to work on- Returns:
- true if this member can publish something else than UGC.
-
hasExplicitRights
public boolean hasExplicitRights()- Overrides:
hasExplicitRightsin classMember
-
getLdapSynchro
Check if LDAP synchronisation is enabled for this DBMember.Implementation detail: this method returns exactly the same value as
Member.getLdapSync(), but as aBoolean.- Returns:
- true if this member is allowed to be synchronized with ldap. never returns null.
- Since:
- JCMS-6340
- See Also:
-
setLdapSynchro
Set whether to enable LDAP synchronisation for this DBMember.Implementation detail: this method is provided on DBMember to ensure backward compatibility when loading DBMember from database in which column was not set (and is null). When invokes, it delegates to
Member.setLdapSync(boolean), replacing null value withtrue- Parameters:
ldapSync-Boolean.TRUEornullif LDAP synchronization of this Member should be performed if needed,Boolean.TRUEotherwise.- Since:
- JCMS-6340
-
getEmailPublic
Retrieves whether this member's email is visible to other members or not.- Returns:
- true if it is visible, false otherwise
- Since:
- jcms-6.1
- See Also:
-
setEmailPublic
Sets whether this member's email is visible to other members or not.- Parameters:
visible- true if it is visible, false otherwise- Since:
- jcms-6.1
- See Also:
-
getGids
Returns the Group ids to which this member belongs.- Returns:
- a comma seperated list of Group id
- Since:
- jcms-6.1
-
setDeclaredGroups
Description copied from class:MemberSet the value of declaredGroups.- Overrides:
setDeclaredGroupsin classMember- Parameters:
v- Value to assign to declaredGroups.
-
addGroup
Description copied from class:MemberAdd this member to a given group (this changes is not saved) -
removeGroup
Description copied from class:MemberRemove this member from a given group(this changes is not saved)- Overrides:
removeGroupin classMember- Parameters:
group- the group to be removed.
-
belongsToGroup
Description copied from class:MemberThis convenient method returns true if this member belongs to a given group.- Overrides:
belongsToGroupin classMember- Parameters:
group- the group- Returns:
- true if this member belongs to the given group, false otherwise.
-
getGroups
Description copied from class:MemberReturns all the groups this member belongs to. -
getNotification
Description copied from class:MemberGet the Notification- Overrides:
getNotificationin classMember- Returns:
- the notification
-
setNotification
Description copied from class:MemberSets the Notification- Overrides:
setNotificationin classMember- Parameters:
notification- the notification
-
setUseCategorySet
Description copied from class:MemberSet the value of useCategorySet.- Overrides:
setUseCategorySetin classMember- Parameters:
v- Value to assign to useCategorySet.
-
setUseCategoryMode
public void setUseCategoryMode(int v) Description copied from class:MemberSet the value of useCategoryMode.- Overrides:
setUseCategoryModein classMember- Parameters:
v- Value to assign to useCategoryMode.
-
canCreateWorkspace
public boolean canCreateWorkspace()Description copied from class:MemberCheck if the member can create a workspace- Overrides:
canCreateWorkspacein classMember- Returns:
- true if this member can create a Workspace
-
canCreateWorkspace
Description copied from class:MemberCheck if the member can duplicate the model to create a workspace- Overrides:
canCreateWorkspacein classMember- Parameters:
model- the workspace to duplicate- Returns:
- true if this member can create a Workspace from the model
-
getReadCategorySet
Description copied from class:MemberGets the TreeSet of Category used for Publication read right. This category set contains all the categories a publication must match in order to be visible by this member.- Overrides:
getReadCategorySetin classMember- Returns:
- a TreeSet of Category.
-
setReadCategorySet
Description copied from class:MemberSet the value of readCategorySet.- Overrides:
setReadCategorySetin classMember- Parameters:
v- Value to assign to readCategorySet.
-
getDelegateMemberSet
Description copied from class:MemberGets the Members allowed to login as this member using delegation.- Overrides:
getDelegateMemberSetin classMember- Returns:
- a TreeSet of Member. never return null
-
getDelegateMemberSet
Description copied from class:MemberInternal method used to guarantee proper access to both JStore Member and JcmsDB DBMember set in the delegated members set.- Overrides:
getDelegateMemberSetin classMember- Parameters:
queryDB- true to include any DBMember that may have been set in delegated member, false to retrieve only JStore members- Returns:
- a TreeSet of Member. never return null
-
setDelegateMemberSet
Description copied from class:MemberSet which members are authorized to delegate to this member.- Overrides:
setDelegateMemberSetin classMember- Parameters:
v- A Set of member which are granted delegation right to this member.
-
getDelegateMemberSetDBID
Description copied from class:MemberInternal method used to guarantee proper storage of DBMember set delegated members.- Overrides:
getDelegateMemberSetDBIDin classMember- Returns:
- an HashSet containing id of DBMember which have been set as delegated members. may return null
-
setDelegateMemberSetDBID
Description copied from class:MemberInternal method used to guarantee proper storage of DBMember set delegated members.- Overrides:
setDelegateMemberSetDBIDin classMember- Parameters:
v- an HashSet containing id of DBMember which have been set as delegated members.
-
getLanguage
Description copied from class:MemberRetrieve the language of this Member.- Overrides:
getLanguagein classMember- Returns:
- an ISO-639 language code (eg
fr), with an optional script indication (egzh-Hant)
-
setLanguage
Description copied from class:MemberSet the language of this Member.The language is the ISO-639-1 language code (eg
fr,de) mut it may include an optional script indication (egzh-Hant).Valid value (which is enforced) can be found in
jcms.propby looking at properties prefixed withlang.string, it must be a language currently configured on the site, otherwise the default site language will be used.- Overrides:
setLanguagein classMember- Parameters:
lang- language key to use for this language.- See Also:
-
getCountry
Description copied from class:MemberRetrieves the country of this member.- Overrides:
getCountryin classMember- Returns:
- an ISO 3166 country code as used by java
Locale
-
setCountry
Description copied from class:MemberSet the country of this member.- Overrides:
setCountryin classMember- Parameters:
countryCode- an ISO 3166 country code as used by javaLocale
-
canCreateWorkCopy
Description copied from class:MemberConvenience method- Overrides:
canCreateWorkCopyin classMember- Parameters:
pub- used to create work copy- Returns:
- true if the publication can be used
- See Also:
-
canMergeWorkCopy
Description copied from class:MemberConvenience method- Overrides:
canMergeWorkCopyin classMember- Parameters:
pub- The publication to merge.- Returns:
- boolean true if publication can be merged
- See Also:
-
getWorkspaceSet
- Overrides:
getWorkspaceSetin classMember- Returns:
- a Set of all Workspace the member belongs to.
-
refreshWorkspaceSet
public void refreshWorkspaceSet()Description copied from class:MemberRefresh the workspaces this member belongs to.- Overrides:
refreshWorkspaceSetin classMember
-
updateWorkspaceSet
Description copied from class:MemberUpdate workspaceSet index- Overrides:
updateWorkspaceSetin classMember- Parameters:
ws- the workspace to be added or removedadd- add if true, remove if false
-
refreshGroups
public void refreshGroups()Description copied from class:MemberRefresh the groups (force groups to be inferred from declared groups)- Overrides:
refreshGroupsin classMember
-
getWorkspacePublicationSet
- Overrides:
getWorkspacePublicationSetin classMember
-
belongsToRole
- Overrides:
belongsToRolein classMember- Returns:
- the first WKRole the member belongs to
-
belongsToRole
- Overrides:
belongsToRolein classMember- Parameters:
checkGroups- check also for member groups- Returns:
- the first WKRole the member belongs to
-
belongsToRole
- Overrides:
belongsToRolein classMember- Parameters:
role- a WKRole- Returns:
- true if member belongs to the WKRole
-
belongsToRole
- Overrides:
belongsToRolein classMember- Parameters:
role- a WKRolecheckGroups- check also for member groups- Returns:
- true if member belongs to the WKRole
-
setName
Description copied from class:MemberSet the name of this member. -
setFirstName
Description copied from class:MemberSet the first name of this member.- Overrides:
setFirstNamein classMember- Parameters:
firstName- the first name to use.
-
isAdmin
public boolean isAdmin()Description copied from class:MemberChecks if this member is an administrator of the site. -
setAdmin
public void setAdmin(boolean isAdmin) Description copied from class:MemberSets if this member can administrate the site. -
setSalutation
Description copied from class:MemberSet the salutation of this member.- Overrides:
setSalutationin classMember- Parameters:
salutation- the salutation token to use, usually one those values"mr""mrs""miss"
"ui.com.lbl.salut.{value}"
-
setOrganization
Description copied from class:MemberSet the organization of this member.- Overrides:
setOrganizationin classMember- Parameters:
organization- the organization to use.
-
setDepartment
Description copied from class:MemberSet the department of this member.- Overrides:
setDepartmentin classMember- Parameters:
department- the department to use for this Member.
-
setJobTitle
Description copied from class:MemberSet the job title of this member.- Overrides:
setJobTitlein classMember- Parameters:
jobTitle- the job title to use.
-
setPhone
Description copied from class:MemberSet the phone number of this member. -
setMobile
Description copied from class:MemberSet the mobile phone number of this member. -
setStreet
Set the street address of this Member.Example:
"58, rue Pottier"Specified value is truncated to 255 characters for DBMember.
-
setPostalCode
Set the address postal code of this Member.Example:
"78150", to identify Le Chesnay in France.Specified value is truncated to 32 characters for DBMember.
- Overrides:
setPostalCodein classMember- Parameters:
postalCode- code used by Postal Service to identify postal service zone.- Since:
- jcms-9.0.0
-
setPoBox
Set the address postal office box of this Member.Example:
"BP 90 123".Specified value is truncated to 32 characters for DBMember.
-
setRegion
Set the address region of this Member.Example:
"Ile de France"Specified value is truncated to 255 characters for DBMember.
-
setLocality
Set the address locality of this Member.Example:
"Le Chesnay"Specified value is truncated to 255 characters for DBMember.
- Overrides:
setLocalityin classMember- Parameters:
locality- name of a locality or place, such as a city, county, or other geographic region- Since:
- jcms-9.0.0
-
setAddress
Description copied from class:MemberSet the address of this member.- Overrides:
setAddressin classMember- Parameters:
address- the address (street address, postal code, city, country and all) to use.- See Also:
-
setEmail
Description copied from class:MemberSet the email address of this member. -
getInfo
Description copied from class:MemberGets informations available for this member. -
setInfo
Description copied from class:MemberSet some informations available for this member. -
setLogin
Description copied from class:MemberSet the login of this member. -
setPassword
Description copied from class:MemberSet the (hashed) password of this member.The password value specified must be crypted using method
Channel.crypt(String)mbr.setPassword(channel.crypt("abc42def"));- Overrides:
setPasswordin classMember- Parameters:
password- a hashed version of the password to use
-
getRightFromClassMap
Description copied from class:MemberGet the value of rightFromClassMap.- Overrides:
getRightFromClassMapin classMember- Returns:
- Value of rightFromClassMap.
-
setRightFromClassMap
Description copied from class:MemberSet the value of rightFromClassMap.- Overrides:
setRightFromClassMapin classMember- Parameters:
v- Value to assign to rightFromClassMap.
-
getPublicationSet
Description copied from class:MemberRetrieve a Set containing all the Publication of which this member is the author.- Overrides:
getPublicationSetin classMember- Returns:
- a Set of Publication, never return null.
-
updatePublicationSet
Description copied from class:MemberUpdate publicationSet index- Overrides:
updatePublicationSetin classMember- Parameters:
pub- the publication to be added or removedadd- add if true, remove if false
-
getContentSet
Description copied from class:MemberGet the value of contentSet.- Overrides:
getContentSetin classMember- Returns:
- Value of contentSet.
-
updateContentSet
Description copied from class:MemberUpdate contentSet index- Overrides:
updateContentSetin classMember- Parameters:
content- the content to be added or removedadd- add if true, remove if false
-
getMemberFromLogin
Retrieve the DBMember having the specified login.- Parameters:
login- the member's logincheckDisabled- if true, return null if account is disabled- Returns:
- the first DBMember found with the specified login or null if none could be found.
- Since:
- jcms-6.1
-
getMemberFromEmail
Retrieve the DBMember having the specified email.- Parameters:
email- the member's emailcheckDisabled- if true, return null if account is disabled- Returns:
- the first DBMember found with the specified email or null if none could be found.
- Since:
- jcms-6.1
-
getLastLoginTimes
Retrieve a comma seperated list of last login time of this member.- Returns:
- a String a coma seperated list of time in millisecond.
- Since:
- jcms-6.1
-
setLastLoginTimes
Set the comma seperated list of last login time of this member.- Parameters:
lastLoginTimes- a coma seperated list of time in millisecond.- Since:
- jcms-6.1
-
getLastLoginDateSet
Description copied from class:MemberRetrieve the last login Date of this Member.- Overrides:
getLastLoginDateSetin classMember- Returns:
- a Set of Date, return an empty set if this user has never been logged, (never return null).
-
getLastLoginDate
Description copied from class:MemberRetrieves the last login Date of this Member.- Overrides:
getLastLoginDatein classMember- Returns:
- a Date (GMT) or null if this user has never been logged in.
-
internalSetLastLoginDate
Description copied from class:MemberPerforms the persistance of the new last login date.- Overrides:
internalSetLastLoginDatein classMember- Parameters:
date- the date
-
convertToMember
Converts this DBMember to a member. This DBMember is deleted and the new member is returned. All the data this DBMember is the author of are be reassigned to the new member.- Parameters:
opAuthor- the author of this operation- Returns:
- the new Member.
- Since:
- jcms-6.1.0
-
getDeclaredManager
Description copied from class:MemberReturns the declared manager of this member. If the manager is a DBMember it is loaded. This method must not be called before the database as been initialized (e.g. it must not be called by a StoreListener). The manager returned by method must not be kept in data structures that are longer than the DB transaction (e.g. an index). In those cases, call getDeclaredManager(false).- Overrides:
getDeclaredManagerin classMember- Returns:
- the declared manager of this member.
- See Also:
-
setDeclaredManager
Description copied from class:MemberSets the declared manager of this member.- Overrides:
setDeclaredManagerin classMember- Parameters:
mbr- the declared manager
-
getDeclaredManagerId
Description copied from class:MemberRetrieve the id of the declared manager, without loading it in DB if it as DBMember- Overrides:
getDeclaredManagerIdin classMember- Returns:
- the id of the declaredManager Member (JStore or DBMember), if any.
-
setDeclaredManagerId
-
getAssistant
Description copied from class:MemberReturns the assistant of this Member. If the assistant is a DBMember it is loaded. This method must not be called before the database as been initialized (e.g. it must not be called by a StoreListener). The assistant returned by method must not be kept in data structures that are longer than the DB transaction (e.g. an index). In those cases, call getAssistant(false).- Overrides:
getAssistantin classMember- Returns:
- the assistant of this Member.
- See Also:
-
setAssistant
Description copied from class:MemberSets the assistant of this Member.- Overrides:
setAssistantin classMember- Parameters:
mbr- the assistant
-
getAssistantId
-
setAssistantId
-