use of org.bimserver.database.actions.DeleteQueryEngineDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method deleteQueryEngine.
@Override
public void deleteQueryEngine(Long iid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<Void> action = new DeleteQueryEngineDatabaseAction(session, getInternalAccessMethod(), iid);
session.executeAndCommitAction(action);
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
}
Aggregations