Skip to content

Commit

Permalink
Add Information Supply Chain content to CocoComboArchive
Browse files Browse the repository at this point in the history
Signed-off-by: Mandy Chessell <[email protected]>
  • Loading branch information
mandy-chessell committed Jan 20, 2025
1 parent 6ea14da commit 9b057be
Show file tree
Hide file tree
Showing 77 changed files with 3,943 additions and 529 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/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 @@ -381,6 +381,8 @@ distributions {
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-services/reference-data" }
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-services/solutin-architect" }
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-services/runtime-manager" }
{ include 'Egeria*.http' }
from { "$rootProject.projectDir/open-metadata-implementation/view-services/template-manager" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ private void setupOpenMetadataRelationship(String openMetadataObjectTypeGUID,
openMetadataRelationshipType,
0,
0);
if (existingRelationships == null)
if ((existingRelationships == null) || (existingRelationships.getElementList() == null))
{
ElementProperties properties = null;
if (mode != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,18 @@ public enum ViewServiceDescription
"https://egeria-project.org/services/omvs/notification-manager/overview/",
AccessServiceDescription.STEWARDSHIP_ACTION_OMAS.getAccessServiceFullName()),

/**
* Manages the definitions of information supply chains and solution components.
*/
SOLUTION_ARCHITECT (829,
ComponentDevelopmentStatus.IN_DEVELOPMENT,
"Solution Architect",
"Solution Architect OMVS",
"solution-architect",
"Manages the definitions of information supply chains and solution components.",
"https://egeria-project.org/services/omvs/solution-architect/overview/",
AccessServiceDescription.DIGITAL_ARCHITECTURE_OMAS.getAccessServiceFullName()),

;


Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
import org.odpi.openmetadata.frameworks.openmetadata.enums.EngineActionStatus;
import org.odpi.openmetadata.frameworks.openmetadata.enums.PortType;
import org.odpi.openmetadata.frameworks.openmetadata.enums.ProcessContainmentType;
import org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventImpactProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.DependentContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.RelatedContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataProperty;
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;

Expand Down Expand Up @@ -2610,6 +2615,36 @@ public String openToDo(String toDoQualifiedName,
}


/**
* Create a new context event
*
* @param anchorGUID unique identifier for the context event's anchor element
* @param parentContextEvents which context events should be linked as parents (guid->relationship properties)
* @param childContextEvents which context events should be linked as children (guid->relationship properties)
* @param relatedContextEvents which context events should be linked as related (guid->relationship properties)
* @param impactedElements which elements are impacted by this context event (guid->relationship properties)
* @param effectedDataResourceGUIDs which data resources are effected by this context event (asset guid->relationship properties)
* @param contextEventEvidenceGUIDs which elements provide evidence that the context event is happening (element GUIDs)
* @param contextEventProperties properties for the context event itself
* @return guid of the new context event
* @throws InvalidParameterException one of the properties are invalid
* @throws UserNotAuthorizedException the userId is not permitted to perform this operation
* @throws PropertyServerException there is a problem connecting to (or inside) the metadata store
*/
public String registerContextEvent(String anchorGUID,
Map<String, DependentContextEventProperties> parentContextEvents,
Map<String, DependentContextEventProperties> childContextEvents,
Map<String, RelatedContextEventProperties> relatedContextEvents,
Map<String, ContextEventImpactProperties> impactedElements,
Map<String, RelationshipProperties> effectedDataResourceGUIDs,
Map<String, RelationshipProperties> contextEventEvidenceGUIDs,
ContextEventProperties contextEventProperties) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
{
return openMetadataClient.registerContextEvent(userId, anchorGUID, parentContextEvents, childContextEvents, relatedContextEvents, impactedElements, effectedDataResourceGUIDs, contextEventEvidenceGUIDs, contextEventProperties);
}

/*
* Verification methods
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
import org.odpi.openmetadata.frameworks.governanceaction.search.SearchProperties;
import org.odpi.openmetadata.frameworks.openmetadata.enums.SequencingOrder;
import org.odpi.openmetadata.frameworks.openmetadata.properties.ArchiveProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventImpactProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.DependentContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.RelatedContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;

import java.util.Date;
Expand Down Expand Up @@ -2265,6 +2270,37 @@ public String openToDo(String qualifiedName,
}


/**
* Create a new context event
*
* @param anchorGUID unique identifier for the context event's anchor element
* @param parentContextEvents which context events should be linked as parents (guid->relationship properties)
* @param childContextEvents which context events should be linked as children (guid->relationship properties)
* @param relatedContextEvents which context events should be linked as related (guid->relationship properties)
* @param impactedElements which elements are impacted by this context event (guid->relationship properties)
* @param effectedDataResourceGUIDs which data resources are effected by this context event (asset guid->relationship properties)
* @param contextEventEvidenceGUIDs which elements provide evidence that the context event is happening (element GUIDs)
* @param contextEventProperties properties for the context event itself
* @return guid of the new context event
* @throws InvalidParameterException one of the properties are invalid
* @throws UserNotAuthorizedException the userId is not permitted to perform this operation
* @throws PropertyServerException there is a problem connecting to (or inside) the metadata store
*/
public String registerContextEvent(String anchorGUID,
Map<String, DependentContextEventProperties> parentContextEvents,
Map<String, DependentContextEventProperties> childContextEvents,
Map<String, RelatedContextEventProperties> relatedContextEvents,
Map<String, ContextEventImpactProperties> impactedElements,
Map<String, RelationshipProperties> effectedDataResourceGUIDs,
Map<String, RelationshipProperties> contextEventEvidenceGUIDs,
ContextEventProperties contextEventProperties) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
{
return openMetadataClient.registerContextEvent(userId, anchorGUID, parentContextEvents, childContextEvents, relatedContextEvents, impactedElements, effectedDataResourceGUIDs, contextEventEvidenceGUIDs, contextEventProperties);
}


/**
* Create or update the valid value for a particular open metadata property name. If the typeName is null, this valid value
* applies to properties of this name from all types. The valid value is stored in the preferredValue property. If a valid value is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import org.odpi.openmetadata.frameworks.governanceaction.properties.IncidentDependency;
import org.odpi.openmetadata.frameworks.governanceaction.properties.IncidentImpactedElement;
import org.odpi.openmetadata.frameworks.governanceaction.properties.NewActionTarget;
import org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventImpactProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.DependentContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.RelatedContextEventProperties;

import java.util.Date;
import java.util.List;
Expand Down Expand Up @@ -86,4 +91,34 @@ String openToDo(String userId,
List<NewActionTarget> actionTargets) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException;


/**
* Create a new context event
*
* @param userId calling user
* @param anchorGUID unique identifier for the context event's anchor element
* @param parentContextEvents which context events should be linked as parents (guid->relationship properties)
* @param childContextEvents which context events should be linked as children (guid->relationship properties)
* @param relatedContextEvents which context events should be linked as related (guid->relationship properties)
* @param impactedElements which elements are impacted by this context event (guid->relationship properties)
* @param effectedDataResourceGUIDs which data resources are effected by this context event (asset guid->effectivity dates)
* @param contextEventEvidenceGUIDs which elements provide evidence that the context event is happening (element GUIDs-> effectivity dates)
* @param contextEventProperties properties for the context event itself
* @return guid of the new context event
* @throws InvalidParameterException one of the properties are invalid
* @throws UserNotAuthorizedException the userId is not permitted to perform this operation
* @throws PropertyServerException there is a problem connecting to (or inside) the metadata store
*/
String registerContextEvent(String userId,
String anchorGUID,
Map<String, DependentContextEventProperties> parentContextEvents,
Map<String, DependentContextEventProperties> childContextEvents,
Map<String, RelatedContextEventProperties> relatedContextEvents,
Map<String, ContextEventImpactProperties> impactedElements,
Map<String, RelationshipProperties> effectedDataResourceGUIDs,
Map<String, RelationshipProperties> contextEventEvidenceGUIDs,
ContextEventProperties contextEventProperties) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import org.odpi.openmetadata.frameworks.governanceaction.client.ActionControlInterface;
import org.odpi.openmetadata.frameworks.governanceaction.client.OpenMetadataClient;
import org.odpi.openmetadata.frameworks.governanceaction.properties.*;
import org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventImpactProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.DependentContextEventProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.RelatedContextEventProperties;

import java.util.Date;
import java.util.List;
Expand Down Expand Up @@ -122,7 +127,35 @@ public String openToDo(String qualifiedName,
}



/**
* Create a new context event
*
* @param anchorGUID unique identifier for the context event's anchor element
* @param parentContextEvents which context events should be linked as parents (guid->relationship properties)
* @param childContextEvents which context events should be linked as children (guid->relationship properties)
* @param relatedContextEvents which context events should be linked as related (guid->relationship properties)
* @param impactedElements which elements are impacted by this context event (guid->relationship properties)
* @param effectedDataResourceGUIDs which data resources are effected by this context event (asset guid->relationship properties)
* @param contextEventEvidenceGUIDs which elements provide evidence that the context event is happening (element GUIDs)
* @param contextEventProperties properties for the context event itself
* @return guid of the new context event
* @throws InvalidParameterException one of the properties are invalid
* @throws UserNotAuthorizedException the userId is not permitted to perform this operation
* @throws PropertyServerException there is a problem connecting to (or inside) the metadata store
*/
public String registerContextEvent(String anchorGUID,
Map<String, DependentContextEventProperties> parentContextEvents,
Map<String, DependentContextEventProperties> childContextEvents,
Map<String, RelatedContextEventProperties> relatedContextEvents,
Map<String, ContextEventImpactProperties> impactedElements,
Map<String, RelationshipProperties> effectedDataResourceGUIDs,
Map<String, RelationshipProperties> contextEventEvidenceGUIDs,
ContextEventProperties contextEventProperties) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
{
return openMetadataStore.registerContextEvent(userId, anchorGUID, parentContextEvents, childContextEvents, relatedContextEvents, impactedElements, effectedDataResourceGUIDs, contextEventEvidenceGUIDs, contextEventProperties);
}


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public void publishReport() throws InvalidParameterException,
report.setRefreshStartDate(startDate);
report.setRefreshCompletionDate(completionDate);
report.setAdditionalProperties(additionalProperties);
report.setCreatedElements(new ArrayList<>(createdElements));
report.setUpdatedElements(new ArrayList<>(updatedElements));
report.setDeletedElements(new ArrayList<>(deletedElements));
report.setCreatedElements(getReportElements(createdElements));
report.setUpdatedElements(getReportElements(updatedElements));
report.setDeletedElements(getReportElements(deletedElements));

openIntegrationClient.publishIntegrationReport(userId, integrationConnectorGUID, report);
}
Expand All @@ -117,6 +117,33 @@ public void publishReport() throws InvalidParameterException,
}


/**
* Converts a set into a list. This should not be required by using the ArrayList constructor returns an
* java.lang.ArrayIndexOutOfBoundsException exception.
*
* @param elementGUIDs set of element GUIDs.
* @return list of guids
*/
private List<String> getReportElements(Set<String> elementGUIDs)
{
if (elementGUIDs != null && !elementGUIDs.isEmpty())
{
List<String> guids = new ArrayList<>();

for (String guid : elementGUIDs)
{
if (guid != null)
{
guids.add(guid);
}
}

return guids;
}

return null;
}

/**
* Set whether an integration report should be assembled and published.
*
Expand Down
Loading

0 comments on commit 9b057be

Please sign in to comment.