Package org.openspaces.rest.utils
Class ControllerUtils
java.lang.Object
org.openspaces.rest.utils.ControllerUtils
some helper methods to the SpaceApiController class
- Since:
- 8.0
- Author:
- rafi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOpen ended thread safe cache for XAP connections -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringstatic Stringstatic com.fasterxml.jackson.databind.ObjectMapperstatic SimpleDateFormatstatic Stringstatic final ControllerUtils.XapConnectionCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectconvertPropertyToPrimitiveType(String object, Class type, String propKey) createPropertiesResult(SpaceDocument[] docs) static SpaceDocument[]createSpaceDocuments(String type, String body, GigaSpace gigaSpace) static ClassgetPrimitiveType(String typeName) static booleanisAllowedField(String fieldName)
-
Field Details
-
xapCache
-
spaceName
-
lookupLocators
-
lookupGroups
-
date_format
-
simpleDateFormat
-
mapper
public static com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Constructor Details
-
ControllerUtils
public ControllerUtils()
-
-
Method Details
-
isAllowedField
-
getPrimitiveType
-
createSpaceDocuments
public static SpaceDocument[] createSpaceDocuments(String type, String body, GigaSpace gigaSpace) throws TypeNotFoundException - Throws:
TypeNotFoundException
-
createPropertiesResult
-
convertPropertyToPrimitiveType
-