com.ibm.ecm.json

Class JSONItemAttributesResponse

  1. java.lang.Object
  2. extended byjava.util.AbstractMap<K,V>
  3. extended byjava.util.HashMap
  4. extended bycom.ibm.json.java.JSONObject
  5. extended bycom.ibm.ecm.json.JSONResponse
  6. extended bycom.ibm.ecm.json.JSONItemAttributesResponse
All implemented interfaces:
JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map

  1. public class JSONItemAttributesResponse
  2. extends JSONResponse
This class structures the JSON used to represent an item info response. This responses is returned for an openItem request for a particular content item. It describes the item's properties and other details available from the content server (without having to actually retrieve any content resource related to the item).

There are two ways to use this class:

  1. In plug-in response filters for openItem. This class is actually the JSONObject passed to the response filter, so it can be immediately cast, as in:
     JSONItemAttributesResponse jsonItemAttributesResponse = (JSONItemAttributesResponse) jsonResponse;
     
  2. In a plug-in provided repository type, to format the response JSON appropriately for the openItem request.
Since:
2.0.3
See Also:
Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>

Constructor Summary

Constructor and Description
JSONItemAttributesResponse()

Method Summary

Modifier and Type Method and Description
  1. void
addAttribute(java.lang.String id,java.lang.Object value)
  1. void
addSystemProperty(java.lang.String id,java.lang.Object value)
Methods inherited from class com.ibm.ecm.json.JSONResponse
addErrorMessage, addInfoMessage, addWarningMessage, hasErrors
Methods inherited from class com.ibm.json.java.JSONObject
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
equals, hashCode

Constructor Detail

JSONItemAttributesResponse

  1. public JSONItemAttributesResponse( )

Method Detail

addAttribute

  1. public void addAttribute(java.lang.String id,
  2. java.lang.Object value)

addSystemProperty

  1. public void addSystemProperty(java.lang.String id,
  2. java.lang.Object value)