- 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>
PgetProfile()Returns the valid profile associated with the current process if the profile is present.voidsetProfile(Profile profile)Associate the profile with the current process.
-
Method Details
-
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 profileCommonProfileCreatorMethod 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
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.
-