use of org.hisp.dhis.security.authority.AppsSystemAuthoritiesProvider in project dhis2-core by dhis2.
the class AuthoritiesProviderConfig method systemAuthoritiesProvider.
@Primary
@Bean("org.hisp.dhis.security.SystemAuthoritiesProvider")
public SystemAuthoritiesProvider systemAuthoritiesProvider() {
SchemaAuthoritiesProvider schemaAuthoritiesProvider = new SchemaAuthoritiesProvider(schemaService);
AppsSystemAuthoritiesProvider appsSystemAuthoritiesProvider = new AppsSystemAuthoritiesProvider(appManager);
DetectingSystemAuthoritiesProvider detectingSystemAuthoritiesProvider = new DetectingSystemAuthoritiesProvider();
detectingSystemAuthoritiesProvider.setRequiredAuthoritiesProvider(requiredAuthoritiesProvider());
CompositeSystemAuthoritiesProvider provider = new CompositeSystemAuthoritiesProvider();
provider.setSources(ImmutableSet.of(new CachingSystemAuthoritiesProvider(detectingSystemAuthoritiesProvider), new CachingSystemAuthoritiesProvider(moduleSystemAuthoritiesProvider()), new CachingSystemAuthoritiesProvider(simpleSystemAuthoritiesProvider()), schemaAuthoritiesProvider, appsSystemAuthoritiesProvider));
return provider;
}
Aggregations