Package ApiScrumClass

Examples of ApiScrumClass.Product


            String done=request.getParameter("done");
            String description=request.getParameter("description");
            String User=request.getParameter("user");
            Person per = giveUser(User);
            int Idp=per.getIdPerson();
            Product p=scrum.createProduct(name);
            p.setInitialEstimation(Float.valueOf(initialEstimation));
            p.setDone(Boolean.valueOf(done));
            p.setPlanned(Boolean.valueOf(planned));
            p.setAssigned(Boolean.valueOf(assigned));
            p.setDescription(description);
            p.setName(name);
            persistencia.UpdateProduct(p);           
            try{
                ID=p.getId()
                //Asignamos el proyecto a la persona
                boolean result = persistencia.WorkPersonInProduct(ID, Idp);
                return result;
           } catch (Exception e) {
            return false;
View Full Code Here


    /*Elimina de la tabla product el Id pasado
     * In: Id del proyecto a eliminar
     */
    public boolean DeleteProyect(String Id) {
        //Eliminamos un producto de la BBDD
        Product prod =scrum.getProduct(Integer.valueOf(Id));
        try {
          scrum.deleteProduct(prod, persistencia);                 
          return true;
        }catch (Exception e) {
            return false;
View Full Code Here

        String currentEstimation=request.getParameter("currentestimation");
        String assigned= request.getParameter("assigned");
        String planned=request.getParameter("planned");
        String done=request.getParameter("done");
        String description=request.getParameter("description");
        Product p=scrum.getProduct(Integer.valueOf(id));
        p.setCurrentEstimation(Float.valueOf(currentEstimation));
        p.setInitialEstimation(Float.valueOf(initialEstimation));
        p.setDone(Boolean.valueOf(done));
        p.setPlanned(Boolean.valueOf(planned));
        p.setAssigned(Boolean.valueOf(assigned));
        p.setDescription(description);
        p.setName(name);
        try{
           persistencia.UpdateProduct(p);
           return true;
        }catch (Exception e) {
           return false;
View Full Code Here

        }else if ((Product != null) && (Product.equals("rescue"))){
             //Para recuperar un producto y sus themes dando su id
             try {
                JSONObject responseObj = new JSONObject();
                String id=request.getParameter("id");
                Product product= scrum.getProduct(Integer.valueOf(id));               
                responseObj.put("Description", product.getDescription());
                responseObj.put("name", product.getName());
                responseObj.put("Done", product.getDone());
                responseObj.put("CurrentEstimation",product.getCurrentEstimation());
                responseObj.put("InitialEstimation",product.getInitialEstimation())
                responseObj.put("Assigned",product.getAssigned());
                responseObj.put("Planned",product.getPlanned());
                responseObj.put("id", product.getId());    
                /*Sacamos los themes de el producto para enviarlos */                              
                List<Theme> temas = product.getThemeList();
                List<JSONObject> themeObjects = new LinkedList<JSONObject>();
                for (Theme tema : temas) {
                 JSONObject themeObj = new JSONObject();
                 themeObj.put("description", tema.getDescription());
                 themeObj.put("name", tema.getName());
                 themeObj.put("id", tema.getId());
                 themeObj.put("parent",tema.getParent());
                 themeObj.put("parentproduct",tema.getParentProduct())
                 themeObj.put("stored",tema.getStored());                   
                 themeObjects.add(themeObj);
                }
                /*Sacamos los Subtemas del producto para enviarlos */
                List<Theme> Subtemas = product.getSubThemeList();
                List<JSONObject> SubthemeObjects = new LinkedList<JSONObject>();
                for (Theme tema : Subtemas) {
                 JSONObject themeObj = new JSONObject();
                 themeObj.put("description", tema.getDescription());
                 themeObj.put("name", tema.getName());
View Full Code Here

TOP

Related Classes of ApiScrumClass.Product

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.