Class HiOrgServerProfile
- java.lang.Object
-
- org.pac4j.core.profile.BasicUserProfile
-
- org.pac4j.core.profile.CommonProfile
-
- org.pac4j.oauth.profile.OAuth20Profile
-
- org.pac4j.oauth.profile.hiorgserver.HiOrgServerProfile
-
- All Implemented Interfaces:
Externalizable
,Serializable
,UserProfile
public class HiOrgServerProfile extends OAuth20Profile
This class is the user profile for HiOrg-Server with appropriate getters. It is returned by theHiOrgServerClient
.- Since:
- 3.2.0
- Author:
- Martin Boehmer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description HiOrgServerProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlternativeId()
An alternative identifier to uniquely identify a HiOrg-Server user.String
getDisplayName()
String
getFamilyName()
String
getFirstName()
String
getOrganisationId()
String
getOrganisationName()
String
getPosition()
int
getRolesAsInteger()
String
getTypedAlternativeId()
A alternative, typed identifier based ongetAlternativeId()
.String
getUsername()
boolean
hasRole(int roleId)
boolean
isLeader()
-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, removeLoginData, setAccessToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getEmail, getGender, getLocale, getLocation, getPictureUrl, getProfileUrl, isExpired
-
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addPermission, addPermissions, addRole, addRoles, build, build, containsAttribute, containsAuthenicationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setPermissions, setRemembered, setRoles, toString, writeExternal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pac4j.core.profile.UserProfile
asPrincipal
-
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceUserProfile
- Overrides:
getUsername
in classCommonProfile
-
getFirstName
public String getFirstName()
- Overrides:
getFirstName
in classCommonProfile
-
getFamilyName
public String getFamilyName()
- Overrides:
getFamilyName
in classCommonProfile
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classCommonProfile
-
getRolesAsInteger
public int getRolesAsInteger()
-
hasRole
public boolean hasRole(int roleId)
-
getOrganisationId
public String getOrganisationId()
-
getOrganisationName
public String getOrganisationName()
-
getPosition
public String getPosition()
-
isLeader
public boolean isLeader()
-
getAlternativeId
public String getAlternativeId()
An alternative identifier to uniquely identify a HiOrg-Server user.- Returns:
- username and the organisation id, joined by an at-sign, lowercase
-
getTypedAlternativeId
public String getTypedAlternativeId()
A alternative, typed identifier based ongetAlternativeId()
.- Returns:
- the class name and
getAlternativeId()
, joined by the seperator constant
-
-