Namespace: Consultingwerk.OERA
Class 
ServiceNameMappingService Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Ccs.Common.IService, Consultingwerk.OERA.IServiceNameMappingService

File:ServiceNameMappingService
Purpose:Default implementation of IServiceNameMappingService
Interface. Supports the mapping of the business service
name (e.g. Business Entity or Business Task) to the
actual class name
Description:Supports mapping of short names to actual class names
(SCL-1171)
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Feb 04 22:31:04 CET 2016
Notes:Reads service mapping from a file .servicenamemapping
From Consultingwerk/OERA/ttServiceNameMapping.i
Supports custom log file messages using the "ServiceNameMappingService"
custom message sub system
Performs automatic mapping based on the "autoServiceNameMapping"
entry in the .applicationsettings/.restapplicationsettings
file, e.g.
"autoServiceNameMapping": "Consultingwerk\\SmartFramework\\*BusinessEntity.r,Consultingwerk\\SmartComponentsDemo\\*BusinessEntity.r",
"autoServiceNameMappingThrowOnInvalidFolder": "false",



Top Method Summary
Options Name Purpose
# AutoMapFromRepository (character) Performs auto mapping of repository based Business Entity Names
# AutoMapServiceNames (character, character) Performs automatic mapping of Business Entity file names to Short names
+ dispose () Disposes the service instance
+ CHARACTER GetBusinessServiceName (character) Returns the actual business service name for the provided class name
+ initialize () Initializes the service instance

Top Constructor Summary
Options Name Purpose
+ ServiceNameMappingService () Constructor for the ServiceNameMappingService class


Method Detail
Top

PROTECTED AutoMapFromRepository (character)

Purpose: Performs auto mapping of repository based Business Entity Names
Notes:

Parameters:
pcRepositoryEntityTypes CHARACTER
The repository object type names to auto map
Top

PROTECTED AutoMapServiceNames (character, character)

Purpose: Performs automatic mapping of Business Entity file names to
Short names
Notes: See SCL1592

Parameters:
pcMapping CHARACTER
The value of the autoServiceNameMapping setting (IConfigurationProvider)
pcThrowOnInvalidDirectory CHARACTER
Throw errors on invalid directory entries
Top

PUBLIC dispose ()

Purpose: Disposes the service instance
Notes:

Top

PUBLIC CHARACTER GetBusinessServiceName (character)

Purpose: Returns the actual business service name for the provided class
name
Notes:

Parameters:
pcServiceName CHARACTER
The service name as provided by the consumer
Returns CHARACTER
The name of the actual business service implementing class
Top

PUBLIC initialize ()

Purpose: Initializes the service instance
Notes:



Constructor Detail
Top

PUBLIC ServiceNameMappingService ()

Purpose: Constructor for the ServiceNameMappingService class
Notes:



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:53:10