Package org.mycore.wcms2.navigation
Class MCRWCMSNavigationUtils
java.lang.Object
org.mycore.wcms2.navigation.MCRWCMSNavigationUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MCRNavigation
fromJSON
(com.google.gson.JsonObject jsonNavigation) static MCRNavigation
Returns the navigation as pojo.static com.google.gson.JsonObject
Returns the navigation as json.static Document
Returns the navigation as jdom document.static void
save
(MCRNavigation navigation) Saves the given navigationstatic com.google.gson.JsonObject
toJSON
(MCRNavigation navigation) static boolean
updateHref
(MCRNavigationBaseItem item, String from, String to) Runs recursive through the item tree and changes each href and hrefStartingPage attribute to the new href.
-
Constructor Details
-
MCRWCMSNavigationUtils
public MCRWCMSNavigationUtils()
-
-
Method Details
-
fromJSON