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, org.pac4j.core.profile.UserProfile

public class HiOrgServerProfile extends OAuth20Profile
This class is the user profile for HiOrg-Server with appropriate getters. It is returned by the HiOrgServerClient.
Since:
3.2.0
Author:
Martin Boehmer
See Also:
  • Constructor Details

    • HiOrgServerProfile

      public HiOrgServerProfile()
  • Method Details

    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.pac4j.core.profile.UserProfile
      Overrides:
      getUsername in class org.pac4j.core.profile.CommonProfile
    • getFirstName

      public String getFirstName()
      Overrides:
      getFirstName in class org.pac4j.core.profile.CommonProfile
    • getFamilyName

      public String getFamilyName()
      Overrides:
      getFamilyName in class org.pac4j.core.profile.CommonProfile
    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class org.pac4j.core.profile.CommonProfile
    • 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 on getAlternativeId().
      Returns:
      the class name and getAlternativeId(), joined by the seperator constant