|
Options |
Name |
Purpose |
|
|
#
|
CollectInstanceInput (JsonArray, character)
|
Flattens the nested instances JSON array into ttInstanceInput
Notes : The InstanceName is treated as unique key. ParentInstanceName is derived from nesting.
@param poInstances JsonArray with instances
@param pcParentInstanceName The parent instance name for the current level
*/
|
|
|
#
|
DeleteLinks (character)
|
Deletes eSmartLink records for the given repository object master that are not present in ttLinkInput
Notes : ttLinkInput is prepared in UpdateRepositoryObject
@param pcObjectMasterGuid The object master guid of the container
*/
|
|
|
#
|
DeleteObjectInstances (character)
|
Deletes eSmartObjectInstance records for the given repository object master that are not present in ttInstanceInput
Notes : Also deletes eSmartLink records that reference the deleted instance to avoid dangling references
@param pcObjectMasterGuid The object master guid of the container
*/
|
|
|
#
|
DeletePages (character)
|
Deletes eSmartPage records for the given repository object master that are not present in ttPageInput
Notes : ttPageInput is prepared in UpdateRepositoryObject
@param pcObjectMasterGuid The object master guid of the container
*/
|
|
|
#
|
Progress.Json.ObjectModel.JsonObject GetEventDetails ()
|
Returns the event details from the current dsDesignAttributeValue dataset
Notes : The result is a JsonObject keyed by AttributeLabel, each entry contains a value and optional metadata
@return JsonObject containing event details
*/
|
|
|
#
|
Progress.Json.ObjectModel.JsonArray GetObjectInstances (character, character, AttributeValueBusinessEntity)
|
Returns the object instances for a container and parent instance guid
Notes : This method is recursive and walks the eSmartObjectInstance hierarchy
@param pcContainerObjectMasterGuid The ObjectMasterGuid of the container (object master)
@param pcParentInstanceGuid The parent instance guid (empty string for root)
@param poAttributes The AttributeValueBusinessEntity instance used to retrieve design attributes
@return JsonArray containing one JsonObject per instance
*/
|
|
|
#
|
Progress.Json.ObjectModel.JsonArray GetObjectLinks ()
|
Returns the links of the currently loaded repository object
Notes : Iterates the eSmartLink temp-table. Resolves LinkType name from LinkTypeGuid.
@return JsonArray containing link details
*/
|
|
|
#
|
Progress.Json.ObjectModel.JsonArray GetObjectPages ()
|
Returns the pages of the currently loaded repository object
Notes : Iterates the eSmartPage temp-table
@return JsonArray containing page details
*/
|
|
|
#
|
INTEGER GetPageSequence (character)
|
Returns the page sequence for a page guid
Notes : Uses the already retrieved eSmartPage temp-table
@param pcPageGuid The page guid to resolve
@return The PageSequence value or 0 when not found
*/
|
|
|
#
|
Progress.Json.ObjectModel.JsonObject GetPropertyDetails (character)
|
Returns the property details from the current dsDesignAttributeValue dataset
Notes : The result is a JsonObject keyed by AttributeLabel, each entry contains a value and optional metadata
@param pcObjectTypeGuid The ObjectTypeGuid of the object master or object instance
@return JsonObject containing property details
*/
|
|
|
+
|
Progress.Json.ObjectModel.JsonObject GetRepositoryAttributeDetails ()
|
Returns repository attribute details for all attributes
Notes : Reads all records from the AttributeBusinessEntity and returns a JsonObject keyed by AttributeLabel
@return JsonObject containing one entry per repository attribute
*/
|
|
|
+
|
Progress.Json.ObjectModel.JsonObject GetRepositoryObject (character)
|
Returns details about a repository object master
Notes : Uses ObjectMasterDatasetModel and enriches the result with design-time attributes and events
@param pcObjectName The object name to load
@return JsonObject containing object details
*/
|
|
|
#
|
UpdateLinks (character, JsonObject)
|
Updates or creates links for the repository object master and prepares ttLinkInput
Notes : Reads the 'links' JsonArray from the provided object
@param pcObjectMasterGuid The object master guid of the container
@param poObject The repository object JSON
*/
|
|
|
#
|
UpdateObjectInstances (character, JsonObject, ISmartRepositoryService)
|
Updates or creates object instances for the repository object master and prepares ttInstanceInput
Notes : Reads the nested 'instances' JsonArray from the provided object and sets ParentInstanceGuid based on nesting
@param pcObjectMasterGuid The object master guid of the container
@param poObject The repository object JSON
@param poRepository Repository service used for resolving object masters
*/
|
|
|
#
|
UpdatePages (character, JsonObject)
|
Updates or creates pages for the repository object master and prepares ttPageInput
Notes : Reads the 'pages' JsonArray from the provided object
@param pcObjectMasterGuid The object master guid of the container
@param poObject The repository object JSON
*/
|
|
|
+
|
Progress.Json.ObjectModel.JsonObject UpdateRepositoryObject (JsonObject)
|
Updates or creates a repository object master and synchronizes its pages, instances and links
Notes : The input JSON is expected to follow the structure returned by GetRepositoryObject.
The method loads dsObjectMaster, enables TrackingChanges, applies changes and calls SaveChanges when needed.
@param poObject The updated repository object JSON
@return JsonObject with basic update result information
*/
|