use of org.bimserver.database.actions.UpdateRenderEngineDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method updateRenderEngine.
@Override
public void updateRenderEngine(SRenderEnginePluginConfiguration renderEngine) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
RenderEnginePluginConfiguration convert = session.get(renderEngine.getOid(), OldQuery.getDefault());
getBimServer().getSConverter().convertFromSObject(renderEngine, convert, session);
session.executeAndCommitAction(new UpdateRenderEngineDatabaseAction(session, getInternalAccessMethod(), convert));
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
}
Aggregations