.uniqueResult();
}
- public static KnowledgeElement selectKnowledgeElement(int index) {
- // -----------------------------------------------------------------
- StringBuffer query = new StringBuffer(
- "from KnowledgeElement where rid='").append(index).append("'");
- KnowledgeElement result = (KnowledgeElement) Database.getSession()
- .createQuery(query.toString()).uniqueResult();
-
- result.getOwnerScenario().getOwnerStudy().loadWorkflow();
- return result;
- }
-
public static SimulationContext selectSimulationContext(int index) {
// -------------------------------------------------------------------
StringBuffer query = new StringBuffer(
query.toString()).list();
}
- public static Study selectStudy(int index) {
- // -------------------------------------------
- StringBuffer query = new StringBuffer("from Study where rid='").append(
- index).append("'");
- Study result = (Study) Database.getSession().createQuery(
- query.toString()).uniqueResult();
-
- result.loadWorkflow();
- return result;
- }
-
- public static Study selectStudy(String refid) {
- // ----------------------------------------------
- StringBuffer query = new StringBuffer("from Study where sid='").append(
- refid).append("'");
- Study result = (Study) Database.getSession().createQuery(
- query.toString()).uniqueResult();
-
- result.loadWorkflow();
- return result;
- }
-
protected static IDBuilder selectIDBuilder(int cycle) {
// ------------------------------------------------------
StringBuffer buffer = new StringBuffer("from IDBuilder where cycle='")
public void rename(KnowledgeElement knowledgeElement, String title)
throws InvalidPropertyException;
+
+ public KnowledgeElement selectKnowledgeElement(int index);
}
update(knowledgeElement);
}
+ public KnowledgeElement selectKnowledgeElement(int index) {
+ // -----------------------------------------------------------------
+ StringBuffer query = new StringBuffer(
+ "from KnowledgeElement where rid='").append(index).append("'");
+ KnowledgeElement result = (KnowledgeElement) Database.getSession()
+ .createQuery(query.toString()).uniqueResult();
+
+ result.getOwnerScenario().getOwnerStudy().loadWorkflow();
+ return result;
+ }
+
/**
* @return
*/
public int generateLocalIndex(Study aStudy);
+ public Study selectStudy(int index);
+
public Study createStudy(Study.Properties sprop)
throws MissedPropertyException, InvalidPropertyException,
MultiplyDefinedException, RuntimeException;
private ProjectElementService _projectElementService;
+ public Study selectStudy(int index) {
+ // -------------------------------------------
+ StringBuffer query = new StringBuffer("from Study where rid='").append(
+ index).append("'");
+ Study result = (Study) Database.getSession().createQuery(
+ query.toString()).uniqueResult();
+
+ result.loadWorkflow();
+ return result;
+ }
+
+ public Study selectStudy(String refid) {
+ // ----------------------------------------------
+ StringBuffer query = new StringBuffer("from Study where sid='").append(
+ refid).append("'");
+ Study result = (Study) Database.getSession().createQuery(
+ query.toString()).uniqueResult();
+
+ result.loadWorkflow();
+ return result;
+ }
+
public Study createStudy(Study.Properties sprop)
throws MissedPropertyException, InvalidPropertyException,
MultiplyDefinedException, RuntimeException {
public int generateLocalIndex(Study aStudy) {
aStudy.setLastLocalIndex(aStudy.getLastLocalIndex() + 1);
- Database.getSession().update(this);
+ Database.getSession().update(aStudy);
return aStudy.getLastLocalIndex();
}
aStudy.getScenariiList().add(
aStudy.getScenariiList().indexOf(previous) + 1, scenario);
}
- session.update(this); // No need to update the Lucene index
+ session.update(aStudy); // No need to update the Lucene index
session.save(scenario); // Must be done after updating this study because of the back reference to the study
if (sprop.getBaseStep() != null) {
// No need to update the Knowledge Element index as Knowledge Elements are not copied
// ==============================================================================================================================
// Construction
// ==============================================================================================================================
-
- public static ProjectSettingsServiceImpl getMe () {
-// --------------------------------------
- if (my == null) my = new ProjectSettingsServiceImpl();
- return my;
- }
protected ProjectSettingsServiceImpl () {
// ----------------------------
reprop = new Properties();
steps = new Vector<ProjectSettingsService.Step>();
+ my = this;
}
// ==============================================================================================================================
private Map<String, Object> session;
private String mercode;
+ private OpenStudy _openStudy;
+ private OpenKnowledge _openKnowledge;
private static final long serialVersionUID = -895295026709526501L;
protected static final Logger logger = Logger.getLogger(Action.class);
// ------------------------------------
return (Menu)session.get("menu." + name);
}
+ public void setOpenKnowledge (OpenKnowledge kelm) {
+ _openKnowledge = kelm;
+ }
protected OpenKnowledge getOpenKnowledge () {
-// -------------------------------------------
- return (OpenKnowledge)session.get("knowledge.open"); // May be null
+ _openKnowledge = (OpenKnowledge)session.get("knowledge.open"); // May be null
+ return _openKnowledge;
}
- protected OpenStudy getOpenStudy () {
-// -----------------------------------
- return (OpenStudy)session.get("study.open"); // May be null
+ public void setOpenStudy (OpenStudy aStudy) {
+ _openStudy = aStudy;
}
+ public OpenStudy getOpenStudy () {
+ _openStudy = (OpenStudy)session.get("study.open");
+ return _openStudy; // May be null
+ }
protected OpenKnowledge open (KnowledgeElement kelm) {
// ----------------------------------------------------
- OpenKnowledge open = new OpenKnowledge(kelm);
+ OpenKnowledge open = _openKnowledge.open(kelm);
closeKnowledge(); // Just in case
session.put("knowledge.open", open);
}
protected OpenStudy open (Study study) {
// --------------------------------------
- OpenStudy open = new OpenStudy(getConnectedUser(), study); // The connected user may be null
+ OpenStudy open = _openStudy.open(getConnectedUser(), study); // The connected user may be null
closeStudy(); // Just in case
session.put("study.open", open);
import org.hibernate.Transaction;
import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.KnowledgeElement;
+import org.splat.service.KnowledgeElementService;
import org.splat.som.Step;
public class DisplayKnowledgeAction extends DisplayBaseAction {
protected OpenKnowledge myknelm = null; // Knowledge Element details
+
+ private KnowledgeElementService _knowledgeElementService;
private static final long serialVersionUID = 8473504456981431762L;
if (myknelm != null && myknelm.getIndex() == index) { // - The selected knowledge is currently open
selection = myknelm.getSelection(); // Current selection
} else { // - The selected knowledge is new
- KnowledgeElement kelm = Database.selectKnowledgeElement(index);
+ KnowledgeElement kelm = getKnowledgeElementService().selectKnowledgeElement(index);
myknelm = open(kelm);
selection = myknelm.getSelection(); // Default selection
}
return ERROR;
}
else if (selection != null) { // Re-opening (refreshing) the currently open knowledge
- KnowledgeElement kelm = Database.selectKnowledgeElement(myknelm.getIndex());
+ KnowledgeElement kelm = getKnowledgeElementService().selectKnowledgeElement(myknelm.getIndex());
myknelm = open(kelm); // Closes the previously open knowledge
myknelm.setSelection(selection);
}
// -------------------------------
return "false";
}
+
+ /**
+ * Get the knowledgeElementService.
+ * @return the knowledgeElementService
+ */
+ public KnowledgeElementService getKnowledgeElementService() {
+ return _knowledgeElementService;
+ }
+
+ /**
+ * Set the knowledgeElementService.
+ * @param knowledgeElementService the knowledgeElementService to set
+ */
+ public void setKnowledgeElementService(
+ KnowledgeElementService knowledgeElementService) {
+ _knowledgeElementService = knowledgeElementService;
+ }
}
\ No newline at end of file
import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.ProjectElement;
import org.splat.dal.bo.som.Scenario;
+import org.splat.service.StudyService;
import org.splat.som.StepRights;
import org.splat.dal.bo.som.Study;
import org.splat.wapp.PopupMenu;
protected OpenStudy mystudy = null; // Presented study
+ private StudyService _studyService;
+
private static final long serialVersionUID = 6467920934724352021L;
// ==============================================================================================================================
selection = mystudy.getSelection(); // Current selection
study = mystudy.getStudyObject(); // Current Study object
} else { // - The selected study is new
- study = Database.selectStudy(index);
+ study = getStudyService().selectStudy(index);
mystudy = open(study);
selection = mystudy.getSelection(); // Default selection
}
study = mystudy.getStudyObject();
}
else { // Re-opening (refreshing) the currently open study
- study = Database.selectStudy(mystudy.getIndex());
+ study = getStudyService().selectStudy(mystudy.getIndex());
mystudy = open(study); // Closes the previously open study
mystudy.setSelection(selection);
}
// -------------------------------
return String.valueOf(mystudy.isOpenForWriting());
}
+
+ /**
+ * Get the studyService.
+ *
+ * @return the studyService
+ */
+ public StudyService getStudyService() {
+ return _studyService;
+ }
+
+ /**
+ * Set the studyService.
+ *
+ * @param studyService
+ * the studyService to set
+ */
+ public void setStudyService(StudyService studyService) {
+ _studyService = studyService;
+ }
}
\ No newline at end of file
import org.splat.dal.bo.som.Scenario;
import org.splat.dal.bo.som.SimulationContext;
import org.splat.service.ProjectElementService;
+import org.splat.service.technical.ProjectSettingsService;
import org.splat.som.Step;
import org.splat.wapp.SimpleMenu;
private KnowledgeElement myknelm;
private String credate;
private ProjectElementService _projectElementService;
+ private ProjectSettingsService _projectSettingsService;
public class Menu extends SimpleMenu {
// ------------------------------------
// Constructor
// ==============================================================================================================================
- public OpenKnowledge(KnowledgeElement knelm) {
+ public OpenKnowledge open (KnowledgeElement knelm) {
// ---------------------------------------------
ResourceBundle label = ResourceBundle.getBundle("labels",
ApplicationSettings.getCurrentLocale());
ustep = next;
for (Iterator<SimulationContext> j = next
.getAllSimulationContexts().iterator(); j.hasNext();) {
- context.add(new SimulationContextFacade(j.next()));
+ context.add(new SimulationContextFacade(j.next(), getProjectSettings().getAllSteps()));
}
}
value.append("<p>").append("<b>")
.append(".").append("</p>");
description = value.toString();
setupContents(); // Initializes documents and knowledge at ustep
+ return this;
}
// ==============================================================================================================================
ProjectElementService projectElementService) {
_projectElementService = projectElementService;
}
+
+ /**
+ * Get project settings.
+ * @return Project settings service
+ */
+ private ProjectSettingsService getProjectSettings() {
+ return _projectSettingsService;
+ }
+
+ /**
+ * Set project settings service.
+ * @param projectSettingsService project settings service
+ */
+ public void setProjectSettings(
+ ProjectSettingsService projectSettingsService) {
+ _projectSettingsService = projectSettingsService;
+ }
}
\ No newline at end of file
import org.splat.dal.bo.som.KnowledgeElement;
import org.splat.dal.bo.som.ProgressState;
import org.splat.service.ProjectElementService;
+import org.splat.service.ScenarioService;
import org.splat.service.technical.ProjectSettingsService;
import org.splat.dal.bo.som.Publication;
import org.splat.som.Revision;
private Publication selecdoc;
private ProjectSettingsService _projectSettingsService;
private ProjectElementService _projectElementService;
+ private ScenarioService _scenarioService;
protected final static Logger logger = org.splat.simer.Action.logger;
// Constructor
// ==============================================================================================================================
- public OpenStudy (User user, Study study) {
+ public OpenStudy open (User user, Study study) {
// -----------------------------------------
ResourceBundle custom = ResourceBundle.getBundle("som", ApplicationSettings.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());
-
+
cuser = user; // May be null if nobody connected
mystudy = study;
selection = "0.1"; // Default selection
ustep.setActor(cuser);
involving.add(ustep);
for (Iterator<SimulationContext> i=ustep.getAllSimulationContexts().iterator(); i.hasNext(); ) {
- context.add( new SimulationContextFacade(i.next()) );
+ context.add( new SimulationContextFacade(i.next(), getProjectSettings().getAllSteps()) );
}
if (mystudy.isStaffedBy(cuser) || mystudy.hasActor(cuser)) {
// ProgressState state = mystudy.getProgressState();
urightstep = new StepRights(cuser, ustep);
menu = new StudyMenu(mystudy);
+ ((StudyMenu)menu).setProjectElementService(getProjectElementService());
+ ((StudyMenu)menu).setScenarioService(getScenarioService());
menu.selects(selection); // Initializes menu items to be displayed
setupContents(); // Initializes documents and knowledge at ustep
+ return this;
}
// ==============================================================================================================================
protected void add (SimulationContext contex) {
// ---------------------------------------------
- SimulationContextFacade facade = new SimulationContextFacade(contex);
+ SimulationContextFacade facade = new SimulationContextFacade(contex, getProjectSettings().getAllSteps());
context.add(facade);
}
context.clear();
for (Iterator<Step> i=involving.iterator(); i.hasNext(); ) {
for (Iterator<SimulationContext> j=i.next().getAllSimulationContexts().iterator(); j.hasNext(); ) {
- context.add( new SimulationContextFacade(j.next()) );
+ context.add( new SimulationContextFacade(j.next(), getProjectSettings().getAllSteps()) );
}
}
}
ProjectElementService projectElementService) {
_projectElementService = projectElementService;
}
+
+ /**
+ * Get the scenarioService.
+ *
+ * @return the scenarioService
+ */
+ public ScenarioService getScenarioService() {
+ return _scenarioService;
+ }
+
+ /**
+ * Set the scenarioService.
+ *
+ * @param scenarioService
+ * the scenarioService to set
+ */
+ public void setScenarioService(ScenarioService scenarioService) {
+ _scenarioService = scenarioService;
+ }
}
\ No newline at end of file
package org.splat.simer;
import java.util.Iterator;
+import java.util.List;
import java.util.ResourceBundle;
import org.splat.dal.bo.som.ProgressState;
private int step;
private ProgressState state;
private PopupMenu popup;
- private ProjectSettingsService _projectSettingsService;
// ==============================================================================================================================
// Constructor
// ==============================================================================================================================
- public SimulationContextFacade (SimulationContext represented) {
+ public SimulationContextFacade (SimulationContext represented, List<ProjectSettingsService.Step> allSteps) {
// --------------------------------------------------------------
my = represented;
popup = ApplicationSettings.getPopupMenu("scontext");
SimulationContextType type = my.getType();
- for (Iterator<ProjectSettingsService.Step> i=getProjectSettings().getAllSteps().iterator(); i.hasNext(); ) {
+ for (Iterator<ProjectSettingsService.Step> i=allSteps.iterator(); i.hasNext(); ) {
ProjectSettingsService.Step next = i.next();
if (!type.isAttachedTo(next)) continue;
step = next.getNumber();
// ---------------------------------------------------------
return my.equals(represented);
}
- /**
- * Get project settings.
- * @return Project settings service
- */
- private ProjectSettingsService getProjectSettings() {
- return _projectSettingsService;
- }
-
- /**
- * Set project settings service.
- * @param projectSettingsService project settings service
- */
- public void setProjectSettings(
- ProjectSettingsService projectSettingsService) {
- _projectSettingsService = projectSettingsService;
- }
}
\ No newline at end of file
import org.hibernate.Transaction;
import org.splat.service.SearchService;
import org.splat.service.SearchServiceImpl;
+import org.splat.service.StudyService;
import org.splat.simer.Action;
import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.Study;
private String indices;
private SearchService _searchService;
private ImportedStudy _importedStudy;
+ private StudyService _studyService;
private static final long serialVersionUID = 4194268823457749655L;
for (int i=0; i<ridlist.length; i++) {
int index = Integer.valueOf(ridlist[i].trim());
- Study study = Database.selectStudy(index);
+ Study study = getStudyService().selectStudy(index);
getSearchService().indexStudy(study);
}
filter.put("owner", "all"); // Just in case of 1st study search
public void setImportedStudy(ImportedStudy importedStudy) {
_importedStudy = importedStudy;
}
+
+ /**
+ * Get the studyService.
+ *
+ * @return the studyService
+ */
+ public StudyService getStudyService() {
+ return _studyService;
+ }
+
+ /**
+ * Set the studyService.
+ *
+ * @param studyService
+ * the studyService to set
+ */
+ public void setStudyService(StudyService studyService) {
+ _studyService = studyService;
+ }
}
\ No newline at end of file
import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.KnowledgeElement;
import org.splat.dal.bo.som.ProgressState;
+import org.splat.service.KnowledgeElementService;
import org.splat.service.SearchService;
import org.splat.service.technical.ProjectSettingsService;
import org.splat.service.dto.Proxy;
private List<SimulationContext> existing; // Existing simulation contexts of selected type
private SearchService _searchService;
private ProjectSettingsService _projectSettingsService;
+ private KnowledgeElementService _knowledgeElementService;
private static final long serialVersionUID = 7083323229359094699L;
step = edition.getType().getAttachedStep();
owner = new HashSet<ProjectElementFacade>();
for (Iterator<Proxy> i=kelm.iterator(); i.hasNext(); ) {
- KnowledgeElement next = Database.selectKnowledgeElement(i.next().getIndex());
+ KnowledgeElement next = getKnowledgeElementService().selectKnowledgeElement(i.next().getIndex());
ProjectElementFacade facade;
if (step.appliesTo(Study.class)) facade = new ProjectElementFacade(next.getOwnerScenario().getOwnerStudy(), step);
else facade = new ProjectElementFacade(next.getOwnerScenario(), step);
// ---------------------------------------
selection = Integer.valueOf(index);
}
+
+ /**
+ * Get the knowledgeElementService.
+ * @return the knowledgeElementService
+ */
+ public KnowledgeElementService getKnowledgeElementService() {
+ return _knowledgeElementService;
+ }
+
+ /**
+ * Set the knowledgeElementService.
+ * @param knowledgeElementService the knowledgeElementService to set
+ */
+ public void setKnowledgeElementService(
+ KnowledgeElementService knowledgeElementService) {
+ _knowledgeElementService = knowledgeElementService;
+ }
}
\ No newline at end of file
<bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
scope="prototype" />
+ <bean id="openStudy" class="org.splat.simer.OpenStudy"
+ scope="prototype">
+ <property name="projectElementService"
+ ref="projectElementService" />
+ <property name="projectSettings" ref="projectSettings" />
+ <property name="scenarioService" ref="scenarioService" />
+ </bean>
+
+ <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
+ scope="prototype">
+ <property name="projectElementService"
+ ref="projectElementService" />
+ <property name="projectSettings" ref="projectSettings" />
+ </bean>
+
+ <bean id="baseAction" class="org.splat.simer.Action"
+ scope="prototype">
+ <property name="openStudy" ref="openStudy" />
+ <property name="openKnowledge" ref="openKnowledge" />
+ </bean>
+
<bean id="startAction" class="org.splat.simer.StartAction"
scope="prototype">
<property name="applicationSettings" ref="applicationSettings" />
class="org.splat.simer.SearchDocumentAction" scope="prototype">
</bean>
- <bean id="displayStudyStepAction"
+ <bean id="displayStudyStepAction" parent="baseAction"
class="org.splat.simer.DisplayStudyStepAction" scope="prototype">
+ <property name="studyService" ref="studyService" />
</bean>
<bean id="studyPropertiesAction"
<bean id="displayKnowledgeAction"
class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
+ <property name="knowledgeElementService"
+ ref="knowledgeElementService" />
</bean>
<bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
<property name="studyService" ref="studyService" />
</bean>
+ <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
+ parent="baseAction" scope="prototype">
+ <property name="studyService" ref="studyService" />
+ </bean>
+
<bean id="newScenarioAction"
class="org.splat.simer.NewScenarioAction" scope="prototype">
<property name="projectElementService"
<bean id="databaseIndexingAction"
class="org.splat.simer.admin.DatabaseIndexingAction"
scope="prototype">
+ <property name="studyService" ref="studyService" />
<property name="importedStudy" ref="importedStudy" />
<property name="searchService" ref="searchService" />
</bean>
<bean id="simulationContextAction"
class="org.splat.simer.admin.SimulationContextAction"
scope="prototype">
+ <property name="knowledgeElementService"
+ ref="knowledgeElementService" />
<property name="searchService" ref="searchService" />
<property name="projectSettings" ref="projectSettings" />
</bean>
<default-action-ref name="index" />
- <action name="index" class="org.splat.simer.StartAction" method="initialize">
+ <action name="index" class="startAction" method="initialize">
<result name="success">/welcome.jsp</result>
<result name="error">/error.jsp?error=initialization</result>
</action>
- <action name="login" class="org.splat.simer.ConnectionAction" method="login">
+ <action name="login" class="connectionAction" method="login">
<result name="none">/home.jsp</result>
<result name="open" type="redirectAction">select?menu=search</result>
<result name="study" type="redirectAction">study/step-study</result>
<result name="input">/login.jsp</result>
<result name="error">/home.jsp?error=login</result>
</action>
- <action name="logout" class="org.splat.simer.ConnectionAction" method="logout">
+ <action name="logout" class="connectionAction" method="logout">
<result name="none">/home.jsp</result>
<result name="create">/home.jsp</result>
<result name="open" type="redirectAction">select?menu=search</result>
<result name="datadmin">/home.jsp</result>
<result name="sysadmin">/home.jsp</result>
</action>
- <action name="select" class="org.splat.simer.MenuAction" method="selectItem">
+ <action name="select" class="menuAction" method="selectItem">
<result name="new-empty" type="redirectAction">study/new-empty</result>
<result name="search-study" type="redirectAction">study/search-study</result>
<result name="search-knowledge" type="redirectAction">study/search-knowledge</result>
<package name="study" namespace="/study" extends="simer-default">
- <action name="notyetimplemented" class="org.splat.simer.NotYetImplementedAction" method="initialize">
+ <action name="notyetimplemented" class="notYetImplementedAction" method="initialize">
<result name="success">/study/error.jsp?message=notyetimplemented</result>
</action>
<!-- Creation of a study
-->
- <action name="new-empty" class="org.splat.simer.NewStudyAction" method="initialize">
+ <action name="new-empty" class="newStudyAction" method="initialize">
<result name="success">/study/newStudy.jsp</result>
</action>
- <action name="valid-new" class="org.splat.simer.NewStudyAction" method="create">
+ <action name="valid-new" class="newStudyAction" method="create">
<result name="success" type="redirectAction">open-study?selection=0.1</result>
<result name="input">/study/newStudy.jsp</result>
<result name="error">/home.jsp?error=newstudy</result>
<!-- Search for studies, knowledge elements and documents
-->
- <action name="search-study" class="org.splat.simer.SearchStudyAction" method="initialize">
+ <action name="search-study" class="searchStudyAction" method="initialize">
<result name="success">/study/searchStudy.jsp</result>
<result name="error">/home.jsp</result>
</action>
- <action name="refresh-study" class="org.splat.simer.SearchStudyAction" method="submitForm">
+ <action name="refresh-study" class="searchStudyAction" method="submitForm">
<result name="selectype">/study/searchStudy.jsp?action=setContext</result>
<result name="refresh">/study/searchStudy.jsp</result>
<result name="wait">/study/searchStudy.jsp</result>
<result name="error" type="redirectAction">search-study</result>
</action>
- <action name="search-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="initialize">
+ <action name="search-knowledge" class="searchKnowledgeAction" method="initialize">
<result name="success">/study/searchKnowledge.jsp</result>
</action>
- <action name="refresh-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="submitForm">
+ <action name="refresh-knowledge" class="searchKnowledgeAction" method="submitForm">
<result name="selectype">/study/searchKnowledge.jsp?action=setContext</result>
<result name="refresh">/study/searchKnowledge.jsp</result>
<result name="wait">/study/searchKnowledge.jsp</result>
<result name="error" type="redirectAction">search-knowledge</result>
</action>
- <action name="search-document" class="org.splat.simer.SearchDocumentAction" method="initialize">
+ <action name="search-document" class="searchDocumentAction" method="initialize">
<result name="success">/study/searchDocument.jsp</result>
</action>
<!-- Display of studies
-->
- <action name="open-study" class="org.splat.simer.DisplayStudyStepAction" method="open">
+ <action name="open-study" class="displayStudyStepAction" method="open">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="step-study" class="org.splat.simer.DisplayStudyStepAction" method="selectStep">
+ <action name="step-study" class="displayStudyStepAction" method="selectStep">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="document-study" class="org.splat.simer.DisplayStudyStepAction" method="selectDocument">
+ <action name="document-study" class="displayStudyStepAction" method="selectDocument">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="knowledge-study" class="org.splat.simer.DisplayStudyStepAction" method="selectKnowledge">
+ <action name="knowledge-study" class="displayStudyStepAction" method="selectKnowledge">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="close-study" class="org.splat.simer.DisplayStudyStepAction" method="close">
+ <action name="close-study" class="displayStudyStepAction" method="close">
<result name="success">/home.jsp</result>
</action>
- <action name="prop-study" class="org.splat.simer.StudyPropertiesAction" method="initialize">
+ <action name="prop-study" class="studyPropertiesAction" method="initialize">
<result name="display">/study/displayStudyProperties.jsp</result>
<result name="edit">/study/editStudyProperties.jsp</result>
</action>
<!-- Display of knowledge elements
-->
- <action name="open-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="open">
+ <action name="open-knowledge" class="displayKnowledgeAction" method="open">
<result name="success">/study/displayKnowledge.jsp</result>
</action>
- <action name="step-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectStep">
+ <action name="step-knowledge" class="displayKnowledgeAction" method="selectStep">
<result name="success">/study/displayKnowledge.jsp</result>
</action>
- <action name="document-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectDocument">
+ <action name="document-knowledge" class="displayKnowledgeAction" method="selectDocument">
<result name="success">/study/displayKnowledge.jsp</result>
</action>
- <action name="knowledge-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectKnowledge">
+ <action name="knowledge-knowledge" class="displayKnowledgeAction" method="selectKnowledge">
<result name="success">/study/displayKnowledge.jsp</result>
</action>
- <action name="close-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="close">
+ <action name="close-knowledge" class="displayKnowledgeAction" method="close">
<result name="success">/home.jsp</result>
</action>
<!-- Edition of study
-->
- <action name="edit-study" class="org.splat.simer.EditStudyAction" method="edition">
+ <action name="edit-study" class="editStudyAction" method="edition">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="add-scenario" class="org.splat.simer.NewScenarioAction" method="initialize">
+ <action name="add-scenario" class="newScenarioAction" method="initialize">
<result name="success">/study/newScenario.jsp?init=focus</result>
</action>
- <action name="edit-title" class="org.splat.simer.StudyPropertiesAction" method="editTitle">
+ <action name="edit-title" class="studyPropertiesAction" method="editTitle">
<result name="success">/study/editStudyProperties.jsp?action=edititle</result>
</action>
- <action name="edit-contributor" class="org.splat.simer.StudyPropertiesAction" method="editContributors">
+ <action name="edit-contributor" class="studyPropertiesAction" method="editContributors">
<result name="success">/study/editStudyProperties.jsp?action=edibutor</result>
</action>
- <action name="edit-cycle" class="org.splat.simer.StudyPropertiesAction" method="editCycle">
+ <action name="edit-cycle" class="studyPropertiesAction" method="editCycle">
<result name="success">/study/editStudyProperties.jsp?action=edicycle</result>
</action>
- <action name="select-step" class="org.splat.simer.NewScenarioAction" method="selectStep">
+ <action name="select-step" class="newScenarioAction" method="selectStep">
<result name="success">/study/newScenario.jsp</result>
</action>
- <action name="valid-add" class="org.splat.simer.NewScenarioAction" method="create">
+ <action name="valid-add" class="newScenarioAction" method="create">
<result name="cancel" type="redirectAction">step-study</result>
<result name="success" type="redirectAction">step-study</result>
<result name="error">/study/displayStudyStep.jsp?error=addScenario</result>
</action>
- <action name="valid-edit" class="org.splat.simer.StudyPropertiesAction" method="edition">
+ <action name="valid-edit" class="studyPropertiesAction" method="edition">
<result name="success">/study/editStudyProperties.jsp</result>
</action>
- <action name="prop-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="initialize">
+ <action name="prop-scenario" class="editScenarioPropertiesAction" method="initialize">
<result name="success">/study/editScenarioProperties.jsp</result>
</action>
<!-- Edition of scenario
-->
- <action name="checkin-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="checkin">
+ <action name="checkin-scenario" class="editScenarioPropertiesAction" method="checkin">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
<!-- Edition of simulation contexts
-->
- <action name="add-context" class="org.splat.simer.EditSimulationContextAction" method="initialize">
+ <action name="add-context" class="editSimulationContextAction" method="initialize">
<result name="create">/study/displayStudyStep.jsp?action=newContext</result>
<result name="select">/study/displayStudyStep.jsp?action=selectContext</result>
</action>
- <action name="selectContext" class="org.splat.simer.EditSimulationContextAction" method="selectContext">
+ <action name="selectContext" class="editSimulationContextAction" method="selectContext">
<result name="create">/study/displayStudyStep.jsp?action=newContext</result>
<result name="set">/study/displayStudyStep.jsp?action=setContext&index=%{contextType.index}</result>
</action>
- <action name="newContext" class="org.splat.simer.EditSimulationContextAction" method="createContext">
+ <action name="newContext" class="editSimulationContextAction" method="createContext">
<result name="success">/study/displayStudyStep.jsp</result>
<result name="input">/study/displayStudyStep.jsp?action=newContext</result>
<result name="error">/study/displayStudyStep.jsp?error=addContext</result>
</action>
- <action name="setContext" class="org.splat.simer.EditSimulationContextAction" method="setContext">
+ <action name="setContext" class="editSimulationContextAction" method="setContext">
<result name="success">/study/displayStudyStep.jsp</result>
<result name="input">/study/displayStudyStep.jsp?action=setContext&index=%{contextType.index}</result>
<result name="error">/study/displayStudyStep.jsp?error=addContext</result>
</action>
- <action name="remove-context" class="org.splat.simer.EditSimulationContextAction" method="deleteContext">
+ <action name="remove-context" class="editSimulationContextAction" method="deleteContext">
<result name="success">/study/displayStudyStep.jsp</result>
<result name="error">/study/displayStudyStep.jsp?error=removeContext</result>
</action>
<!-- Edition of documents
-->
- <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
+ <action name="select-file" class="uploadAction" method="initialize">
<result name="success">/study/upload.jsp</result>
</action>
- <action name="upload" class="org.splat.simer.UploadAction" method="upload">
+ <action name="upload" class="uploadAction" method="upload">
<result name="cancel" type="redirectAction">step-study</result>
<result name="import" type="redirectAction">import-document?fileName=%{fileName}</result>
<result name="version" type="redirectAction">version-document?index=%{index}&fileName=%{fileName}</result>
<result name="attach" type="redirectAction">attach-document?index=%{index}&fileName=%{fileName}</result>
<result name="outofmemory">/study/error.jsp?message=outofmemory</result>
</action>
- <action name="import-document" class="org.splat.simer.ImportDocumentAction" method="initialize">
+ <action name="import-document" class="importDocumentAction" method="initialize">
<result name="success">/study/importDocument.jsp</result>
<result name="error">/study/importError.jsp?message=%{errorCode}</result>
</action>
- <action name="valid-import" class="org.splat.simer.ImportDocumentAction" method="import">
+ <action name="valid-import" class="importDocumentAction" method="import">
<result name="success" type="redirectAction">step-study</result>
<result name="cancel" type="redirectAction">step-study</result>
<result name="error">/study/importError.jsp?message=%{errorCode}&action=back</result>
</action>
- <action name="version-document" class="org.splat.simer.VersionDocumentAction" method="initialize">
+ <action name="version-document" class="versionDocumentAction" method="initialize">
<result name="success">/study/versionDocument.jsp</result>
<result name="error">/study/importError.jsp?message=%{errorCode}</result>
</action>
- <action name="valid-version" class="org.splat.simer.VersionDocumentAction" method="version">
+ <action name="valid-version" class="versionDocumentAction" method="version">
<result name="success" type="redirectAction">step-study</result>
<result name="cancel" type="redirectAction">step-study</result>
<result name="error">/study/importError.jsp?message=%{errorCode}&action=back</result>
</action>
- <action name="attach-document" class="org.splat.simer.EditDocumentAction" method="attach">
+ <action name="attach-document" class="editDocumentAction" method="attach">
<result name="success">/study/displayStudyStep.jsp?action=display</result>
</action>
- <action name="edit-document" class="org.splat.simer.EditDocumentAction" method="initialize">
+ <action name="edit-document" class="editDocumentAction" method="initialize">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="setDocument" class="org.splat.simer.EditDocumentAction" method="setDocument">
+ <action name="setDocument" class="editDocumentAction" method="setDocument">
<result name="success">/study/displayStudyStep.jsp?action=display</result>
</action>
- <action name="remove-document" class="org.splat.simer.EditDocumentAction" method="deleteDocument">
+ <action name="remove-document" class="editDocumentAction" method="deleteDocument">
<result name="success">/study/displayStudyStep.jsp</result>
<result name="error">/study/displayStudyStep.jsp?error=removeDocument</result>
</action>
<!-- Edition of knowledge elements
-->
- <action name="add-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
+ <action name="add-knowledge" class="editKnowledgeElementAction" method="initialize">
<result name="success">/study/displayStudyStep.jsp?action=addKnowledge&index=%{knowledgeType}</result>
</action>
- <action name="edit-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
+ <action name="edit-knowledge" class="editKnowledgeElementAction" method="initialize">
<result name="success">/study/displayStudyStep.jsp</result>
</action>
- <action name="setKnowledge" class="org.splat.simer.EditKnowledgeElementAction" method="setKnowledge">
+ <action name="setKnowledge" class="editKnowledgeElementAction" method="setKnowledge">
<result name="success">/study/displayStudyStep.jsp?action=display</result>
</action>
- <action name="remove-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="deleteKnowledge">
+ <action name="remove-knowledge" class="editKnowledgeElementAction" method="deleteKnowledge">
<result name="success">/study/displayStudyStep.jsp</result>
<result name="error">/study/displayStudyStep.jsp?error=removeKnowledge</result>
</action>
<!-- Menus of database administration
-->
- <action name="indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="initialize">
+ <action name="indexing" class="databaseIndexingAction" method="initialize">
<result name="success">/sadmin/indexStudies.jsp</result>
</action>
- <action name="valid-indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="indexing">
+ <action name="valid-indexing" class="databaseIndexingAction" method="indexing">
<result name="success" type="redirectAction">../study/search-study</result>
</action>
- <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
+ <action name="select-file" class="uploadAction" method="initialize">
<result name="success">/sadmin/upload.jsp</result>
</action>
- <action name="upload" class="org.splat.simer.UploadAction" method="upload">
+ <action name="upload" class="uploadAction" method="upload">
<result name="importuser" type="redirectAction">importuser?fileName=%{fileName}</result>
</action>
- <action name="importuser" class="org.splat.simer.admin.ImportUserAction" method="import">
+ <action name="importuser" class="importUserAction" method="import">
<result name="success">/sadmin/displayUser.jsp</result>
</action>
<!-- Menus of knowledge administration
-->
- <action name="scontext" class="org.splat.simer.admin.SimulationContextAction" method="initialize">
+ <action name="scontext" class="simulationContextAction" method="initialize">
<result name="success">/sadmin/approveSContext.jsp</result>
</action>
- <action name="scontext-edit" class="org.splat.simer.admin.SimulationContextAction" method="select">
+ <action name="scontext-edit" class="simulationContextAction" method="select">
<result name="success">/sadmin/approveSContext.jsp</result>
</action>
- <action name="knowelm" class="org.splat.simer.admin.KnowledgeElementAction" method="initialize">
+ <action name="knowelm" class="knowledgeElementAction" method="initialize">
<result name="success">/sadmin/approveKnowelm.jsp</result>
</action>
</package>
<package name="sgeom" namespace="/sgeom" extends="simer-default">
- <action name="valid-save" class="org.splat.module.SaveDocumentAction" method="save">
+ <action name="valid-save" class="saveDocumentAction" method="save">
<result name="success">/sgeom/index.jsp</result>
</action>
- <action name="valid-update" class="org.splat.module.SaveDocumentAction" method="update">
+ <action name="valid-update" class="saveDocumentAction" method="update">
<result name="success">/sgeom/index.jsp</result>
</action>
- <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
+ <action name="valid-version" class="saveDocumentAction" method="version">
<result name="success">/sgeom/index.jsp</result>
</action>
<package name="smesh" namespace="/smesh" extends="simer-default">
- <action name="valid-save" class="org.splat.module.SaveDocumentAction" method="save">
+ <action name="valid-save" class="saveDocumentAction" method="save">
<result name="success">/smesh/index.jsp</result>
</action>
- <action name="valid-update" class="org.splat.module.SaveDocumentAction" method="update">
+ <action name="valid-update" class="saveDocumentAction" method="update">
<result name="success">/smesh/index.jsp</result>
</action>
- <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
+ <action name="valid-version" class="saveDocumentAction" method="version">
<result name="success">/smesh/index.jsp</result>
</action>