Skip to content

Commit

Permalink
Merge pull request #8656 from mandy-chessell/oak2025
Browse files Browse the repository at this point in the history
Add Classification Explorer OMVS
  • Loading branch information
mandy-chessell authored Mar 4, 2025
2 parents 36eb61b + 16e0be4 commit 4248ea6
Show file tree
Hide file tree
Showing 142 changed files with 13,481 additions and 14,604 deletions.
2 changes: 1 addition & 1 deletion EgeriaContentPacksGUIDMap.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ subprojects {
developer {
id = 'mandy-chessell'
name = 'Mandy Chessell'
email = 'mandy.e.chessell@gmail.com'
email = 'mandy.chessell@pdr-associates.com'
timezone = 'Europe/London'
roles = ['Project Leader']
organization = 'Pragmatic Data Research Ltd'
Expand All @@ -143,6 +143,13 @@ subprojects {
roles = ['maintainer']
organization = 'IBM Corporation'
}
developer {
id = 'dwolfson'
name = 'Dan Wolfson'
email = 'dan.wolfson@pdr-associates.com'
roles = ['maintainer']
organization = 'Pragmatic Data Research Ltd'
}
}
scm {
connection = 'scm:git:git://github.com/odpi/egeria.git'
Expand Down
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/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/ObservabilityContentPack.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.

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.

2 changes: 2 additions & 0 deletions open-metadata-distribution/omag-server-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ distributions {
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-services/project-manager" }
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-server-generic-services/classification-explorer" }
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-services/classification-manager" }
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-server-generic-services/feedback-manager" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ public void clearCategoryParent(String userId,
final String glossaryParentGUIDParameterName = "glossaryParentCategoryGUID";
final String glossaryChildGUIDParameterName = "glossaryChildCategoryGUID";

final String urlTemplate = serverPlatformURLRoot + urlTemplatePrefix + "/glossaries/categories/{2}/subcategory/{3}/remove";
final String urlTemplate = serverPlatformURLRoot + urlTemplatePrefix + "/glossaries/categories/{2}/subcategories/{3}/remove";

super.clearRelationship(userId,
assetManagerGUID,
Expand Down Expand Up @@ -3327,7 +3327,7 @@ public GlossaryTermElement undoGlossaryTermUpdate(String userId,
invalidParameterHandler.validateUserId(userId, methodName);
invalidParameterHandler.validateGUID(glossaryTermGUID, glossaryGUIDParameterName, methodName);

final String urlTemplate = serverPlatformURLRoot + urlTemplatePrefix + "/glossaries/terms/{2}/undo&forLineage={3}&forDuplicateProcessing={4}";
final String urlTemplate = serverPlatformURLRoot + urlTemplatePrefix + "/glossaries/terms/{2}/undo?forLineage={3}&forDuplicateProcessing={4}";

GlossaryTermElementResponse response = restClient.callMyGlossaryTermPostRESTCall(methodName,
urlTemplate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2394,9 +2394,7 @@ public List<MetadataElementSummary> getElementsByClassification(String
{
final String methodName = "getElementsByClassification";
final String classificationNameProperty = "classificationName";
final String findPropertiesProperty = "findProperties";

invalidParameterHandler.validateObject(findProperties, findPropertiesProperty, methodName);
invalidParameterHandler.validateUserId(userId, methodName);
invalidParameterHandler.validateName(classificationName, classificationNameProperty, methodName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4251,7 +4251,7 @@ public GlossaryTermElementResponse undoGlossaryTermUpdate(String serv
glossaryTermGUID,
forLineage,
forDuplicateProcessing,
null,
new Date(),
methodName));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public ElementStubsResponse getDataFieldClassifiedElements(String
boolean forDuplicateProcessing,
FindByPropertiesRequestBody requestBody)
{
final String methodName = "getConfidenceClassifiedElements";
final String methodName = "getDataFieldClassifiedElements";

RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);

Expand All @@ -264,7 +264,7 @@ public ElementStubsResponse getDataFieldClassifiedElements(String

if (requestBody != null)
{
if (requestBody.getProperties() instanceof LevelIdentifierProperties properties)
if (requestBody.getProperties() instanceof LevelIdentifierQueryProperties properties)
{
response.setElements(handler.getGovernanceActionClassifiedElements(userId,
OpenMetadataType.CONFIDENCE_CLASSIFICATION.typeName,
Expand Down Expand Up @@ -292,7 +292,7 @@ else if (requestBody.getProperties() == null)
}
else
{
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierProperties.class.getName(), methodName);
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierQueryProperties.class.getName(), methodName);
}
}
else
Expand Down Expand Up @@ -566,7 +566,7 @@ public ElementStubsResponse getConfidenceClassifiedElements(String

if (requestBody != null)
{
if (requestBody.getProperties() instanceof LevelIdentifierProperties properties)
if (requestBody.getProperties() instanceof LevelIdentifierQueryProperties properties)
{
response.setElements(handler.getGovernanceActionClassifiedElements(userId,
OpenMetadataType.CONFIDENCE_CLASSIFICATION.typeName,
Expand Down Expand Up @@ -594,7 +594,7 @@ else if (requestBody.getProperties() == null)
}
else
{
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierProperties.class.getName(), methodName);
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierQueryProperties.class.getName(), methodName);
}
}
else
Expand Down Expand Up @@ -867,7 +867,7 @@ public ElementStubsResponse getCriticalityClassifiedElements(String

if (requestBody != null)
{
if (requestBody.getProperties() instanceof LevelIdentifierProperties properties)
if (requestBody.getProperties() instanceof LevelIdentifierQueryProperties properties)
{
response.setElements(handler.getGovernanceActionClassifiedElements(userId,
OpenMetadataType.CRITICALITY_CLASSIFICATION.typeName,
Expand Down Expand Up @@ -895,7 +895,7 @@ else if (requestBody.getProperties() == null)
}
else
{
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierProperties.class.getName(), methodName);
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierQueryProperties.class.getName(), methodName);
}
}
else
Expand Down Expand Up @@ -1170,7 +1170,7 @@ public ElementStubsResponse getConfidentialityClassifiedElements(String

if (requestBody != null)
{
if (requestBody.getProperties() instanceof LevelIdentifierProperties properties)
if (requestBody.getProperties() instanceof LevelIdentifierQueryProperties properties)
{
response.setElements(handler.getGovernanceActionClassifiedElements(userId,
OpenMetadataType.CONFIDENTIALITY_CLASSIFICATION.typeName,
Expand Down Expand Up @@ -1198,7 +1198,7 @@ else if (requestBody.getProperties() == null)
}
else
{
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierProperties.class.getName(), methodName);
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierQueryProperties.class.getName(), methodName);
}
}
else
Expand Down Expand Up @@ -1468,7 +1468,7 @@ public ElementStubsResponse getRetentionClassifiedElements(String

if (requestBody != null)
{
if (requestBody.getProperties() instanceof LevelIdentifierProperties properties)
if (requestBody.getProperties() instanceof LevelIdentifierQueryProperties properties)
{
response.setElements(handler.getRetentionClassifiedElements(userId,
properties.getReturnSpecificLevel(),
Expand All @@ -1494,7 +1494,7 @@ else if (requestBody.getProperties() == null)
}
else
{
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierProperties.class.getName(), methodName);
restExceptionHandler.handleInvalidPropertiesObject(LevelIdentifierQueryProperties.class.getName(), methodName);
}
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.odpi.openmetadata.frameworks.connectors.properties.AssetUniverse;
import org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub;
import org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation;
import org.odpi.openmetadata.frameworks.surveyaction.properties.AnnotationStatus;
import org.odpi.openmetadata.frameworks.openmetadata.enums.AnnotationStatus;
import org.odpi.openmetadata.frameworks.surveyaction.properties.SurveyReport;

import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException;
import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException;
import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException;
import org.odpi.openmetadata.frameworks.connectors.properties.AssetUniverse;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
import org.odpi.openmetadata.frameworks.openmetadata.properties.governance.RetentionClassificationProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties;
Expand All @@ -37,7 +36,7 @@
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.openmetadata.enums.AnnotationStatus;
import org.odpi.openmetadata.frameworks.surveyaction.properties.SurveyReport;

import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.odpi.openmetadata.frameworks.openmetadata.properties.assets.AssetProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataContentForDataSetProperties;
import org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation;
import org.odpi.openmetadata.frameworks.surveyaction.properties.AnnotationStatus;
import org.odpi.openmetadata.frameworks.openmetadata.enums.AnnotationStatus;
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataProperty;
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;
import org.odpi.openmetadata.frameworks.surveyaction.properties.SurveyReport;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Content-Type: application/json
###
# @name Get GUID for Project

POST {{baseURL}}/servers/{{viewServer}}/api/open-metadata/classification-manager/elements/by-exact-property-value?startFrom=0&pageSize=10
POST {{baseURL}}/servers/{{viewServer}}/api/open-metadata/classification-explorer/elements/by-exact-property-value?startFrom=0&pageSize=10
Authorization: Bearer {{token}}
Content-Type: application/json

Expand Down Expand Up @@ -414,7 +414,7 @@ Content-Type: application/json
#
# https://egeria-project.org/types/

POST {{baseURL}}/servers/{{viewServer}}/api/open-metadata/classification-manager/elements/by-exact-property-value?startFrom=0&pageSize=10
POST {{baseURL}}/servers/{{viewServer}}/api/open-metadata/classification-explorer/elements/by-exact-property-value?startFrom=0&pageSize=10
Authorization: Bearer {{token}}
Content-Type: application/json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.odpi.openmetadata.frameworks.surveyaction.SurveyOpenMetadataStore;
import org.odpi.openmetadata.frameworks.surveyaction.controls.AnalysisStep;
import org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation;
import org.odpi.openmetadata.frameworks.surveyaction.properties.AnnotationStatus;
import org.odpi.openmetadata.frameworks.openmetadata.enums.AnnotationStatus;
import org.odpi.openmetadata.frameworks.surveyaction.properties.ResourceProfileAnnotation;
import org.odpi.openmetadata.frameworks.surveyaction.properties.SchemaAnalysisAnnotation;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public enum ViewServiceDescription
"Classification Manager OMVS",
"classification-manager",
"Maintain classifications and relationships used to organize open metadata elements.",
"https://egeria-project.org/services/omvs/valid-metadata/overview/",
"https://egeria-project.org/services/omvs/classification-manager/overview/",
AccessServiceDescription.ASSET_MANAGER_OMAS.getAccessServiceFullName()),

/**
Expand Down Expand Up @@ -376,6 +376,17 @@ public enum ViewServiceDescription
"https://egeria-project.org/services/omvs/solution-architect/overview/",
AccessServiceDescription.DIGITAL_ARCHITECTURE_OMAS.getAccessServiceFullName()),

/**
* Retrieve elements based on type or the classifications/relationships attached to these metadata elements.
*/
CLASSIFICATION_EXPLORER (830,
ComponentDevelopmentStatus.STABLE,
"Classification Explorer",
"Classification Explorer OMVS",
"classification-explorer",
"Retrieve elements based on type or the classifications/relationships attached to these metadata elements",
"https://egeria-project.org/services/omvs/classification-explorer/overview/",
AccessServiceDescription.ASSET_CONSUMER_OMAS.getAccessServiceFullName()),
;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openmetadata.frameworks.surveyaction.properties.AnnotationStatus;
import org.odpi.openmetadata.frameworks.openmetadata.enums.AnnotationStatus;

import java.util.Objects;

Expand Down
Loading

0 comments on commit 4248ea6

Please sign in to comment.