*/
private DocumentTypeService _documentTypeService;
+ /**
+ * Update uses documents list if chosen new type of import document.
+ * @return SUCCESS
+ */
+ public final String updateUsesList() {
+ _mystudy = getOpenStudy();
+ _defuses = new ArrayList<Document>();
+ _deftype = getDocumentTypeService().selectType(
+ (int) _documentType);
+ if (_deftype != null) {
+ setupDefaultUses(_deftype);
+ }
+ return SUCCESS;
+ }
+
/**
* Initialize the operation.
*
public List<Boolean> getReviewable() {
return _reviewable;
}
-}
\ No newline at end of file
+}