public class Member extends Data implements EditableData
Member
object contains a set of information about a
JCMS referenced user.Group
Modifier and Type | Class and Description |
---|---|
static class |
Member.AccountSelector
Select a subset of members with the Account usage.
|
static class |
Member.AdministratorSelector
Select a subset of administrator members
|
static class |
Member.BelongsToWorkspaceOrChildSelector |
static class |
Member.ContactSelector
Select a subset of members with the Contact usage.
|
static class |
Member.DisabledSelector
Select a subset of members which are disabled.
|
static class |
Member.EnabledSelector
Select a subset of members which are not disabled.
|
static class |
Member.GroupComparator<T extends Member> |
static class |
Member.LangComparator<T extends Member> |
static class |
Member.LastLdapSyncComparator<T extends Member> |
static class |
Member.LastLoginDateComparator<T extends Member>
Compare member based on their last login date
|
static class |
Member.LdapAccountComparator<T extends Member> |
static class |
Member.LoginComparator<T extends Member> |
static class |
Member.NameComparator<T extends Member> |
static class |
Member.NotificationPeriodSelector |
static class |
Member.PublicationCountComparator<T extends Member> |
static class |
Member.RightComparator<T extends Member> |
static class |
Member.SessionComparator<T extends Member> |
static class |
Member.TextSelector
Select a set of members matching the given text in the name or in the email.
|
static class |
Member.UsageSelector
Select a subset of members matching the specified Usage.
|
static class |
Member.ValidEmailSelector |
static class |
Member.WebdavComparator<T extends Member> |
static class |
Member.WorkerSelector
Select a subset of worker members
|
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 |
---|---|
protected java.lang.String |
address |
protected java.util.Set<AlertRule> |
alertRuleSet |
protected boolean |
canEditCategories |
protected boolean |
canManageContentStaled |
protected boolean |
canPublishContent |
protected boolean |
canUpdateDeleteContent |
protected java.lang.String |
country |
static java.lang.String |
CTX_SKIP_ACTIVITY |
protected Group[] |
declaredGroups |
protected java.util.TreeSet<Member> |
delegateMemberSet |
protected java.lang.String |
department |
static java.lang.String |
DISABLED_PASSWORD
The value to use in a Member's password to indicate
that the member is disabled and should not be allowed to log in.
|
static java.lang.String |
DO_NOT_REASSIGN_PUBLICATION
When a member is deleted his publications are reassigned to the workspace admin or the default admin.
|
protected java.lang.String |
email |
static java.lang.String |
EMAIL_FORMAT_HTML
The value to use in a Member's email format to indicate
that the member prefers to receive mail in HTML.
|
static java.lang.String |
EMAIL_FORMAT_TEXT
The value to use in a Member's email format to indicate
that the member prefers to receive mail in plain text.
|
protected java.lang.String |
emailFormat |
protected java.lang.String |
encodedAlertRules |
static java.lang.String |
EXTRADBDATA_LAST_LOGIN_TIME
The extra data name for the last login time value.
|
protected java.lang.String |
firstName |
protected java.lang.String |
fullEmail |
protected java.lang.String |
fullName |
protected Group[] |
groups |
static java.lang.String |
IGNORE_LOGIN_DATE
It is possible to specify the date must not be registered, by setting the request
attribute with this key and Boolean.TRUE as value.
|
protected java.lang.String |
info |
protected boolean |
isAdmin |
protected boolean |
isEmailVisible |
protected boolean |
isWorkspaceSetUpToDate |
protected java.lang.String |
jobTitle |
protected java.lang.String |
language |
protected java.util.Date |
lastLdapSynchro |
protected boolean |
lastLoginDateCached |
protected java.lang.Object |
lastLoginDateLock |
protected java.util.SortedSet<java.util.Date> |
lastLoginDateSet |
protected boolean |
ldapSync |
protected java.util.Locale |
locale |
protected java.lang.String |
login |
static int |
MAX_LAST_LOGIN_DATE_HISTORY
The maximum number of Date to keep in the last login date Set.
|
static int |
MEMBER_STATUS_AWAY |
static int |
MEMBER_STATUS_DND |
static int |
MEMBER_STATUS_OFFLINE |
static int |
MEMBER_STATUS_ONLINE |
protected java.lang.String |
mobile |
protected java.lang.String |
name |
protected Notification |
notification |
static int |
OP_UPDATE_PROFILE |
protected java.lang.String |
organization |
protected java.lang.String |
password |
protected java.lang.String |
phone |
protected java.lang.String |
photo |
protected java.util.TreeSet<Category> |
readCategorySet |
static java.lang.String |
REVISION |
protected java.util.HashMap<java.lang.String,DataRight> |
rightFromClassMap |
protected java.lang.String |
salutation |
static int |
UGC_COUNT_LIMIT_THREAD |
protected int |
usage |
static int |
USAGE_ACCOUNT |
static int |
USAGE_CONTACT |
static int |
USE_CATEGORY_GROUP_AND_MEMBER |
static int |
USE_CATEGORY_GROUP_ONLY |
static int |
USE_CATEGORY_MEMBER_ONLY |
protected int |
useCategoryMode |
protected java.util.TreeSet<Category> |
useCategorySet |
protected boolean |
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 |
---|
Member() |
Member(Member other)
Constructor by copy : creates a new instance of Member from the specified Member.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group)
Add this member to a given group (this changes is not saved)
|
boolean |
alertSignup(java.lang.String password,
boolean signupValidationRequired,
boolean sendPassword)
- Send mails to signup administrators
- Send validation mail or confirmation mail
|
boolean |
belongsToGroup(Group group)
This convenient method returns true if this member belongs to a
given group.
|
boolean |
belongsToGroup(Group[] grps)
This convenient method returns true if this member belongs to at least
one of the given groups.
|
WKRole |
belongsToRole() |
WKRole |
belongsToRole(boolean checkGroups) |
boolean |
belongsToRole(WKRole role) |
boolean |
belongsToRole(WKRole role,
boolean checkGroups) |
boolean |
belongsToWorkspace(Workspace ws)
This convenient method returns true if this member belongs to the
given workspace.
|
java.lang.String |
buildPhotoFilename(java.lang.String ext)
Returns the photo filename for this member.
|
boolean |
canArchive(Publication pub)
Check if the member is in a role that can archive the given publication.
|
boolean |
canCreateContact()
Check if this member can create a new contact
|
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 |
canDeleteOther(java.lang.Class<?> clazz) |
boolean |
canDeleteOther(java.lang.Class<?> clazz,
Workspace ws) |
boolean |
canDeleteOther(Data data) |
boolean |
canDeleteOther(Data data,
RightInfo rightInfo) |
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 |
canPublish(java.lang.Class<?> clazz)
Check if this member can publish this clazz of data (ie if this
member has rights (or belongs at least to one group that have
this right) and, if the given class inherits from Publication, the
member can work on the WF's init state of this class.
|
boolean |
canPublish(java.lang.Class<?> clazz,
Workspace ws)
Convenient method
|
boolean |
canPublish(java.lang.Class clazz,
java.util.Set<? extends Workspace> workspaceSet)
Check if this member can publish this clazz of data (ie if this
member has rights (or belongs at least to one group that have
this right) and, if the given class inherits from Publication, the
member can work on the WF's init state of this class for all of it's workflow.
|
boolean |
canPublish(Data data)
Convenient method
|
boolean |
canPublishAll(java.lang.Class<?> clazz)
Check if this member can publish on this class and all it's subclass
|
boolean |
canPublishContent()
Checks if if this member can publish something else than UGC.
|
boolean |
canPublishContent(Workspace ws)
Checks if if this member can publish something else than UGC.
|
boolean |
canPublishSome(java.lang.Class<?> clazz)
Check if this member can publish on this class or one of it's subclass
|
boolean |
canPublishSome(java.lang.Class<?> clazz,
Workspace ws)
Check if this member can publish on this class or one of it's subclass in the given workspace.
|
boolean |
canRead(Category cat,
boolean searchInGroups,
boolean searchInParent)
This convenient method checks if a member can read a categorie.
|
boolean |
canRead(Group grp)
This convenient method checks if this member can read a group.
|
boolean |
canRead(Publication pub,
boolean searchInGroups)
This convenient method checks if a member can read a publication.
|
boolean |
canUpdateDeleteContent() |
boolean |
canUpdateDeleteContent(Workspace ws)
Check if member can perform Update or Delete
for the gicen Workspace
|
protected boolean |
canUpdateDeleteOtherCommon(java.lang.Class clazz,
Workspace ws,
boolean checkUpdate) |
boolean |
canUpdateOther(java.lang.Class<?> clazz) |
boolean |
canUpdateOther(java.lang.Class<?> clazz,
Workspace ws) |
boolean |
canUpdateOther(Data data) |
boolean |
canUpdateOther(Data data,
RightInfo rightInfo) |
boolean |
canUploadPhoto()
Returns true if this member can upload a photo.
|
boolean |
canUseCategory(Category cat)
Check if this member can use the given category.
|
boolean |
canUseCategory(Category cat,
boolean searchInGroups,
boolean searchInParent)
Check if this member can use the given category.
|
boolean |
canUseDescendantCategories(Category cat,
boolean checkRoot)
Check if this member can use at least one descendant of the given category.
|
boolean |
canWorkOn(Publication pub)
Check if this member can work on the given publication (ie, if
it has the rights and if it is in a state the member can work
in).
|
boolean |
canWorkOn(Publication pub,
RightInfo rightInfo) |
boolean |
checkAccess(java.lang.String resource,
java.util.Map<java.lang.String,java.lang.Object> context)
Check if this member is authorized to access the specified resource.
|
ControllerStatus |
checkCreate(Member mbr,
java.util.Map context)
Checks if the creation can be performed
|
ControllerStatus |
checkDelete(Member mbr,
java.util.Map context)
Checks if the deletion can be performed
|
ControllerStatus |
checkIntegrity(java.util.Map context)
Checks whether or not data integrity constraints are respected.
|
ControllerStatus |
checkMember(int op,
Member mbr,
java.util.Map context)
Checks if the given member can perform the given operation.
|
static ControllerStatus |
checkMemberGroupModification(Member opAuthor,
Group modifiedGroup,
Member modifiedMember,
boolean checkParentGroup)
Check if the specified Member (opAuthor) is authorized to add or remove a member to the specified
group to this member.
|
ControllerStatus |
checkUpdate(Member mbr,
java.util.Map context)
Checks if the update can be performed
|
ControllerStatus |
checkUpdateProfile(Member mbr,
java.util.Map context)
Checks if the profile update can be performed
|
protected void |
deleteMemberData(Member mbr,
java.util.Map context) |
protected static void |
deleteMemberUserContent(java.lang.String mbrId) |
void |
disable()
Disable this account.
|
void |
exportXmlField(java.lang.StringBuffer sb,
int indentLevel)
Fills the given StringBuffer with Xml export of fields of this data.
|
protected void |
exportXmlRelated(java.lang.StringBuffer sb,
java.lang.String related,
int indentLevel) |
void |
fillExportXmlFieldAttributes(java.lang.StringBuffer sb)
Fill the given string buffer with specific attributes of this data.
|
java.lang.String |
getAddress()
Gets the address of this member (street address, postal code, city, country and all).
|
java.util.SortedSet<Workspace> |
getAdministratedWorkspaceSet()
This convenient method returns all the workspace this member is
the administrator of.
|
java.util.List<Alert> |
getAlertList()
Returns the alert list for this member.
|
java.util.List<Alert> |
getAlertList(Alert.Level level,
java.lang.Boolean read)
Returns the alert list for this member.
|
java.util.Set<AlertRule> |
getAlertRuleSet()
Returns the alert rule set.
|
static DataSelector |
getBelongsToWorkspaceSelector(Workspace ws)
DataSelector which select a
Member which belongs to a workspace (directly) |
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
|
static java.util.Comparator |
getComparator(java.lang.String str,
boolean reverse)
Deprecated.
|
java.util.Set<Content> |
getContentSet()
Get the value of contentSet.
|
int |
getCookieMaxAge()
Return the lowerest cookieMaxAge value of the groups the member
belongs to.
|
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.lang.String |
getDataIcon()
Returns source information for the icon associated to this Data, either a relative path or sprite classes name.
|
java.lang.String |
getDataIconHtml(java.lang.String userLang)
Returns the HTML code of the icon for this data in the specified language.
|
java.lang.String |
getDataImage()
Retrieves the image path of this data in the channel's main language.
|
java.lang.String |
getDataImage(java.lang.String lang,
boolean useDefault)
Retrieves the image path of this data.
|
java.lang.String |
getDataName(java.lang.String language)
Return the name of this Data, every sub class Data which will be displayed to user should
implements this method already.
|
Group[] |
getDeclaredGroups()
Get the value of declaredGroups.
|
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.
|
java.lang.String |
getDepartment()
Gets the department of this member.
|
int |
getEditCategoryMode() |
java.lang.String |
getEmail()
Gets the email address of this member.
|
java.lang.String |
getEmailFormat()
Deprecated.
since jcms-8.0.0 : email format is no longer used. Emails are sent in html by default
|
java.lang.String |
getEncodedAlertRules()
Returns the JSON encoded alert rule set.
|
java.util.TreeSet<Category> |
getExpandedUseCategorySet()
Return the category set this member can use according his
category use mode (group, member or group and member)
|
Workspace |
getFavoriteWorkspace(Workspace currentWS,
java.lang.Class<?> clazz)
Return the favorite Member Workspace where it can work on
|
java.lang.Object |
getFieldValue(java.lang.String fieldName,
java.lang.String lang,
boolean useDefault)
Gets the
Object value of the given field name for this Member . |
java.lang.String |
getFirstName()
Gets the first name of this member.
|
java.util.List<Publication> |
getFollowedPublicationList()
Returns the list of publications followed by this member.
|
java.lang.String |
getFriendlyName()
Return the name of this member nicely formated for a
communication purpose (email, newsletter, welcome)
|
java.lang.String |
getFullEmail()
Return the a full email field in the
form "FirstName Name <user@company.com>"
|
java.lang.String |
getFullName() |
static java.util.Comparator<Member> |
getGroupComparator(java.util.Comparator<Group> groupComparator) |
Group[] |
getGroups()
Returns all the groups this member belongs to.
|
java.util.Set<Group> |
getGroupSet(Workspace ws)
Returns the groups of the given workspace the member belongs to.
|
java.lang.String |
getHtmlIcon(java.lang.String userLang)
Return the img tag for the icon
|
java.lang.String |
getHtmlIcon(Workspace ws,
java.lang.String userLang)
Return the img tag for the icon
|
java.lang.String |
getIcon() |
java.lang.String |
getIcon(Workspace ws) |
protected java.lang.String[] |
getIconParameter(Workspace ws,
java.lang.String userLang)
Return a String[2]: Title / Alt for the given parameters
|
java.util.Date |
getIndexingDate()
Retrieve the Date at which this Member was indexed in its search engine.
|
java.lang.String |
getInfo()
Gets informations available for this member.
|
java.lang.String |
getJobTitle()
Gets the job title of this member.
|
static java.util.Comparator<Member> |
getLangComparator() |
java.lang.String |
getLangSalutation(java.lang.String lang)
Return the salutation in the given language
|
java.lang.String |
getLanguage()
Retrieve the language of this Member.
|
static java.util.Comparator<Member> |
getLastLdapSyncComparator() |
java.util.Date |
getLastLdapSynchro()
Get the value of lastLdapSynchro.
|
java.util.Date |
getLastLoginDate()
Retrieves the last login Date of this Member.
|
static java.util.Comparator<Member> |
getLastLoginDateComparator() |
java.util.SortedSet<java.util.Date> |
getLastLoginDateSet()
Retrieve the last login Date of this Member.
|
java.lang.String |
getLastName()
Gets the last name of this member.
|
static java.util.Comparator<Member> |
getLdapComparator() |
boolean |
getLdapSync() |
java.util.Locale |
getLocale()
Retrieve the
Locale of this member. |
java.lang.String |
getLogin()
Gets the login of this member.
|
static java.util.Comparator<Member> |
getLoginComparator() |
static Member |
getMemberFromLogin(java.lang.String login,
boolean checkDisabled)
Returns the member with the given login.
|
java.lang.String |
getMobile()
Gets the mobile phone number of this member.
|
java.lang.String |
getName()
Gets the name of this member.
|
static java.util.Comparator<Member> |
getNameComparator() |
Notification |
getNotification()
Get the Notification
|
java.lang.String |
getOrganization()
Gets the organization of this member.
|
java.lang.String |
getOrganizationAndDepartment()
A convenient method which returns the organization and the department.
|
java.lang.String |
getPassword()
Gets the (hashed) password of this member as defined by setter.
|
java.lang.String |
getPhone()
Gets the phone number of this member.
|
java.lang.String |
getPhoto()
Returns the member's photo.
|
static java.util.Comparator<Member> |
getPublicationCountComparator() |
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.
|
DataRight |
getRight(java.lang.Class<?> clazz,
boolean searchInGroups)
Search for a Right object bound to clazz or one of its super
class.
|
DataRight |
getRight(java.lang.Class<?> clazz,
boolean searchInGroups,
Workspace ws)
Search for a Right object bound to clazz or one class.
|
DataRight |
getRight(Data data) |
static java.util.Comparator<Member> |
getRightComparator() |
java.util.HashMap<java.lang.String,DataRight> |
getRightFromClassMap()
Get the value of rightFromClassMap.
|
java.lang.String |
getSalutation()
Gets the salutation of this member as an internal non localized token.
|
static java.util.Comparator<Member> |
getSessionComparator() |
java.lang.String |
getSignupConfirmationUrl(java.lang.String password)
Build an URL for SignUp validation using password
and other secret data.
|
int |
getStatus()
Return an interger Status of the Member
|
Data |
getUpdateInstance()
Returns an instance of this object to update it.
|
int |
getUsage()
Get the value of usage.
|
java.lang.String |
getUsageName(java.lang.String lang)
Returns the name of the usage (eg: Account, Contact).
|
int |
getUseCategoryMode()
Get the value of useCategoryMode.
|
java.util.TreeSet<Category> |
getUseCategorySet()
Get the value of useCategorySet.
|
boolean |
getWebdavAccess()
Get the value of webdavAccess
|
static java.util.Comparator<Member> |
getWebdavComparator() |
java.util.Set<Publication> |
getWorkspacePublicationSet() |
java.util.Set<Workspace> |
getWorkspaceSet() |
protected void |
handleDeleteMemberUserContent(java.lang.String mbrId) |
boolean |
hasAcl()
Check if this member belongs to at least one group with an Access Control List
|
boolean |
hasExplicitRights() |
boolean |
hasPhoto()
Returns true if this member has got a photo.
|
boolean |
hasRead(Publication pub)
Check if the given publication has been read by this member
|
boolean |
hasWebdavAccess()
This method check if member have a webdav access or
belongs to a group having webdav access.
|
static void |
indexLogin(Member mbr)
Index the login of the given member.
|
protected boolean |
internalCanCreateWorkspace(Workspace model) |
protected boolean |
internalCanDeleteOther(Data data,
RightInfo rightInfo) |
protected boolean |
internalCanManageCategory(Category cat,
boolean searchInGroups,
boolean searchInParent) |
protected boolean |
internalCanPublish(java.lang.Class<?> clazz,
java.util.Set<? extends Workspace> workspaceSet) |
protected boolean |
internalCanUpdateDeleteOtherCommon(java.lang.Class<?> clazz,
Workspace ws,
boolean checkUpdate) |
protected boolean |
internalCanUpdateOther(Data data,
RightInfo rightInfo) |
protected boolean |
internalCanUseCategory(Category cat,
boolean searchInGroups,
boolean searchInParent) |
protected ControllerStatus |
internalCheckMember(int op,
Member mbr,
java.util.Map context) |
protected boolean |
internalIsWorker() |
protected boolean |
internalIsWorker(Workspace ws) |
protected void |
internalSetLastLoginDate(java.util.Date date)
Performs the persistance of the new last login date.
|
void |
invalidateCanManageContent()
Invalidate the current status of canManageContent (the next time
it will be called, it will be computed).
|
boolean |
isAccount()
Returns true if this Member's usage is
USAGE_ACCOUNT . |
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 |
isContact()
Returns true if this Member's usage is
USAGE_CONTACT . |
boolean |
isDeclaredGroup(Group group)
Returns true if the given group is a declared groups.
|
boolean |
isDisabled()
Check if this member account has been disabled.
|
boolean |
isEmailValid(boolean checkDisable)
Check if the email of this member is not empty (does not check email format validity).
|
boolean |
isEmailVisible()
Retrieves whether this member's email is visible to other members or not.
|
boolean |
isLdapAccount()
Check if this member account has been created from LDAP
|
boolean |
isValidAccount() |
boolean |
isWorkAdmin()
This convenient method check if this member is administrator of
at least one workspace.
|
boolean |
isWorker()
Check if this member can work either on publications or on
categories (this is a convenient method wich performs a 'or' on the values returned by
canPublishContent(), canUpdateDeleteContent() and canEditCategories()).
|
boolean |
isWorker(Workspace ws)
Check if this member can work either on publications or on
categories (this is a convenient method wich performs a 'or' on the values returned by
canPublishContent(Workspace), canUpdateDeleteContent(Workspace) and canEditCategories()).
|
void |
performDelete(Member mbr,
java.util.Map context)
Performs deletion
|
protected void |
reassignMemberPubs(Member mbr,
java.util.Map context) |
void |
refreshGroups()
Refresh the groups (force groups to be inferred from declared groups)
|
static void |
refreshLoginIndex()
Refresh login index.
|
void |
refreshWorkspaceSet()
Refresh the workspaces this member belongs to.
|
void |
removeAllPhotos(boolean removePhoto)
Removes all photo and thumbnail files for this member.
|
void |
removeGroup(Group group)
Remove this member from a given group(this changes is not saved)
|
protected void |
removeMemberAttendeeCalendarEvent(Member mbr,
java.util.Map context)
Find all the CalendarEventInterface in which the member attends,
and remove the member from those events, called on delete of member (this).
|
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 |
setAlertRuleSet(java.util.Set<AlertRule> alertRuleSet)
Set the alert rule set.
|
void |
setCountry(java.lang.String countryCode)
Set the country of this member.
|
void |
setDeclaredGroups(Group[] v)
Set the value of declaredGroups.
|
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)
Deprecated.
since jcms-8.0.0 email format is no longer used. Emails are sent in html by default
|
void |
setEmailVisible(boolean visible)
Sets whether this member's email is visible to other members or not.
|
void |
setEncodedAlertRules(java.lang.String encodedAlertRules)
Sets the JSON encoded alert rule set.
|
void |
setFieldValue(java.lang.String fieldName,
java.lang.Object value,
java.lang.String lang)
Sets the value of the given
Object field name for the current Member . |
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 languageKey)
Set the language of this Member.
|
void |
setLastLdapSynchro(java.util.Date v)
Set the value of lastLdapSynchro.
|
void |
setLastLoginDate(java.util.Date date)
Sets the last login Date of this Member.
|
void |
setLastName(java.lang.String lastName)
Sets the last name of this member.
|
void |
setLdapSync(boolean ldapSync)
Set if this Member should be synchronized with ldap or not.
|
void |
setLocale(java.util.Locale locale) |
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 |
setPhoto(java.lang.String photo)
Set the member's photo.
|
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 |
setUsage(int usage)
Set the value of usage (ie: Account or Contact).
|
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() |
java.lang.String |
toString() |
static void |
unindexLogin(Member mbr)
Unindex the login of the given member.
|
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
|
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, 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, setId, setStore, toXml
public static final java.lang.String REVISION
public static final int USE_CATEGORY_GROUP_AND_MEMBER
public static final int USE_CATEGORY_MEMBER_ONLY
public static final int USE_CATEGORY_GROUP_ONLY
public static final int OP_UPDATE_PROFILE
public static final int USAGE_ACCOUNT
public static final int USAGE_CONTACT
public static final int UGC_COUNT_LIMIT_THREAD
public static final java.lang.String CTX_SKIP_ACTIVITY
public static final java.lang.String DISABLED_PASSWORD
setPassword(String)
,
Constant Field Valuespublic static final java.lang.String EMAIL_FORMAT_TEXT
setEmailFormat(String)
,
Constant Field Valuespublic static final java.lang.String EMAIL_FORMAT_HTML
setEmailFormat(String)
,
Constant Field Valuespublic static final java.lang.String DO_NOT_REASSIGN_PUBLICATION
protected int usage
protected java.lang.String login
protected java.lang.String password
protected java.lang.String name
protected java.lang.String firstName
protected java.lang.String salutation
protected java.lang.String organization
protected java.lang.String department
protected java.lang.String jobTitle
protected java.lang.String email
protected java.lang.String emailFormat
protected boolean isEmailVisible
protected java.lang.String phone
protected java.lang.String mobile
protected java.lang.String address
protected java.lang.String info
protected java.lang.String photo
protected Group[] declaredGroups
protected boolean isAdmin
protected boolean ldapSync
protected java.util.Date lastLdapSynchro
protected java.util.HashMap<java.lang.String,DataRight> rightFromClassMap
protected int useCategoryMode
protected java.lang.String language
protected java.lang.String country
protected Notification notification
protected boolean webdavAccess
protected java.util.TreeSet<Category> useCategorySet
protected java.util.TreeSet<Category> readCategorySet
protected java.util.TreeSet<Member> delegateMemberSet
protected java.lang.String encodedAlertRules
protected transient Group[] groups
protected transient boolean canPublishContent
protected transient boolean canUpdateDeleteContent
protected transient boolean canEditCategories
protected transient boolean canManageContentStaled
protected transient java.lang.String fullName
protected transient java.lang.String fullEmail
protected transient java.util.Locale locale
protected transient boolean isWorkspaceSetUpToDate
protected transient java.util.Set<AlertRule> alertRuleSet
public static final int MEMBER_STATUS_OFFLINE
public static final int MEMBER_STATUS_ONLINE
public static final int MEMBER_STATUS_AWAY
public static final int MEMBER_STATUS_DND
public static final java.lang.String EXTRADBDATA_LAST_LOGIN_TIME
public static int MAX_LAST_LOGIN_DATE_HISTORY
member.max-last-login-date
protected transient java.lang.Object lastLoginDateLock
protected transient boolean lastLoginDateCached
protected transient java.util.SortedSet<java.util.Date> lastLoginDateSet
public static final java.lang.String IGNORE_LOGIN_DATE
public Member()
public Member(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 Data
public java.lang.Object getFieldValue(java.lang.String fieldName, java.lang.String lang, boolean useDefault) throws java.lang.NoSuchFieldException
Object
value of the given field name for this Member
. getFieldValue
in class Data
fieldName
- the field name from which to retrieve the field value.lang
- the language (ISO-639 code) in which to retrieve the field value
(used only for multilingual fields).useDefault
- whether to use the publication main language if the field value
is not available in the requested language (used only for multilingual fields).Object
field valuejava.lang.NoSuchFieldException
- if the field was not found in the given Publication
.public void setFieldValue(java.lang.String fieldName, java.lang.Object value, java.lang.String lang) throws java.lang.NoSuchFieldException
Object
field name for the current Member
. Category
fields, see #getCategoryFieldValue(String, Member).setFieldValue
in class Data
fieldName
- the field name from which to retrieve the field value.value
- whether to use the publication main language if the field value
is not available in the requested language (used only for multilingual fields).lang
- the language (ISO-639 code) in which to retrieve the field value
(used only for multilingual fields).java.lang.NoSuchFieldException
- if the field was not found in the given Data
.public java.lang.String toFullString()
toFullString
in class Data
public java.lang.String toCSV(java.lang.String lang)
public static java.lang.String getCSVHeader(java.lang.String lang)
lang
- the output languagepublic void fillExportXmlFieldAttributes(java.lang.StringBuffer sb)
fillExportXmlFieldAttributes
in class Data
sb
- the StringBufferData.fillExportXmlFieldAttributes(StringBuffer)
public void exportXmlField(java.lang.StringBuffer sb, int indentLevel)
Data
exportXmlField
in class Data
sb
- the StringBufferindentLevel
- the indent levelpublic java.lang.String getFullName()
public java.lang.String getIcon()
public java.lang.String getDataIcon()
Data
If this method behavior has not been overriden by subclass, the default icon can be declared
using property types.{Type}.icon
, where {Type}
is the short class name of
the type concerned.
types.Article.icon: images/jalios/icon/abstract.gif
types.Article.icon: ss_sprite ss_date
getDataIcon
in class Data
images/jalios/icon/abstract.gif
) or sprite classes name (eg ss_sprite ss_date
).Data.getDataIconHtml(String)
public java.lang.String getIcon(Workspace ws)
ws
- the current Workspacepublic java.lang.String getDataIconHtml(java.lang.String userLang)
Data
This method uses value returned by methods Data.getDataIcon()
,
Data.getDataIconAlt(String)
and Data.getDataIconTitle(String)
to build
an HTML IMG tag.
getDataIconHtml
in class Data
userLang
- the user language.Data.getDataIcon()
,
Data.getDataIconTitle(String)
,
Data.getDataIconAlt(String)
public java.lang.String getHtmlIcon(java.lang.String userLang)
userLang
- the current languagepublic java.lang.String getHtmlIcon(Workspace ws, java.lang.String userLang)
ws
- the current WorkspaceuserLang
- the current languageprotected java.lang.String[] getIconParameter(Workspace ws, java.lang.String userLang)
ws
- the Workspace or NulluserLang
- the UserLang or nullpublic int getStatus()
public boolean canRead(Group grp)
grp
- the grouppublic boolean canRead(Category cat, boolean searchInGroups, boolean searchInParent)
cat
- the categoriesearchInGroups
- 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 categoriesCategory.canBeReadBy(com.jalios.jcms.Member)
public boolean canRead(Publication pub, boolean searchInGroups)
pub
- the publicationsearchInGroups
- if true check if one of the group this
member belongs to is authorized to read the publication.Publication.canBeReadBy(com.jalios.jcms.Member)
public boolean canPublishContent()
public boolean canPublishContent(Workspace ws)
ws
- the Workspace to work onpublic boolean canUpdateDeleteContent()
public boolean canUpdateDeleteContent(Workspace ws)
ws
- the Workspace to ckeckpublic void invalidateCanManageContent()
public boolean canPublishSome(java.lang.Class<?> clazz)
clazz
- the class to be checkedpublic boolean canPublishSome(java.lang.Class<?> clazz, Workspace ws)
clazz
- the class to be checkedws
- the workspace to be checkedpublic boolean canPublishAll(java.lang.Class<?> clazz)
clazz
- the class to be checkedpublic boolean canPublish(java.lang.Class<?> clazz)
clazz
- the class to testpublic boolean canPublish(java.lang.Class<?> clazz, Workspace ws)
clazz
- the class to checkws
- the Workspace to work withcanPublish(java.lang.Class,java.util.Set)
public boolean canPublish(java.lang.Class clazz, java.util.Set<? extends Workspace> workspaceSet)
clazz
- the class to testworkspaceSet
- the set of workspace to work onprotected boolean internalCanPublish(java.lang.Class<?> clazz, java.util.Set<? extends Workspace> workspaceSet)
public boolean canPublish(Data data)
data
- the Data to checkcanPublish(java.lang.Class)
public boolean canArchive(Publication pub)
pub
- the publication to checkpublic boolean canUpdateOther(java.lang.Class<?> clazz)
protected boolean internalCanUpdateDeleteOtherCommon(java.lang.Class<?> clazz, Workspace ws, boolean checkUpdate)
protected boolean canUpdateDeleteOtherCommon(java.lang.Class clazz, Workspace ws, boolean checkUpdate)
public boolean canUpdateOther(java.lang.Class<?> clazz, Workspace ws)
public boolean canUpdateOther(Data data)
public boolean canDeleteOther(Data data)
public boolean canDeleteOther(java.lang.Class<?> clazz)
public boolean canDeleteOther(java.lang.Class<?> clazz, Workspace ws)
public DataRight getRight(java.lang.Class<?> clazz, boolean searchInGroups)
clazz
- the Class the right is searched forsearchInGroups
- if true, the search will be continued in the
groups rights if none member rights have been foundpublic DataRight getRight(java.lang.Class<?> clazz, boolean searchInGroups, Workspace ws)
clazz
- the Class the right is searched forsearchInGroups
- if true, the search will be continued in the
groups rights if none member rights have been foundws
- only used if searchInGroups true. If ws is null, search
in the global groups otherwise search in groups of ws.public boolean canWorkOn(Publication pub)
pub
- the publicationpublic boolean canWorkOn(Publication pub, RightInfo rightInfo)
public boolean isWorker()
canPublishContent()
,
canUpdateDeleteContent()
,
canEditCategories()
protected boolean internalIsWorker()
public boolean isWorker(Workspace ws)
ws
- the workspace to checkcanPublishContent(Workspace)
,
canUpdateDeleteContent(Workspace)
,
canEditCategories()
protected boolean internalIsWorker(Workspace ws)
public int getEditCategoryMode()
public boolean isAdmin(Workspace ws)
ws
- the workspace to be checkedpublic boolean hasExplicitRights()
public boolean hasWebdavAccess()
public boolean isDisabled()
disable()
,setPassword(String)
.public void disable()
This method disables the account by setting the password field
value of this Member to constant DISABLED_PASSWORD
.
Important : LDAP account disable status is
automatically managed by LDAP synchronisation ;
Member is disabled when account cannot be found on LDAP, and is
enabled again when account is found.
To definitively disable an LDAP account you MUST detach the
Member from the LDAP synchronisation :
mbr.setLastLdapSynchro(null); // cancel the LDAP status of the member mbr.setLdapSync(false); // prevent further LDAP synchronisation attempt
public boolean isLdapAccount()
public java.util.Date getLastLdapSynchro()
public void setLastLdapSynchro(java.util.Date v)
v
- Value to assign to lastLdapSynchro.public boolean getLdapSync()
public void setLdapSync(boolean ldapSync)
ldapSync
- true
if LDAP synchronization of this Member should
be performed if needed, false
otherwise.public boolean getWebdavAccess()
public void setWebdavAccess(boolean webdavAccess)
webdavAccess
- the webdavAccess valuepublic boolean isEmailVisible()
public void setEmailVisible(boolean visible)
visible
- true if it is visible, false otherwisepublic boolean belongsToGroup(Group group)
group
- the grouppublic boolean belongsToGroup(Group[] grps)
grps
- the groups to be checkedpublic int getCookieMaxAge()
public Group[] getGroups()
public java.util.Set<Group> getGroupSet(Workspace ws)
ws
- the workspacepublic boolean isDeclaredGroup(Group group)
group
- the group to be tests.public void refreshGroups()
public Group[] getDeclaredGroups()
public void setDeclaredGroups(Group[] v)
v
- Value to assign to declaredGroups.public void addGroup(Group group)
group
- the group to be added.public void removeGroup(Group group)
group
- the group to be removed.public boolean hasRead(Publication pub)
pub
- the publication readPublication.hasBeenReadBy(Member)
public Notification getNotification()
public void setNotification(Notification notification)
notification
- the notificationpublic boolean canEditCategories()
getCategoryRootSet()
public boolean canEditCategories(Workspace ws)
ws
- the Workspace to check withgetCategoryRootSet()
public java.util.Set<Category> getCategoryRootSet()
public java.util.Set<Category> getCategoryRootSet(Workspace ws)
ws
- the Workspace to be test (null for all workspace)public boolean canManageCategory(Category cat)
cat
- the category to testpublic boolean canManageCategory(Category cat, boolean searchInGroups, boolean searchInParent)
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)
public boolean canCreateWorkspace()
public boolean canCreateWorkspace(Workspace model)
model
- the workspace to duplicateprotected boolean internalCanCreateWorkspace(Workspace model)
public boolean canCreateContact()
public java.util.TreeSet<Category> getExpandedUseCategorySet()
public boolean canUseCategory(Category cat)
cat
- the category to checkcanUseCategory(Category, boolean, boolean)
public boolean canUseCategory(Category cat, boolean searchInGroups, boolean searchInParent)
cat
- the category to checksearchInGroups
- 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 internalCanUseCategory(Category cat, boolean searchInGroups, boolean searchInParent)
public boolean canUseDescendantCategories(Category cat, boolean checkRoot)
cat
- the category to checkcheckRoot
- if true check also the given categorypublic java.util.TreeSet<Category> getUseCategorySet()
public void setUseCategorySet(java.util.TreeSet<Category> v)
v
- Value to assign to useCategorySet.public int getUseCategoryMode()
public void setUseCategoryMode(int v)
v
- Value to assign to useCategoryMode.public int getUsage()
public void setUsage(int usage)
usage
- value to assign to usage, choose from USAGE_ACCOUNT
or USAGE_CONTACT
public java.lang.String getUsageName(java.lang.String lang)
lang
- the language code (ISO-639) in which you would like to retrieve the usagepublic boolean isAccount()
USAGE_ACCOUNT
.getUsage()
is USAGE_ACCOUNT
, otherwise false.public boolean isContact()
USAGE_CONTACT
.getUsage()
is USAGE_CONTACT
, otherwise false.public boolean isValidAccount()
public java.util.TreeSet<Category> getReadCategorySet()
public void setReadCategorySet(java.util.TreeSet<Category> v)
v
- Value to assign to readCategorySet.public java.util.TreeSet<Member> getDelegateMemberSet()
public void setDelegateMemberSet(java.util.TreeSet<Member> v)
v
- Value to assign to delegateMbrSet.public void updateDelegationHolderSet(Member mbr, boolean add)
mbr
- the member to add or remove from the delegation holder set.add
- true -> add, false -> removepublic java.util.Set<Member> getDelegationHolderSet()
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.
public java.lang.String getEncodedAlertRules()
public void setEncodedAlertRules(java.lang.String encodedAlertRules)
encodedAlertRules
- the JSON encoded alert rule set.public java.util.Set<AlertRule> getAlertRuleSet()
public void setAlertRuleSet(java.util.Set<AlertRule> alertRuleSet)
alertRuleSet
- the alert rule set.public java.util.List<Alert> getAlertList()
public java.util.List<Alert> getAlertList(Alert.Level level, java.lang.Boolean read)
level
- the alert level. Null means any level.read
- true for read alerts, false for not read alerts, null for read or not read alerts.public java.lang.String getLangSalutation(java.lang.String lang)
lang
- the languagepublic java.lang.String getLanguage()
fr
), with an optionnal script indication (eg zh-Hant
)public void setLanguage(java.lang.String languageKey)
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.
languageKey
- language key to use for this language.I18nUtil.getValidLanguageKey(String)
public java.lang.String getCountry()
Locale
public void setCountry(java.lang.String countryCode)
countryCode
- an ISO 3166 country code as used by java Locale
public boolean canCreateWorkCopy(Publication pub)
pub
- used to create work copyPublication.canCreateWorkCopy(Member)
public boolean canMergeWorkCopy(Publication pub)
pub
- The publication to merge.Publication.canMergeWorkCopy(Member)
public java.util.Set<Workspace> getWorkspaceSet()
public void refreshWorkspaceSet()
public void updateWorkspaceSet(Workspace ws, boolean add)
ws
- the workspace to be added or removedadd
- add if true, remove if falsepublic boolean belongsToWorkspace(Workspace ws)
ws
- the workspace to be checkedpublic java.util.Set<Publication> getWorkspacePublicationSet()
public WKRole belongsToRole()
public WKRole belongsToRole(boolean checkGroups)
checkGroups
- check also for member groupspublic boolean belongsToRole(WKRole role)
role
- a WKRolepublic boolean belongsToRole(WKRole role, boolean checkGroups)
role
- a WKRolecheckGroups
- check also for member groupspublic java.util.SortedSet<Workspace> getAdministratedWorkspaceSet()
public boolean isWorkAdmin()
public Workspace getFavoriteWorkspace(Workspace currentWS, java.lang.Class<?> clazz)
currentWS
- the current Workspaceclazz
- the class to publishpublic boolean isEmailValid(boolean checkDisable)
checkDisable
- check if the account is disabled (set to true to consider disabled member as invalid emails)MailUtil.checkEmail(String)
public java.lang.String getFullEmail()
public java.lang.String getFriendlyName()
public java.lang.String getSignupConfirmationUrl(java.lang.String password)
password
- the passwordpublic boolean alertSignup(java.lang.String password, boolean signupValidationRequired, boolean sendPassword)
password
- the passwordsignupValidationRequired
- true if the signup validation is requiedsendPassword
- if true the password will be sentpublic boolean hasPhoto()
public boolean canUploadPhoto()
public java.lang.String getDataName(java.lang.String language)
Data
getDataName
in class Data
language
- the language in which to return the name if multilang available for the data.getFullName()
,
Data.getDataName(String)
public java.lang.String getDataImage()
Data
This method can (should) be implemented by subclasses to provide an image/illustration of this Data.
Default behaviour is to return empty string.
getDataImage
in class Data
public java.lang.String getDataImage(java.lang.String lang, boolean useDefault)
Data
This method can (should) be implemented by subclasses to provide an image/illustration of this Data.
Default behaviour is to return empty string.
getDataImage
in class Data
lang
- the user language (ISO-639 language code)useDefault
- should the default language be used if no value is found for the specified languagepublic java.lang.String getLastName()
This method simply invoke getName()
which does exactly the same thing.
public void setLastName(java.lang.String lastName)
This method simply invoke setName(String)
which does exactly the same thing.
lastName
- the last name to use for this member.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to use.public java.lang.String getFirstName()
public void setFirstName(java.lang.String firstName)
firstName
- the first name to use.public boolean isAdmin()
true
if this member is and administrator, false
otherwise.public void setAdmin(boolean isAdmin)
isAdmin
- true
if this member is and administrator, false
otherwise.public java.lang.String getSalutation()
"mr"
"mrs"
"miss"
"ui.com.lbl.salut."
to retrieve the salutation in a localized form.public void setSalutation(java.lang.String salutation)
salutation
- the salutation token to use, usually one those values
"mr"
"mrs"
"miss"
"ui.com.lbl.salut.{value}"
public java.lang.String getOrganization()
public void setOrganization(java.lang.String organization)
organization
- the organization to use.public java.lang.String getDepartment()
public void setDepartment(java.lang.String department)
department
- the department to use for this Member.public java.lang.String getOrganizationAndDepartment()
public java.lang.String getJobTitle()
public void setJobTitle(java.lang.String jobTitle)
jobTitle
- the job title to use.public java.lang.String getPhone()
public void setPhone(java.lang.String phone)
phone
- the phone number to use.public java.lang.String getMobile()
public void setMobile(java.lang.String mobile)
mobile
- the mobile phone number to use.public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- the address (street address, postal code, city, country and all) to use.public java.lang.String getEmail()
public void setEmail(java.lang.String email)
email
- the email address to use.@Deprecated public java.lang.String getEmailFormat()
EMAIL_FORMAT_HTML
.@Deprecated public void setEmailFormat(java.lang.String emailFormat)
emailFormat
- the email format to use, must be one of the following values :
As of current implementation, default value for a new member is EMAIL_FORMAT_HTML
.public java.lang.String getInfo()
public void setInfo(java.lang.String info)
info
- the informations to use.public java.lang.String getPhoto()
public void setPhoto(java.lang.String photo)
photo
- the member's photopublic java.lang.String getLogin()
public void setLogin(java.lang.String login)
login
- the login to use, can be any string (id, email, ...), as
long as it is kept unique over all members.public java.lang.String getPassword()
The original clear text is never stored,
see setPassword(String)
for more information.
public void setPassword(java.lang.String password)
The password value specified must be crypted using method Channel.crypt(String)
mbr.setPassword(channel.crypt("abc42def"));
password
- a hashed version of the password to usepublic java.util.HashMap<java.lang.String,DataRight> getRightFromClassMap()
public void setRightFromClassMap(java.util.HashMap<java.lang.String,DataRight> v)
v
- Value to assign to rightFromClassMap.public java.util.Set<Publication> getPublicationSet()
public void updatePublicationSet(Publication pub, boolean add)
pub
- the publication to be added or removedadd
- add if true, remove if falsepublic java.util.Set<Content> getContentSet()
public void updateContentSet(Content content, boolean add)
content
- the content to be added or removedadd
- add if true, remove if falsepublic static java.util.Comparator<Member> getNameComparator()
public static java.util.Comparator<Member> getLoginComparator()
public static java.util.Comparator<Member> getGroupComparator(java.util.Comparator<Group> groupComparator)
public static java.util.Comparator<Member> getPublicationCountComparator()
public static java.util.Comparator<Member> getRightComparator()
public static java.util.Comparator<Member> getLdapComparator()
public static java.util.Comparator<Member> getLastLdapSyncComparator()
public static java.util.Comparator<Member> getLangComparator()
public static java.util.Comparator<Member> getWebdavComparator()
public static java.util.Comparator<Member> getSessionComparator()
public static java.util.Comparator<Member> getLastLoginDateComparator()
public static java.util.Comparator getComparator(java.lang.String str, boolean reverse)
ComparatorManager
Comparator
given a name representing
it. The returned comparator can be used to sort any Collection
containing Member
s. getNameComparator()
getLoginComparator()
getGroupComparator(Comparator)
getPublicationCountComparator()
getRightComparator()
getLdapComparator()
getLangComparator()
getSessionComparator()
getWebdavComparator()
getLastLdapSyncComparator()
getLastLoginDateComparator()
Data.getComparator(String, boolean)
str
- a string representing the comparatorreverse
- a boolean indicating whether the comparator should have
its behavior reversed (true) or unchanged (false)Comparator
.Data.getComparator(String, boolean)
public ControllerStatus checkIntegrity(java.util.Map context)
checkIntegrity
in class Data
context
- a map which contains context parameters (may be null)public ControllerStatus checkMember(int op, Member mbr, java.util.Map context)
checkMember
in class Data
op
- the operation (OP_CREATE, OP_UPDATE, ...)mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)protected ControllerStatus internalCheckMember(int op, Member mbr, java.util.Map context)
public ControllerStatus checkCreate(Member mbr, java.util.Map context)
Data
checkCreate
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public ControllerStatus checkUpdate(Member mbr, java.util.Map context)
checkUpdate
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public ControllerStatus checkDelete(Member mbr, java.util.Map context)
checkDelete
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public ControllerStatus checkUpdateProfile(Member mbr, java.util.Map context)
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public static ControllerStatus checkMemberGroupModification(Member opAuthor, Group modifiedGroup, Member modifiedMember, boolean checkParentGroup)
Important explanation regarding this method :
opAuthor
- the Member performing the modificationmodifiedGroup
- the group to which the modifiedMember is added or removedmodifiedMember
- the member which is added or removed from the modifiedGroupcheckParentGroup
- set to true to check parent groups of the specified group, if they did not already belong to the specified memberpublic void performDelete(Member mbr, java.util.Map context)
performDelete
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)protected void removeMemberAttendeeCalendarEvent(Member mbr, java.util.Map context)
mbr
- the member which requests the operationcontext
- a map which contains context parameters (may be null)protected void deleteMemberData(Member mbr, java.util.Map context)
protected void reassignMemberPubs(Member mbr, java.util.Map context)
protected void handleDeleteMemberUserContent(java.lang.String mbrId)
protected static void deleteMemberUserContent(java.lang.String mbrId)
protected void updateRights(Member mbr, java.util.Map context)
public static Member getMemberFromLogin(java.lang.String login, boolean checkDisabled)
login
- the member's logincheckDisabled
- if true, return null if accound is disablednull
if no active member has this
login.public static void refreshLoginIndex()
public static void indexLogin(Member mbr)
mbr
- the member to be registeredpublic static void unindexLogin(Member mbr)
mbr
- the member to be unregisteredpublic java.util.Locale getLocale()
Locale
of this member.Locale
object initialized with this Member language and countrypublic void setLocale(java.util.Locale locale)
public java.lang.String buildPhotoFilename(java.lang.String ext)
ext
- the file extension (eg. "gif", "jpg" or "png");public void removeAllPhotos(boolean removePhoto)
removePhoto
- if true the file of the photo will be deleted.public java.util.SortedSet<java.util.Date> getLastLoginDateSet()
public java.util.Date getLastLoginDate()
public final void setLastLoginDate(java.util.Date date)
date
- the last login date, or null to use now.protected void internalSetLastLoginDate(java.util.Date date)
date
- the dateprotected void exportXmlRelated(java.lang.StringBuffer sb, java.lang.String related, int indentLevel)
exportXmlRelated
in class Data
public java.util.Date getIndexingDate()
public java.util.List<Publication> getFollowedPublicationList()
public boolean checkAccess(java.lang.String resource, java.util.Map<java.lang.String,java.lang.Object> context)
resource
- a resource URI using a path representation, eg "admin/dev/store-cleaner"context
- an optionnal context map containing relevant information such as workspaceAccessControlManager.checkAccess(Member, String, Map)
public boolean hasAcl()
Group.getAccessControlList()
public static DataSelector getBelongsToWorkspaceSelector(Workspace ws)
Member
which belongs to a workspace (directly)ws
- the workspaceCopyright © 2001-2010 Jalios SA. All Rights Reserved.