use of org.bimserver.database.actions.RemoveModelCheckerFromProjectDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method removeModelCheckerFromProject.
@Override
public void removeModelCheckerFromProject(Long poid, Long modelCheckerOid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<Boolean> action = new RemoveModelCheckerFromProjectDatabaseAction(getBimServer(), session, getInternalAccessMethod(), modelCheckerOid, poid, getAuthorization());
session.executeAndCommitAction(action);
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
}
Aggregations