Ignore:
Timestamp:
Sep 19, 2010, 3:19:40 PM (14 years ago)
Author:
mlg
Message:

"Feature" :
Until now, it was not possible to create a "root" category. It is now possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/service/CategoryService.java

    r6831 r6962  
    113113        return CategoryDao.getInstance().creer(category);
    114114    }
     115
     116    /**
     117     * Création d'une catégorie
     118     * @param nom nom de la catégorie
     119     * @param parent catégorie parent
     120     * @return true si la catégorie a bien été créée
     121     */
     122    public boolean creer(String nom) {
     123        Category category = new Category();
     124        category.setNom(nom);
     125        return CategoryDao.getInstance().creer(category);
     126    }
    115127}
Note: See TracChangeset for help on using the changeset viewer.