* Injected knowledge element type service.
*/
private KnowledgeElementTypeService _knowledgeElementTypeService;
+
+ /**
+ * Value of the menu property.
+ * It can be: none, create, open, study, knowledge, sysadmin, help.
+ */
+ private String _menuProperty;
// ==============================================================================================================================
// Action methods
*/
public String doInitialize() {
mystudy = getOpenStudy();
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
return SUCCESS;
}
* @return SUCCESS if operation succeeded, ERROR if Runtime exception, otherwise INPUT
*/
public String doSetKnowledge() {
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
try {
User user = getConnectedUser();
mystudy = getOpenStudy();
mystudy.remove(kelm);
getMenu("study").selects(mystudy.getSelection()); // Updates the menu icon, in case of last removed document
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
return SUCCESS;
}
KnowledgeElementTypeService knowledgeElementTypeService) {
_knowledgeElementTypeService = knowledgeElementTypeService;
}
+
+ /**
+ * Get the menuProperty.
+ * @return the menuProperty
+ */
+ public String getMenuProperty() {
+ return _menuProperty;
+ }
+
+ /**
+ * Set the menuProperty.
+ * @param menuProperty the menuProperty to set
+ */
+ public void setMenuProperty(String menuProperty) {
+ this._menuProperty = menuProperty;
+ }
}
\ No newline at end of file