public class DBMember extends Member implements DBData
Modifier and Type | Class and Description |
---|---|
static class |
DBMember.Fields |
Member.AccountSelector, Member.AdministratorSelector, Member.BelongsToWorkspaceOrChildSelector, Member.ContactSelector, Member.DisabledSelector, Member.EnabledSelector, Member.GroupComparator<T extends Member>, 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
Data.AuthorComparator<T extends Data>, 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
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
address, alertRuleSet, canEditCategories, canManageContentStaled, canPublishContent, canUpdateDeleteContent, country, CTX_SKIP_ACTIVITY, declaredGroups, delegateMemberSet, department, DISABLED_PASSWORD, DO_NOT_REASSIGN_PUBLICATION, email, EMAIL_FORMAT_HTML, EMAIL_FORMAT_TEXT, emailFormat, encodedAlertRules, EXTRADBDATA_LAST_LOGIN_TIME, firstName, fullEmail, fullName, groups, IGNORE_LOGIN_DATE, info, isAdmin, isEmailVisible, isWorkspaceSetUpToDate, jobTitle, language, lastLdapSynchro, lastLoginDateCached, lastLoginDateLock, lastLoginDateSet, ldapSync, locale, login, MAX_LAST_LOGIN_DATE_HISTORY, MEMBER_STATUS_AWAY, MEMBER_STATUS_DND, MEMBER_STATUS_OFFLINE, MEMBER_STATUS_ONLINE, mobile, name, notification, OP_UPDATE_PROFILE, organization, password, phone, photo, readCategorySet, rightFromClassMap, salutation, 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
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, 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, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_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, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
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
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
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 and Description |
---|
DBMember() |
DBMember(Member other)
Constructor by copy : creates a new instance of DBMember from the specified Member.
|
Modifier and Type | Method and Description |
---|---|
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 method
|
boolean |
canCreateWorkspace()
Check if the member can create a workspace
|
boolean |
canCreateWorkspace(Workspace model)
Check if the member can duplicate the model to create a workspace
|
boolean |
canEditCategories()
Check if the member can edit categories.
|
boolean |
canEditCategories(Workspace ws)
Return true if this member can edit at least one
category of this workspace
|
boolean |
canManageCategory(Category cat)
Check if the member can manage the given category (ie if the
given category is a descendant of one of the member's root
category)
|
boolean |
canManageCategory(Category cat,
boolean searchInGroups,
boolean searchInParent)
Check if the member can manage the given category (ie if the
given category is a descendant of one of the member's root
category)
|
boolean |
canMergeWorkCopy(Publication pub)
Convenience method
|
boolean |
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 CSV
|
void |
exportXmlField(java.lang.StringBuffer sb,
int indentLevel)
Fills the given StringBuffer with Xml export of fields of this data.
|
java.util.SortedSet<Workspace> |
getAdministratedWorkspaceSet()
This convenient method returns all the workspace this member is
the administrator of.
|
java.util.Set<Category> |
getCategoryRootSet()
Returns the set of category roots the member can manage
|
java.util.Set<Category> |
getCategoryRootSet(Workspace ws)
Returns the set of category roots the member can manage in a
given workspace
|
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 object
|
java.util.TreeSet<Member> |
getDelegateMemberSet()
Gets the TreeSet of Member allowed to login as this member.
|
java.util.Set<Member> |
getDelegationHolderSet()
Retrieves the list of member into which this member
was allowed to log in.
|
int |
getEditCategoryMode() |
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.
|
protected java.lang.String[] |
getIconParameter(Workspace ws,
java.lang.String userLang)
Return a String[2]: Title / Alt for the given parameters
|
java.lang.String |
getInfo()
Gets informations available for this member.
|
java.lang.String |
getLanguage()
Retrieve the language of this Member.
|
java.util.Date |
getLastLdapSynchro()
Get the value of lastLdapSynchro.
|
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.
|
boolean |
getLdapSync() |
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 Notification
|
java.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 webdavAccess
|
java.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 |
internalCanManageCategory(Category cat,
boolean searchInGroups,
boolean searchInParent) |
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.
|
boolean |
isAdmin(Workspace ws)
Returns true if this member is an administrator of the given workspace
|
boolean |
isLdapAccount()
Check if this member account has been created from LDAP
|
boolean |
isWorkAdmin()
This convenient method check if this member is administrator of
at least one workspace.
|
protected void |
reassignMemberPubs(Member mbr,
java.util.Map context) |
void |
refreshGroups()
Refresh the groups (force groups to be inferred from declared groups)
|
void |
refreshWorkspaceSet()
Refresh the workspaces this member belongs to.
|
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 |
setCountry(java.lang.String countryCode)
Set the country of this member.
|
void |
setDelegateMemberSet(java.util.TreeSet<Member> v)
Set the value of delegateMbrSet.
|
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 |
setEmailFormat(java.lang.String emailFormat)
Set the email format that will be used to send mail to 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 |
setLastLdapSynchro(java.util.Date v)
Set the value of lastLdapSynchro.
|
void |
setLastLoginTimes(java.lang.String lastLoginTimes)
Set the comma seperated list of last login time of this member.
|
void |
setLdapSync(boolean sync)
Set if this Member should be synchronized with ldap or not.
|
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 Notification
|
void |
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 |
setReadCategorySet(java.util.TreeSet<Category> v)
Set the value of readCategorySet.
|
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 |
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 webdavAccess
|
java.lang.String |
toCSV(java.lang.String lang)
Returns a CSV view of this object
|
java.lang.String |
toFullString() |
void |
updateContentSet(Content content,
boolean add)
Update contentSet index
|
void |
updateDelegationHolderSet(Member mbr,
boolean add)
Internal method used to update the (transient) delegation holder set.
|
void |
updatePublicationSet(Publication pub,
boolean add)
Update publicationSet index
|
protected void |
updateRights(Member mbr,
java.util.Map context) |
void |
updateWorkspaceSet(Workspace ws,
boolean add)
Update workspaceSet index
|
addGroup, alertSignup, belongsToGroup, belongsToWorkspace, buildPhotoFilename, canArchive, canCreateContact, canDeleteOther, canDeleteOther, canDeleteOther, canDeleteOther, canPublish, canPublish, canPublish, canPublish, canPublishAll, canPublishContent, canPublishSome, canPublishSome, canRead, canRead, canRead, canUpdateDeleteContent, canUpdateDeleteContent, canUpdateDeleteOtherCommon, canUpdateOther, canUpdateOther, canUpdateOther, canUpdateOther, canUploadPhoto, canUseCategory, canUseCategory, canUseDescendantCategories, canWorkOn, canWorkOn, checkAccess, checkCreate, checkDelete, checkIntegrity, checkMember, checkMemberGroupModification, checkUpdate, checkUpdateProfile, deleteMemberData, deleteMemberUserContent, disable, exportXmlRelated, fillExportXmlFieldAttributes, getAddress, getAlertList, getAlertList, getAlertRuleSet, getBelongsToWorkspaceSelector, getComparator, getCookieMaxAge, getDataIcon, getDataIconHtml, getDataImage, getDataImage, getDataName, getDeclaredGroups, getDepartment, getEmail, getEmailFormat, getEncodedAlertRules, getExpandedUseCategorySet, getFavoriteWorkspace, getFieldValue, getFirstName, getFollowedPublicationList, getFriendlyName, getFullEmail, getFullName, getGroupComparator, getGroups, getGroupSet, getHtmlIcon, getHtmlIcon, getIcon, getIcon, getIndexingDate, getJobTitle, getLangComparator, getLangSalutation, getLastLdapSyncComparator, getLastLoginDate, getLastLoginDateComparator, getLastName, getLdapComparator, getLocale, getLogin, getLoginComparator, getMobile, getName, getNameComparator, getOrganization, getOrganizationAndDepartment, getPassword, getPhone, getPhoto, getPublicationCountComparator, getRight, getRight, getRight, getRightComparator, getSalutation, getSessionComparator, getSignupConfirmationUrl, getStatus, getUsage, getUsageName, getUseCategoryMode, getUseCategorySet, getWebdavComparator, handleDeleteMemberUserContent, hasAcl, hasPhoto, hasRead, indexLogin, internalCanCreateWorkspace, internalCanDeleteOther, internalCanPublish, internalCanUpdateDeleteOtherCommon, internalCanUpdateOther, internalCanUseCategory, internalCheckMember, internalIsWorker, invalidateCanManageContent, isAccount, isContact, isDeclaredGroup, isDisabled, isEmailValid, isEmailVisible, isValidAccount, isWorker, isWorker, performDelete, refreshLoginIndex, removeAllPhotos, removeGroup, removeMemberAttendeeCalendarEvent, setAlertRuleSet, setDeclaredGroups, setEmailVisible, setEncodedAlertRules, setFieldValue, setLastLoginDate, setLastName, setLocale, setPhoto, setUsage, toString, unindexLogin
canRequestUnlock, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkUpdate, checkWrite, clone, computeDBIDArray, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconAlt, getDataIconHtml, getDataIconTitle, getDataImage, getDataNameComparator, getDate, getDate, getDateSelector, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, 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, getOpDelegate, getRowId, getRowIdComparator, getStrongLock, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getVirtualIDSet, hashCode, importXml, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, initializeDBDataCollections, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, performAfterWrite, performBeforeWrite, performCreate, performCreate, performDelete, performUpdate, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, 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, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setAttributes, setCdate, setDdate, setStore, toXml
public static final java.lang.String REVISION
public DBMember()
public DBMember(Member other)
Warning : Do not use this constructor to create
an update instance for a DBMember, instead use getUpdateInstance()
:
Member updated = (Member) member.getUpdateInstance(); update.performUpdate(...)
other
- the member to copy, must not be null.public Data getUpdateInstance()
Data
getUpdateInstance
in class Member
public java.lang.String toFullString()
toFullString
in class Member
public java.lang.String toCSV(java.lang.String lang)
Member
public static java.lang.String getCSVHeader(java.lang.String lang)
lang
- the output languagepublic static void exportCSV(java.util.Collection<java.lang.String> dbMemberIdColl, java.lang.String lang, java.io.Writer writer)
dbMemberIdColl
- the set of DBMember's id to be exportedlang
- the languagewriter
- the writer where to print the exportpublic void exportXmlField(java.lang.StringBuffer sb, int indentLevel)
Data
exportXmlField
in class Member
sb
- the StringBufferindentLevel
- the indent levelprotected java.lang.String[] getIconParameter(Workspace ws, java.lang.String userLang)
Member
getIconParameter
in class Member
ws
- the Workspace or NulluserLang
- the UserLang or nullprotected boolean internalIsWorker()
internalIsWorker
in class Member
public boolean canPublishContent(Workspace ws)
Member
canPublishContent
in class Member
ws
- the Workspace to work onpublic int getEditCategoryMode()
getEditCategoryMode
in class Member
public boolean isAdmin(Workspace ws)
Member
public boolean hasExplicitRights()
hasExplicitRights
in class Member
public boolean hasWebdavAccess()
Member
hasWebdavAccess
in class Member
public boolean isLdapAccount()
Member
isLdapAccount
in class Member
public java.util.Date getLastLdapSynchro()
Member
getLastLdapSynchro
in class Member
public void setLastLdapSynchro(java.util.Date v)
Member
setLastLdapSynchro
in class Member
v
- Value to assign to lastLdapSynchro.public boolean getLdapSync()
getLdapSync
in class Member
public void setLdapSync(boolean sync)
Member
setLdapSync
in class Member
sync
- true
if LDAP synchronization of this Member should
be performed if needed, false
otherwise.public boolean getWebdavAccess()
Member
getWebdavAccess
in class Member
public void setWebdavAccess(boolean webdavAccess)
Member
setWebdavAccess
in class Member
webdavAccess
- the webdavAccess valuepublic java.lang.Boolean getEmailPublic()
Member.isEmailVisible()
public void setEmailPublic(java.lang.Boolean visible)
visible
- true if it is visible, false otherwiseMember.setEmailVisible(boolean)
public java.lang.String getGids()
public boolean belongsToGroup(Group group)
Member
belongsToGroup
in class Member
group
- the grouppublic Notification getNotification()
Member
getNotification
in class Member
public void setNotification(Notification notification)
Member
setNotification
in class Member
notification
- the notificationpublic boolean canEditCategories()
Member
canEditCategories
in class Member
Member.getCategoryRootSet()
public boolean canEditCategories(Workspace ws)
Member
canEditCategories
in class Member
ws
- the Workspace to check withMember.getCategoryRootSet()
public java.util.Set<Category> getCategoryRootSet()
Member
getCategoryRootSet
in class Member
public java.util.Set<Category> getCategoryRootSet(Workspace ws)
Member
getCategoryRootSet
in class Member
ws
- the Workspace to be test (null for all workspace)public boolean canManageCategory(Category cat)
Member
canManageCategory
in class Member
cat
- the category to testpublic boolean canManageCategory(Category cat, boolean searchInGroups, boolean searchInParent)
Member
canManageCategory
in class Member
cat
- the category to testsearchInGroups
- if true check if one of the group this member belongs to is authorized to read the categorie.searchInParent
- if true check right on parent categoriesprotected boolean internalCanManageCategory(Category cat, boolean searchInGroups, boolean searchInParent)
internalCanManageCategory
in class Member
public boolean canCreateWorkspace()
Member
canCreateWorkspace
in class Member
public boolean canCreateWorkspace(Workspace model)
Member
canCreateWorkspace
in class Member
model
- the workspace to duplicatepublic void setUseCategorySet(java.util.TreeSet<Category> v)
Member
setUseCategorySet
in class Member
v
- Value to assign to useCategorySet.public void setUseCategoryMode(int v)
Member
setUseCategoryMode
in class Member
v
- Value to assign to useCategoryMode.public java.util.TreeSet<Category> getReadCategorySet()
Member
getReadCategorySet
in class Member
public void setReadCategorySet(java.util.TreeSet<Category> v)
Member
setReadCategorySet
in class Member
v
- Value to assign to readCategorySet.public java.util.TreeSet<Member> getDelegateMemberSet()
Member
getDelegateMemberSet
in class Member
public void setDelegateMemberSet(java.util.TreeSet<Member> v)
Member
setDelegateMemberSet
in class Member
v
- Value to assign to delegateMbrSet.public void updateDelegationHolderSet(Member mbr, boolean add)
Member
updateDelegationHolderSet
in class Member
mbr
- the member to add or remove from the delegation holder set.add
- true -> add, false -> removepublic java.util.Set<Member> getDelegationHolderSet()
Member
Warning : If some Member have been excluded from delegation
using property "auth-mgr.delegation.excluded-mbr-ids", this list
will not filter them. Use DelegationAuthenticationHandler.filterExcludedMember(Set)
to retrieve a filtered list.
getDelegationHolderSet
in class Member
public java.lang.String getLanguage()
Member
getLanguage
in class Member
fr
), with an optionnal script indication (eg zh-Hant
)public void setLanguage(java.lang.String lang)
Member
The language is the ISO-639-1 language code (eg fr
, de
)
mut it may include an optionnal script indication (eg zh-Hant
).
Valid value (which is enforced) can be found in jcms.prop
by
looking at properties prefixed with lang.
string, it must
be a language currently configured on the site, otherwise the default
site language will be used.
setLanguage
in class Member
lang
- language key to use for this language.I18nUtil.getValidLanguageKey(String)
public java.lang.String getCountry()
Member
getCountry
in class Member
Locale
public void setCountry(java.lang.String countryCode)
Member
setCountry
in class Member
countryCode
- an ISO 3166 country code as used by java Locale
public boolean canCreateWorkCopy(Publication pub)
Member
canCreateWorkCopy
in class Member
pub
- used to create work copyPublication.canCreateWorkCopy(Member)
public boolean canMergeWorkCopy(Publication pub)
Member
canMergeWorkCopy
in class Member
pub
- The publication to merge.Publication.canMergeWorkCopy(Member)
public java.util.Set<Workspace> getWorkspaceSet()
getWorkspaceSet
in class Member
public void refreshWorkspaceSet()
Member
refreshWorkspaceSet
in class Member
public void updateWorkspaceSet(Workspace ws, boolean add)
Member
updateWorkspaceSet
in class Member
ws
- the workspace to be added or removedadd
- add if true, remove if falsepublic void refreshGroups()
Member
refreshGroups
in class Member
public java.util.Set<Publication> getWorkspacePublicationSet()
getWorkspacePublicationSet
in class Member
public WKRole belongsToRole()
belongsToRole
in class Member
public WKRole belongsToRole(boolean checkGroups)
belongsToRole
in class Member
checkGroups
- check also for member groupspublic boolean belongsToRole(WKRole role)
belongsToRole
in class Member
role
- a WKRolepublic boolean belongsToRole(WKRole role, boolean checkGroups)
belongsToRole
in class Member
role
- a WKRolecheckGroups
- check also for member groupspublic java.util.SortedSet<Workspace> getAdministratedWorkspaceSet()
Member
getAdministratedWorkspaceSet
in class Member
public boolean isWorkAdmin()
Member
isWorkAdmin
in class Member
public void setName(java.lang.String name)
Member
public void setFirstName(java.lang.String firstName)
Member
setFirstName
in class Member
firstName
- the first name to use.public boolean isAdmin()
Member
public void setAdmin(boolean isAdmin)
Member
public void setSalutation(java.lang.String salutation)
Member
setSalutation
in class Member
salutation
- the salutation token to use, usually one those values
"mr"
"mrs"
"miss"
"ui.com.lbl.salut.{value}"
public void setOrganization(java.lang.String organization)
Member
setOrganization
in class Member
organization
- the organization to use.public void setDepartment(java.lang.String department)
Member
setDepartment
in class Member
department
- the department to use for this Member.public void setJobTitle(java.lang.String jobTitle)
Member
setJobTitle
in class Member
jobTitle
- the job title to use.public void setPhone(java.lang.String phone)
Member
public void setMobile(java.lang.String mobile)
Member
public void setAddress(java.lang.String address)
Member
setAddress
in class Member
address
- the address (street address, postal code, city, country and all) to use.public void setEmail(java.lang.String email)
Member
public void setEmailFormat(java.lang.String emailFormat)
Member
setEmailFormat
in class Member
emailFormat
- the email format to use, must be one of the following values :
As of current implementation, default value for a new member is Member.EMAIL_FORMAT_HTML
.public java.lang.String getInfo()
Member
public void setInfo(java.lang.String info)
Member
public void setLogin(java.lang.String login)
Member
public void setPassword(java.lang.String password)
Member
The password value specified must be crypted using method Channel.crypt(String)
mbr.setPassword(channel.crypt("abc42def"));
setPassword
in class Member
password
- a hashed version of the password to usepublic java.util.HashMap<java.lang.String,DataRight> getRightFromClassMap()
Member
getRightFromClassMap
in class Member
public void setRightFromClassMap(java.util.HashMap<java.lang.String,DataRight> v)
Member
setRightFromClassMap
in class Member
v
- Value to assign to rightFromClassMap.public java.util.Set<Publication> getPublicationSet()
Member
getPublicationSet
in class Member
public void updatePublicationSet(Publication pub, boolean add)
Member
updatePublicationSet
in class Member
pub
- the publication to be added or removedadd
- add if true, remove if falsepublic java.util.Set<Content> getContentSet()
Member
getContentSet
in class Member
public void updateContentSet(Content content, boolean add)
Member
updateContentSet
in class Member
content
- the content to be added or removedadd
- add if true, remove if falseprotected void reassignMemberPubs(Member mbr, java.util.Map context)
reassignMemberPubs
in class Member
protected void updateRights(Member mbr, java.util.Map context)
updateRights
in class Member
public static DBMember getMemberFromLogin(java.lang.String login, boolean checkDisabled)
login
- the member's logincheckDisabled
- if true, return null if account is disabledpublic static DBMember getMemberFromEmail(java.lang.String email, boolean checkDisabled)
email
- the member's emailcheckDisabled
- if true, return null if account is disabledpublic java.lang.String getLastLoginTimes()
public void setLastLoginTimes(java.lang.String lastLoginTimes)
lastLoginTimes
- a coma seperated list of time in millisecond.public java.util.SortedSet<java.util.Date> getLastLoginDateSet()
Member
getLastLoginDateSet
in class Member
protected void internalSetLastLoginDate(java.util.Date date)
Member
internalSetLastLoginDate
in class Member
date
- the datepublic Member convertToMember(Member opAuthor)
opAuthor
- the author of this operationCopyright © 2001-2010 Jalios SA. All Rights Reserved.