use of org.bimserver.database.actions.GetModelMergerByIdDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getModelMergerById.
@Override
public SModelMergerPluginConfiguration getModelMergerById(Long oid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetModelMergerByIdDatabaseAction(session, getInternalAccessMethod(), oid)));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations