Class DBMember
- java.lang.Object
-
- com.jalios.jstore.BasicStorable
-
- com.jalios.jcms.Data
-
- com.jalios.jcms.Member
-
- com.jalios.jcms.dbmember.DBMember
-
- All Implemented Interfaces:
DBConstants
,DBData
,EditableData
,JcmsConstants
,ImportConstants
,MashupConstants
,Storable
,JaliosConstants
,LangPropertyArgument
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<BasicStorable>
public class DBMember extends Member implements DBData, DBConstants
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBMember.Fields
-
Nested classes/interfaces inherited from class com.jalios.jcms.Member
Member.AccountSelector, Member.AdministratorSelector, Member.AllAuthenticationSelector, Member.BelongsToWorkspaceOrChildSelector, 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.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.WebdavComparator<T extends Member>, Member.WorkerSelector
-
Nested 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.StrongLockSelector
-
Nested 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
-
Fields inherited from class com.jalios.jcms.Member
address, alertRuleSet, assistant, assistantDBID, ASYNC_DELETE, canEditCategories, canManageContentStaled, canPublishContent, canUpdateDeleteContent, country, CTX_SKIP_ACTIVITY, CTX_SKIP_DUPLICATE_EMAIL_CHECK, CTX_SKIP_DUPLICATE_LOGIN_CHECK, declaredGroups, declaredManager, declaredManagerDBID, delegateMbrIdSet, delegateMbrIdSetInit, delegateMemberSet, delegateMemberSetDBID, 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, 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, webdavAccess, zoneId
-
Fields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO
-
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, mdate, store
-
Fields 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, DBDATA_URID, 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_FIELD
-
Fields 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_PROP
-
Fields 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_YEAR
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, 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, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, 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_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, 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, TEMPLATE_TAB, 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, 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_XML
-
Fields 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroup(Group group)
Add this member to a given group (this changes is not saved)boolean
belongsToGroup(Group group)
This convenient method returns true if this member belongs to a given group.WKRole
belongsToRole()
WKRole
belongsToRole(boolean checkGroups)
boolean
belongsToRole(WKRole role)
boolean
belongsToRole(WKRole role, boolean checkGroups)
boolean
canCreateWorkCopy(Publication pub)
Convenience methodboolean
canCreateWorkspace()
Check if the member can create a workspaceboolean
canCreateWorkspace(Workspace model)
Check if the member can duplicate the model to create a workspaceboolean
canMergeWorkCopy(Publication pub)
Convenience methodboolean
canPublishContent(Workspace ws)
Checks if if this member can publish something else than UGC.Member
convertToMember(Member opAuthor)
Converts this DBMember to a member.static void
exportCSV(java.util.Collection<java.lang.String> dbMemberIdColl, java.lang.String lang, java.io.Writer writer)
Export a dataSet to CSVvoid
exportXmlField(java.lang.StringBuffer sb, int indentLevel)
Fills the given StringBuffer with Xml export of fields of this data.Member
getAssistant()
Returns the assistant of this Member.java.lang.String
getAssistantId()
java.util.Set<Content>
getContentSet()
Get the value of contentSet.java.lang.String
getCountry()
Retrieves the country of this member.static java.lang.String
getCSVHeader(java.lang.String lang)
Returns the CSV header of this objectMember
getDeclaredManager()
Returns the declared manager of this member.java.lang.String
getDeclaredManagerId()
Retrieve the id of the declared manager, without loading it in DB if it as DBMemberjava.util.TreeSet<Member>
getDelegateMemberSet()
Gets the Members allowed to login as this member using delegation.java.util.TreeSet<Member>
getDelegateMemberSet(boolean queryDB)
Internal method used to guarantee proper access to both JStore Member and JcmsDB DBMember set in the delegated members set.java.util.HashSet<java.lang.String>
getDelegateMemberSetDBID()
Internal method used to guarantee proper storage of DBMember set delegated members.java.lang.Boolean
getEmailPublic()
Retrieves whether this member's email is visible to other members or not.java.lang.String
getGids()
Returns the Group ids to which this member belongs.Group[]
getGroups()
Returns all the groups this member belongs to.java.lang.String
getInfo()
Gets informations available for this member.java.lang.String
getLanguage()
Retrieve the language of this Member.java.util.Date
getLastLoginDate()
Retrieves the last login Date of this Member.java.util.SortedSet<java.util.Date>
getLastLoginDateSet()
Retrieve the last login Date of this Member.java.lang.String
getLastLoginTimes()
Retrieve a comma seperated list of last login time of this member.java.lang.Boolean
getLdapSynchro()
Check if LDAP synchronisation is enabled for this DBMember.static DBMember
getMemberFromEmail(java.lang.String email, boolean checkDisabled)
Retrieve the DBMember having the specified email.static DBMember
getMemberFromLogin(java.lang.String login, boolean checkDisabled)
Retrieve the DBMember having the specified login.Notification
getNotification()
Get the Notificationjava.util.Set<Publication>
getPublicationSet()
Retrieve a Set containing all the Publication of which this member is the author.java.util.TreeSet<Category>
getReadCategorySet()
Gets the TreeSet of Category used for Publication read right.java.util.HashMap<java.lang.String,DataRight>
getRightFromClassMap()
Get the value of rightFromClassMap.Data
getUpdateInstance()
Returns an instance of this object to update it.boolean
getWebdavAccess()
Get the value of webdavAccessjava.util.Set<Publication>
getWorkspacePublicationSet()
java.util.Set<Workspace>
getWorkspaceSet()
boolean
hasExplicitRights()
boolean
hasWebdavAccess()
This method check if member have a webdav access or belongs to a group having webdav access.protected boolean
internalIsWorker()
protected void
internalSetLastLoginDate(java.util.Date date)
Performs the persistance of the new last login date.boolean
isAdmin()
Checks if this member is an administrator of the site.void
refreshGroups()
Refresh the groups (force groups to be inferred from declared groups)void
refreshWorkspaceSet()
Refresh the workspaces this member belongs to.void
removeGroup(Group group)
Remove this member from a given group(this changes is not saved)void
setAddress(java.lang.String address)
Set the address of this member.void
setAdmin(boolean isAdmin)
Sets if this member can administrate the site.void
setAssistant(Member mbr)
Sets the assistant of this Member.void
setAssistantId(java.lang.String v)
void
setCountry(java.lang.String countryCode)
Set the country of this member.void
setDeclaredGroups(Group[] v)
Set the value of declaredGroups.void
setDeclaredManager(Member mbr)
Sets the declared manager of this member.void
setDeclaredManagerId(java.lang.String v)
void
setDelegateMemberSet(java.util.TreeSet<Member> v)
Set which members are authorized to delegate to this member.void
setDelegateMemberSetDBID(java.util.HashSet<java.lang.String> v)
Internal method used to guarantee proper storage of DBMember set delegated members.void
setDepartment(java.lang.String department)
Set the department of this member.void
setEmail(java.lang.String email)
Set the email address of this member.void
setEmailPublic(java.lang.Boolean visible)
Sets whether this member's email is visible to other members or not.void
setFirstName(java.lang.String firstName)
Set the first name of this member.void
setInfo(java.lang.String info)
Set some informations available for this member.void
setJobTitle(java.lang.String jobTitle)
Set the job title of this member.void
setLanguage(java.lang.String lang)
Set the language of this Member.void
setLastLoginTimes(java.lang.String lastLoginTimes)
Set the comma seperated list of last login time of this member.void
setLdapSynchro(java.lang.Boolean ldapSync)
Set whether to enable LDAP synchronisation for this DBMember.void
setLocality(java.lang.String locality)
Set the address locality of this Member.void
setLogin(java.lang.String login)
Set the login of this member.void
setMobile(java.lang.String mobile)
Set the mobile phone number of this member.void
setName(java.lang.String name)
Set the name of this member.void
setNotification(Notification notification)
Sets the Notificationvoid
setOrganization(java.lang.String organization)
Set the organization of this member.void
setPassword(java.lang.String password)
Set the (hashed) password of this member.void
setPhone(java.lang.String phone)
Set the phone number of this member.void
setPoBox(java.lang.String postOfficeBox)
Set the address postal office box of this Member.void
setPostalCode(java.lang.String postalCode)
Set the address postal code of this Member.void
setReadCategorySet(java.util.TreeSet<Category> v)
Set the value of readCategorySet.void
setRegion(java.lang.String region)
Set the address region of this Member.void
setRightFromClassMap(java.util.HashMap<java.lang.String,DataRight> v)
Set the value of rightFromClassMap.void
setSalutation(java.lang.String salutation)
Set the salutation of this member.void
setStreet(java.lang.String street)
Set the street address of this Member.void
setUseCategoryMode(int v)
Set the value of useCategoryMode.void
setUseCategorySet(java.util.TreeSet<Category> v)
Set the value of useCategorySet.void
setWebdavAccess(boolean webdavAccess)
Set the value of webdavAccessjava.lang.String
toCSV(java.lang.String lang)
Returns a CSV view of this objectjava.lang.String
toFullString()
void
updateContentSet(Content content, boolean add)
Update contentSet indexvoid
updatePublicationSet(Publication pub, boolean add)
Update publicationSet indexvoid
updateWorkspaceSet(Workspace ws, boolean add)
Update workspaceSet index-
Methods 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, getAssistant, getAssistantDBID, getBelongsToWorkspaceSelector, getCategoryRootSet, getCategoryRootSet, getComparator, getCookieMaxAge, getDataIcon, getDataIconHtml, getDataImage, getDataImage, getDataName, getDeclaredGroups, getDeclaredGroupSet, getDeclaredGroupSet, getDeclaredManager, getDeclaredManagerDBID, getDelegationHolderSet, getDepartment, getEditCategoryMode, getEmail, getEncodedAlertRules, getExpandedUseCategorySet, getFavoriteWorkspace, getFieldValue, getFirstName, getFirstNameComparator, getFollowedPublicationList, getFriendlyName, getFullEmail, getFullName, getGroupComparator, getGroupSet, getHtmlIcon, getHtmlIcon, getIcon, getIcon, getIconParameter, getIndexingDate, getInitials, getInitialsColor, getJobTitle, getLangComparator, getLangSalutation, getLastLdapSyncComparator, getLastLdapSynchro, getLastLoginDateComparator, getLastName, getLdapComparator, getLdapSync, getLocale, getLocality, getLogin, getLoginComparator, getManagedMemberSet, getManagedMemberSet, getManager, getManager, getMemberFromPhoto, getMobile, getMobilePhoneNumber, getName, getNameComparator, getOrganization, getOrganizationAndDepartment, getOrganizationGroupSet, getPassword, getPhone, getPhoneNumber, getPhoto, getPoBox, getPostalCode, getPreference, getPreference, getPublicationCountComparator, getRegion, getRight, getRight, getRight, getRightComparator, getSalutation, getSessionComparator, getSignupConfirmationUrl, getStatus, getStreet, getTeamPortal, getUsage, getUsageName, getUseCategoryMode, getUseCategorySet, getWebdavComparator, 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, isLdapAccount, isManagerOf, isValidAccount, isWorkAdmin, isWorker, isWorker, performBeforeWrite, performDelete, performDeleteAsync, performUpdate, reassignMemberPubs, refreshLoginIndex, removeAllPhotos, removeMemberAttendeeCalendarEvent, savePreference, setAlertRuleSet, setAssistantDBID, setDeclaredManagerDBID, setEmailVisible, setEncodedAlertRules, setFieldValue, setLastLdapSynchro, setLastLoginDate, setLastName, setLdapSync, setLocale, setPhoto, setUsage, setZoneId, splitHybridCollections, toString, unindexLogin, updateDelegationHolderSet, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updateRights
-
Methods 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, 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, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtension, 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, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setId, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpAuthorId, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateDisplayLinkHtmlAttributes, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
-
Methods 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, setStore, toXml
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_USAGE
public static final int HIBERNATE_MAPPING_USAGE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LOGIN
public static final int HIBERNATE_MAPPING_LOGIN
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_PASSWORD
public static final int HIBERNATE_MAPPING_PASSWORD
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_SALUTATION
public static final int HIBERNATE_MAPPING_SALUTATION
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LASTNAME
public static final int HIBERNATE_MAPPING_LASTNAME
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_FIRSTNAME
public static final int HIBERNATE_MAPPING_FIRSTNAME
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_ORGANIZATION
public static final int HIBERNATE_MAPPING_ORGANIZATION
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_DEPARTMENT
public static final int HIBERNATE_MAPPING_DEPARTMENT
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_JOBTITLE
public static final int HIBERNATE_MAPPING_JOBTITLE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_PHONE
public static final int HIBERNATE_MAPPING_PHONE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_MOBILE
public static final int HIBERNATE_MAPPING_MOBILE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_ADDRESS
public static final int HIBERNATE_MAPPING_ADDRESS
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LOCALE
public static final int HIBERNATE_MAPPING_LOCALE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_PHOTO
public static final int HIBERNATE_MAPPING_PHOTO
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_EMAIL
public static final int HIBERNATE_MAPPING_EMAIL
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_EMAILPUBLIC
public static final int HIBERNATE_MAPPING_EMAILPUBLIC
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_GIDS
public static final int HIBERNATE_MAPPING_GIDS
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LASTLOGINTIMES
public static final int HIBERNATE_MAPPING_LASTLOGINTIMES
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_ENCODEDALERTRULES
public static final int HIBERNATE_MAPPING_ENCODEDALERTRULES
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_STREET
public static final int HIBERNATE_MAPPING_STREET
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_POSTALCODE
public static final int HIBERNATE_MAPPING_POSTALCODE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_POBOX
public static final int HIBERNATE_MAPPING_POBOX
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_REGION
public static final int HIBERNATE_MAPPING_REGION
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LOCALITY
public static final int HIBERNATE_MAPPING_LOCALITY
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_DECLAREDMANAGERID
public static final int HIBERNATE_MAPPING_DECLAREDMANAGERID
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_ASSISTANTID
public static final int HIBERNATE_MAPPING_ASSISTANTID
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LDAPSYNCHRO
public static final int HIBERNATE_MAPPING_LDAPSYNCHRO
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_LASTLDAPSYNCHRO
public static final int HIBERNATE_MAPPING_LASTLDAPSYNCHRO
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_ZONEID
public static final int HIBERNATE_MAPPING_ZONEID
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_OPAUTHORID
public static final int HIBERNATE_MAPPING_OPAUTHORID
- See Also:
- Constant Field Values
-
gids
protected transient java.lang.String gids
-
lastLoginDateSet
protected transient java.util.SortedSet<java.util.Date> lastLoginDateSet
-
declaredManagerId
protected transient java.lang.String declaredManagerId
-
assistantId
protected transient java.lang.String assistantId
-
-
Constructor Detail
-
DBMember
public DBMember()
-
DBMember
public DBMember(Member other)
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 Detail
-
getUpdateInstance
public Data getUpdateInstance()
Description copied from class:Data
Returns an instance of this object to update it.- Overrides:
getUpdateInstance
in classMember
- Returns:
- an instance of this object to update it.
-
toFullString
public java.lang.String toFullString()
- Overrides:
toFullString
in classMember
-
toCSV
public java.lang.String toCSV(java.lang.String lang)
Description copied from class:Member
Returns a CSV view of this object
-
getCSVHeader
public static java.lang.String getCSVHeader(java.lang.String lang)
Returns the CSV header of this object- Parameters:
lang
- the output language- Returns:
- the CSV header of this object
- Since:
- jcms-6.1.0
-
exportCSV
public static void exportCSV(java.util.Collection<java.lang.String> dbMemberIdColl, java.lang.String lang, java.io.Writer writer)
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
public void exportXmlField(java.lang.StringBuffer sb, int indentLevel)
Description copied from class:Data
Fills the given StringBuffer with Xml export of fields of this data.- Overrides:
exportXmlField
in classMember
- Parameters:
sb
- the StringBufferindentLevel
- the indent level
-
internalIsWorker
protected boolean internalIsWorker()
- Overrides:
internalIsWorker
in classMember
-
canPublishContent
public boolean canPublishContent(Workspace ws)
Description copied from class:Member
Checks if if this member can publish something else than UGC.- Overrides:
canPublishContent
in classMember
- Parameters:
ws
- the Workspace to work on- Returns:
- true if this member can publish something else than UGC.
-
hasExplicitRights
public boolean hasExplicitRights()
- Overrides:
hasExplicitRights
in classMember
-
getLdapSynchro
public java.lang.Boolean 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:
Member.setLastLdapSynchro(Date)
-
setLdapSynchro
public void setLdapSynchro(java.lang.Boolean ldapSync)
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.TRUE
ornull
if LDAP synchronization of this Member should be performed if needed,Boolean.TRUE
otherwise.- Since:
- JCMS-6340
-
getWebdavAccess
public boolean getWebdavAccess()
Description copied from class:Member
Get the value of webdavAccess- Overrides:
getWebdavAccess
in classMember
- Returns:
- boolean true if Webdav Access is enabled
-
setWebdavAccess
public void setWebdavAccess(boolean webdavAccess)
Description copied from class:Member
Set the value of webdavAccess- Overrides:
setWebdavAccess
in classMember
- Parameters:
webdavAccess
- the webdavAccess value
-
hasWebdavAccess
public boolean hasWebdavAccess()
Description copied from class:Member
This method check if member have a webdav access or belongs to a group having webdav access.- Overrides:
hasWebdavAccess
in classMember
- Returns:
- boolean true if member have webdav Access
-
getEmailPublic
public java.lang.Boolean 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:
Member.isEmailVisible()
-
setEmailPublic
public void setEmailPublic(java.lang.Boolean visible)
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:
Member.setEmailVisible(boolean)
-
getGids
public java.lang.String getGids()
Returns the Group ids to which this member belongs.- Returns:
- a comma seperated list of Group id
- Since:
- jcms-6.1
-
setDeclaredGroups
public void setDeclaredGroups(Group[] v)
Description copied from class:Member
Set the value of declaredGroups.- Overrides:
setDeclaredGroups
in classMember
- Parameters:
v
- Value to assign to declaredGroups.
-
addGroup
public void addGroup(Group group)
Description copied from class:Member
Add this member to a given group (this changes is not saved)
-
removeGroup
public void removeGroup(Group group)
Description copied from class:Member
Remove this member from a given group(this changes is not saved)- Overrides:
removeGroup
in classMember
- Parameters:
group
- the group to be removed.
-
belongsToGroup
public boolean belongsToGroup(Group group)
Description copied from class:Member
This convenient method returns true if this member belongs to a given group.- Overrides:
belongsToGroup
in classMember
- Parameters:
group
- the group- Returns:
- true if this member belongs to the given group, false otherwise.
-
getGroups
public Group[] getGroups()
Description copied from class:Member
Returns all the groups this member belongs to.
-
getNotification
public Notification getNotification()
Description copied from class:Member
Get the Notification- Overrides:
getNotification
in classMember
- Returns:
- the notification
-
setNotification
public void setNotification(Notification notification)
Description copied from class:Member
Sets the Notification- Overrides:
setNotification
in classMember
- Parameters:
notification
- the notification
-
setUseCategorySet
public void setUseCategorySet(java.util.TreeSet<Category> v)
Description copied from class:Member
Set the value of useCategorySet.- Overrides:
setUseCategorySet
in classMember
- Parameters:
v
- Value to assign to useCategorySet.
-
setUseCategoryMode
public void setUseCategoryMode(int v)
Description copied from class:Member
Set the value of useCategoryMode.- Overrides:
setUseCategoryMode
in classMember
- Parameters:
v
- Value to assign to useCategoryMode.
-
canCreateWorkspace
public boolean canCreateWorkspace()
Description copied from class:Member
Check if the member can create a workspace- Overrides:
canCreateWorkspace
in classMember
- Returns:
- true if this member can create a Workspace
-
canCreateWorkspace
public boolean canCreateWorkspace(Workspace model)
Description copied from class:Member
Check if the member can duplicate the model to create a workspace- Overrides:
canCreateWorkspace
in classMember
- Parameters:
model
- the workspace to duplicate- Returns:
- true if this member can create a Workspace from the model
-
getReadCategorySet
public java.util.TreeSet<Category> getReadCategorySet()
Description copied from class:Member
Gets 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:
getReadCategorySet
in classMember
- Returns:
- a TreeSet of Category.
-
setReadCategorySet
public void setReadCategorySet(java.util.TreeSet<Category> v)
Description copied from class:Member
Set the value of readCategorySet.- Overrides:
setReadCategorySet
in classMember
- Parameters:
v
- Value to assign to readCategorySet.
-
getDelegateMemberSet
public java.util.TreeSet<Member> getDelegateMemberSet()
Description copied from class:Member
Gets the Members allowed to login as this member using delegation.- Overrides:
getDelegateMemberSet
in classMember
- Returns:
- a TreeSet of Member. never return null
-
getDelegateMemberSet
public java.util.TreeSet<Member> getDelegateMemberSet(boolean queryDB)
Description copied from class:Member
Internal method used to guarantee proper access to both JStore Member and JcmsDB DBMember set in the delegated members set.- Overrides:
getDelegateMemberSet
in 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
public void setDelegateMemberSet(java.util.TreeSet<Member> v)
Description copied from class:Member
Set which members are authorized to delegate to this member.- Overrides:
setDelegateMemberSet
in classMember
- Parameters:
v
- A Set of member which are granted delegation right to this member.
-
getDelegateMemberSetDBID
public java.util.HashSet<java.lang.String> getDelegateMemberSetDBID()
Description copied from class:Member
Internal method used to guarantee proper storage of DBMember set delegated members.- Overrides:
getDelegateMemberSetDBID
in classMember
- Returns:
- an HashSet containing id of DBMember which have been set as delegated members. may return null
-
setDelegateMemberSetDBID
public void setDelegateMemberSetDBID(java.util.HashSet<java.lang.String> v)
Description copied from class:Member
Internal method used to guarantee proper storage of DBMember set delegated members.- Overrides:
setDelegateMemberSetDBID
in classMember
- Parameters:
v
- an HashSet containing id of DBMember which have been set as delegated members.
-
getLanguage
public java.lang.String getLanguage()
Description copied from class:Member
Retrieve the language of this Member.- Overrides:
getLanguage
in classMember
- Returns:
- an ISO-639 language code (eg
fr
), with an optional script indication (egzh-Hant
)
-
setLanguage
public void setLanguage(java.lang.String lang)
Description copied from class:Member
Set 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.prop
by 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:
setLanguage
in classMember
- Parameters:
lang
- language key to use for this language.- See Also:
I18nUtil.getValidLanguageKey(String)
-
getCountry
public java.lang.String getCountry()
Description copied from class:Member
Retrieves the country of this member.- Overrides:
getCountry
in classMember
- Returns:
- an ISO 3166 country code as used by java
Locale
-
setCountry
public void setCountry(java.lang.String countryCode)
Description copied from class:Member
Set the country of this member.- Overrides:
setCountry
in classMember
- Parameters:
countryCode
- an ISO 3166 country code as used by javaLocale
-
canCreateWorkCopy
public boolean canCreateWorkCopy(Publication pub)
Description copied from class:Member
Convenience method- Overrides:
canCreateWorkCopy
in classMember
- Parameters:
pub
- used to create work copy- Returns:
- true if the publication can be used
- See Also:
Publication.canCreateWorkCopy(Member)
-
canMergeWorkCopy
public boolean canMergeWorkCopy(Publication pub)
Description copied from class:Member
Convenience method- Overrides:
canMergeWorkCopy
in classMember
- Parameters:
pub
- The publication to merge.- Returns:
- boolean true if publication can be merged
- See Also:
Publication.canMergeWorkCopy(Member)
-
getWorkspaceSet
public java.util.Set<Workspace> getWorkspaceSet()
- Overrides:
getWorkspaceSet
in classMember
- Returns:
- a Set of all Workspace the member belongs to.
-
refreshWorkspaceSet
public void refreshWorkspaceSet()
Description copied from class:Member
Refresh the workspaces this member belongs to.- Overrides:
refreshWorkspaceSet
in classMember
-
updateWorkspaceSet
public void updateWorkspaceSet(Workspace ws, boolean add)
Description copied from class:Member
Update workspaceSet index- Overrides:
updateWorkspaceSet
in classMember
- Parameters:
ws
- the workspace to be added or removedadd
- add if true, remove if false
-
refreshGroups
public void refreshGroups()
Description copied from class:Member
Refresh the groups (force groups to be inferred from declared groups)- Overrides:
refreshGroups
in classMember
-
getWorkspacePublicationSet
public java.util.Set<Publication> getWorkspacePublicationSet()
- Overrides:
getWorkspacePublicationSet
in classMember
-
belongsToRole
public WKRole belongsToRole()
- Overrides:
belongsToRole
in classMember
- Returns:
- the first WKRole the member belongs to
-
belongsToRole
public WKRole belongsToRole(boolean checkGroups)
- Overrides:
belongsToRole
in classMember
- Parameters:
checkGroups
- check also for member groups- Returns:
- the first WKRole the member belongs to
-
belongsToRole
public boolean belongsToRole(WKRole role)
- Overrides:
belongsToRole
in classMember
- Parameters:
role
- a WKRole- Returns:
- true if member belongs to the WKRole
-
belongsToRole
public boolean belongsToRole(WKRole role, boolean checkGroups)
- Overrides:
belongsToRole
in classMember
- Parameters:
role
- a WKRolecheckGroups
- check also for member groups- Returns:
- true if member belongs to the WKRole
-
setName
public void setName(java.lang.String name)
Description copied from class:Member
Set the name of this member.
-
setFirstName
public void setFirstName(java.lang.String firstName)
Description copied from class:Member
Set the first name of this member.- Overrides:
setFirstName
in classMember
- Parameters:
firstName
- the first name to use.
-
isAdmin
public boolean isAdmin()
Description copied from class:Member
Checks if this member is an administrator of the site.
-
setAdmin
public void setAdmin(boolean isAdmin)
Description copied from class:Member
Sets if this member can administrate the site.
-
setSalutation
public void setSalutation(java.lang.String salutation)
Description copied from class:Member
Set the salutation of this member.- Overrides:
setSalutation
in classMember
- Parameters:
salutation
- the salutation token to use, usually one those values"mr"
"mrs"
"miss"
"ui.com.lbl.salut.{value}"
-
setOrganization
public void setOrganization(java.lang.String organization)
Description copied from class:Member
Set the organization of this member.- Overrides:
setOrganization
in classMember
- Parameters:
organization
- the organization to use.
-
setDepartment
public void setDepartment(java.lang.String department)
Description copied from class:Member
Set the department of this member.- Overrides:
setDepartment
in classMember
- Parameters:
department
- the department to use for this Member.
-
setJobTitle
public void setJobTitle(java.lang.String jobTitle)
Description copied from class:Member
Set the job title of this member.- Overrides:
setJobTitle
in classMember
- Parameters:
jobTitle
- the job title to use.
-
setPhone
public void setPhone(java.lang.String phone)
Description copied from class:Member
Set the phone number of this member.
-
setMobile
public void setMobile(java.lang.String mobile)
Description copied from class:Member
Set the mobile phone number of this member.
-
setStreet
public void setStreet(java.lang.String street)
Set the street address of this Member.Example:
"58, rue Pottier"
Specified value is truncated to 255 characters for DBMember.
-
setPostalCode
public void setPostalCode(java.lang.String postalCode)
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:
setPostalCode
in classMember
- Parameters:
postalCode
- code used by Postal Service to identify postal service zone.- Since:
- jcms-9.0.0
-
setPoBox
public void setPoBox(java.lang.String postOfficeBox)
Set the address postal office box of this Member.Example:
"BP 90 123"
.Specified value is truncated to 32 characters for DBMember.
-
setRegion
public void setRegion(java.lang.String region)
Set the address region of this Member.Example:
"Ile de France"
Specified value is truncated to 255 characters for DBMember.
-
setLocality
public void setLocality(java.lang.String locality)
Set the address locality of this Member.Example:
"Le Chesnay"
Specified value is truncated to 255 characters for DBMember.
- Overrides:
setLocality
in classMember
- Parameters:
locality
- name of a locality or place, such as a city, county, or other geographic region- Since:
- jcms-9.0.0
-
setAddress
public void setAddress(java.lang.String address)
Description copied from class:Member
Set the address of this member.- Overrides:
setAddress
in classMember
- Parameters:
address
- the address (street address, postal code, city, country and all) to use.- See Also:
Member.setStreet(String)
,Member.setPostalCode(String)
,Member.setPoBox(String)
,Member.setRegion(String)
,Member.setLocality(String)
,Member.setCountry(String)
-
setEmail
public void setEmail(java.lang.String email)
Description copied from class:Member
Set the email address of this member.
-
getInfo
public java.lang.String getInfo()
Description copied from class:Member
Gets informations available for this member.
-
setInfo
public void setInfo(java.lang.String info)
Description copied from class:Member
Set some informations available for this member.
-
setLogin
public void setLogin(java.lang.String login)
Description copied from class:Member
Set the login of this member.
-
setPassword
public void setPassword(java.lang.String password)
Description copied from class:Member
Set the (hashed) password of this member.The password value specified must be crypted using method
Channel.crypt(String)
mbr.setPassword(channel.crypt("abc42def"));
- Overrides:
setPassword
in classMember
- Parameters:
password
- a hashed version of the password to use
-
getRightFromClassMap
public java.util.HashMap<java.lang.String,DataRight> getRightFromClassMap()
Description copied from class:Member
Get the value of rightFromClassMap.- Overrides:
getRightFromClassMap
in classMember
- Returns:
- Value of rightFromClassMap.
-
setRightFromClassMap
public void setRightFromClassMap(java.util.HashMap<java.lang.String,DataRight> v)
Description copied from class:Member
Set the value of rightFromClassMap.- Overrides:
setRightFromClassMap
in classMember
- Parameters:
v
- Value to assign to rightFromClassMap.
-
getPublicationSet
public java.util.Set<Publication> getPublicationSet()
Description copied from class:Member
Retrieve a Set containing all the Publication of which this member is the author.- Overrides:
getPublicationSet
in classMember
- Returns:
- a Set of Publication, never return null.
-
updatePublicationSet
public void updatePublicationSet(Publication pub, boolean add)
Description copied from class:Member
Update publicationSet index- Overrides:
updatePublicationSet
in classMember
- Parameters:
pub
- the publication to be added or removedadd
- add if true, remove if false
-
getContentSet
public java.util.Set<Content> getContentSet()
Description copied from class:Member
Get the value of contentSet.- Overrides:
getContentSet
in classMember
- Returns:
- Value of contentSet.
-
updateContentSet
public void updateContentSet(Content content, boolean add)
Description copied from class:Member
Update contentSet index- Overrides:
updateContentSet
in classMember
- Parameters:
content
- the content to be added or removedadd
- add if true, remove if false
-
getMemberFromLogin
public static DBMember getMemberFromLogin(java.lang.String login, boolean checkDisabled)
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
public static DBMember getMemberFromEmail(java.lang.String email, boolean checkDisabled)
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
public java.lang.String 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
public void setLastLoginTimes(java.lang.String lastLoginTimes)
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
public java.util.SortedSet<java.util.Date> getLastLoginDateSet()
Description copied from class:Member
Retrieve the last login Date of this Member.- Overrides:
getLastLoginDateSet
in classMember
- Returns:
- a Set of Date, return an empty set if this user has never been logged, (never return null).
-
getLastLoginDate
public java.util.Date getLastLoginDate()
Description copied from class:Member
Retrieves the last login Date of this Member.- Overrides:
getLastLoginDate
in classMember
- Returns:
- a Date (GMT) or null if this user has never been logged in.
-
internalSetLastLoginDate
protected void internalSetLastLoginDate(java.util.Date date)
Description copied from class:Member
Performs the persistance of the new last login date.- Overrides:
internalSetLastLoginDate
in classMember
- Parameters:
date
- the date
-
convertToMember
public Member convertToMember(Member opAuthor)
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
public Member getDeclaredManager()
Description copied from class:Member
Returns 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:
getDeclaredManager
in classMember
- Returns:
- the declared manager of this member.
- See Also:
Member.getDeclaredManager(boolean)
-
setDeclaredManager
public void setDeclaredManager(Member mbr)
Description copied from class:Member
Sets the declared manager of this member.- Overrides:
setDeclaredManager
in classMember
- Parameters:
mbr
- the declared manager
-
getDeclaredManagerId
public java.lang.String getDeclaredManagerId()
Description copied from class:Member
Retrieve the id of the declared manager, without loading it in DB if it as DBMember- Overrides:
getDeclaredManagerId
in classMember
- Returns:
- the id of the declaredManager Member (JStore or DBMember), if any.
-
setDeclaredManagerId
public void setDeclaredManagerId(java.lang.String v)
-
getAssistant
public Member getAssistant()
Description copied from class:Member
Returns 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:
getAssistant
in classMember
- Returns:
- the assistant of this Member.
- See Also:
Member.getAssistant(boolean)
-
setAssistant
public void setAssistant(Member mbr)
Description copied from class:Member
Sets the assistant of this Member.- Overrides:
setAssistant
in classMember
- Parameters:
mbr
- the assistant
-
getAssistantId
public java.lang.String getAssistantId()
-
setAssistantId
public void setAssistantId(java.lang.String v)
-
-