public Collection<String> getGuidesKey(Collection<GuideDTO> guides) { ArrayList<String> idGuides = new ArrayList<String>(); for (GuideDTO guideDTO : guides) { idGuides.add(guideDTO.getIdGuide()); } Collections.sort(idGuides); return idGuides; }
private void proccessGuide(GuideDTO guideDTO) throws InternalErrorException { GeneratedElementInstanceCollection elementInstanceCollection = new GeneratedElementInstanceCollection(); Guide guide = GuideUtil.parseGuide(guideDTO.getGuideSrc().getBytes(), this, elementInstanceCollection); _allGuidesMap.put(guide.getId(), guide); _elementInstanceCollectionByIdGuideMap.put(guide.getId(), elementInstanceCollection); }
public void loadGuides(Collection<GuideDTO> guidesDTO) throws InternalErrorException { for (GuideDTO guideDTO : guidesDTO) { _allGuidesDTOMap.put(guideDTO.getIdGuide(), guideDTO); proccessGuide(guideDTO); } }