use of edu.stanford.bmir.protege.web.server.access.AccessManager in project webprotege by protegeproject.
the class RebuildPermissions method run.
public void run() {
System.out.println("Rebuilding permissions...");
MongoClient mongoClient = new MongoClient();
MorphiaProvider morphiaProvider = new MorphiaProvider(new UserIdConverter(), new OWLEntityConverter(new OWLDataFactoryImpl()), new ProjectIdConverter(), new ThreadIdConverter(), new CommentIdConverter(), new CollectionIdConverter(), new FormIdConverter(), new TagIdConverter(), new ColorConverter());
Morphia morphia = morphiaProvider.get();
Datastore datastore = morphia.createDatastore(mongoClient, "webprotege");
AccessManager accessManager = new AccessManagerImpl(RoleOracleImpl.get(), datastore);
accessManager.rebuild();
mongoClient.close();
System.out.println("Finished rebuilding permissions");
}
Aggregations