Namespace: OpenEdge.Web.DataObject.Writer
Type: Class DataRequestValueWriter
Parent Classes:
Inherits: OpenEdge.Web.DataObject.Writer.ObjectValueWriter


/* *************************************************************************************************************************
Copyright (c) 2019-2021 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:DataRequestValueWriter
Purpose:Writes the contents of a IGetDataRequest object based on other inputs
Author(s):pjudge
Created:2016-12-17
Notes:* The ablRef message element determines the JSON property name we create. If we don't have that,
we assume the entire input is JSON and overrides the filter
"msgElem": [
{"type": "CONSTANT","name": "JFP", "ablRef": "mappingType"},
{"type": "QUERY", "name": "filter" }
]
"msgElem": [
{"type": "CONSTANT","name": "JFP", "ablRef": "mappingType"},
{"type": "QUERY", "name": "filter", "ablRef": "ablFilter"},
{"type": "QUERY", "name": "sort", "ablRef": "orderBy"},
{"type": "QUERY", "name": "top", "ablRef": "top"},
{"type": "QUERY", "name": "skip", "ablRef": "skip"}
]
"msgElem": [
{"type": "CONSTANT","name": "KENDO", "ablRef": "mappingType"},
{"type": "QUERY", "name": "filter", "ablRef": "filter"},
{"type": "QUERY", "name": "sort", "ablRef": "sort"},
{"type": "QUERY", "name": "top", "ablRef": "page"},
{"type": "QUERY", "name": "skip", "ablRef": "pageSize"}
]



Method Summary
  Options Name Purpose
  Close ()
  Flush ()
  Open ()
  Progress.Lang.Object ParseFilter (JsonObject) /* Parses JSON to produce a IGetDataRequest object. - If a filter parser/builder is found for the input JSON, then those factory methods return an implementation of IGetDataRequest. If a valid object is returned, return that object as-is. If a valid object does not exist, then - Use the OpenEdge.Core.Json.JsonSerializer to convert to an object. Default to an instance of OpenEdge.BusinessLogic.GetDataRequest This is a reflection-based method that is used because we do not want cross-dependencies in our builds between netlib and businesscomponents (OpenEdge.BusinessLogic.pl). @param JsonObject Filter data encoded as JSON @return Progress.Lang.Object A filter based on the JSON input */
  Write (character)
  Write (longchar)
  Write (Object)

Constructor Summary
  Options Name Purpose
  DataRequestValueWriter ()
  DataRequestValueWriter () /* Default constructor */

Property Summary
  Options Name Purpose
  Progress.Lang.Class DataRequestImplType
  Progress.Lang.Class DataRequestType
  Progress.Lang.Class FilterParserBuilderType
  Progress.Lang.Class FilterParserType


Method Detail
Top

Close ()

Top

Flush ()

Top

Open ()

Top

Progress.Lang.Object ParseFilter (JsonObject)

/* Parses JSON to produce a IGetDataRequest object.
- If a filter parser/builder is found for the input JSON, then those factory methods
return an implementation of IGetDataRequest. If a valid object is returned, return that
object as-is.
If a valid object does not exist, then
- Use the OpenEdge.Core.Json.JsonSerializer to convert to an object. Default to an instance of
OpenEdge.BusinessLogic.GetDataRequest
This is a reflection-based method that is used because we do not want cross-dependencies in our builds between
netlib and businesscomponents (OpenEdge.BusinessLogic.pl).
Parameters:
pValue Progress.Json.ObjectModel.JsonObject
 
Returns Progress.Lang.Object
  Progress.Lang.Object A filter based on the JSON input
Top

Write (character)

Parameters:
pData CHARACTER
 
Top

Write (longchar)

Parameters:
pData LONGCHAR
 
Top

Write (Object)

Parameters:
pData Progress.Lang.Object
 


Constructor Detail
Top

STATIC DataRequestValueWriter ()

Top

DataRequestValueWriter ()

/* Default constructor


Property Detail
Top

Progress.Lang.Class DataRequestImplType

Returns Progress.Lang.Class
 
Top

Progress.Lang.Class DataRequestType

Returns Progress.Lang.Class
 
Top

Progress.Lang.Class FilterParserBuilderType

Returns Progress.Lang.Class
 
Top

Progress.Lang.Class FilterParserType

Returns Progress.Lang.Class