public OpenStudy open(final User user, final Study study) {
ResourceBundle custom = ResourceBundle.getBundle("som",
getApplicationSettings().getCurrentLocale());
- SimpleDateFormat datstring = new SimpleDateFormat(custom
- .getString("date.format"));
+ SimpleDateFormat datstring = new SimpleDateFormat(
+ custom.getString("date.format"));
Revision.Format verstring = new Revision.Format(getProjectSettings()
.getRevisionPattern());
}
public String getType() {
- return ResourceBundle.getBundle("labels",
- getApplicationSettings().getCurrentLocale()).getString(
- "label.study");
+ /*
+ * RKV: return ResourceBundle.getBundle("labels", getApplicationSettings().getCurrentLocale()).getString( "label.study");
+ */
+ return "study";
}
public String getVersion() {
// Transfer to the document of all known properties
ResourceBundle locale = ResourceBundle.getBundle("som",
getApplicationSettings().getCurrentLocale());
- SimpleDateFormat get = new SimpleDateFormat(locale
- .getString("date.format"));
+ SimpleDateFormat get = new SimpleDateFormat(
+ locale.getString("date.format"));
Writer tool = Toolbox.getWriter(credoc);
List<Step> slist = getInvolvedSteps();
for (Iterator<Step> i = slist.iterator(); i.hasNext();) {
for (Iterator<SimulationContext> j = clist.iterator(); j
.hasNext();) {
SimulationContext context = j.next();
- tool.updateProperty(context.getType().getName(), context
- .getValue());
+ tool.updateProperty(context.getType().getName(),
+ context.getValue());
}
}
tool.updateProperty("reference", medoc.getReference());
tool.updateProperty("study", _mystudy.getTitle());
- tool.updateProperty("step", locale.getString(
- "folder.step." + step.getNumber()).replaceAll("''", "'"));
+ tool.updateProperty("step",
+ locale.getString("folder.step." + step.getNumber())
+ .replaceAll("''", "'"));
tool.updateProperty("author", author.getUsername().toUpperCase());
tool.updateProperty("date", get.format(medoc.getCreationDate()));
tool.updateProperty("history", locale.getString("label.creation")
}
protected void add(final KnowledgeElement kelm) {
- KnowledgeElementFacade facade = new KnowledgeElementFacade(BeanHelper
- .copyBean(kelm, KnowledgeElementDTO.class),
+ KnowledgeElementFacade facade = new KnowledgeElementFacade(
+ BeanHelper.copyBean(kelm, KnowledgeElementDTO.class),
getApplicationSettings());
// RKV KnowledgeIterator known = knowledge.get(kelm.getType().getIndex() - 2);
// Knowledges are ordered by type index, from 0 to n-1, the first one being reserved (reason for -2)