public static Collection<Interaction> getInteractionsForExperimentListItem(ExperimentListItem eli) { Integer firstInteraction = null; Integer maxInteractions = null; // if there is pagination, get the first and the max result if (eli.getLargeScaleChunkSize() != null) { firstInteraction = (eli.getChunkNumber() - 1) * eli.getLargeScaleChunkSize(); maxInteractions = eli.getLargeScaleChunkSize(); } Collection<String> experimentLabels = eli.getExperimentLabels(); return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getInteractionDao() .getInteractionByExperimentShortLabel(experimentLabels.toArray(new String[experimentLabels.size()]), firstInteraction, maxInteractions); }
public static Collection<Interaction> getInteractionsForExperimentListItem(ExperimentListItem eli) { Integer firstInteraction = null; Integer maxInteractions = null; // if there is pagination, get the first and the max result if (eli.getLargeScaleChunkSize() != null) { firstInteraction = (eli.getChunkNumber() - 1) * eli.getLargeScaleChunkSize(); maxInteractions = eli.getLargeScaleChunkSize(); } Collection<String> experimentLabels = eli.getExperimentLabels(); return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getInteractionDao() .getInteractionByExperimentShortLabel(experimentLabels.toArray(new String[experimentLabels.size()]), firstInteraction, maxInteractions); }
public static Collection<Interaction> getInteractionsForExperimentListItem(ExperimentListItem eli) { Integer firstInteraction = null; Integer maxInteractions = null; // if there is pagination, get the first and the max result if (eli.getLargeScaleChunkSize() != null) { firstInteraction = (eli.getChunkNumber() - 1) * eli.getLargeScaleChunkSize(); maxInteractions = eli.getLargeScaleChunkSize(); } Collection<String> experimentLabels = eli.getExperimentLabels(); return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getInteractionDao() .getInteractionByExperimentShortLabel(experimentLabels.toArray(new String[experimentLabels.size()]), firstInteraction, maxInteractions); }