Package org.xwiki.user
Interface UserProperties
-
- All Superinterfaces:
org.xwiki.configuration.ConfigurationSource
public interface UserProperties extends org.xwiki.configuration.ConfigurationSourceRepresents all the properties of an XWiki user. It can represent direct properites or inherited properties. Note that it's independent from where users are stored, and should remain that way, so that we can switch the user store in the future.- Since:
- 12.2
- Version:
- $Id: 9d6bd396954f8d6dbe5916cba06c50995eb059a9 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandisplayHiddenDocuments()EditorgetEditor()javax.mail.internet.InternetAddressgetEmail()StringgetFirstName()StringgetLastName()UserTypegetType()booleanisActive()booleanisEmailChecked()voidsave()Persist the varioussetXXX()calls made since the last call to this method.voidsetActive(boolean isActive)voidsetDisplayHiddenDocuments(boolean displayHiddenDocuments)voidsetEditor(Editor editor)voidsetEmail(javax.mail.internet.InternetAddress email)voidsetEmailChecked(boolean isEmailChecked)voidsetFirstName(String firstName)voidsetLastName(String lastName)voidsetType(UserType type)
-
-
-
Method Detail
-
displayHiddenDocuments
boolean displayHiddenDocuments()
- Returns:
- true if the user is configured to display hidden documents in the wiki
-
setDisplayHiddenDocuments
void setDisplayHiddenDocuments(boolean displayHiddenDocuments)
- Parameters:
displayHiddenDocuments- seedisplayHiddenDocuments()
-
isActive
boolean isActive()
- Returns:
- true if the user is active in the wiki. An active user can log in.
-
setActive
void setActive(boolean isActive)
- Parameters:
isActive- seeisActive()
-
getFirstName
String getFirstName()
- Returns:
- the first name of the user or null if not set
-
setFirstName
void setFirstName(String firstName)
- Parameters:
firstName- seegetFirstName()
-
getLastName
String getLastName()
- Returns:
- the last name of the user or null if not set
-
setLastName
void setLastName(String lastName)
- Parameters:
lastName- seegetLastName()
-
getEmail
javax.mail.internet.InternetAddress getEmail()
- Returns:
- the email address of the user and null if not set
-
setEmail
void setEmail(javax.mail.internet.InternetAddress email)
- Parameters:
email- seegetEmail()
-
getType
UserType getType()
- Returns:
- the type of the user (simple user, advanced user)
- See Also:
- user profile
-
getEditor
Editor getEditor()
- Returns:
- the default editor to use when editing content for this user (text editor, wysiwyg editor)
-
setEditor
void setEditor(Editor editor)
- Parameters:
editor- seegetEditor()
-
isEmailChecked
boolean isEmailChecked()
- Returns:
- true if the user's email has been checked. In some configurations, users must have had their emails verified before they can access the wiki. Also, disabled users must have their emails checked to be able to view pages.
-
setEmailChecked
void setEmailChecked(boolean isEmailChecked)
- Parameters:
isEmailChecked- seeisEmailChecked()
-
save
void save() throws org.xwiki.configuration.ConfigurationSaveException
Persist the varioussetXXX()calls made since the last call to this method.- Throws:
org.xwiki.configuration.ConfigurationSaveException- in case of an error during the save
-
-