*
* @see org.splat.service.StudyService#addProjectContext(org.splat.dal.bo.som.Study, org.splat.dal.bo.som.SimulationContext.Properties)
*/
+ @Transactional
public SimulationContext addProjectContext(Study aStudy,
SimulationContext.Properties cprop) throws MissedPropertyException,
InvalidPropertyException, MultiplyDefinedException {
*
* @see org.splat.service.StudyService#addProjectContext(org.splat.dal.bo.som.Study, org.splat.dal.bo.som.SimulationContext)
*/
+ @Transactional
public SimulationContext addProjectContext(Study aStudy,
SimulationContext context) {
SimulationContext added = getStepService().addSimulationContext(
setShortCuts(aStudy); // RKV: initialize transient actors set
getIndex().update(aStudy); // Update of Lucene index
isOk = true;
- } catch (Exception error) {
- logger.error("Unable to re-index the study '" + aStudy.getIndex()
- + "', reason:", error);
+ } catch (Exception e) {
+ logger.error("STD-000001", e, aStudy.getIndex(), e.getMessage());
}
return isOk;
}
if (i == format.length)
break;
}
- DecimalFormat tostring = new DecimalFormat(
- pattern.substring(n, i));
+ DecimalFormat tostring = new DecimalFormat(pattern
+ .substring(n, i));
String number = tostring.format(next);
for (int j = 0; j < number.length(); j++) {
ref[count] = number.charAt(j);
if (actype[i] == Actor.manager) {
actor = from.getAuthor();
} else if (actype[i] == Actor.Nx1) {
- List<User> manager = getUserService()
- .selectUsersWhere(uprop
- .setOrganizationName("Nx1"));
+ List<User> manager = getUserService().selectUsersWhere(
+ uprop.setOrganizationName("Nx1"));
if (manager.size() == 1)
actor = manager.get(0);
} else if (actype[i] == Actor.Nx2) {
- List<User> manager = getUserService()
- .selectUsersWhere(uprop
- .setOrganizationName("Nx2"));
+ List<User> manager = getUserService().selectUsersWhere(
+ uprop.setOrganizationName("Nx2"));
if (manager.size() == 1)
actor = manager.get(0);
} else { /* Actor.customer */
/**
* Get the userService.
+ *
* @return the userService
*/
public UserService getUserService() {
/**
* Set the userService.
- * @param userService the userService to set
+ *
+ * @param userService
+ * the userService to set
*/
public void setUserService(UserService userService) {
_userService = userService;