*/
private String _titleProperty;
+ /**
+ * Value of the tool bar property.
+ * It can be: none, standard, study, back.
+ */
+ private String _toolProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
setMenuProperty("study");
setTitleProperty("study");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
+ setToolProperty("study");
+ } else {
+ setToolProperty("standard");
+ }
+
+ initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
return SUCCESS;
}
setMenuProperty("study");
setTitleProperty("study");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
+ setToolProperty("study");
+ } else {
+ setToolProperty("standard");
+ }
+ initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
return SUCCESS;
}
setMenuProperty("study");
setTitleProperty("study");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
+ setToolProperty("study");
+ } else {
+ setToolProperty("standard");
+ }
+ initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
return SUCCESS;
}
setMenuProperty("study");
setTitleProperty("study");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
+ setToolProperty("study");
+ } else {
+ setToolProperty("standard");
+ }
+ initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
return SUCCESS;
}
_editDisabledProperty = editDisabledProperty;
}
+ /**
+ * 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