Examples of InMemoryAuthorizations


Examples of org.securegraph.inmemory.InMemoryAuthorizations

    @Override
    public Authorizations getAuthorizations(User user, String... additionalAuthorizations) {
        List<String> auths = new ArrayList<String>();
        Collections.addAll(auths, ((InMemoryUser) user).getAuthorizations());
        Collections.addAll(auths, additionalAuthorizations);
        return new InMemoryAuthorizations(auths.toArray(new String[auths.size()]));
    }
View Full Code Here

Examples of org.securegraph.inmemory.InMemoryAuthorizations

        extractor = new PhoneNumberGraphPropertyWorker();
        extractor.setConfiguration(configuration);
        extractor.setVisibilityTranslator(visibilityTranslator);

        FileSystem hdfsFileSystem = null;
        authorizations = new InMemoryAuthorizations(TermMentionRepository.VISIBILITY);
        Injector injector = null;
        List<TermMentionFilter> termMentionFilters = new ArrayList<TermMentionFilter>();
        GraphPropertyWorkerPrepareData workerPrepareData = new GraphPropertyWorkerPrepareData(config, termMentionFilters, hdfsFileSystem, user, authorizations, injector);
        graph = new InMemoryGraph();
        visibility = new Visibility("");
View Full Code Here

Examples of org.securegraph.inmemory.InMemoryAuthorizations

    private Map<String, InMemoryRelationship> relationshipsCache = new HashMap<String, InMemoryRelationship>();
    private List<OwlData> fileCache = new ArrayList<OwlData>();

    public void init(Configuration config) throws Exception {
        clearCache();
        Authorizations authorizations = new InMemoryAuthorizations(VISIBILITY_STRING);
        owlConfig.setMissingImportHandlingStrategy(MissingImportHandlingStrategy.SILENT);
        if (!isOntologyDefined()) {
            LOGGER.info("Base ontology not defined. Creating a new ontology.");
            defineOntology(config, authorizations);
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.