Red Hat Web Application Framework 6.1 Manuale Utente Pagina 143

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 230
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 142
Chapter 11. Services Tutorials 129
Figure 11-5. Category hierarchy before and after deleting a category
You can delete a category in the following ways:
Deleting Leaf Category — If the category is a leaf, call Category.delete().
Remapping Child Categories If you want to remove the current category and make all
categories that were pointing to it point to its default parent (as in the example), call
Category.deleteCategoryAndRemap().
Orphaning Children If you want to delete the category without remapping any of the child
categories, call Category.deleteCategoryAndOrphan(). Note that there is no way to navigate
from the root to orphaned categories. Effectively, the orphaned categories are no longer part of the
categorization schemes, unless they have non-default parents.
Deleting Category Subtree If you want to delete the entire subtree, including the passed-in
category and all categories below it whose default ancestry can be traced to the root, call Cate-
gory.deleteCategorySubtree().
11.2.3. Adding more Parent Categories
Category a = new Category(new OID(123));
Vedere la pagina 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 229 230

Commenti su questo manuale

Nessun commento