Package alpine.model
Class OidcUser
- java.lang.Object
-
- alpine.model.OidcUser
-
- All Implemented Interfaces:
UserPrincipal,Serializable,Principal
public class OidcUser extends Object implements Serializable, Principal, UserPrincipal
Persistable object representing an OpenID Connect user.- Since:
- 1.8.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OidcUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetEmail()The email address of the principal.longgetId()The database id of the principal.StringgetName()Deprecated.usegetUsername()List<Permission>getPermissions()A list of permissions the principal has.StringgetSubjectIdentifier()List<Team>getTeams()A list of teams the principal is a member of.StringgetUsername()The username of the principal.voidsetEmail(String email)Specifies the email address of the principal.voidsetId(long id)Specifies the database id of the principal.voidsetPermissions(List<Permission> permissions)Specifies the permissions the principal should have.voidsetSubjectIdentifier(String subjectIdentifier)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
-
getSubjectIdentifier
public String getSubjectIdentifier()
-
setSubjectIdentifier
public void setSubjectIdentifier(String subjectIdentifier)
-
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
-
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()
-
-