Class LdapUser

java.lang.Object
org.codelibs.fess.ldap.LdapUser
All Implemented Interfaces:
Serializable, FessUser

public class LdapUser extends Object implements FessUser
An LDAP user.
See Also:
  • Field Details

    • env

      protected Hashtable<String,String> env
      The environment for LDAP connection.
    • name

      protected String name
      The name of the user.
    • permissions

      protected String[] permissions
      The permissions of the user.
  • Constructor Details

    • LdapUser

      public LdapUser(Hashtable<String,String> env, String name)
      Constructs a new LDAP user.
      Parameters:
      env - The environment for LDAP connection.
      name - The name of the user.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: FessUser
      Gets the user's display name.
      Specified by:
      getName in interface FessUser
      Returns:
      The user's name.
    • getPermissions

      public String[] getPermissions()
      Description copied from interface: FessUser
      Gets the user's permissions.
      Specified by:
      getPermissions in interface FessUser
      Returns:
      Array of permission strings.
    • getRoleNames

      public String[] getRoleNames()
      Description copied from interface: FessUser
      Gets the user's assigned role names.
      Specified by:
      getRoleNames in interface FessUser
      Returns:
      Array of role names.
    • getGroupNames

      public String[] getGroupNames()
      Description copied from interface: FessUser
      Gets the user's assigned group names.
      Specified by:
      getGroupNames in interface FessUser
      Returns:
      Array of group names.
    • getEnvironment

      public Hashtable<String,String> getEnvironment()
      Returns the environment for LDAP connection.
      Returns:
      The environment for LDAP connection.
    • isEditable

      public boolean isEditable()
      Description copied from interface: FessUser
      Determines if the user's information can be edited.
      Specified by:
      isEditable in interface FessUser
      Returns:
      True if the user's information is editable, false otherwise.