Interface AuthorizationGenerator
-
- All Known Implementing Classes:
DefaultRolesPermissionsAuthorizationGenerator
,FromAttributesAuthorizationGenerator
,LoadLinkedUserAuthorizationGenerator
,SpringSecurityPropertiesAuthorizationGenerator
public interface AuthorizationGenerator
Generate the authorization roles and permissions for this user profile.- Since:
- 1.5.0
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<UserProfile>
generate(WebContext context, UserProfile profile)
Generate the authorization information from and for the user profile.
-
-
-
Method Detail
-
generate
Optional<UserProfile> generate(WebContext context, UserProfile profile)
Generate the authorization information from and for the user profile.- Parameters:
context
- the web contextprofile
- the user profile for which to generate the authorization information.- Returns:
- the updated profile or a new one (optional)
-
-