-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8372 from mandy-chessell/oak2024
Changes to Egeria's namespace name
- Loading branch information
Showing
11 changed files
with
239 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
177 changes: 177 additions & 0 deletions
177
.../connectors/integration/openlineage/controls/OpenLineagePublishConfigurationProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
|
||
package org.odpi.openmetadata.adapters.connectors.integration.openlineage.controls; | ||
|
||
import org.odpi.openmetadata.frameworks.connectors.controls.ConfigurationPropertyType; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* OMAGServerPlatformConfigurationProperty defines the configuration properties used with the OMAG Server Platform connectors. | ||
*/ | ||
public enum OpenLineagePublishConfigurationProperty | ||
{ | ||
/** | ||
* Namespace is used to group open lineage events together. | ||
*/ | ||
NAMESPACE ("namespace", | ||
"Namespace is used to group open lineage events together.", | ||
"string", | ||
"GovernanceActions", | ||
false), | ||
|
||
; | ||
|
||
public final String name; | ||
public final String description; | ||
public final String dataType; | ||
public final String example; | ||
public final boolean isPlaceholder; | ||
|
||
|
||
/** | ||
* Create a specific Enum constant. | ||
* | ||
* @param name name of the request parameter | ||
* @param description description of the request parameter | ||
* @param dataType type of value of the request parameter | ||
* @param example example of the request parameter | ||
* @param isPlaceholder is this also used as a placeholder property? | ||
*/ | ||
OpenLineagePublishConfigurationProperty(String name, | ||
String description, | ||
String dataType, | ||
String example, | ||
boolean isPlaceholder) | ||
{ | ||
this.name = name; | ||
this.description = description; | ||
this.dataType = dataType; | ||
this.example = example; | ||
this.isPlaceholder = isPlaceholder; | ||
} | ||
|
||
|
||
/** | ||
* Return the name of the request parameter. | ||
* | ||
* @return string name | ||
*/ | ||
public String getName() | ||
{ | ||
return name; | ||
} | ||
|
||
|
||
/** | ||
* Return the description of the configuration property. | ||
* | ||
* @return text | ||
*/ | ||
public String getDescription() | ||
{ | ||
return description; | ||
} | ||
|
||
|
||
/** | ||
* Return the data type for the configuration property. | ||
* | ||
* @return data type name | ||
*/ | ||
public String getDataType() | ||
{ | ||
return dataType; | ||
} | ||
|
||
|
||
/** | ||
* Return an example of the configuration property to help users understand how to set it up. | ||
* | ||
* @return example | ||
*/ | ||
public String getExample() | ||
{ | ||
return example; | ||
} | ||
|
||
|
||
/** | ||
* Return whether this value is also used as a placeholder property. | ||
* | ||
* @return boolean | ||
*/ | ||
public boolean isPlaceholder() | ||
{ | ||
return isPlaceholder; | ||
} | ||
|
||
|
||
|
||
/** | ||
* Get recognizedConfigurationProperties for the connector. | ||
* | ||
* @return list of property names | ||
*/ | ||
public static List<String> getRecognizedConfigurationProperties() | ||
{ | ||
List<String> recognizedConfigurationProperties = new ArrayList<>(); | ||
|
||
for (OpenLineagePublishConfigurationProperty configurationProperty : OpenLineagePublishConfigurationProperty.values()) | ||
{ | ||
recognizedConfigurationProperties.add(configurationProperty.getName()); | ||
} | ||
return recognizedConfigurationProperties; | ||
} | ||
|
||
|
||
/** | ||
* Retrieve all the defined configuration properties | ||
* | ||
* @return list of configuration property types | ||
*/ | ||
public static List<ConfigurationPropertyType> getConfigurationPropertyTypes() | ||
{ | ||
List<ConfigurationPropertyType> configurationPropertyTypes = new ArrayList<>(); | ||
|
||
for (OpenLineagePublishConfigurationProperty configurationProperty : OpenLineagePublishConfigurationProperty.values()) | ||
{ | ||
configurationPropertyTypes.add(configurationProperty.getConfigurationPropertyType()); | ||
} | ||
|
||
return configurationPropertyTypes; | ||
} | ||
|
||
|
||
/** | ||
* Return a summary of this enum to use in a connector provider. | ||
* | ||
* @return request parameter type | ||
*/ | ||
public ConfigurationPropertyType getConfigurationPropertyType() | ||
{ | ||
ConfigurationPropertyType configurationPropertyType = new ConfigurationPropertyType(); | ||
|
||
configurationPropertyType.setName(name); | ||
configurationPropertyType.setDescription(description); | ||
configurationPropertyType.setDataType(dataType); | ||
configurationPropertyType.setExample(example); | ||
configurationPropertyType.setRequired(isPlaceholder); | ||
|
||
return configurationPropertyType; | ||
} | ||
|
||
|
||
/** | ||
* Output of this enum class and main value. | ||
* | ||
* @return string showing enum value | ||
*/ | ||
@Override | ||
public String toString() | ||
{ | ||
return "ConfigurationProperty{ name=" + name + "}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters