* Injected simulation context service.
*/
private SimulationContextService _simulationContextService;
+
+ /**
+ * Value of the menu property.
+ * It can be: none, create, open, study, knowledge, sysadmin, help.
+ */
+ private String _menuProperty;
+
+ /**
+ * Value of the tool bar property.
+ * It can be: none, standard, study, back.
+ */
+ private String _toolProperty;
/**
* Context name comparator.
selection = 0;
edition = null;
owner = null;
+
+ setMenuProperty("study");
+ setToolProperty("none");
+ initializationScreenContext(_menuProperty, _toolProperty);
return SUCCESS;
} catch (Exception error) {
public String doSelect() {
// -------------------------
+
+ setMenuProperty("study");
+ setToolProperty("none");
+ initializationScreenContext(_menuProperty, _toolProperty);
+
Session connex = Database.getCurSession();
Transaction transax = connex.beginTransaction();
try {
public void setSearchService(SearchService searchService) {
_searchService = searchService;
}
+
+ /**
+ * Get the menuProperty.
+ * @return the menuProperty
+ */
+ public String getMenuProperty() {
+ return _menuProperty;
+ }
+
+ /**
+ * Set the menuProperty.
+ * @param menuProperty
+ * the menuProperty to set
+ */
+ public void setMenuProperty(final String menuProperty) {
+ this._menuProperty = menuProperty;
+ }
+
+ /**
+ * Get the toolProperty.
+ * @return the toolProperty
+ */
+ public String getToolProperty() {
+ return _toolProperty;
+ }
+
+ /**
+ * Set the toolProperty.
+ * @param toolProperty the toolProperty to set
+ */
+ public void setToolProperty(final String toolProperty) {
+ _toolProperty = toolProperty;
+ }
}
\ No newline at end of file