Package ca.cdr.api.model.json
Interface IHasAuthorities
- All Known Implementing Classes:
UserDetailsJson
,UserSessionDetailsJson
public interface IHasAuthorities
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addAuthority
(PermissionEnum thePermission, String theArgument) default void
addAuthority
(String thePermission) default void
addAuthority
(String thePermission, String theArgument) Returns the authorities that are granted to the user/sessionhasArgumentsForAuthority
(PermissionEnum thePermission) Called from javascriptdefault boolean
hasAuthority
(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
-