Package io.lumify.core.model.user

Examples of io.lumify.core.model.user.InMemoryAuthorizationRepository


    private UserListenerUtil userListenerUtil;

    @Before
    public void setup() {
        InMemoryGraphConfiguration config = new InMemoryGraphConfiguration(new HashMap());
        authorizationRepository = new InMemoryAuthorizationRepository();
        authorizationRepository.addAuthorizationToGraph(LumifyVisibility.SUPER_USER_VISIBILITY_STRING.toString());
        when(ontologyRepository.getOrCreateConcept((Concept) isNull(), eq(UserRepository.USER_CONCEPT_IRI), anyString(), (java.io.File) anyObject())).thenReturn(userConcept);
        when(userConcept.getTitle()).thenReturn(UserRepository.USER_CONCEPT_IRI);

        Configuration lumifyConfiguration = new HashMapConfigurationLoader(new HashMap()).createConfiguration();;
View Full Code Here


    protected void setup(Context context) throws IOException, InterruptedException {
        super.setup(context);

        this.visibility = new Visibility("");
        this.authorizations = new AccumuloAuthorizations();
        AuthorizationRepository authorizationRepository = new InMemoryAuthorizationRepository();
        try {
            Map configurationMap = SecureGraphMRUtils.toMap(context.getConfiguration());
            Configuration config = HashMapConfigurationLoader.load(configurationMap);
            this.ontologyRepository = new SecureGraphOntologyRepository(getGraph(), config, authorizationRepository);
        } catch (Exception e) {
View Full Code Here

        extractor.setConfiguration(configuration);
        extractor.setDictionaryEntryRepository(dictionaryEntryRepository);
        extractor.setVisibilityTranslator(visibilityTranslator);
        extractor.setGraph(graph);

        AuthorizationRepository authorizationRepository = new InMemoryAuthorizationRepository();
        termMentionRepository = new TermMentionRepository(graph, authorizationRepository);

        config.put(OpenNLPDictionaryExtractorGraphPropertyWorker.PATH_PREFIX_CONFIG, "file:///" + getClass().getResource(RESOURCE_CONFIG_DIR).getFile());
        FileSystem hdfsFileSystem = FileSystem.get(new Configuration());
        authorizations = new InMemoryAuthorizations();
View Full Code Here

TOP

Related Classes of io.lumify.core.model.user.InMemoryAuthorizationRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.