Package ca.cdr.api.model.json
Interface IHasAuthorities
- All Known Implementing Classes:
OAuth2ClientDetailsJson,OAuth2WritableClientDetailsJson,UserDetailsJson,UserSessionDetailsJson
public interface IHasAuthorities
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddAuthority(PermissionEnum thePermission, String theArgument) default voidaddAuthority(String thePermission) default voidaddAuthority(String thePermission, String theArgument) Returns the authorities that are granted to the user/sessionhasArgumentsForAuthority(PermissionEnum thePermission) Called from javascriptdefault booleanhasAuthority(PermissionEnum thePermission) Returns true if the user has an authority matching this permission, including any that require arguments (in other words, this check is not argument aware)
-
Method Details
-
getPermissions
Returns the authorities that are granted to the user/session -
hasAuthority
Returns true if the user has an authority matching this permission, including any that require arguments (in other words, this check is not argument aware) -
hasArgumentsForAuthority
Called from javascript -
addAuthority
-
addAuthority
-
addAuthority
-