Skip to content

Commit

Permalink
odpi#5399 merge with master
Browse files Browse the repository at this point in the history
Signed-off-by: David Radley <david_radley@uk.ibm.com>
  • Loading branch information
davidradl committed Jul 13, 2021
2 parents dd3721b + d5ce31a commit cd9895f
Show file tree
Hide file tree
Showing 345 changed files with 31,887 additions and 2,861 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,16 @@ dependencies {
implementation project(':open-metadata-implementation:access-services:subject-area:subject-area-client')
implementation project(':open-metadata-implementation:engine-services:asset-analysis:asset-analysis-client')
implementation project(':open-metadata-implementation:engine-services:governance-action:governance-action-client')
implementation project(':open-metadata-implementation:integration-services:analytics-integrator:analytics-integrator-client')
implementation project(':open-metadata-implementation:integration-services:api-integrator:api-integrator-client')
implementation project(':open-metadata-implementation:integration-services:catalog-integrator:catalog-integrator-client')
implementation project(':open-metadata-implementation:integration-services:files-integrator:files-integrator-client')
implementation project(':open-metadata-implementation:integration-services:database-integrator:database-integrator-client')
implementation project(':open-metadata-implementation:integration-services:display-integrator:display-integrator-client')
implementation project(':open-metadata-implementation:integration-services:lineage-integrator:lineage-integrator-client')
implementation project(':open-metadata-implementation:integration-services:organization-integrator:organization-integrator-client')
implementation project(':open-metadata-implementation:integration-services:security-integrator:security-integrator-client')
implementation project(':open-metadata-implementation:integration-services:topic-integrator:topic-integrator-client')
implementation project(':open-metadata-implementation:governance-servers:engine-host-services:engine-host-services-client')
implementation project(':open-metadata-implementation:governance-servers:integration-daemon-services:integration-daemon-services-client')
implementation project(':open-metadata-implementation:governance-servers:open-lineage-services:open-lineage-services-client')
Expand Down
16 changes: 16 additions & 0 deletions open-metadata-distribution/open-metadata-assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@
<groupId>org.odpi.egeria</groupId>
<artifactId>governance-action-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>analytics-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>api-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>catalog-integrator-client</artifactId>
Expand All @@ -258,6 +266,10 @@
<groupId>org.odpi.egeria</groupId>
<artifactId>database-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>display-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>files-integrator-client</artifactId>
Expand All @@ -274,6 +286,10 @@
<groupId>org.odpi.egeria</groupId>
<artifactId>security-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>topic-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>engine-host-services-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@
<groupId>org.odpi.egeria</groupId>
<artifactId>subject-area-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>analytics-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>api-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>catalog-integrator-client</artifactId>
Expand All @@ -131,6 +139,10 @@
<groupId>org.odpi.egeria</groupId>
<artifactId>database-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>display-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>files-integrator-client</artifactId>
Expand All @@ -147,6 +159,10 @@
<groupId>org.odpi.egeria</groupId>
<artifactId>security-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>topic-integrator-client</artifactId>
</dependency>
<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>integration-daemon-services-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ public enum AnalyticsModelingErrorCode implements ExceptionMessageSet {
"User {0} is not authorized to perform operation: {1}",
"The system is unable to process the request.",
"Review the user permissions to resolve the issue and repeat request."),
FAILED_UPDATE_UNKNOWN_ARTIFACT(
"OMAS-ANALYTICS-MODELING-031",
"User {0} failed to update artifact {1}. The artifact is unknown.",
"The system is unable to process the request.",
"Confirm the artifact exists."),
UNEXPECTED_EXCEPTION(400, "OMAG-ANALYTICS-MODELING-499",
"An unexpected {0} exception was caught by {1}; error message was {2}",
"The system is unable to process the request and has returned an exception to the caller.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,13 @@ private boolean updateAssetAttributes(AnalyticsAsset asset, boolean bModuleAsset
AnalyticsAsset assetRepo = assetHandler.getBeanByQualifiedName(
ctx.getUserId(), assetTypeGuid, assetTypeName, asset.getQualifiedName(), Constants.QUALIFIED_NAME, methodName);

if (assetRepo == null) {
throw new AnalyticsModelingCheckedException(
AnalyticsModelingErrorCode.FAILED_UPDATE_UNKNOWN_ARTIFACT.getMessageDefinition(ctx.getUserId(), asset.getUid()),
this.getClass().getSimpleName(),
methodName);
}

asset.setGuid(assetRepo.getGuid()); // asset is new definition of the assetRepo

// update relationships for referenced assets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;


Expand Down Expand Up @@ -46,6 +47,7 @@ public AssetConverter(OMRSRepositoryHelper repositoryHelper,
* @throws PropertyServerException there is a problem instantiating the bean
*/
@Override
@SuppressWarnings(value="deprecation")
public B getNewBean(Class<B> beanClass,
EntityDetail entity,
String methodName) throws PropertyServerException
Expand All @@ -55,7 +57,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof AssetElement)
{
Expand Down Expand Up @@ -125,7 +127,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;


Expand Down Expand Up @@ -56,7 +57,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof CommentElement)
{
Expand Down Expand Up @@ -105,7 +106,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;


/**
* InformalTagConverter provides common methods for transferring relevant properties from an Open Metadata Repository Services (OMRS)
Expand Down Expand Up @@ -55,7 +57,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof InformalTagElement)
{
Expand Down Expand Up @@ -95,7 +97,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;


/**
* LikeConverter provides common methods for transferring relevant properties from an Open Metadata Repository Services (OMRS)
Expand Down Expand Up @@ -53,7 +55,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof LikeElement)
{
Expand Down Expand Up @@ -85,7 +87,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;


Expand Down Expand Up @@ -57,7 +58,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof MeaningElement)
{
Expand Down Expand Up @@ -97,7 +98,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;


Expand Down Expand Up @@ -56,7 +57,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof RatingElement)
{
Expand Down Expand Up @@ -95,7 +96,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;
import java.util.List;


Expand Down Expand Up @@ -55,7 +56,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof DataAssetElement)
{
Expand Down Expand Up @@ -93,7 +94,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;

/**
* AssetManagerConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS)
* EntityDetail object into a SoftwareServerCapabilityElement bean.
Expand Down Expand Up @@ -52,7 +54,7 @@ public B getNewBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof SoftwareServerCapabilityElement)
{
Expand Down Expand Up @@ -93,7 +95,7 @@ public B getNewBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;


/**
* ControlFlowConverter provides common methods for transferring relevant properties from an Open Metadata Repository Services (OMRS)
Expand Down Expand Up @@ -53,7 +55,7 @@ public B getNewRelationshipBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof ControlFlowElement)
{
Expand Down Expand Up @@ -95,7 +97,7 @@ public B getNewRelationshipBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;

import java.lang.reflect.InvocationTargetException;


/**
* DataFlowConverter provides common methods for transferring relevant properties from an Open Metadata Repository Services (OMRS)
Expand Down Expand Up @@ -53,7 +55,7 @@ public B getNewRelationshipBean(Class<B> beanClass,
/*
* This is initial confirmation that the generic converter has been initialized with an appropriate bean class.
*/
B returnBean = beanClass.newInstance();
B returnBean = beanClass.getDeclaredConstructor().newInstance();

if (returnBean instanceof DataFlowElement)
{
Expand Down Expand Up @@ -95,7 +97,7 @@ public B getNewRelationshipBean(Class<B> beanClass,

return returnBean;
}
catch (IllegalAccessException | InstantiationException | ClassCastException error)
catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)
{
super.handleInvalidBeanClass(beanClass.getName(), error, methodName);
}
Expand Down
Loading

0 comments on commit cd9895f

Please sign in to comment.