Package alpine.model
Class ManagedUser
- java.lang.Object
-
- alpine.model.ManagedUser
-
- All Implemented Interfaces:
UserPrincipal,Serializable,Principal
public class ManagedUser extends Object implements Serializable, Principal, UserPrincipal
Persistable object representing an ManagedUser.- Since:
- 1.0.0
- Author:
- Steve Springett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManagedUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetConfirmPassword()StringgetEmail()The email address of the principal.StringgetFullname()longgetId()The database id of the principal.DategetLastPasswordChange()StringgetName()Deprecated.usegetUsername()StringgetNewPassword()StringgetPassword()List<Permission>getPermissions()A list of permissions the principal has.List<Team>getTeams()A list of teams the principal is a member of.StringgetUsername()The username of the principal.booleanisForcePasswordChange()booleanisNonExpiryPassword()booleanisSuspended()voidsetConfirmPassword(String confirmPassword)voidsetEmail(String email)Specifies 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)voidsetTeams(List<Team> teams)Specifies the teams the principal is a member of.voidsetUsername(String username)Specifies the username of the principal.
-
-
-
Method Detail
-
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
public String getUsername()
Description copied from interface:UserPrincipalThe username of the principal.- Specified by:
getUsernamein interfaceUserPrincipal- Returns:
- a String of the username
-
setUsername
public void setUsername(String username)
Description copied from interface:UserPrincipalSpecifies the username of the principal.- Specified by:
setUsernamein interfaceUserPrincipal- Parameters:
username- the username of the principal
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getNewPassword
public String getNewPassword()
-
setNewPassword
public void setNewPassword(String newPassword)
-
getConfirmPassword
public String getConfirmPassword()
-
setConfirmPassword
public void setConfirmPassword(String confirmPassword)
-
getLastPasswordChange
public Date getLastPasswordChange()
-
setLastPasswordChange
public void setLastPasswordChange(Date lastPasswordChange)
-
getFullname
public String getFullname()
-
setFullname
public void setFullname(String fullname)
-
getEmail
public String getEmail()
Description copied from interface:UserPrincipalThe email address of the principal.- Specified by:
getEmailin interfaceUserPrincipal- Returns:
- a String of the email address
-
setEmail
public void setEmail(String email)
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
public List<Team> 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
public void setTeams(List<Team> teams)
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
public List<Permission> getPermissions()
Description copied from interface:UserPrincipalA list of permissions the principal has.- Specified by:
getPermissionsin interfaceUserPrincipal- Returns:
- a List of Permissions objects
-
setPermissions
public void setPermissions(List<Permission> permissions)
Description copied from interface:UserPrincipalSpecifies the permissions the principal should have.- Specified by:
setPermissionsin interfaceUserPrincipal- Parameters:
permissions- a List of Permission objects
-
getName
@Deprecated public String 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()
-
-