Uses of Class
org.opencms.json.JSONObject
Package
Description
Contains the ade configuration classes.
Provides core support for GWT.
Classes to create JSON objects and arrays for JavaScript in OpenCms.
API classes for the configuration parsers of the search form support provided for server-side Solr search.
Low-level functions to manage the loading of resources from the OpenCms VFS.
Handles indexing different sorts of document and resource type from the OpenCms VFS for the full text search.
Utility functions for String manipulation and other often used tasks.
Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.
Contains the server-side widget implementation, for the serial date widget..
Contains the various "Galleries" which are available in the editors and widgets of the OpenCms Workplace.
Contains functions for structured content storage using XML, commonly called "XML content" in OpenCms.
-
Uses of JSONObject in org.opencms.ade.configuration
Modifier and TypeMethodDescriptionprotected JSONObject
CmsADEManager.elementToJson
(CmsContainerElementBean element, Set<String> excludeSettings) Converts the given element to JSON.Modifier and TypeMethodDescriptionprotected CmsContainerElementBean
CmsADEManager.elementFromJson
(JSONObject data) Creates an element from its serialized data. -
Uses of JSONObject in org.opencms.gwt
Modifier and TypeMethodDescriptionI_CmsCoreProvider.getData
(javax.servlet.http.HttpServletRequest request) Returns the provided json data. -
Uses of JSONObject in org.opencms.json
Modifier and TypeMethodDescriptionJSONObject.accumulate
(String key, Object value) Accumulate values under a key.Append values to the array under a key.JSONArray.getJSONObject
(int index) Get the JSONObject associated with an index.JSONObject.getJSONObject
(String key) Get the JSONObject value associated with a key.JSONArray.optJSONObject
(int index) Get the optional JSONObject associated with an index.JSONObject.optJSONObject
(String key) Get an optional JSONObject associated with a key.Put a key/boolean pair in the JSONObject.Put a key/double pair in the JSONObject.Put a key/int pair in the JSONObject.Put a key/long pair in the JSONObject.Put a key/value pair in the JSONObject.JSONObject.put
(String key, Collection<Object> value) Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.static JSONObject
CDL.rowToJSONObject
(JSONArray names, JSONTokener x) Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.I_CmsJsonifable.toJson()
Returns the JSON representation of this object.JSONArray.toJSONObject
(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static JSONObject
XML.toJSONObject
(String string) Convert a well-formed (but not necessarily valid) XML string into a JSONObject.Modifier and TypeMethodDescriptionstatic String[]
JSONObject.getNames
(JSONObject jo) Get an array of field names from a JSONObject.void
JSONObject.merge
(JSONObject jo, boolean overwrite, boolean deep) Merges the current JSON object with the given one, modifying the this.ModifierConstructorDescriptionJSONObject
(JSONObject jo, String[] names) Construct a JSONObject from a subset of another JSONObject. -
Uses of JSONObject in org.opencms.jsp.search.config.parser
Modifier and TypeFieldDescriptionprotected JSONObject
CmsJSONSearchConfigurationParser.m_configObject
The whole JSON file.Modifier and TypeMethodDescriptionCmsJSONSearchConfigurationParser.parseFacetQueryItem
(JSONObject item) Parses a single query item for the query facet.CmsJSONSearchConfigurationParser.parseFacetQueryItems
(JSONObject queryFacetObject) Parses the list of query items for the query facet.protected I_CmsSearchConfigurationFacetField
CmsJSONSearchConfigurationParser.parseFieldFacet
(JSONObject fieldFacetObject) Parses the field facet configurations.CmsJSONSearchConfigurationParser.parseMandatoryStringValues
(JSONObject json, String key) Helper for reading a mandatory String value list - throwing an Exception if parsing fails.protected static Boolean
CmsJSONSearchConfigurationParser.parseOptionalBooleanValue
(JSONObject json, String key) Helper for reading an optional Boolean value - returningnull
if parsing fails.protected static Integer
CmsJSONSearchConfigurationParser.parseOptionalIntValue
(JSONObject json, String key) Helper for reading an optional Integer value - returningnull
if parsing fails.protected static String
CmsJSONSearchConfigurationParser.parseOptionalStringValue
(JSONObject json, String key) Helper for reading an optional String value - returningnull
if parsing fails.CmsJSONSearchConfigurationParser.parseOptionalStringValues
(JSONObject json, String key) Helper for reading an optional String value list - returningnull
if parsing fails for the whole list, otherwise just skipping unparsable entries.protected I_CmsSearchConfigurationFacetRange
CmsJSONSearchConfigurationParser.parseRangeFacet
(JSONObject rangeFacetObject) Parses the query facet configurations.protected I_CmsSearchConfigurationSortOption
CmsJSONSearchConfigurationParser.parseSortOption
(JSONObject json) Returns a single sort option configuration as configured via the methods parameter, or null if the parameter does not specify a sort option. -
Uses of JSONObject in org.opencms.loader
-
Uses of JSONObject in org.opencms.search.documents
Modifier and TypeMethodDescriptionReturns a JSON object describing this dependency document.Modifier and TypeMethodDescriptionvoid
CmsDocumentDependency.fromJSON
(JSONObject json, String rootPath) Read the information out of the given JSON object to fill the values of the document. -
Uses of JSONObject in org.opencms.ui.favorites
Modifier and TypeMethodDescriptionstatic CmsUUID
CmsFavoriteEntry.readId
(JSONObject obj, String key) Reads a UUID from a JSON object.ModifierConstructorDescriptionCreates a new entry from a JSON object. -
Uses of JSONObject in org.opencms.util
Modifier and TypeMethodDescriptionstatic JSONObject
CmsRequestUtil.getJsonParameterMap
(Map<String, String[]> params) Converts the given parameter map into an JSON object.static JSONObject
CmsJsonUtil.mapJsonObject
(JSONObject obj, Function<Object, Object> func) Recursively walks through a JSON object and returns a copy of it, but transforms primitive values using the given function for the copy.Modifier and TypeMethodDescriptionCmsRequestUtil.getParameterMapFromJSON
(JSONObject params) Converts the given JSON object into a valid parameter map.static JSONObject
CmsJsonUtil.mapJsonObject
(JSONObject obj, Function<Object, Object> func) Recursively walks through a JSON object and returns a copy of it, but transforms primitive values using the given function for the copy.static boolean
CmsGeoUtil.validateLocationPickerCoordinates
(JSONObject jsonObject) Validates the coordinates contained in a given location picker JSON value. -
Uses of JSONObject in org.opencms.widgets
Modifier and TypeFieldDescriptionprotected JSONObject
A_CmsNativeComplexWidget.m_jsonConfig
The configuration map in JSON format.Modifier and TypeMethodDescriptionprotected abstract JSONObject
A_CmsAdeGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) Returns additional widget information encapsulated in a JSON object.protected JSONObject
CmsAdeDownloadGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsAdeImageGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsVfsImageWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsVfsFileWidget.getJsonConfig
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Gets the JSON configuration.protected JSONObject
A_CmsAdeGalleryWidget.getJSONConfig
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the gallery widget configuration as a JSON object.protected JSONObject
CmsHtmlWidget.getJSONConfiguration
(CmsObject cms, CmsResource resource, Locale contentLocale) Returns the WYSIWYG editor configuration as a JSON object.static JSONObject
CmsHtmlWidget.getJSONConfiguration
(CmsHtmlWidgetOption widgetOptions, CmsObject cms, CmsResource resource, Locale contentLocale) Returns the WYSIWYG editor configuration as a JSON object.Modifier and TypeMethodDescriptionprotected void
CmsHtmlWidget.addEmbeddedGalleryOptions
(JSONObject result, CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Adds the configuration for embedded gallery widgets the the JSON object. -
Uses of JSONObject in org.opencms.widgets.serialdate
Modifier and TypeMethodDescriptionCmsSerialDateValue.toJson()
Convert the information from the wrapper to a JSON object. -
Uses of JSONObject in org.opencms.workplace.galleries
Modifier and TypeMethodDescriptionprotected JSONObject
A_CmsAjaxGallery.buildJsonItemObject
(CmsResource res) Returns a JSON object containing information of the given resource for usage in the gallery.Modifier and TypeMethodDescriptionprotected void
A_CmsAjaxGallery.buildJsonItemCommonPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the information used for all resource types.protected abstract void
A_CmsAjaxGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for this resource type.protected void
CmsAjaxDownloadGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for download file resource type.protected void
CmsAjaxImageGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for image resource type.protected void
CmsAjaxLinkGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for pointer file resource type. -
Uses of JSONObject in org.opencms.xml.content
Modifier and TypeMethodDescriptionstatic JSONObject
CmsXmlContentPropertyHelper.getWidgetConfigurationAsJSON
(String widgetConfiguration) Returns the widget configuration string parsed into a JSONObject. -
Uses of JSONObject in org.opencms.xml.xml2json
Modifier and TypeMethodDescriptionCmsResourceDataJsonHelper.attributes()
Creates a JSON object with the attributes of the resource.CmsJsonRequest.getErrorsAsJson()
Returns the errors of this request as JSON.CmsResourceDataJsonHelper.properties
(boolean inherited) Creates a JSON object with the properties of the resource.Modifier and TypeMethodDescriptionvoid
CmsResourceDataJsonHelper.addPathAndLink
(JSONObject json) Adds path and link fields for the resource to the given JSON object.void
CmsResourceDataJsonHelper.addProperties
(JSONObject result) Adds property data to the result object. -
Uses of JSONObject in org.opencms.xml.xml2json.document
Modifier and TypeFieldDescriptionprotected JSONObject
A_CmsJsonDocument.m_json
The JSON document.Modifier and TypeMethodDescriptionprotected JSONObject
CmsJsonDocumentFolder.folderListingJson
(CmsResource target, int levelsLeft) Formats folder listing as a JSON object, with the individual file names in the folder as keys. -
Uses of JSONObject in org.opencms.xml.xml2json.handler
Modifier and TypeMethodDescriptionstatic JSONObject
CmsJsonHandlerXmlContent.empty()
Creates an empty JSON object. -
Uses of JSONObject in org.opencms.xml.xml2json.renderer
Modifier and TypeMethodDescriptionstatic JSONObject
CmsJsonRendererXmlContent.linkAndPath
(String link, String path, CmsObject cms) Builds a simple JSON object with link and path fields whose values are taken from the corresponding parameters.static JSONObject
CmsJsonRendererXmlContent.renderAllLocales
(CmsXmlContent content, I_CmsJsonRendererXmlContent renderer) Helper method to apply renderer to all locales of an XML content, and put the resulting objects into a JSON object with the locales as keys.