@Component(value="sec_AuthenticationUiPolicyStore") public class AuthenticationUiPolicyStore extends java.lang.Object implements UiPolicyStore
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationUiPolicyStore.MenuResourcePolicyByIdIndex |
static class |
AuthenticationUiPolicyStore.ScreenResourcePolicyByIdIndex |
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.security.CurrentAuthentication |
currentAuthentication |
Constructor and Description |
---|
AuthenticationUiPolicyStore() |
Modifier and Type | Method and Description |
---|---|
protected <T> java.util.stream.Stream<T> |
extractFromAuthenticationByScope(java.util.function.Function<PolicyAwareGrantedAuthority,java.util.stream.Stream<T>> extractor) |
java.util.stream.Stream<ResourcePolicy> |
getMenuResourcePolicies(java.lang.String menuId) |
protected java.lang.String |
getScope(org.springframework.security.core.Authentication authentication) |
java.util.stream.Stream<ResourcePolicy> |
getScreenResourcePolicies(java.lang.String windowId) |
protected boolean |
isAppliedForScope(PolicyAwareGrantedAuthority policyAwareAuthority,
java.lang.String scope) |
@Autowired protected io.jmix.core.security.CurrentAuthentication currentAuthentication
public java.util.stream.Stream<ResourcePolicy> getScreenResourcePolicies(java.lang.String windowId)
getScreenResourcePolicies
in interface UiPolicyStore
public java.util.stream.Stream<ResourcePolicy> getMenuResourcePolicies(java.lang.String menuId)
getMenuResourcePolicies
in interface UiPolicyStore
protected <T> java.util.stream.Stream<T> extractFromAuthenticationByScope(java.util.function.Function<PolicyAwareGrantedAuthority,java.util.stream.Stream<T>> extractor)
@Nullable protected java.lang.String getScope(org.springframework.security.core.Authentication authentication)
protected boolean isAppliedForScope(PolicyAwareGrantedAuthority policyAwareAuthority, @Nullable java.lang.String scope)