Interface User<TOrganisation extends Organisation,​TPerson extends Person,​TPrincipal extends Principal<TPerson,​TPrivilege,​TAuthenticationMean>,​TAuthenticationMean extends AuthenticationMean,​TPrivilege extends Privilege,​TRole extends Role<TOrganisation,​TPerson,​TPrivilege>>


  • public interface User<TOrganisation extends Organisation,​TPerson extends Person,​TPrincipal extends Principal<TPerson,​TPrivilege,​TAuthenticationMean>,​TAuthenticationMean extends AuthenticationMean,​TPrivilege extends Privilege,​TRole extends Role<TOrganisation,​TPerson,​TPrivilege>>
    Combines the two aspects of taking a Role linked to an authenticated Principal.

    This is usually identifies a session's user.

    • Method Detail

      • getPrincipal

        TPrincipal getPrincipal()
        The Principal by which the user is authenticated.
        Returns:
        the Principal by which the user is authenticated
      • getRole

        TRole getRole()
        The Role currently taken by the user.
        Returns:
        the Role currently taken by the user