Package com.jalios.jcms.portlet
Class PortalManager.CatDiscrimComparator
- java.lang.Object
-
- com.jalios.jcms.portlet.PortalManager.CatDiscrimComparator
-
- All Implemented Interfaces:
java.util.Comparator<Category>
- Enclosing class:
- PortalManager
public static class PortalManager.CatDiscrimComparator extends java.lang.Object implements java.util.Comparator<Category>
This inner class compare two categories. It is used to order a Category set in the same order than an array of root category and an array of contextual category. Each category gets point: - 1pt by RoutNavigate Level (First RootNavigate = +3 , Second RootNavigate = +2, Second RootNavigate = +1) - x2 for each contextual categories- Since:
- jcms-5.5.0
- Author:
- Jean-Philippe Encausse
-
-
Constructor Summary
Constructors Constructor Description CatDiscrimComparator(Category[] discrim, Category[] rootNav)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Category c1, Category c2)
-