use of org.bimserver.database.actions.GetModelCheckerOidDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getModelCheckerInstance.
@Override
public SModelCheckerInstance getModelCheckerInstance(Long mcioid) throws UserException, ServerException {
requireAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
GetModelCheckerOidDatabaseAction action = new GetModelCheckerOidDatabaseAction(session, getInternalAccessMethod(), mcioid);
return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(action));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations