Namespace: OpenEdge.Web.DataObject.Writer
Type: Class MappingFileServiceWriter
Parent Classes:
Inherits: OpenEdge.Web.DataObject.Writer.DataObjectServiceWriter


/* *************************************************************************************************************************
Copyright (c) 2018, 2021 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:MappingFileServiceWriter
Purpose:Serializes a DataObjectService to a Data Object Handler mapping file JSON format
Author(s):pjudge
Created:2018-08-06
/* Default constructor



Method Summary
  Options Name Purpose
  Progress.Json.ObjectModel.JsonObject GetOperationJson (JsonObject, character, MethodEnum)
  Progress.Json.ObjectModel.JsonObject GetSchemaJson (JsonObject, character)
  Progress.Json.ObjectModel.JsonObject GetServiceJson (DataObjectService)
  Open ()
  Progress.Json.ObjectModel.JsonArray WriteArgumentWriters (BuilderRegistry) /* Writes the Operation Cookies into JSON @param OperationOptions A set of options @return JsonArray */
  WriteEntityOperation (MappedOperation, JsonObject) /* Writes the contents of anh ENTITY operation to the JSON @param MappedOperation The operation to write @param JsonObject The JSON output */
  WriteFileOperation (MappedOperation, JsonObject) /* Writes the contents of a FILE operation to the JSON @param MappedOperation The operation to write @param JsonObject The JSON output */
  Progress.Json.ObjectModel.JsonConstruct WriteMessageElement (OperationParameter) /* Builds the appropriate JSON for a parameter's messgae element(s) @param OperationParameter @return JsonConstruct Either unknown, or a JsonObject or JsonArray */
  WriteOperation (DataObjectService, MappedOperation) /* Writes a single MappedOperation @param DataObjectService The current service @param MappedOperation The service operation to write */
  Progress.Json.ObjectModel.JsonArray WriteOperationCookies (CookieCollection) /* Writes the Operation Cookies into JSON @param OperationOptions A set of options @return JsonArray */
  Progress.Json.ObjectModel.JsonObject WriteOperationHeaders (HttpHeaderCollection) /* Writes the Operation Headers into JSON @param OperationOptions A set of options @return JsonObject The JSON data */
  Progress.Json.ObjectModel.JsonObject WriteOperationOptions (OperationOptions) /* Writes the Operation options into JSON @param OperationOptions A set of options @return JsonObject */
  WriteSchema (DataObjectService, handle) /* Writes a single schema @param DataObjectService The current service @param handle The service schema to write */
  Progress.Json.ObjectModel.JsonObject WriteSchemaTable (handle) /* Writes schema data for a table @param handle The schema to write */
  WriteService (DataObjectService) /* Writes a single Data Object Service @param DataObjectService The service to write */
  WriteUnknownOperation (MappedOperation, JsonObject) /* Writes the contents of an unknown (undefined) operation to the JSON @param MappedOperation The operation to write @param JsonObject The JSON output */
  Progress.Json.ObjectModel.JsonObject WriteVoidOperation (MappedOperation, JsonObject) /* Writes the contents of a VOID operation to the JSON @param MappedOperation The operation to write @param JsonObject The JSON output */

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

Method Detail
Top

Progress.Json.ObjectModel.JsonObject GetOperationJson (JsonObject, character, MethodEnum)

Parameters:
pServiceData Progress.Json.ObjectModel.JsonObject
 
pUri CHARACTER
 
pMethod OpenEdge.Net.HTTP.MethodEnum
 
Returns Progress.Json.ObjectModel.JsonObject
 
Top

Progress.Json.ObjectModel.JsonObject GetSchemaJson (JsonObject, character)

Parameters:
pServiceData Progress.Json.ObjectModel.JsonObject
 
pSchemaName CHARACTER
 
Returns Progress.Json.ObjectModel.JsonObject
 
Top

Progress.Json.ObjectModel.JsonObject GetServiceJson (DataObjectService)

Parameters:
pService OpenEdge.Web.DataObject.DataObjectService
 
Returns Progress.Json.ObjectModel.JsonObject
 
Top

Open ()

Top

Progress.Json.ObjectModel.JsonArray WriteArgumentWriters (BuilderRegistry)

/* Writes the Operation Cookies into JSON
Parameters:
pData OpenEdge.Core.Util.BuilderRegistry
 
Returns Progress.Json.ObjectModel.JsonArray
  JsonArray
Top

WriteEntityOperation (MappedOperation, JsonObject)

/* Writes the contents of anh ENTITY operation to the JSON
Parameters:
pOperation OpenEdge.Web.DataObject.MappedOperation
 
pJson Progress.Json.ObjectModel.JsonObject
 
Top

WriteFileOperation (MappedOperation, JsonObject)

/* Writes the contents of a FILE operation to the JSON
Parameters:
pOperation OpenEdge.Web.DataObject.MappedOperation
 
pJson Progress.Json.ObjectModel.JsonObject
 
Top

Progress.Json.ObjectModel.JsonConstruct WriteMessageElement (OperationParameter)

/* Builds the appropriate JSON for a parameter's messgae element(s)
Parameters:
pParam OpenEdge.Web.DataObject.OperationParameter
 
Returns Progress.Json.ObjectModel.JsonConstruct
  JsonConstruct Either unknown, or a JsonObject or JsonArray
Top

WriteOperation (DataObjectService, MappedOperation)

/* Writes a single MappedOperation
Parameters:
pService OpenEdge.Web.DataObject.DataObjectService
 
pOperation OpenEdge.Web.DataObject.MappedOperation
 
Top

Progress.Json.ObjectModel.JsonArray WriteOperationCookies (CookieCollection)

/* Writes the Operation Cookies into JSON
Parameters:
pData OpenEdge.Net.HTTP.CookieCollection
 
Returns Progress.Json.ObjectModel.JsonArray
  JsonArray
Top

Progress.Json.ObjectModel.JsonObject WriteOperationHeaders (HttpHeaderCollection)

/* Writes the Operation Headers into JSON
Parameters:
pData OpenEdge.Net.HTTP.HttpHeaderCollection
 
Returns Progress.Json.ObjectModel.JsonObject
  JsonObject The JSON data
Top

Progress.Json.ObjectModel.JsonObject WriteOperationOptions (OperationOptions)

/* Writes the Operation options into JSON
Parameters:
pData OpenEdge.Web.DataObject.OperationOptions
 
Returns Progress.Json.ObjectModel.JsonObject
  JsonObject
Top

WriteSchema (DataObjectService, handle)

/* Writes a single schema
Parameters:
pService OpenEdge.Web.DataObject.DataObjectService
 
pSchema HANDLE
 
Top

Progress.Json.ObjectModel.JsonObject WriteSchemaTable (handle)

/* Writes schema data for a table
Parameters:
pSchema HANDLE
 
Returns Progress.Json.ObjectModel.JsonObject
 
Top

WriteService (DataObjectService)

/* Writes a single Data Object Service
Parameters:
pData OpenEdge.Web.DataObject.DataObjectService
 
Top

WriteUnknownOperation (MappedOperation, JsonObject)

/* Writes the contents of an unknown (undefined) operation to the JSON
Parameters:
pOperation OpenEdge.Web.DataObject.MappedOperation
 
pJson Progress.Json.ObjectModel.JsonObject
 
Top

Progress.Json.ObjectModel.JsonObject WriteVoidOperation (MappedOperation, JsonObject)

/* Writes the contents of a VOID operation to the JSON
Parameters:
pOperation OpenEdge.Web.DataObject.MappedOperation
 
pJson Progress.Json.ObjectModel.JsonObject
 
Returns Progress.Json.ObjectModel.JsonObject
 


Constructor Detail
Top

MappingFileServiceWriter ()

/* Default constructor