use of org.bimserver.database.actions.GetDataObjectsDatabaseAction in project BIMserver by opensourceBIM.
the class LowLevelServiceImpl method getDataObjects.
@Override
public List<SDataObject> getDataObjects(Long roid) throws ServerException, UserException {
requireAuthenticationAndRunningServer();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<List<DataObject>> action = new GetDataObjectsDatabaseAction(session, getInternalAccessMethod(), getBimServer(), roid, getAuthorization());
return getBimServer().getSConverter().convertToSListDataObject(session.executeAndCommitAction(action));
} catch (BimserverDatabaseException e) {
handleException(e);
} finally {
session.close();
}
return null;
}
Aggregations