Package alpine.model
Class ManagedUser
java.lang.Object
alpine.model.ManagedUser
- All Implemented Interfaces:
UserPrincipal,Serializable,Principal
Persistable object representing an ManagedUser.
- Since:
- 1.0.0
- Author:
- Steve Springett
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()The email address of the principal.longgetId()The database id of the principal.getName()Deprecated.A list of permissions the principal has.getTeams()A list of teams the principal is a member of.The username of the principal.booleanbooleanbooleanvoidsetConfirmPassword(String confirmPassword) voidSpecifies the email address of the principal.voidsetForcePasswordChange(boolean forcePasswordChange) voidsetFullname(String fullname) voidsetId(long id) Specifies the database id of the principal.voidsetLastPasswordChange(Date lastPasswordChange) voidsetNewPassword(String newPassword) voidsetNonExpiryPassword(boolean nonExpiryPassword) voidsetPassword(String password) voidsetPermissions(List<Permission> permissions) Specifies the permissions the principal should have.voidsetSuspended(boolean suspended) voidSpecifies the teams the principal is a member of.voidsetUsername(String username) Specifies the username of the principal.
-
Constructor Details
-
ManagedUser
public ManagedUser()
-
-
Method Details
-
getId
public long getId()Description copied from interface:UserPrincipalThe database id of the principal.- Specified by:
getIdin interfaceUserPrincipal- Returns:
- a long of the unique id
-
setId
public void setId(long id) Description copied from interface:UserPrincipalSpecifies the database id of the principal.- Specified by:
setIdin interfaceUserPrincipal- Parameters:
id- a long of the unique id
-
getUsername
Description copied from interface:UserPrincipalThe username of the principal.- Specified by:
getUsernamein interfaceUserPrincipal- Returns:
- a String of the username
-
setUsername
Description copied from interface:UserPrincipalSpecifies the username of the principal.- Specified by:
setUsernamein interfaceUserPrincipal- Parameters:
username- the username of the principal
-
getPassword
-
setPassword
-
getNewPassword
-
setNewPassword
-
getConfirmPassword
-
setConfirmPassword
-
getLastPasswordChange
-
setLastPasswordChange
-
getFullname
-
setFullname
-
getEmail
Description copied from interface:UserPrincipalThe email address of the principal.- Specified by:
getEmailin interfaceUserPrincipal- Returns:
- a String of the email address
-
setEmail
Description copied from interface:UserPrincipalSpecifies the email address of the principal.- Specified by:
setEmailin interfaceUserPrincipal- Parameters:
email- the email address of the principal
-
isSuspended
public boolean isSuspended() -
setSuspended
public void setSuspended(boolean suspended) -
isForcePasswordChange
public boolean isForcePasswordChange() -
setForcePasswordChange
public void setForcePasswordChange(boolean forcePasswordChange) -
isNonExpiryPassword
public boolean isNonExpiryPassword() -
setNonExpiryPassword
public void setNonExpiryPassword(boolean nonExpiryPassword) -
getTeams
Description copied from interface:UserPrincipalA list of teams the principal is a member of.- Specified by:
getTeamsin interfaceUserPrincipal- Returns:
- a List of Team objects
-
setTeams
Description copied from interface:UserPrincipalSpecifies the teams the principal is a member of.- Specified by:
setTeamsin interfaceUserPrincipal- Parameters:
teams- a List of Team objects
-
getPermissions
Description copied from interface:UserPrincipalA list of permissions the principal has.- Specified by:
getPermissionsin interfaceUserPrincipal- Returns:
- a List of Permissions objects
-
setPermissions
Description copied from interface:UserPrincipalSpecifies the permissions the principal should have.- Specified by:
setPermissionsin interfaceUserPrincipal- Parameters:
permissions- a List of Permission objects
-
getName
Deprecated.usegetUsername()Do not use - only here to satisfy Principal implementation requirement.- Specified by:
getNamein interfacePrincipal- Specified by:
getNamein interfaceUserPrincipal- Returns:
- the value of
getUsername()
-
getUsername()