Interface UserProperties

  • All Superinterfaces:
    org.xwiki.configuration.ConfigurationSource

    public interface UserProperties
    extends org.xwiki.configuration.ConfigurationSource
    Represents 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 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 - see displayHiddenDocuments()
      • 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 - see isActive()
      • getFirstName

        String getFirstName()
        Returns:
        the first name of the user or null if not set
      • getLastName

        String getLastName()
        Returns:
        the last name of the user or null if not set
      • 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 - see getEmail()
      • 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)
      • 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 - see isEmailChecked()
      • save

        void save()
           throws org.xwiki.configuration.ConfigurationSaveException
        Persist the various setXXX() calls made since the last call to this method.
        Throws:
        org.xwiki.configuration.ConfigurationSaveException - in case of an error during the save