Class AuthenticationUiPolicyStore
java.lang.Object
io.jmix.securityflowui.impl.constraint.AuthenticationUiPolicyStore
- All Implemented Interfaces:
UiPolicyStore
@Component("sec_AuthenticationUiPolicyStore")
public class AuthenticationUiPolicyStore
extends Object
implements UiPolicyStore
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Stream<T>
getMenuResourcePolicies
(String menuId) protected String
getScope
(org.springframework.security.core.Authentication authentication) getViewResourcePolicies
(String viewId) protected boolean
isAppliedForScope
(PolicyAwareGrantedAuthority policyAwareAuthority, String scope)
-
Field Details
-
currentAuthentication
-
-
Constructor Details
-
AuthenticationUiPolicyStore
public AuthenticationUiPolicyStore()
-
-
Method Details
-
getViewResourcePolicies
- Specified by:
getViewResourcePolicies
in interfaceUiPolicyStore
-
getMenuResourcePolicies
- Specified by:
getMenuResourcePolicies
in interfaceUiPolicyStore
-
extractFromAuthenticationByScope
protected <T> Stream<T> extractFromAuthenticationByScope(Function<PolicyAwareGrantedAuthority, Stream<T>> extractor) -
getScope
@Nullable protected String getScope(org.springframework.security.core.Authentication authentication) -
isAppliedForScope
protected boolean isAppliedForScope(PolicyAwareGrantedAuthority policyAwareAuthority, @Nullable String scope)
-