Package org.bremersee.dccon.model
Class DomainUser
- java.lang.Object
-
- org.bremersee.dccon.model.CommonAttributes
-
- org.bremersee.dccon.model.DomainUser
-
- All Implemented Interfaces:
Serializable
@Validated public class DomainUser extends CommonAttributes
Domain user.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SORT_ORDER
The constant DEFAULT_SORT_ORDER.
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getEnabled()
Specifies whether the user is enabled or not.List<String>
getGroups()
The groups of the domain user.void
setEnabled(Boolean enabled)
Sets whether the user is enabled or not.void
setGroups(List<String> groups)
Sets groups.-
Methods inherited from class org.bremersee.dccon.model.CommonAttributes
getCreated, getDistinguishedName, getModified, setCreated, setDistinguishedName, setModified
-
-
-
-
Field Detail
-
DEFAULT_SORT_ORDER
public static final String DEFAULT_SORT_ORDER
The constant DEFAULT_SORT_ORDER.- See Also:
- Constant Field Values
-
-
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 namecreated
- the createdmodified
- the modifiedsid
- the windows/samba SIDuserName
- the user nameenabled
- the enabledfirstName
- the first namelastName
- the last namedisplayName
- the display nameemail
- the emailtelephoneNumber
- the telephone numbermobile
- the mobiledescription
- the descriptionhomeDirectory
- the home directoryunixHomeDirectory
- the unix home directoryloginShell
- the login shelllastLogon
- the last logonlogonCount
- the logon countpasswordLastSet
- the password last setpassword
- the passwordgroups
- the groups
-
-
Method Detail
-
getEnabled
public Boolean getEnabled()
Specifies whether the user is enabled or not.- Returns:
true
is the user is enabled, otherwisefalse
-
setEnabled
public void setEnabled(Boolean enabled)
Sets whether the user is enabled or not.- Parameters:
enabled
-true
if the user should be enabled, otherwisefalse
-
-