@@ -36,8 +36,7 @@ class SzConfigManager(ABC):
3636 @abstractmethod
3737 def create_config_from_config_id (self , config_id : int ) -> SzConfig :
3838 """
39- The `create_config_from_config_id` method creates an in-memory Senzing configuration
40- from a specific Senzing configuration stored in the Senzing database.
39+ The `create_config_from_config_id` method creates a new SzConfig instance for a configuration ID.
4140
4241 Args:
4342 config_id (int): The configuration identifier of the desired Senzing configuration to retrieve.
@@ -64,8 +63,7 @@ def create_config_from_config_id(self, config_id: int) -> SzConfig:
6463 @abstractmethod
6564 def create_config_from_string (self , config_definition : str ) -> SzConfig :
6665 """
67- The `create_config_from_string` method creates an in-memory Senzing configuration
68- from the given Senzing configuration JSON document.
66+ The `create_config_from_string` method creates a new SzConfig instance from a configuration definition.
6967
7068 Args:
7169 config_definition (str): The Senzing configuration JSON document.
@@ -92,8 +90,10 @@ def create_config_from_string(self, config_definition: str) -> SzConfig:
9290 @abstractmethod
9391 def create_config_from_template (self ) -> SzConfig :
9492 """
95- The `create_config_from_template` method creates an in-memory Senzing configuration
96- from the template Senzing configuration JSON document located at PIPELINE.RESOURCEPATH/templates/g2config.json
93+ The `create_config_from_template` method Creates a new SzConfig instance
94+ from the template configuration definition.
95+
96+ The template configuration is located at PIPELINE.RESOURCEPATH/templates/g2config.json
9797
9898 Args:
9999 config_definition (str): The Senzing configuration JSON document.
@@ -120,7 +120,7 @@ def create_config_from_template(self) -> SzConfig:
120120 @abstractmethod
121121 def get_config_registry (self ) -> str :
122122 """
123- The `get_config_registry` method retrieves a list of Senzing configurations from the Senzing database .
123+ The `get_config_registry` method gets the configuration registry .
124124
125125 Returns:
126126 str: A JSON document containing Senzing configurations.
@@ -144,7 +144,7 @@ def get_config_registry(self) -> str:
144144 @abstractmethod
145145 def get_default_config_id (self ) -> int :
146146 """
147- The `get_default_config_id` method retrieves from the Senzing database the configuration identifier of the default Senzing configuration .
147+ The `get_default_config_id` method gets the default configuration for the repository .
148148
149149 Returns:
150150 int: A configuration identifier which identifies the current configuration in use.
@@ -168,7 +168,7 @@ def get_default_config_id(self) -> int:
168168 @abstractmethod
169169 def register_config (self , config_definition : str , config_comment : str ) -> int :
170170 """
171- The `register_config` method adds a Senzing configuration JSON document to the Senzing database .
171+ The `register_config` method registers a configuration definition with the repository .
172172
173173 Args:
174174 config_definition (str): The Senzing configuration JSON document.
@@ -196,7 +196,9 @@ def register_config(self, config_definition: str, config_comment: str) -> int:
196196 @abstractmethod
197197 def replace_default_config_id (self , current_default_config_id : int , new_default_config_id : int ) -> None :
198198 """
199- The `replace_default_config_id` method replaces the old configuration identifier with a new configuration identifier in the Senzing database.
199+ The `replace_default_config_id` method replaces the existing default configuration ID with a new
200+ configuration ID.
201+
200202 It is like a "compare-and-swap" instruction to serialize concurrent editing of configuration.
201203 If `current_default_config_id` is no longer the "current configuration identifier", the operation will fail.
202204 To simply set the default configuration ID, use `set_default_config_id`.
@@ -218,7 +220,9 @@ def replace_default_config_id(self, current_default_config_id: int, new_default_
218220 @abstractmethod
219221 def set_default_config (self , config_definition : str , config_comment : str ) -> int :
220222 """
221- The `set_default_config` method replaces the current default Senzing configuration in the Senzing database.
223+ The `set_default_config` method registers a configuration with the repository and sets its ID as the default
224+ for the repository.
225+
222226 To serialize modifying of the configuration identifier, see `replace_default_config_id`.
223227
224228 Args:
@@ -244,7 +248,8 @@ def set_default_config(self, config_definition: str, config_comment: str) -> int
244248 @abstractmethod
245249 def set_default_config_id (self , config_id : int ) -> None :
246250 """
247- The `set_default_config_id` method replaces and sets a new configuration identifier in the Senzing database.
251+ The `set_default_config_id` method Sets the default configuration ID.
252+
248253 To serialize modifying of the configuration identifier, see `replace_default_config_id`.
249254
250255 Args:
@@ -266,7 +271,7 @@ def set_default_config_id(self, config_id: int) -> None:
266271
267272 def help (self , method_name : str = "" ) -> str :
268273 """
269- Return the help for a particular message.
274+ The `help` method returns help for a particular message.
270275
271276 Args:
272277 method_name (str): The name of the method. (e.g. "init"). If empty, a list of methods and descriptions is returned.
0 commit comments