Package ApiScrumClass

Examples of ApiScrumClass.Theme


            String description=request.getParameter("description");
            String parent=request.getParameter("parent");
            String parentProduct=request.getParameter("parentproduct");
            if (parent.equals("null")) {
            //Tema de un producto
                Theme t=scrum.createTheme(name,-1,Integer.valueOf(parentProduct));                
                t.setDescription(description);
                try{
                    persistencia.UpdateTheme(t);
                    ID=t.getId();
                    return true;
                } catch (Exception e) {
                    return false;
                }
            }else{   
                //Tema de un tema
                Theme t=scrum.createTheme(name,Integer.valueOf(parent),Integer.valueOf(parentProduct));                                
                t.setDescription(description);
                try{
                    persistencia.UpdateTheme(t);
                    ID=t.getId();
                    return true;
                } catch (Exception e) {
                    return false;
                }
            }          
View Full Code Here


    /*Elimina de la tabla theme el Id pasado
     * In: Id del tema a eliminar
     */
    public boolean DeleteTheme(String Id) {
        //Eliminamos una persona de la BBDD
        Theme tema =scrum.getTheme(Integer.valueOf(Id));
        try {
          scrum.deleteTheme(tema, persistencia);                 
          return true;
        }catch (Exception e) {
            return false;
View Full Code Here

    public boolean ModifyTheme(HttpServletRequest request,HttpServletResponse response) {
        //modificamos el tema con los datos que recibimos
        String id=request.getParameter("id");
        String name=request.getParameter("name");
        String description=request.getParameter("description");
        Theme t=scrum.getTheme(Integer.valueOf(id));       
        t.setDescription(description);
        t.setName(name);
        try{
           persistencia.UpdateTheme(t);
           return true;
        }catch (Exception e) {
           return false;
View Full Code Here

TOP

Related Classes of ApiScrumClass.Theme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.