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.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 JSONObjectCmsADEManager. 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 CmsContainerElementBeanCmsADEManager. 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 JSONObjectI_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 JSONObjectJSONObject. accumulate(java.lang.String key, java.lang.Object value)Accumulate values under a key.JSONObjectJSONObject. append(java.lang.String key, java.lang.Object value)Append values to the array under a key.JSONObjectJSONArray. getJSONObject(int index)Get the JSONObject associated with an index.JSONObjectJSONObject. getJSONObject(java.lang.String key)Get the JSONObject value associated with a key.JSONObjectJSONArray. optJSONObject(int index)Get the optional JSONObject associated with an index.JSONObjectJSONObject. optJSONObject(java.lang.String key)Get an optional JSONObject associated with a key.JSONObjectJSONObject. put(java.lang.String key, boolean value)Put a key/boolean pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, double value)Put a key/double pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, int value)Put a key/int pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, long value)Put a key/long pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, java.lang.Object value)Put a key/value pair in the JSONObject.JSONObjectJSONObject. 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.JSONObjectJSONObject. 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.JSONObjectJSONObject. 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 JSONObjectCDL. 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.JSONObjectI_CmsJsonifable. toJson()Returns the JSON representation of this object.JSONObjectJSONArray. toJSONObject(JSONArray names)Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static JSONObjectXML. 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.voidJSONObject. 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 JSONObjectCmsJSONSearchConfigurationParser. m_configObjectThe 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_CmsFacetQueryItemCmsJSONSearchConfigurationParser. 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_CmsSearchConfigurationFacetFieldCmsJSONSearchConfigurationParser. 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.BooleanCmsJSONSearchConfigurationParser. parseOptionalBooleanValue(JSONObject json, java.lang.String key)Helper for reading an optional Boolean value - returningnullif parsing fails.protected static java.lang.IntegerCmsJSONSearchConfigurationParser. parseOptionalIntValue(JSONObject json, java.lang.String key)Helper for reading an optional Integer value - returningnullif parsing fails.protected static java.lang.StringCmsJSONSearchConfigurationParser. parseOptionalStringValue(JSONObject json, java.lang.String key)Helper for reading an optional String value - returningnullif 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 - returningnullif parsing fails for the whole list, otherwise just skipping unparsable entries.protected I_CmsSearchConfigurationFacetRangeCmsJSONSearchConfigurationParser. parseRangeFacet(JSONObject rangeFacetObject)Parses the query facet configurations.protected I_CmsSearchConfigurationSortOptionCmsJSONSearchConfigurationParser. 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.search.documents
Methods in org.opencms.search.documents that return JSONObject Modifier and Type Method Description JSONObjectCmsDocumentDependency. 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 voidCmsDocumentDependency. 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 JSONObjectCmsFavoriteEntry. toJson()Converts this object to JSON.Methods in org.opencms.ui.favorites with parameters of type JSONObject Modifier and Type Method Description static CmsUUIDCmsFavoriteEntry. 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 JSONObjectCmsRequestUtil. getJsonParameterMap(java.util.Map<java.lang.String,java.lang.String[]> params)Converts the given parameter map into an JSON object.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 booleanCmsGeoUtil. 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 JSONObjectA_CmsNativeComplexWidget. m_jsonConfigThe configuration map in JSON format.Methods in org.opencms.widgets that return JSONObject Modifier and Type Method Description protected abstract JSONObjectA_CmsAdeGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)Returns additional widget information encapsulated in a JSON object.protected JSONObjectCmsAdeDownloadGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)protected JSONObjectCmsAdeImageGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)protected JSONObjectCmsVfsImageWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)protected JSONObjectCmsVfsFileWidget. getJsonConfig(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)Gets the JSON configuration.protected JSONObjectA_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 JSONObjectCmsHtmlWidget. getJSONConfiguration(CmsObject cms, CmsResource resource, java.util.Locale contentLocale)Returns the WYSIWYG editor configuration as a JSON object.static JSONObjectCmsHtmlWidget. 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 voidCmsHtmlWidget. 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 JSONObjectCmsSerialDateValue. 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 JSONObjectA_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 voidA_CmsAjaxGallery. buildJsonItemCommonPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)Fills the JSON object with the information used for all resource types.protected abstract voidA_CmsAjaxGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)Fills the JSON object with the specific information used for this resource type.protected voidCmsAjaxDownloadGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)Fills the JSON object with the specific information used for download file resource type.protected voidCmsAjaxImageGallery. buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)Fills the JSON object with the specific information used for image resource type.protected voidCmsAjaxLinkGallery. 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 JSONObjectCmsXmlContentPropertyHelper. 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 JSONObjectCmsResourceDataJsonHelper. attributes()Creates a JSON object with the attributes of the resource.JSONObjectCmsJsonRequest. getErrorsAsJson()Returns the errors of this request as JSON.JSONObjectCmsResourceDataJsonHelper. 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 voidCmsResourceDataJsonHelper. addPathAndLink(JSONObject json)Adds path and link fields for the resource to the given JSON object.voidCmsResourceDataJsonHelper. 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 JSONObjectA_CmsJsonDocument. m_jsonThe JSON document.Methods in org.opencms.xml.xml2json.document that return JSONObject Modifier and Type Method Description protected JSONObjectCmsJsonDocumentFolder. 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 JSONObjectCmsJsonHandlerXmlContent. 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 JSONObjectCmsJsonRendererXmlContent. 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 JSONObjectCmsJsonRendererXmlContent. 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.
-