Package org.mycore.wcms2.navigation
Interface MCRWCMSSectionProvider
- All Superinterfaces:
MCRWCMSJSONProvider<Element,
com.google.gson.JsonArray>
- All Known Implementing Classes:
MCRWCMSDefaultSectionProvider
public interface MCRWCMSSectionProvider
extends MCRWCMSJSONProvider<Element,com.google.gson.JsonArray>
- Author:
- Matthias Eichner
-
Field Summary
-
Method Summary
-
Field Details
-
JSON_TITLE
- See Also:
-
JSON_LANG
- See Also:
-
JSON_DATA
- See Also:
-
-
Method Details
-
fromJSON
- Specified by:
fromJSON
in interfaceMCRWCMSJSONProvider<Element,
com.google.gson.JsonArray>
-
toJSON
Converts a MyCoRe Webpage to a json array. The array contains all the section elements of the webpage including their content.[
{title: "title of section", lang: "de", data: "<xml>content of section</xml>"},
{title: "title of section 2", lang: "en", data: "<xml>content of section 2</xml>"}
]- Specified by:
toJSON
in interfaceMCRWCMSJSONProvider<Element,
com.google.gson.JsonArray>
-