Class CmsJsonDocumentContainerPage
java.lang.Object
org.opencms.xml.xml2json.document.A_CmsJsonDocument
org.opencms.xml.xml2json.document.CmsJsonDocumentResource
org.opencms.xml.xml2json.document.CmsJsonDocumentXmlContent
org.opencms.xml.xml2json.document.CmsJsonDocumentContainerPage
- All Implemented Interfaces:
I_CmsJsonDocument
Class representing a JSON document for a container page.
-
Field Summary
Fields inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentXmlContent
m_embedLinkedModelgroup, m_throwException, m_xmlContentFields inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentResource
m_helper, m_resourceFields inherited from class org.opencms.xml.xml2json.document.A_CmsJsonDocument
FIELD_LINKED_CONTENTS, m_context, m_json, m_jsonRequest -
Constructor Summary
ConstructorsConstructorDescriptionCmsJsonDocumentContainerPage(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new container page JSON document.CmsJsonDocumentContainerPage(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent, boolean embedLinkedModelgroups) Creates a new container page JSON document. -
Method Summary
Methods inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentXmlContent
insertJsonLinkedContent, insertJsonLinkedContents, insertJsonWrapper, isLocaleAllRequest, isLocalePathRequest, isLocaleRequest, isShowFallbackLocaleRequest, isShowLinkedContentsRequest, isShowWrapperRequestMethods inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentResource
insertJsonResource, insertJsonResourceAttributes, insertJsonResourceFile, insertJsonResourceParams, insertJsonResourcePathAndLink, insertJsonResourceProperties
-
Constructor Details
-
CmsJsonDocumentContainerPage
public CmsJsonDocumentContainerPage(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) throws Exception Creates a new container page JSON document.- Parameters:
jsonRequest- the JSON requestxmlContent- the XML content- Throws:
Exception- if something goes wrong
-
CmsJsonDocumentContainerPage
public CmsJsonDocumentContainerPage(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent, boolean embedLinkedModelgroups) throws Exception Creates a new container page JSON document.- Parameters:
jsonRequest- the JSON requestxmlContent- the XML contentembedLinkedModelgroups- whether to embedLinkedContents- Throws:
Exception- if something goes wrong
-
-
Method Details
-
getJson
public Object getJson() throws JSONException, CmsException, CmsJsonHandlerException, CmsJsonHandlerXmlContent.PathNotFoundException, ExceptionDescription copied from interface:I_CmsJsonDocumentReturns the JSON document.- Specified by:
getJsonin interfaceI_CmsJsonDocument- Overrides:
getJsonin classCmsJsonDocumentXmlContent- Returns:
- the JSON document
- Throws:
JSONException- if rendering the JSON document failsCmsException- if reading a resource or evaluating a SOLR search failsCmsJsonHandlerException- if the request is not valid according to the specificationCmsJsonHandlerXmlContent.PathNotFoundException- if the selected path does not existException- if something else goes wrong- See Also:
-