* Injected user service.
*/
private UserService _userService;
+
+ /**
+ * Value of the menu property.
+ * It can be: none, create, open, study, knowledge, sysadmin, help.
+ */
+ private String _menuProperty;
/**
* Serial version ID.
// Final initialization of the form
setCandidates();
setContextTypeOptions(getInvolvedContexts());
+
+ setMenuProperty("open");
+ initializationScreenContext(_menuProperty);
return SUCCESS;
} catch (Exception error) {
// No need to roll back the transaction as it is read only
logger.error("Reason: ", error);
+
+ setMenuProperty("none");
+ initializationScreenContext(_menuProperty);
+
return ERROR;
}
}
public void setUserService(UserService userService) {
_userService = userService;
}
+
+ /**
+ * 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