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:
  • Constructor Details

    • ManagedUser

      public ManagedUser()
  • Method Details

    • getId

      public long getId()
      Description copied from interface: UserPrincipal
      The database id of the principal.
      Specified by:
      getId in interface UserPrincipal
      Returns:
      a long of the unique id
    • setId

      public void setId(long id)
      Description copied from interface: UserPrincipal
      Specifies the database id of the principal.
      Specified by:
      setId in interface UserPrincipal
      Parameters:
      id - a long of the unique id
    • getUsername

      public String getUsername()
      Description copied from interface: UserPrincipal
      The username of the principal.
      Specified by:
      getUsername in interface UserPrincipal
      Returns:
      a String of the username
    • setUsername

      public void setUsername(String username)
      Description copied from interface: UserPrincipal
      Specifies the username of the principal.
      Specified by:
      setUsername in interface UserPrincipal
      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: UserPrincipal
      The email address of the principal.
      Specified by:
      getEmail in interface UserPrincipal
      Returns:
      a String of the email address
    • setEmail

      public void setEmail(String email)
      Description copied from interface: UserPrincipal
      Specifies the email address of the principal.
      Specified by:
      setEmail in interface UserPrincipal
      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: UserPrincipal
      A list of teams the principal is a member of.
      Specified by:
      getTeams in interface UserPrincipal
      Returns:
      a List of Team objects
    • setTeams

      public void setTeams(List<Team> teams)
      Description copied from interface: UserPrincipal
      Specifies the teams the principal is a member of.
      Specified by:
      setTeams in interface UserPrincipal
      Parameters:
      teams - a List of Team objects
    • getPermissions

      public List<Permission> getPermissions()
      Description copied from interface: UserPrincipal
      A list of permissions the principal has.
      Specified by:
      getPermissions in interface UserPrincipal
      Returns:
      a List of Permissions objects
    • setPermissions

      public void setPermissions(List<Permission> permissions)
      Description copied from interface: UserPrincipal
      Specifies the permissions the principal should have.
      Specified by:
      setPermissions in interface UserPrincipal
      Parameters:
      permissions - a List of Permission objects
    • getName

      @Deprecated public String getName()
      Deprecated.
      Do not use - only here to satisfy Principal implementation requirement.
      Specified by:
      getName in interface Principal
      Specified by:
      getName in interface UserPrincipal
      Returns:
      the value of getUsername()