use of org.goobi.production.importer.DocstructElement in project goobi-workflow by intranda.
the class MassImportForm method getHasNextPage.
public boolean getHasNextPage() {
java.lang.reflect.Method method;
try {
method = this.plugin.getClass().getMethod("getCurrentDocStructs");
Object o = method.invoke(this.plugin);
@SuppressWarnings("unchecked") List<? extends DocstructElement> list = (List<? extends DocstructElement>) o;
if (this.plugin != null && list != null) {
return true;
}
} catch (Exception e) {
}
try {
method = this.plugin.getClass().getMethod("getProperties");
Object o = method.invoke(this.plugin);
@SuppressWarnings("unchecked") List<ImportProperty> list = (List<ImportProperty>) o;
if (this.plugin != null && list.size() > 0) {
return true;
}
} catch (Exception e) {
}
return false;
}
use of org.goobi.production.importer.DocstructElement in project goobi-workflow by intranda.
the class MassImportForm method nextPage.
public String nextPage() {
if (!testForData()) {
Helper.setFehlerMeldung("missingData");
return "";
}
java.lang.reflect.Method method;
try {
method = this.plugin.getClass().getMethod("getCurrentDocStructs");
Object o = method.invoke(this.plugin);
@SuppressWarnings("unchecked") List<? extends DocstructElement> list = (List<? extends DocstructElement>) o;
if (this.plugin != null && list != null) {
return "process_import_2_mass";
}
} catch (Exception e) {
}
return "process_import_2";
}
use of org.goobi.production.importer.DocstructElement in project goobi-workflow by intranda.
the class MassImportForm method getDocstructs.
public List<? extends DocstructElement> getDocstructs() {
java.lang.reflect.Method method;
try {
method = this.plugin.getClass().getMethod("getCurrentDocStructs");
Object o = method.invoke(this.plugin);
@SuppressWarnings("unchecked") List<? extends DocstructElement> list = (List<? extends DocstructElement>) o;
if (this.plugin != null && list != null) {
return list;
}
} catch (Exception e) {
}
return new ArrayList<>();
}
Aggregations