|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.Member
com.jalios.jcms.dbmember.DBMember
public class DBMember
Nested Class Summary | |
---|---|
static class |
DBMember.Fields
|
Nested classes/interfaces inherited from class com.jalios.jcms.Member |
---|
Member.AccountSelector, Member.AdministratorSelector, Member.ContactSelector, 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 |
Nested classes/interfaces inherited from class com.jalios.jcms.Data |
---|
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> |
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable |
---|
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable> |
Field Summary |
---|
Fields inherited from class com.jalios.jcms.Data |
---|
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, lockDate, lockMember, opAuthor, opDelegate |
Fields inherited from class com.jalios.jstore.BasicStorable |
---|
cdate, ddate, id, mdate, store |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants |
---|
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP |
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG |
Constructor Summary | |
---|---|
DBMember()
|
|
DBMember(Member other)
Constructor by copy : creates a new instance of DBMember from the specified Member. |
Method Summary | |
---|---|
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 |
belongsToWorkspace(Workspace ws)
This convenient method returns true if this member belongs to the given workspace. |
boolean |
canArchive(Publication pub)
Check if the member is in a role that can archive the given publication. |
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(Class<?> clazz)
|
boolean |
canDeleteOther(Class<?> clazz,
Workspace ws)
|
boolean |
canDeleteOther(Data data)
|
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(Class clazz,
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 |
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 |
canUpdateDeleteContent()
|
boolean |
canUpdateDeleteContent(Workspace ws)
Check if member can perform Update or Delete for the gicen Workspace |
protected boolean |
canUpdateDeleteOtherCommon(Class clazz,
Workspace ws,
boolean checkUpdate)
|
boolean |
canUpdateOther(Class<?> clazz)
|
boolean |
canUpdateOther(Class<?> clazz,
Workspace ws)
|
boolean |
canUpdateOther(Data data)
|
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. |
Member |
convertToMember(Member opAuthor)
Converts this DBMember to a member. |
static void |
exportCSV(Collection<String> dbMemberIdColl,
String lang,
Writer writer)
Export a dataSet to CSV |
void |
exportXmlField(StringBuffer sb,
int indentLevel)
Fills the given StringBuffer with Xml export of fields of this data. |
SortedSet<Workspace> |
getAdministratedWorkspaceSet()
This convenient method returns all the workspace this member is the administrator of. |
Set<Category> |
getCategoryRootSet()
Returns the set of category roots the member can manage |
Set<Category> |
getCategoryRootSet(Workspace ws)
Returns the set of category roots the member can manage in a given workspace |
Set<Content> |
getContentSet()
Get the value of contentSet. |
static String |
getCSVHeader(String lang)
Returns the CSV header of this object |
TreeSet<Member> |
getDelegateMemberSet()
Gets the TreeSet of Member allowed to login as this member. |
Set<Member> |
getDelegationHolderSet()
Retrieves the list of member into which this member is allowed to log in. |
int |
getEditCategoryMode()
|
Boolean |
getEmailPublic()
Retrieves whether this member's email is visible to other members or not. |
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,
Class<?> clazz)
Return the favorite Member Workspace where it can work on |
String |
getGids()
Returns the Group ids to which this member belongs. |
protected String[] |
getIconParameter(Workspace ws,
String userLang)
Return a String[2]: Title / Alt for the given parameters |
String |
getInfo()
Gets informations available for this member. |
String |
getLanguage()
Get the value of language. |
Date |
getLastLdapSynchro()
Get the value of lastLdapSynchro. |
SortedSet<Date> |
getLastLoginDateSet()
Retrieve the last login Date of this Member. |
String |
getLastLoginTimes()
Retrieve a comma seperated list of last login time of this member. |
static DBMember |
getMemberFromEmail(String email,
boolean checkDisabled)
Retrieve the DBMember having the specified email. |
static DBMember |
getMemberFromLogin(String login,
boolean checkDisabled)
Retrieve the DBMember having the specified login. |
Notification |
getNotification()
Get the Notification |
Set<Publication> |
getPublicationSet()
Retrieve a Set containing all the Publication of which this member is the author. |
TreeSet<Category> |
getReadCategorySet()
Gets the TreeSet of Category used for Publication read right. |
HashMap<String,DataRight> |
getRightFromClassMap()
Get the value of rightFromClassMap. |
Data |
getUpdateInstance()
Returns an instance of this object to update it. |
int |
getUseCategoryMode()
Get the value of useCategoryMode. |
TreeSet<Category> |
getUseCategorySet()
Get the value of useCategorySet. |
boolean |
getWebdavAccess()
Get the value of webdavAccess |
Set<Publication> |
getWorkspacePublicationSet()
|
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 |
internalCanDeleteOther(Data data)
|
protected boolean |
internalCanManageCategory(Category cat,
boolean searchInGroups,
boolean searchInParent)
|
protected boolean |
internalCanPublish(Class<?> clazz,
Set<? extends Workspace> workspaceSet)
|
protected boolean |
internalCanUpdateDeleteOtherCommon(Class<?> clazz,
Workspace ws,
boolean checkUpdate)
|
protected boolean |
internalCanUpdateOther(Data data)
|
protected boolean |
internalCanUseCategory(Category cat,
boolean searchInGroups,
boolean searchInParent)
|
protected boolean |
internalIsWorker()
|
protected boolean |
internalIsWorker(Workspace ws)
|
void |
invalidateCanManageContent()
Invalidate the current status of canManageContent (the next time it will be called, it will be computed). |
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. |
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()). |
protected void |
reassignMemberPubs(Member mbr,
Map context)
|
void |
refreshWorkspaceSet()
Refresh the workspaces this member belongs to. |
void |
setAddress(String address)
Set the address of this member. |
void |
setAdmin(boolean isAdmin)
Sets if this member can administrate the site. |
void |
setDelegateMemberSet(TreeSet<Member> v)
Set the value of delegateMbrSet. |
void |
setEmail(String email)
Set the email address of this member. |
void |
setEmailFormat(String emailFormat)
Set the email format that will be used to send mail to this member. |
void |
setEmailPublic(Boolean visible)
Sets whether this member's email is visible to other members or not. |
void |
setFirstName(String firstName)
Set the first name of this member. |
void |
setInfo(String info)
Set some informations available for this member. |
void |
setJobTitle(String jobTitle)
Set the job title of this member. |
void |
setLanguage(String lang)
Set the value of language. |
void |
setLastLdapSynchro(Date v)
Set the value of lastLdapSynchro. |
void |
setLastLoginDate(Date date)
Sets the last login Date of this Member. |
void |
setLastLoginTimes(String lastLoginTimes)
Set the comma seperated list of last login time of this member. |
void |
setLogin(String login)
Set the login of this member. |
void |
setMobile(String mobile)
Set the mobile phone number of this member. |
void |
setName(String name)
Set the name of this member. |
void |
setNotification(Notification notification)
Sets the Notification |
void |
setOrganization(String organization)
Set the organization of this member. |
void |
setPassword(String password)
Set the password of this member. |
void |
setPhone(String phone)
Set the phone number of this member. |
void |
setReadCategorySet(TreeSet<Category> v)
Set the value of readCategorySet. |
void |
setRightFromClassMap(HashMap<String,DataRight> v)
Set the value of rightFromClassMap. |
void |
setSalutation(String salutation)
Set the salutation of this member. |
void |
setUseCategoryMode(int v)
Set the value of useCategoryMode. |
void |
setUseCategorySet(TreeSet<Category> v)
Set the value of useCategorySet. |
void |
setWebdavAccess(boolean webdavAccess)
Set the value of webdavAccess |
String |
toCSV(String lang)
Returns a CSV view of this object |
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,
Map context)
|
void |
updateWorkspaceSet(Workspace ws,
boolean add)
Update workspaceSet index |
Methods inherited from class com.jalios.jstore.BasicStorable |
---|
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setCdate, setDdate, setId, setStore, toXml |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jalios.jcms.db.DBData |
---|
getRowId, setRowId |
Constructor Detail |
---|
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.Method Detail |
---|
public Data getUpdateInstance()
Data
getUpdateInstance
in class Member
public String toFullString()
toFullString
in class Member
public String toCSV(String lang)
Member
toCSV
in class Member
lang
- the output language
public static String getCSVHeader(String lang)
lang
- the output language
public static void exportCSV(Collection<String> dbMemberIdColl, String lang, Writer writer)
dbMemberIdColl
- the set of DBMember's id to be exportedlang
- the languagewriter
- the writer where to print the exportpublic void exportXmlField(StringBuffer sb, int indentLevel)
Data
exportXmlField
in class Member
sb
- the StringBufferindentLevel
- the indent levelprotected String[] getIconParameter(Workspace ws, String userLang)
Member
getIconParameter
in class Member
ws
- the Workspace or NulluserLang
- the UserLang or null
public boolean canPublishContent()
Member
canPublishContent
in class Member
public boolean canPublishContent(Workspace ws)
Member
canPublishContent
in class Member
ws
- the Workspace to work on
public boolean canUpdateDeleteContent()
canUpdateDeleteContent
in class Member
public boolean canUpdateDeleteContent(Workspace ws)
Member
canUpdateDeleteContent
in class Member
ws
- the Workspace to ckeck
public void invalidateCanManageContent()
Member
invalidateCanManageContent
in class Member
public boolean canPublish(Class clazz, Set<? extends Workspace> workspaceSet)
Member
canPublish
in class Member
clazz
- the class to testworkspaceSet
- the set of workspace to work on
protected boolean internalCanPublish(Class<?> clazz, Set<? extends Workspace> workspaceSet)
internalCanPublish
in class Member
public boolean canArchive(Publication pub)
Member
canArchive
in class Member
pub
- the publication to check
public boolean canUpdateOther(Class<?> clazz)
canUpdateOther
in class Member
protected boolean internalCanUpdateDeleteOtherCommon(Class<?> clazz, Workspace ws, boolean checkUpdate)
internalCanUpdateDeleteOtherCommon
in class Member
protected boolean canUpdateDeleteOtherCommon(Class clazz, Workspace ws, boolean checkUpdate)
canUpdateDeleteOtherCommon
in class Member
public boolean canUpdateOther(Class<?> clazz, Workspace ws)
canUpdateOther
in class Member
public boolean canUpdateOther(Data data)
canUpdateOther
in class Member
protected boolean internalCanUpdateOther(Data data)
internalCanUpdateOther
in class Member
public boolean canDeleteOther(Data data)
canDeleteOther
in class Member
protected boolean internalCanDeleteOther(Data data)
internalCanDeleteOther
in class Member
public boolean canDeleteOther(Class<?> clazz)
canDeleteOther
in class Member
public boolean canDeleteOther(Class<?> clazz, Workspace ws)
canDeleteOther
in class Member
public boolean isWorker()
Member
isWorker
in class Member
Member.canPublishContent()
,
Member.canUpdateDeleteContent()
,
Member.canEditCategories()
protected boolean internalIsWorker()
internalIsWorker
in class Member
public boolean isWorker(Workspace ws)
Member
isWorker
in class Member
ws
- the workspace to check
Member.canPublishContent(Workspace)
,
Member.canUpdateDeleteContent(Workspace)
,
Member.canEditCategories()
protected boolean internalIsWorker(Workspace ws)
internalIsWorker
in class Member
public int getEditCategoryMode()
getEditCategoryMode
in class Member
public boolean isAdmin(Workspace ws)
Member
isAdmin
in class Member
ws
- the workspace to be checked
public boolean hasExplicitRights()
hasExplicitRights
in class Member
public boolean hasWebdavAccess()
Member
hasWebdavAccess
in class Member
public boolean isLdapAccount()
Member
isLdapAccount
in class Member
public Date getLastLdapSynchro()
Member
getLastLdapSynchro
in class Member
public void setLastLdapSynchro(Date v)
Member
setLastLdapSynchro
in class Member
v
- Value to assign to lastLdapSynchro.public boolean getWebdavAccess()
Member
getWebdavAccess
in class Member
public void setWebdavAccess(boolean webdavAccess)
Member
setWebdavAccess
in class Member
public Boolean getEmailPublic()
Member.isEmailVisible()
public void setEmailPublic(Boolean visible)
visible
- true if it is visible, false otherwiseMember.setEmailVisible(boolean)
public String getGids()
public boolean belongsToGroup(Group group)
Member
belongsToGroup
in class Member
group
- the group
public 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 with
Member.getCategoryRootSet()
public Set<Category> getCategoryRootSet()
Member
getCategoryRootSet
in class Member
public 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 test
public 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 categories
protected 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 duplicate
public TreeSet<Category> getExpandedUseCategorySet()
Member
getExpandedUseCategorySet
in class Member
public boolean canUseCategory(Category cat)
Member
canUseCategory
in class Member
cat
- the category to check
Member.canUseCategory(Category, boolean, boolean)
public boolean canUseCategory(Category cat, boolean searchInGroups, boolean searchInParent)
Member
canUseCategory
in class Member
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 categories
protected boolean internalCanUseCategory(Category cat, boolean searchInGroups, boolean searchInParent)
internalCanUseCategory
in class Member
public boolean canUseDescendantCategories(Category cat, boolean checkRoot)
Member
canUseDescendantCategories
in class Member
cat
- the category to checkcheckRoot
- if true check also the given category
public TreeSet<Category> getUseCategorySet()
Member
getUseCategorySet
in class Member
public void setUseCategorySet(TreeSet<Category> v)
Member
setUseCategorySet
in class Member
v
- Value to assign to useCategorySet.public int getUseCategoryMode()
Member
getUseCategoryMode
in class Member
public void setUseCategoryMode(int v)
Member
setUseCategoryMode
in class Member
v
- Value to assign to useCategoryMode.public TreeSet<Category> getReadCategorySet()
Member
getReadCategorySet
in class Member
public void setReadCategorySet(TreeSet<Category> v)
Member
setReadCategorySet
in class Member
v
- Value to assign to readCategorySet.public TreeSet<Member> getDelegateMemberSet()
Member
getDelegateMemberSet
in class Member
public void setDelegateMemberSet(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 Set<Member> getDelegationHolderSet()
Member
getDelegationHolderSet
in class Member
public String getLanguage()
Member
getLanguage
in class Member
public void setLanguage(String lang)
Member
setLanguage
in class Member
lang
- Value to assign to language.public boolean canCreateWorkCopy(Publication pub)
Member
canCreateWorkCopy
in class Member
pub
- used to create work copy
Publication.canCreateWorkCopy(Member)
public boolean canMergeWorkCopy(Publication pub)
Member
canMergeWorkCopy
in class Member
pub
- The publication to merge.
Publication.canMergeWorkCopy(Member)
public 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 boolean belongsToWorkspace(Workspace ws)
Member
belongsToWorkspace
in class Member
ws
- the workspace to be checked
public 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 groups
public boolean belongsToRole(WKRole role)
belongsToRole
in class Member
role
- a WKRole
public boolean belongsToRole(WKRole role, boolean checkGroups)
belongsToRole
in class Member
role
- a WKRolecheckGroups
- check also for member groups
public SortedSet<Workspace> getAdministratedWorkspaceSet()
Member
getAdministratedWorkspaceSet
in class Member
public boolean isWorkAdmin()
Member
isWorkAdmin
in class Member
public Workspace getFavoriteWorkspace(Workspace currentWS, Class<?> clazz)
Member
getFavoriteWorkspace
in class Member
currentWS
- the current Workspaceclazz
- the class to publish
public void setName(String name)
Member
setName
in class Member
name
- the name to use.public void setFirstName(String firstName)
Member
setFirstName
in class Member
firstName
- the first name to use.public boolean isAdmin()
Member
isAdmin
in class Member
true
if this member is and administrator,
false
otherwise.public void setAdmin(boolean isAdmin)
Member
setAdmin
in class Member
isAdmin
- true
if this member is and administrator,
false
otherwise.public void setSalutation(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(String organization)
Member
setOrganization
in class Member
organization
- the organization to use.public void setJobTitle(String jobTitle)
Member
setJobTitle
in class Member
jobTitle
- the job title to use.public void setPhone(String phone)
Member
setPhone
in class Member
phone
- the phone number to use.public void setMobile(String mobile)
Member
setMobile
in class Member
mobile
- the mobile phone number to use.public void setAddress(String address)
Member
setAddress
in class Member
address
- the address (street address, postal code, city, country and all) to use.public void setEmail(String email)
Member
setEmail
in class Member
email
- the email address to use.public void setEmailFormat(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 String getInfo()
Member
getInfo
in class Member
public void setInfo(String info)
Member
setInfo
in class Member
info
- the informations to use.public void setLogin(String login)
Member
setLogin
in class Member
login
- the login to use, can be any string (id, email, ...), as
long as it is kept unique over all members.public void setPassword(String password)
Member
setPassword
in class Member
password
- the password to use. Use constants
Member.DISABLED_PASSWORD
as password value to disable this member.public HashMap<String,DataRight> getRightFromClassMap()
Member
getRightFromClassMap
in class Member
public void setRightFromClassMap(HashMap<String,DataRight> v)
Member
setRightFromClassMap
in class Member
v
- Value to assign to rightFromClassMap.public 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 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, Map context)
reassignMemberPubs
in class Member
protected void updateRights(Member mbr, Map context)
updateRights
in class Member
public static DBMember getMemberFromLogin(String login, boolean checkDisabled)
login
- the member's logincheckDisabled
- if true, return null if account is disabled
public static DBMember getMemberFromEmail(String email, boolean checkDisabled)
email
- the member's emailcheckDisabled
- if true, return null if account is disabled
public String getLastLoginTimes()
public void setLastLoginTimes(String lastLoginTimes)
lastLoginTimes
- a coma seperated list of time in millisecond.public SortedSet<Date> getLastLoginDateSet()
Member
getLastLoginDateSet
in class Member
public void setLastLoginDate(Date date)
Member
setLastLoginDate
in class Member
date
- the last login date, or null to use now.public Member convertToMember(Member opAuthor)
opAuthor
- the author of this operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |