All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.protege.webprotege.access.AccessManagerConfiguration Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.access;

import edu.stanford.protege.webprotege.authorization.*;
import edu.stanford.protege.webprotege.ipc.CommandExecutor;
import edu.stanford.protege.webprotege.ipc.impl.CommandExecutorImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 2021-08-10
 */
@Configuration
public class AccessManagerConfiguration {

    @Bean
    CommandExecutor assignedRolesExecutor() {
        return new CommandExecutorImpl<>(GetAssignedRolesResponse.class);
    }

    @Bean
    CommandExecutor setAssignedRolesExecutor() {
        return new CommandExecutorImpl<>(SetAssignedRolesResponse.class);
    }

    @Bean
    CommandExecutor getRolesExecutor() {
        return new CommandExecutorImpl<>(GetRolesResponse.class);
    }

    @Bean
    CommandExecutor getAuthorizedActionsExecutor() {
        return new CommandExecutorImpl<>(GetAuthorizedActionsResponse.class);
    }

    @Bean
    CommandExecutor getAuthorizedSubjectsExecutor() {
        return new CommandExecutorImpl<>(GetAuthorizedSubjectsResponse.class);
    }

    @Bean
    CommandExecutor getAuthorizedResourcesRequest() {
        return new CommandExecutorImpl<>(GetAuthorizedResourcesResponse.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy