org.apache.chemistry.opencmis.server.impl.browser.json
Class JSONConverter

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.impl.browser.json.JSONConverter

public class JSONConverter
extends java.lang.Object

OpenCMIS objects to JSON converter.


Method Summary
static org.json.simple.JSONObject convert(Acl acl)
          Converts an ACL.
static org.json.simple.JSONObject convert(AclCapabilities capabilities)
          Converts an ACL capabilities object.
static org.json.simple.JSONObject convert(AllowableActions allowableActions)
          Converts allowable actions.
static org.json.simple.JSONObject convert(ObjectData object, TypeCache typeCache)
          Converts an object.
static org.json.simple.JSONObject convert(ObjectInFolderContainer container, TypeCache typeCache)
          Converts a folder container.
static org.json.simple.JSONObject convert(ObjectInFolderData objectInFolder, TypeCache typeCache)
          Converts an object in a folder list.
static org.json.simple.JSONObject convert(ObjectInFolderList objectInFolderList, TypeCache typeCache)
          Converts a folder list.
static org.json.simple.JSONObject convert(ObjectList list)
          Converts a query object list.
static org.json.simple.JSONObject convert(ObjectParentData parent, TypeCache typeCache)
          Converts an object parent.
static org.json.simple.JSONObject convert(PropertyData<?> property, PropertyDefinition<?> propDef)
          Converts a property.
static org.json.simple.JSONObject convert(PropertyDefinition<?> propertyDef)
          Converts a property type definition.
static org.json.simple.JSONObject convert(RenditionData rendition)
          Converts a rendition.
static org.json.simple.JSONObject convert(RepositoryCapabilities capabilities)
          Converts a capabilities object.
static org.json.simple.JSONObject convert(RepositoryInfo repositoryInfo, javax.servlet.http.HttpServletRequest request)
          Converts a repository info object.
static org.json.simple.JSONObject convert(TypeDefinition type)
          Converts a type definition.
static org.json.simple.JSONObject convert(TypeDefinitionContainer container)
          Converts a type definition container.
static org.json.simple.JSONObject convert(TypeDefinitionList list)
          Converts a type definition list.
static org.json.simple.JSONArray getJSONArrayFromList(java.util.List<?> list)
           
static java.lang.String getJSONPropertyDataType(PropertyData<?> property)
           
static java.lang.String getJSONStringValue(java.lang.Object obj)
           
static java.lang.Object getJSONValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

public static org.json.simple.JSONObject convert(RepositoryInfo repositoryInfo,
                                                 javax.servlet.http.HttpServletRequest request)
Converts a repository info object.


convert

public static org.json.simple.JSONObject convert(RepositoryCapabilities capabilities)
Converts a capabilities object.


convert

public static org.json.simple.JSONObject convert(AclCapabilities capabilities)
Converts an ACL capabilities object.


convert

public static org.json.simple.JSONObject convert(ObjectData object,
                                                 TypeCache typeCache)
Converts an object.


convert

public static org.json.simple.JSONObject convert(PropertyData<?> property,
                                                 PropertyDefinition<?> propDef)
Converts a property.


convert

public static org.json.simple.JSONObject convert(AllowableActions allowableActions)
Converts allowable actions.


convert

public static org.json.simple.JSONObject convert(Acl acl)
Converts an ACL.


convert

public static org.json.simple.JSONObject convert(RenditionData rendition)
Converts a rendition.


convert

public static org.json.simple.JSONObject convert(ObjectList list)
Converts a query object list.


convert

public static org.json.simple.JSONObject convert(ObjectInFolderData objectInFolder,
                                                 TypeCache typeCache)
Converts an object in a folder list.


convert

public static org.json.simple.JSONObject convert(ObjectInFolderList objectInFolderList,
                                                 TypeCache typeCache)
Converts a folder list.


convert

public static org.json.simple.JSONObject convert(ObjectInFolderContainer container,
                                                 TypeCache typeCache)
Converts a folder container.


convert

public static org.json.simple.JSONObject convert(ObjectParentData parent,
                                                 TypeCache typeCache)
Converts an object parent.


convert

public static org.json.simple.JSONObject convert(TypeDefinition type)
Converts a type definition.


convert

public static org.json.simple.JSONObject convert(PropertyDefinition<?> propertyDef)
Converts a property type definition.


convert

public static org.json.simple.JSONObject convert(TypeDefinitionList list)
Converts a type definition list.


convert

public static org.json.simple.JSONObject convert(TypeDefinitionContainer container)
Converts a type definition container.


getJSONStringValue

public static java.lang.String getJSONStringValue(java.lang.Object obj)

getJSONValue

public static java.lang.Object getJSONValue(java.lang.Object value)

getJSONArrayFromList

public static org.json.simple.JSONArray getJSONArrayFromList(java.util.List<?> list)

getJSONPropertyDataType

public static java.lang.String getJSONPropertyDataType(PropertyData<?> property)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.