Uses of Class
org.opencms.json.JSONObject
-
Packages that use JSONObject Package Description org.opencms.ade.configuration Contains the ade configuration classes.org.opencms.gwt Provides core support for GWT.org.opencms.json Classes to create JSON objects and arrays for JavaScript in OpenCms.org.opencms.jsp.search.config.parser API classes for the configuration parsers of the search form support provided for server-side Solr search.org.opencms.loader Low-level functions to manage the loading of resources from the OpenCms VFS.org.opencms.search.documents Handles indexing different sorts of document and resource type from the OpenCms VFS for the full text search.org.opencms.ui.favorites org.opencms.util Utility functions for String manipulation and other often used tasks.org.opencms.widgets Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.org.opencms.widgets.serialdate Contains the server-side widget implementation, for the serial date widget..org.opencms.workplace.galleries Contains the various "Galleries" which are available in the editors and widgets of the OpenCms Workplace.org.opencms.xml.content Contains functions for structured content storage using XML, commonly called "XML content" in OpenCms.org.opencms.xml.xml2json org.opencms.xml.xml2json.document org.opencms.xml.xml2json.handler org.opencms.xml.xml2json.renderer -
-
Uses of JSONObject in org.opencms.ade.configuration
Methods in org.opencms.ade.configuration that return JSONObject Modifier and Type Method Description protected JSONObject
CmsADEManager. elementToJson(CmsContainerElementBean element, java.util.Set<java.lang.String> excludeSettings)
Converts the given element to JSON.Methods in org.opencms.ade.configuration with parameters of type JSONObject Modifier and Type Method Description protected CmsContainerElementBean
CmsADEManager. elementFromJson(JSONObject data)
Creates an element from its serialized data. -
Uses of JSONObject in org.opencms.gwt
Methods in org.opencms.gwt that return JSONObject Modifier and Type Method Description JSONObject
I_CmsCoreProvider. getData(javax.servlet.http.HttpServletRequest request)
Returns the provided json data. -
Uses of JSONObject in org.opencms.json
Methods in org.opencms.json that return JSONObject Modifier and Type Method Description JSONObject
JSONObject. accumulate(java.lang.String key, java.lang.Object value)
Accumulate values under a key.JSONObject
JSONObject. append(java.lang.String key, java.lang.Object value)
Append values to the array under a key.JSONObject
JSONArray. getJSONObject(int index)
Get the JSONObject associated with an index.JSONObject
JSONObject. getJSONObject(java.lang.String key)
Get the JSONObject value associated with a key.JSONObject
JSONArray. optJSONObject(int index)
Get the optional JSONObject associated with an index.JSONObject
JSONObject. optJSONObject(java.lang.String key)
Get an optional JSONObject associated with a key.JSONObject
JSONObject. put(java.lang.String key, boolean value)
Put a key/boolean pair in the JSONObject.JSONObject
JSONObject. put(java.lang.String key, double value)
Put a key/double pair in the JSONObject.JSONObject
JSONObject. put(java.lang.String key, int value)
Put a key/int pair in the JSONObject.JSONObject
JSONObject. put(java.lang.String key, long value)
Put a key/long pair in the JSONObject.JSONObject
JSONObject. put(java.lang.String key, java.lang.Object value)
Put a key/value pair in the JSONObject.JSONObject
JSONObject. put(java.lang.String key, java.util.Collection<java.lang.Object> value)
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.JSONObject
JSONObject. put(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> value)
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.JSONObject
JSONObject. putOpt(java.lang.String key, java.lang.Object value)
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.JSONObject
I_CmsJsonifable. toJson()
Returns the JSON representation of this object.JSONObject
JSONArray. toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static JSONObject
XML. toJSONObject(java.lang.String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.Methods in org.opencms.json with parameters of type JSONObject Modifier and Type Method Description static java.lang.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.Constructors in org.opencms.json with parameters of type JSONObject Constructor Description JSONObject(JSONObject jo, java.lang.String[] names)
Construct a JSONObject from a subset of another JSONObject. -
Uses of JSONObject in org.opencms.jsp.search.config.parser
Fields in org.opencms.jsp.search.config.parser declared as JSONObject Modifier and Type Field Description protected JSONObject
CmsJSONSearchConfigurationParser. m_configObject
The whole JSON file.Methods in org.opencms.jsp.search.config.parser with parameters of type JSONObject Modifier and Type Method Description protected I_CmsSearchConfigurationFacetQuery.I_CmsFacetQueryItem
CmsJSONSearchConfigurationParser. parseFacetQueryItem(JSONObject item)
Parses a single query item for the query facet.protected java.util.List<I_CmsSearchConfigurationFacetQuery.I_CmsFacetQueryItem>
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.protected static java.util.List<java.lang.String>
CmsJSONSearchConfigurationParser. parseMandatoryStringValues(JSONObject json, java.lang.String key)
Helper for reading a mandatory String value list - throwing an Exception if parsing fails.protected static java.lang.Boolean
CmsJSONSearchConfigurationParser. parseOptionalBooleanValue(JSONObject json, java.lang.String key)
Helper for reading an optional Boolean value - returningnull
if parsing fails.protected static java.lang.Integer
CmsJSONSearchConfigurationParser. parseOptionalIntValue(JSONObject json, java.lang.String key)
Helper for reading an optional Integer value - returningnull
if parsing fails.protected static java.lang.String
CmsJSONSearchConfigurationParser. parseOptionalStringValue(JSONObject json, java.lang.String key)
Helper for reading an optional String value - returningnull
if parsing fails.protected static java.util.List<java.lang.String>
CmsJSONSearchConfigurationParser. parseOptionalStringValues(JSONObject json, java.lang.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
Constructors in org.opencms.loader with parameters of type JSONObject Constructor Description Configuration(JSONObject configJson)
Creates a new instance. -
Uses of JSONObject in org.opencms.search.documents
Methods in org.opencms.search.documents that return JSONObject Modifier and Type Method Description JSONObject
CmsDocumentDependency. toJSON(CmsObject cms, boolean includeLang)
Returns a JSON object describing this dependency document.Methods in org.opencms.search.documents with parameters of type JSONObject Modifier and Type Method Description void
CmsDocumentDependency. fromJSON(JSONObject json, java.lang.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
Methods in org.opencms.ui.favorites that return JSONObject Modifier and Type Method Description JSONObject
CmsFavoriteEntry. toJson()
Converts this object to JSON.Methods in org.opencms.ui.favorites with parameters of type JSONObject Modifier and Type Method Description static CmsUUID
CmsFavoriteEntry. readId(JSONObject obj, java.lang.String key)
Reads a UUID from a JSON object.Constructors in org.opencms.ui.favorites with parameters of type JSONObject Constructor Description CmsFavoriteEntry(JSONObject obj)
Creates a new entry from a JSON object. -
Uses of JSONObject in org.opencms.util
Methods in org.opencms.util that return JSONObject Modifier and Type Method Description static JSONObject
CmsRequestUtil. getJsonParameterMap(java.util.Map<java.lang.String,java.lang.String[]> params)
Converts the given parameter map into an JSON object.static JSONObject
CmsJsonUtil. mapJsonObject(JSONObject obj, java.util.function.Function<java.lang.Object,java.lang.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.Methods in org.opencms.util with parameters of type JSONObject Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String[]>
CmsRequestUtil. getParameterMapFromJSON(JSONObject params)
Converts the given JSON object into a valid parameter map.static JSONObject
CmsJsonUtil. mapJsonObject(JSONObject obj, java.util.function.Function<java.lang.Object,java.lang.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
Fields in org.opencms.widgets declared as JSONObject Modifier and Type Field Description protected JSONObject
A_CmsNativeComplexWidget. m_jsonConfig
The configuration map in JSON format.Methods in org.opencms.widgets that return JSONObject Modifier and Type Method Description protected abstract JSONObject
A_CmsAdeGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
Returns additional widget information encapsulated in a JSON object.protected JSONObject
CmsAdeDownloadGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
protected JSONObject
CmsAdeImageGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
protected JSONObject
CmsVfsImageWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
protected JSONObject
CmsVfsFileWidget. getJsonConfig(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
Gets the JSON configuration.protected JSONObject
A_CmsAdeGalleryWidget. getJSONConfig(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
Returns the gallery widget configuration as a JSON object.protected JSONObject
CmsHtmlWidget. getJSONConfiguration(CmsObject cms, CmsResource resource, java.util.Locale contentLocale)
Returns the WYSIWYG editor configuration as a JSON object.static JSONObject
CmsHtmlWidget. getJSONConfiguration(CmsHtmlWidgetOption widgetOptions, CmsObject cms, CmsResource resource, java.util.Locale contentLocale)
Returns the WYSIWYG editor configuration as a JSON object.Methods in org.opencms.widgets with parameters of type JSONObject Modifier and Type Method Description protected void
CmsHtmlWidget. addEmbeddedGalleryOptions(JSONObject result, CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
Adds the configuration for embedded gallery widgets the the JSON object. -
Uses of JSONObject in org.opencms.widgets.serialdate
Methods in org.opencms.widgets.serialdate that return JSONObject Modifier and Type Method Description JSONObject
CmsSerialDateValue. toJson()
Convert the information from the wrapper to a JSON object. -
Uses of JSONObject in org.opencms.workplace.galleries
Methods in org.opencms.workplace.galleries that return JSONObject Modifier and Type Method Description protected JSONObject
A_CmsAjaxGallery. buildJsonItemObject(CmsResource res)
Returns a JSON object containing information of the given resource for usage in the gallery.Methods in org.opencms.workplace.galleries with parameters of type JSONObject Modifier and Type Method Description protected void
A_CmsAjaxGallery. buildJsonItemCommonPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
Fills the JSON object with the information used for all resource types.protected abstract void
A_CmsAjaxGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
Fills the JSON object with the specific information used for this resource type.protected void
CmsAjaxDownloadGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
Fills the JSON object with the specific information used for download file resource type.protected void
CmsAjaxImageGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
Fills the JSON object with the specific information used for image resource type.protected void
CmsAjaxLinkGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
Fills the JSON object with the specific information used for pointer file resource type. -
Uses of JSONObject in org.opencms.xml.content
Methods in org.opencms.xml.content that return JSONObject Modifier and Type Method Description static JSONObject
CmsXmlContentPropertyHelper. getWidgetConfigurationAsJSON(java.lang.String widgetConfiguration)
Returns the widget configuration string parsed into a JSONObject. -
Uses of JSONObject in org.opencms.xml.xml2json
Methods in org.opencms.xml.xml2json that return JSONObject Modifier and Type Method Description JSONObject
CmsResourceDataJsonHelper. attributes()
Creates a JSON object with the attributes of the resource.JSONObject
CmsJsonRequest. getErrorsAsJson()
Returns the errors of this request as JSON.JSONObject
CmsResourceDataJsonHelper. properties(boolean inherited)
Creates a JSON object with the properties of the resource.Methods in org.opencms.xml.xml2json with parameters of type JSONObject Modifier and Type Method Description void
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
Fields in org.opencms.xml.xml2json.document declared as JSONObject Modifier and Type Field Description protected JSONObject
A_CmsJsonDocument. m_json
The JSON document.Methods in org.opencms.xml.xml2json.document that return JSONObject Modifier and Type Method Description protected 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
Methods in org.opencms.xml.xml2json.handler that return JSONObject Modifier and Type Method Description static JSONObject
CmsJsonHandlerXmlContent. empty()
Creates an empty JSON object. -
Uses of JSONObject in org.opencms.xml.xml2json.renderer
Methods in org.opencms.xml.xml2json.renderer that return JSONObject Modifier and Type Method Description static JSONObject
CmsJsonRendererXmlContent. linkAndPath(java.lang.String link, java.lang.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.
-