Class DomainUser

    • Field Detail

    • Constructor Detail

      • DomainUser

        public DomainUser​(String distinguishedName,
                          OffsetDateTime created,
                          OffsetDateTime modified,
                          Sid sid,
                          String userName,
                          Boolean enabled,
                          String firstName,
                          String lastName,
                          String displayName,
                          String email,
                          String telephoneNumber,
                          String mobile,
                          String description,
                          String homeDirectory,
                          String unixHomeDirectory,
                          String loginShell,
                          OffsetDateTime lastLogon,
                          Integer logonCount,
                          OffsetDateTime passwordLastSet,
                          String password,
                          List<String> groups)
        Instantiates a new domain user.
        Parameters:
        distinguishedName - the distinguished name
        created - the created
        modified - the modified
        sid - the windows/samba SID
        userName - the user name
        enabled - the enabled
        firstName - the first name
        lastName - the last name
        displayName - the display name
        email - the email
        telephoneNumber - the telephone number
        mobile - the mobile
        description - the description
        homeDirectory - the home directory
        unixHomeDirectory - the unix home directory
        loginShell - the login shell
        lastLogon - the last logon
        logonCount - the logon count
        passwordLastSet - the password last set
        password - the password
        groups - the groups
    • Method Detail

      • getEnabled

        public Boolean getEnabled()
        Specifies whether the user is enabled or not.
        Returns:
        true is the user is enabled, otherwise false
      • setEnabled

        public void setEnabled​(Boolean enabled)
        Sets whether the user is enabled or not.
        Parameters:
        enabled - true if the user should be enabled, otherwise false
      • getGroups

        public List<String> getGroups()
        The groups of the domain user.
        Returns:
        groups groups
      • setGroups

        public void setGroups​(List<String> groups)
        Sets groups.
        Parameters:
        groups - the groups