Interface ProfileKit

All Known Implementing Classes:
DefaultProfileKit

public interface ProfileKit
Profile Service. This service provides centralized access to the user profile.
  • Method Summary

    Modifier and Type
    Method
    Description
    <P extends Profile>
    P
    Returns the valid profile associated with the current process if the profile is present.
    void
    Associate the profile with the current process.
  • Method Details

    • getProfile

      <P extends Profile> P getProfile()
      Returns the valid profile associated with the current process if the profile is present. If it is impossible to determine current user profile method returns common profile CommonProfileCreator Method must retrieve the profile from any source (eg from the data port) then validate, enrich (if needed) and cache it for a subsequent quick return within the current thread. Can throws an exception in case the profile is inconsistent.
    • setProfile

      void setProfile(Profile profile)
      Associate the profile with the current process. The method can store the principal to any source (eg write it to the data port to store it on remote client) in order to return it on subsequent requests.