Skip to content

Commit

Permalink
Merge pull request #8394 from mandy-chessell/oak2024
Browse files Browse the repository at this point in the history
Split up CoreContentPack
  • Loading branch information
mandy-chessell authored Sep 22, 2024
2 parents 85da3dc + 16da44d commit 462635b
Show file tree
Hide file tree
Showing 154 changed files with 5,484 additions and 9,080 deletions.
2 changes: 1 addition & 1 deletion EgeriaContentPacksGUIDMap.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ server.port=9443

###############################################
### Set up the configuration document store the OMAG Server Platform
### The values below will set up the clear text config document store
### (the default is the encrypted config document store).
### The values below will set up the clear text config document store (default)
### Change the class name to change the implementation of the configuration document store
################################################
platform.configstore.provider=org.odpi.openmetadata.adapters.adminservices.configurationstore.file.FileBasedServerConfigStoreProvider
platform.configstore.endpoint=data/servers/{0}/config/{0}.config
Expand Down
4 changes: 2 additions & 2 deletions container.application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ server.port=9443

###############################################
### Set up the configuration document store the OMAG Server Platform
### The values below will set up the clear text config document store
### (the default is the encrypted config document store).
### The values below will set up the clear text config document store (default)
### Change the class name to change the implementation of the configuration document store
################################################
platform.configstore.provider=org.odpi.openmetadata.adapters.adminservices.configurationstore.file.FileBasedServerConfigStoreProvider
platform.configstore.endpoint=data/servers/{0}/config/{0}.config
Expand Down
1 change: 1 addition & 0 deletions content-packs/ApacheAtlasContentPack.omarchive

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions content-packs/ApacheKafkaContentPack.omarchive

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoTypesArchive.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/OpenMetadataTypes.omarchive

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions content-packs/PostgresContentPack.omarchive

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions content-packs/UnityCatalogContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions open-metadata-distribution/omag-server-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies {
implementation project(':open-metadata-implementation:adapters:open-connectors:configuration-store-connectors:configuration-file-store-connector')
implementation project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:files-integration-connectors')
implementation project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:kafka-audit-integration-connector')
implementation project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:kafka-integration-connector')
implementation project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:jdbc-integration-connector')
implementation project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:openapi-integration-connector')
implementation project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:openlineage-integration-connectors')
Expand Down Expand Up @@ -211,7 +210,6 @@ distributions {
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:files-integration-connectors').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:csv-lineage-import-integration-connector').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:kafka-audit-integration-connector').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:kafka-integration-connector').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:jdbc-integration-connector').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:openapi-integration-connector').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:openlineage-integration-connectors').jar }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.odpi.openmetadata.accessservices.assetconsumer.api.AssetConsumerLoggingInterface;
import org.odpi.openmetadata.accessservices.assetconsumer.api.AssetConsumerTaggingInterface;
import org.odpi.openmetadata.accessservices.assetconsumer.client.rest.AssetConsumerRESTClient;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
import org.odpi.openmetadata.commonservices.ffdc.rest.*;
import org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement;
import org.odpi.openmetadata.frameworks.openmetadata.metadataelements.MeaningElement;
Expand Down Expand Up @@ -53,7 +54,7 @@ public class AssetConsumer extends ConnectedAssetClientBase implements AssetCons
{
private final AssetConsumerRESTClient restClient; /* Initialized in constructor */

private static final String serviceURLName = "asset-consumer";
private static final String serviceURLName = AccessServiceDescription.ASSET_CONSUMER_OMAS.getAccessServiceURLMarker();

/**
* Create a new client with no authentication embedded in the HTTP request.
Expand Down Expand Up @@ -529,28 +530,6 @@ public List<String> getAssetsByToken(String userId,
}


/**
* Returns a comprehensive collection of properties about the requested asset.
*
* @param userId userId of user making request.
* @param assetGUID unique identifier for asset.
*
* @return a comprehensive collection of properties about the asset.
*
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving the asset properties from the property servers.
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
@Override
public AssetUniverse getAssetProperties(String userId,
String assetGUID) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
return super.getAssetProperties(serviceURLName, userId, assetGUID);
}


/*
* ===============================================
* AssetConsumerFeedbackInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.odpi.openmetadata.accessservices.assetowner.api.*;
import org.odpi.openmetadata.accessservices.assetowner.client.rest.AssetOwnerRESTClient;
import org.odpi.openmetadata.accessservices.assetowner.rest.TemplateRequestBody;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
import org.odpi.openmetadata.commonservices.ffdc.rest.*;
import org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElement;
import org.odpi.openmetadata.frameworks.openmetadata.metadataelements.*;
Expand Down Expand Up @@ -34,6 +35,7 @@
import org.odpi.openmetadata.frameworks.openmetadata.properties.governance.GovernanceClassificationProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.schema.DataFieldQueryProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.schema.DataFieldValuesProperties;
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;
import org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation;
import org.odpi.openmetadata.frameworks.surveyaction.properties.AnnotationStatus;
import org.odpi.openmetadata.frameworks.surveyaction.properties.SurveyReport;
Expand All @@ -58,8 +60,8 @@ public class AssetOwner extends AssetOwnerBaseClient implements AssetKnowledgeIn
AssetReviewInterface,
AssetDecommissioningInterface
{
private static final String serviceURLName = "asset-owner";
private static final String defaultAssetType = "Asset";
private static final String serviceURLName = AccessServiceDescription.ASSET_OWNER_OMAS.getAccessServiceURLMarker();
private static final String defaultAssetType = OpenMetadataType.ASSET.typeName;


/**
Expand Down Expand Up @@ -158,28 +160,6 @@ public AssetOwner(String serverName,
}


/**
* Returns a comprehensive collection of properties about the requested asset.
*
* @param userId userId of user making request.
* @param assetGUID unique identifier for asset.
*
* @return a comprehensive collection of properties about the asset.
*
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving the asset properties from the property servers).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
@Override
public AssetUniverse getAssetProperties(String userId,
String assetGUID) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
return super.getAssetProperties(serviceURLName, userId, assetGUID);
}


/**
* Return the asset subtype names.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ public Connector getConnectorByConnection(Connection connection) throws InvalidP
@Override
public AssetUniverse getAssetProperties() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
{
return connectedAssetClient.getAssetProperties(AccessServiceDescription.ASSET_OWNER_OMAS.getAccessServiceFullName(),
userId,
assetGUID);
return connectedAssetClient.getAssetProperties(userId, assetGUID);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package org.odpi.openmetadata.adapters.connectors.postgres.catalog;

import org.odpi.openmetadata.adapters.connectors.postgres.controls.PostgresConfigurationProperty;
import org.odpi.openmetadata.adapters.connectors.postgres.controls.PostgresDeployedImplementationType;
import org.odpi.openmetadata.adapters.connectors.postgres.ffdc.PostgresAuditCode;
import org.odpi.openmetadata.adapters.connectors.resource.jdbc.JDBCResourceConnector;
import org.odpi.openmetadata.adapters.connectors.resource.jdbc.JDBCResourceConnectorProvider;
Expand All @@ -20,7 +21,6 @@
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;
import org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement;
import org.odpi.openmetadata.frameworks.governanceaction.properties.RelatedMetadataElement;
import org.odpi.openmetadata.frameworks.openmetadata.refdata.DeployedImplementationType;
import org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties;
import org.odpi.openmetadata.frameworks.governanceaction.search.PropertyHelper;
import org.odpi.openmetadata.frameworks.integration.connectors.CatalogTargetIntegrator;
Expand Down Expand Up @@ -130,7 +130,7 @@ public void integrateCatalogTarget(RequestedCatalogTarget requestedCatalogTarget
{
final String methodName = "integrateCatalogTarget";

if (DeployedImplementationType.POSTGRESQL_SERVER.getAssociatedTypeName().equals(requestedCatalogTarget.getCatalogTargetElement().getType().getTypeName()))
if (PostgresDeployedImplementationType.POSTGRESQL_SERVER.getAssociatedTypeName().equals(requestedCatalogTarget.getCatalogTargetElement().getType().getTypeName()))
{
String databaseServerGUID = requestedCatalogTarget.getCatalogTargetElement().getGUID();
String databaseManagerGUID = this.getDatabaseManagerGUID(databaseServerGUID, requestedCatalogTarget.getCatalogTargetElement().getUniqueName());
Expand Down Expand Up @@ -163,7 +163,7 @@ public void integrateCatalogTarget(RequestedCatalogTarget requestedCatalogTarget
{
super.throwWrongTypeOfAsset(requestedCatalogTarget.getCatalogTargetElement().getGUID(),
requestedCatalogTarget.getCatalogTargetElement().getType().getTypeName(),
DeployedImplementationType.POSTGRESQL_SERVER.getAssociatedTypeName(),
PostgresDeployedImplementationType.POSTGRESQL_SERVER.getAssociatedTypeName(),
connectorName,
methodName);
}
Expand Down Expand Up @@ -429,9 +429,9 @@ private void catalogDatabase(String databaseName,

elementProperties = propertyHelper.addStringProperty(elementProperties,
OpenMetadataProperty.DEPLOYED_IMPLEMENTATION_TYPE.name,
DeployedImplementationType.POSTGRESQL_DATABASE.getDeployedImplementationType());
PostgresDeployedImplementationType.POSTGRESQL_DATABASE.getDeployedImplementationType());

String databaseGUID = openMetadataAccess.createMetadataElementInStore(DeployedImplementationType.POSTGRESQL_DATABASE.getAssociatedTypeName(),
String databaseGUID = openMetadataAccess.createMetadataElementInStore(PostgresDeployedImplementationType.POSTGRESQL_DATABASE.getAssociatedTypeName(),
ElementStatus.ACTIVE,
null,
databaseServerGUID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
package org.odpi.openmetadata.adapters.connectors.postgres.catalog;

import org.odpi.openmetadata.adapters.connectors.postgres.controls.PostgresConfigurationProperty;
import org.odpi.openmetadata.adapters.connectors.postgres.controls.PostgresDeployedImplementationType;
import org.odpi.openmetadata.adapters.connectors.postgres.controls.PostgresTarget;
import org.odpi.openmetadata.frameworks.auditlog.AuditLogReportingComponent;
import org.odpi.openmetadata.frameworks.auditlog.ComponentDevelopmentStatus;
import org.odpi.openmetadata.frameworks.connectors.controls.SupportedTechnologyType;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ConnectorType;
import org.odpi.openmetadata.frameworks.openmetadata.refdata.DeployedImplementationType;
import org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorProvider;
import org.odpi.openmetadata.frameworks.openmetadata.refdata.DeployedImplementationTypeDefinition;

/**
* PostgresServerIntegrationProvider is the OCF connector provider for the PostgreSQL database server integration connector.
Expand Down Expand Up @@ -85,7 +87,7 @@ public PostgresServerIntegrationProvider()

super.setConnectorComponentDescription(componentDescription);

super.supportedTechnologyTypes = SupportedTechnologyType.getSupportedTechnologyTypes(new DeployedImplementationType[]{DeployedImplementationType.POSTGRESQL_SERVER});
super.supportedTechnologyTypes = SupportedTechnologyType.getSupportedTechnologyTypes(new DeployedImplementationTypeDefinition[]{PostgresDeployedImplementationType.POSTGRESQL_SERVER});
super.catalogTargets = PostgresTarget.getPostgresServerCatalogTargetTypes();
super.supportedConfigurationProperties = PostgresConfigurationProperty.getPostgresServerConfigurationPropertyTypes();
}
Expand Down
Loading

0 comments on commit 462635b

Please sign in to comment.