|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.ade.sitemap.CmsSitemapNavPosCalculator
public class CmsSitemapNavPosCalculator
Helper class for recalculating navigation positions when a user has changed the order of navigation entries in the sitemap editor.
This is harder than it sounds because we need to handle special cases like e.g. the user inserting an entry between two existing entries with the same navigation position, which means we need to update the navigation positions of multiple entries to force the ordering which the user wanted.
| Field Summary | |
|---|---|
static java.lang.String |
DUMMY_PATH
Dummy file name for the inserted dummy navigation element. |
| Constructor Summary | |
|---|---|
CmsSitemapNavPosCalculator(java.util.List<CmsJspNavElement> navigation,
CmsResource movedElement,
int insertPosition)
Creates a new sitemap navigation position calculator and performs the navigation position calculation for a given insertion operation. |
|
| Method Summary | |
|---|---|
int |
getInsertPositionInResult()
Gets the insert position in the final result list. |
java.util.List<CmsJspNavElement> |
getNavigationChanges()
Gets the changed navigation entries from the final result list. |
java.util.List<CmsJspNavElement> |
getResultList()
Gets the final result list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DUMMY_PATH
| Constructor Detail |
|---|
public CmsSitemapNavPosCalculator(java.util.List<CmsJspNavElement> navigation,
CmsResource movedElement,
int insertPosition)
navigation - the existing navigation element listmovedElement - the resource which should be insertedinsertPosition - the insertion position in the list| Method Detail |
|---|
public int getInsertPositionInResult()
public java.util.List<CmsJspNavElement> getNavigationChanges()
public java.util.List<CmsJspNavElement> getResultList()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||