/**
* Injected repository service.
*/
- private RepositoryService _repositoryService;
+ private RepositoryService _repositoryService;
+ /**
+ * Value of the menu property.
+ * It can be: none, create, open, study, knowledge, sysadmin, help.
+ */
+ private String _menuProperty;
// ==============================================================================================================================
// Action methods
* @return SUCCESS in success, otherwise - ERROR
*/
public String doInitialize() {
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
User user = getConnectedUser();
File updir = getRepositoryService().getDownloadDirectory(user);
File upfile = new File(updir.getPath() + "/" + filename);
*/
public String doImport() {
// -------------------------
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
if (action == ToDo.cancel)
return "cancel";
if (doctype == 0) {
public void setDocumentTypeService(DocumentTypeService documentTypeService) {
_documentTypeService = documentTypeService;
}
+
+ /**
+ * 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