/**
* Monitored invocation of {@link IDescriptiveDataSetService#getRowWrapper(DescriptiveDataSet, IProgressMonitor)}
- * @param descriptiveDataSet the working set for which getRowWrapper() is invoked
+ * @param descriptiveDataSetUuid the working set for which getRowWrapper() is invoked
* @return the uuid of the monitor
*/
- public UUID monitGetRowWrapper(DescriptiveDataSet descriptiveDataSet);
+ public UUID monitGetRowWrapper(UUID descriptiveDataSetUuid);
/**
* @param configurator
import eu.etaxonomy.cdm.api.service.util.SortIndexUpdaterWrapper;
import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor;
import eu.etaxonomy.cdm.common.monitor.RemotingProgressMonitorThread;
-import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
/**
* @author k.luther
SortIndexUpdaterWrapper sortIndexUpdater;
@Override
- public UUID monitGetRowWrapper(DescriptiveDataSet descriptiveDataSet) {
+ public UUID monitGetRowWrapper(UUID descriptiveDataSetUuid) {
RemotingProgressMonitorThread monitorThread = new RemotingProgressMonitorThread() {
@Override
public Serializable doRun(IRemotingProgressMonitor monitor) {
- return descriptiveDataSetService.getRowWrapper(descriptiveDataSet, monitor);
+ return descriptiveDataSetService.getRowWrapper(descriptiveDataSetUuid, monitor);
}
};
UUID uuid = progressMonitorService.registerNewRemotingMonitor(monitorThread);
}
@Override
- public ArrayList<RowWrapperDTO> getRowWrapper(DescriptiveDataSet descriptiveDataSet, IProgressMonitor monitor) {
+ public ArrayList<RowWrapperDTO> getRowWrapper(UUID descriptiveDataSetUuid, IProgressMonitor monitor) {
+ DescriptiveDataSet descriptiveDataSet = load(descriptiveDataSetUuid);
monitor.beginTask("Load row wrapper", descriptiveDataSet.getDescriptions().size());
ArrayList<RowWrapperDTO> wrappers = new ArrayList<>();
Set<DescriptionBase> descriptions = descriptiveDataSet.getDescriptions();
/**
* Returns a collection of {@link RowWrapperDTO} objects for the given {@link DescriptiveDataSet}.<br>
* A RowWrapper represents on row in the character matrix.
- * @param descriptiveDataSet the working set for which the row wrapper objects should be fetched
+ * @param descriptiveDataSetUuid the working set for which the row wrapper objects should be fetched
* @param the progress monitor
* @return a list of row wrapper objects
*/
- public ArrayList<RowWrapperDTO> getRowWrapper(DescriptiveDataSet descriptiveDataSet, IProgressMonitor monitor);
+ public ArrayList<RowWrapperDTO> getRowWrapper(UUID descriptiveDataSetUuid, IProgressMonitor monitor);
/**
* Loads all available specimens wrapped in a {@link SpecimenNodeWrapper} object for