use of org.bimserver.database.actions.GetAllModelCheckersDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getAllModelCheckers.
@Override
public List<SModelCheckerInstance> getAllModelCheckers() throws UserException, ServerException {
requireAuthenticationAndRunningServer();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return getBimServer().getSConverter().convertToSListModelCheckerInstance(session.executeAndCommitAction(new GetAllModelCheckersDatabaseAction(session, getInternalAccessMethod())));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations