Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public void loadGuides(Collection<GuideDTO> guidesDTO) throws InternalErrorException {
   for (GuideDTO guideDTO : guidesDTO) {
     _allGuidesDTOMap.put(guideDTO.getIdGuide(), guideDTO);
     proccessGuide(guideDTO);
   }
 }