1 26 27 package org.nextime.ion.frontoffice.objectSelector; 28 29 import java.util.Collection ; 30 import java.util.Hashtable ; 31 import java.util.Vector ; 32 33 import javax.servlet.http.HttpServletRequest ; 34 import javax.servlet.http.HttpServletResponse ; 35 36 import org.nextime.ion.framework.business.Section; 37 import org.nextime.ion.framework.mapping.Mapping; 38 import org.nextime.ion.framework.logger.Logger; 39 40 43 public class ListRootSections implements ObjectSelector { 44 45 public Collection selectObjects(Hashtable params, HttpServletRequest request, HttpServletResponse response) throws SelectException { 46 try { 47 Vector v = Section.listRootSections(); 49 return v; 51 } catch (Exception e) { 52 Logger.getInstance().error("Erreur du SelectObject",this,e); 53 throw new SelectException(e.getMessage()); 54 } 55 } 56 57 } | Popular Tags |