import org.splat.dal.bo.som.SimulationContext;
import org.splat.dal.bo.som.SimulationContextType;
import org.splat.dal.bo.som.Study;
-import org.splat.dal.bo.som.Visibility;
import org.splat.kernel.InvalidPropertyException;
import org.splat.service.SearchService;
import org.splat.service.technical.ProjectSettingsService;
User him = getUserService().selectUser(index);
sprop.setManager(him);
}
- // Set of the visibility
- Study.Properties other = sprop.copy();
-
- other.setVisibility(Visibility.PUBLIC);
- sprop.setVisibility(Visibility.PRIVATE);
sprop.setActor(getConnectedUser());
- _result = getSearchService().selectStudiesWhere(sprop, other);
+ _result = getSearchService().selectStudiesWhere(
+ "all".equals(_criteriaMatch), "all".equals(_contextMatch),
+ sprop);
session.put(RESULT_KEY, _result); // For redisplaying the page without re-executing the search
return "refresh";
}