Skip to content

Commit

Permalink
Merge pull request #8451 from mandy-chessell/oak2024
Browse files Browse the repository at this point in the history
Remove serverId from template qualifiedName
  • Loading branch information
mandy-chessell authored Oct 17, 2024
2 parents 1fb37ee + 47fa93a commit 9a7b914
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 56 deletions.
2 changes: 1 addition & 1 deletion EgeriaContentPacksGUIDMap.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/APIsContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/ApacheAtlasContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/ApacheKafkaContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CoreContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/ObservabilityContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/PostgresContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/UnityCatalogContentPack.omarchive

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public enum EgeriaSoftwareServerTemplateDefinition implements TemplateDefinition
DeployedImplementationType.USER_AUTHENTICATION_MANAGER,
"User Token Manager",
OMAGServerPlatformPlaceholderProperty.PLATFORM_NAME.getPlaceholder(),
null,
OMAGServerPlatformPlaceholderProperty.PLATFORM_DESCRIPTION.getPlaceholder(),
OMAGServerPlatformPlaceholderProperty.CONNECTION_USER_ID.getPlaceholder(),
new OMAGServerPlatformProvider().getConnectorType().getGUID(),
Expand All @@ -53,7 +52,6 @@ public enum EgeriaSoftwareServerTemplateDefinition implements TemplateDefinition
DeployedImplementationType.REST_API_MANAGER,
"Governance Engine Status APIs",
PlaceholderProperty.SERVER_NAME.getPlaceholder(),
PlaceholderProperty.SERVER_ID.getPlaceholder(),
PlaceholderProperty.DESCRIPTION.getPlaceholder(),
PlaceholderProperty.CONNECTION_USER_ID.getPlaceholder(),
new EngineHostProvider().getConnectorType().getGUID(),
Expand All @@ -70,7 +68,6 @@ public enum EgeriaSoftwareServerTemplateDefinition implements TemplateDefinition
DeployedImplementationType.REST_API_MANAGER,
"Governance Engine Status APIs",
PlaceholderProperty.SERVER_NAME.getPlaceholder(),
PlaceholderProperty.SERVER_ID.getPlaceholder(),
PlaceholderProperty.DESCRIPTION.getPlaceholder(),
PlaceholderProperty.CONNECTION_USER_ID.getPlaceholder(),
new IntegrationDaemonProvider().getConnectorType().getGUID(),
Expand All @@ -87,7 +84,6 @@ public enum EgeriaSoftwareServerTemplateDefinition implements TemplateDefinition
DeployedImplementationType.REST_API_MANAGER,
"Open Metadata Repository Access APIs",
PlaceholderProperty.SERVER_NAME.getPlaceholder(),
PlaceholderProperty.SERVER_ID.getPlaceholder(),
PlaceholderProperty.DESCRIPTION.getPlaceholder(),
PlaceholderProperty.CONNECTION_USER_ID.getPlaceholder(),
new MetadataAccessServerProvider().getConnectorType().getGUID(),
Expand All @@ -104,7 +100,6 @@ public enum EgeriaSoftwareServerTemplateDefinition implements TemplateDefinition
DeployedImplementationType.REST_API_MANAGER,
"Open Metadata and Governance End User APIs",
PlaceholderProperty.SERVER_NAME.getPlaceholder(),
PlaceholderProperty.SERVER_ID.getPlaceholder(),
PlaceholderProperty.DESCRIPTION.getPlaceholder(),
PlaceholderProperty.CONNECTION_USER_ID.getPlaceholder(),
new ViewServerProvider().getConnectorType().getGUID(),
Expand Down Expand Up @@ -185,7 +180,6 @@ public static List<PlaceholderPropertyType> getViewServerPlaceholderPropertyType
private final DeployedImplementationTypeDefinition softwareCapabilityType;
private final String softwareCapabilityName;
private final String serverName;
private final String serverId;
private final String description;
private final String userId;
private final String connectorTypeGUID;
Expand All @@ -206,7 +200,6 @@ public static List<PlaceholderPropertyType> getViewServerPlaceholderPropertyType
* @param softwareCapabilityType type of the associated capability
* @param softwareCapabilityName name for the associated capability
* @param serverName name for the server
* @param serverId id for the server
* @param description description for the server
* @param userId userId for the connection
* @param connectorTypeGUID connector type to link to the connection
Expand All @@ -223,7 +216,6 @@ public static List<PlaceholderPropertyType> getViewServerPlaceholderPropertyType
DeployedImplementationTypeDefinition softwareCapabilityType,
String softwareCapabilityName,
String serverName,
String serverId,
String description,
String userId,
String connectorTypeGUID,
Expand All @@ -240,7 +232,6 @@ public static List<PlaceholderPropertyType> getViewServerPlaceholderPropertyType
this.softwareCapabilityType = softwareCapabilityType;
this.softwareCapabilityName = softwareCapabilityName;
this.serverName = serverName;
this.serverId = serverId;
this.description = description;
this.userId = userId;
this.connectorTypeGUID = connectorTypeGUID;
Expand Down Expand Up @@ -273,14 +264,7 @@ public String getTemplateGUID()
*/
public String getQualifiedName()
{
if (serverId == null)
{
return deployedImplementationType.getDeployedImplementationType() + ":" + serverName;
}
else
{
return deployedImplementationType.getDeployedImplementationType() + ":" + serverName + "[" + serverId + "]";
}
return deployedImplementationType.getDeployedImplementationType() + ":" + serverName;
}


Expand Down Expand Up @@ -363,17 +347,6 @@ public String getServerName()
}


/**
* Return the id of the server.
*
* @return string
*/
public String getServerId()
{
return serverId;
}


/**
* Return the server description.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,34 @@ public B getNewBean(Class<B> beanClass,
OpenMetadataElement openMetadataElement,
String methodName) throws PropertyServerException
{
try
if (openMetadataElement != null)
{
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof MetadataElementSummary elementSummary)
try
{
ElementHeader elementHeader = new ElementHeader(openMetadataElement);

elementHeader.setGUID(openMetadataElement.getElementGUID());
elementHeader.setClassifications(this.getElementClassifications(openMetadataElement.getClassifications()));
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.getDeclaredConstructor().newInstance();

elementSummary.setElementHeader(elementHeader);
if (openMetadataElement.getElementProperties() != null)
if (returnBean instanceof MetadataElementSummary elementSummary)
{
elementSummary.setProperties(openMetadataElement.getElementProperties().getPropertiesAsStrings());
ElementHeader elementHeader = new ElementHeader(openMetadataElement);

elementHeader.setGUID(openMetadataElement.getElementGUID());
elementHeader.setClassifications(this.getElementClassifications(openMetadataElement.getClassifications()));

elementSummary.setElementHeader(elementHeader);
if (openMetadataElement.getElementProperties() != null)
{
elementSummary.setProperties(openMetadataElement.getElementProperties().getPropertiesAsStrings());
}
}
return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Data Discovery OMVS

The Data Designer OMVS enables the caller to define and search for new data resources.
The Data Discovery OMVS enables the caller to define and search for new data resources.

Link to documentation: [https://egeria-project.org/services/omvs/data-discovery/overview/](https://egeria-project.org/services/omvs/data-discovery/overview/)

Expand Down

0 comments on commit 9a7b914

Please sign in to comment.