Skip to content

Commit 39d9db2

Browse files
New operations for product manager, notification manager, digital business
Signed-off-by: Mandy Chessell <mandy.e.chessell@gmail.com>
1 parent 747f104 commit 39d9db2

37 files changed

Lines changed: 2941 additions & 696 deletions

File tree

open-metadata-implementation/frameworks/open-metadata-framework/src/main/java/org/odpi/openmetadata/frameworks/openmetadata/builders/OpenMetadataClassificationBuilder.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.odpi.openmetadata.frameworks.openmetadata.properties.collections.EditingCollectionProperties;
1414
import org.odpi.openmetadata.frameworks.openmetadata.properties.collections.ScopingCollectionProperties;
1515
import org.odpi.openmetadata.frameworks.openmetadata.properties.collections.StagingCollectionProperties;
16+
import org.odpi.openmetadata.frameworks.openmetadata.properties.digitalbusiness.BusinessSignificantProperties;
1617
import org.odpi.openmetadata.frameworks.openmetadata.properties.glossaries.*;
1718
import org.odpi.openmetadata.frameworks.openmetadata.properties.governance.*;
1819
import org.odpi.openmetadata.frameworks.openmetadata.properties.operatingplatforms.CloudPlatformProperties;
@@ -149,6 +150,20 @@ else if (properties instanceof AnchorsProperties anchorsProperties)
149150
OpenMetadataProperty.ANCHOR_SCOPE_GUID.name,
150151
anchorsProperties.getAnchorScopeGUID());
151152
}
153+
else if (properties instanceof BusinessSignificantProperties businessSignificantProperties)
154+
{
155+
elementProperties = propertyHelper.addStringProperty(elementProperties,
156+
OpenMetadataProperty.DESCRIPTION.name,
157+
businessSignificantProperties.getDescription());
158+
159+
elementProperties = propertyHelper.addStringProperty(elementProperties,
160+
OpenMetadataProperty.SCOPE.name,
161+
businessSignificantProperties.getScope());
162+
163+
elementProperties = propertyHelper.addStringProperty(elementProperties,
164+
OpenMetadataProperty.BUSINESS_CAPABILITY.name,
165+
businessSignificantProperties.getBusinessCapability());
166+
}
152167
else if (properties instanceof CalculatedValueProperties calculatedValueProperties)
153168
{
154169
elementProperties = propertyHelper.addStringProperty(elementProperties,

open-metadata-implementation/frameworks/open-metadata-framework/src/main/java/org/odpi/openmetadata/frameworks/openmetadata/connectorcontext/CollectionClient.java

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,127 @@ public void detachContract(String agreementGUID,
557557
}
558558

559559

560+
/**
561+
* Link dependent business capabilities.
562+
*
563+
* @param supportedBusinessCapabilityGUID unique identifier of the business capability that is dependent on another
564+
* @param supportingBusinessCapabilityGUID unique identifier of the business capability that is supporting
565+
* @param makeAnchorOptions options to control access to open metadata
566+
* @param relationshipProperties description of the relationship.
567+
* @throws InvalidParameterException one of the parameters is null or invalid.
568+
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
569+
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
570+
*/
571+
public void linkBusinessCapabilityDependency(String supportedBusinessCapabilityGUID,
572+
String supportingBusinessCapabilityGUID,
573+
MakeAnchorOptions makeAnchorOptions,
574+
BusinessCapabilityDependencyProperties relationshipProperties) throws InvalidParameterException,
575+
PropertyServerException,
576+
UserNotAuthorizedException
577+
{
578+
collectionHandler.linkBusinessCapabilityDependency(connectorUserId, supportedBusinessCapabilityGUID, supportingBusinessCapabilityGUID, makeAnchorOptions, relationshipProperties);
579+
}
580+
581+
582+
/**
583+
* Detach dependent business capabilities.
584+
*
585+
* @param supportedBusinessCapabilityGUID unique identifier of the business capability that is dependent on another
586+
* @param supportingBusinessCapabilityGUID unique identifier of the business capability that is supporting
587+
* @param deleteOptions options to control access to open metadata
588+
* @throws InvalidParameterException one of the parameters is null or invalid.
589+
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
590+
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
591+
*/
592+
public void detachBusinessCapabilityDependency(String supportedBusinessCapabilityGUID,
593+
String supportingBusinessCapabilityGUID,
594+
DeleteOptions deleteOptions) throws InvalidParameterException,
595+
PropertyServerException,
596+
UserNotAuthorizedException
597+
{
598+
collectionHandler.detachBusinessCapabilityDependency(connectorUserId, supportedBusinessCapabilityGUID, supportingBusinessCapabilityGUID, deleteOptions);
599+
}
600+
601+
602+
/**
603+
* Attach a business capability to an element that provides digital support.
604+
*
605+
* @param businessCapabilityGUID unique identifier of the business capability
606+
* @param elementGUID unique identifier of the element
607+
* @param makeAnchorOptions options to control access to open metadata
608+
* @param relationshipProperties description of the relationship.
609+
* @throws InvalidParameterException one of the parameters is null or invalid.
610+
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
611+
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
612+
*/
613+
public void linkDigitalSupport(String businessCapabilityGUID,
614+
String elementGUID,
615+
MakeAnchorOptions makeAnchorOptions,
616+
DigitalSupportProperties relationshipProperties) throws InvalidParameterException,
617+
PropertyServerException,
618+
UserNotAuthorizedException
619+
{
620+
collectionHandler.linkDigitalSupport(connectorUserId, businessCapabilityGUID, elementGUID, makeAnchorOptions, relationshipProperties);
621+
}
622+
623+
624+
/**
625+
* Detach a business capability from an element that provides digital support.
626+
*
627+
* @param businessCapabilityGUID unique identifier of the business capability
628+
* @param elementGUID unique identifier of the element
629+
* @param deleteOptions options to control access to open metadata
630+
* @throws InvalidParameterException one of the parameters is null or invalid.
631+
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
632+
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
633+
*/
634+
public void detachDigitalSupport(String businessCapabilityGUID,
635+
String elementGUID,
636+
DeleteOptions deleteOptions) throws InvalidParameterException,
637+
PropertyServerException,
638+
UserNotAuthorizedException
639+
{
640+
collectionHandler.detachDigitalSupport(connectorUserId, businessCapabilityGUID, elementGUID, deleteOptions);
641+
}
642+
643+
644+
/**
645+
* Classify an element to indicate that it is significant to a particular business capability.
646+
*
647+
* @param elementGUID unique identifier of the element.
648+
* @param properties properties for the classification
649+
* @param metadataSourceOptions options to control access to open metadata
650+
* @throws InvalidParameterException one of the parameters is null or invalid.
651+
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
652+
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
653+
*/
654+
public void setBusinessSignificant(String elementGUID,
655+
BusinessSignificantProperties properties,
656+
MetadataSourceOptions metadataSourceOptions) throws InvalidParameterException,
657+
PropertyServerException,
658+
UserNotAuthorizedException
659+
{
660+
collectionHandler.setBusinessSignificant(connectorUserId, elementGUID, properties, metadataSourceOptions);
661+
}
662+
663+
664+
/**
665+
* Remove the business significant classification from the element.
666+
*
667+
* @param elementGUID unique identifier of the element.
668+
* @param metadataSourceOptions options to control access to open metadata
669+
* @throws InvalidParameterException one of the parameters is null or invalid.
670+
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
671+
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
672+
*/
673+
public void clearBusinessSignificance(String elementGUID,
674+
MetadataSourceOptions metadataSourceOptions) throws InvalidParameterException,
675+
PropertyServerException,
676+
UserNotAuthorizedException
677+
{
678+
collectionHandler.clearBusinessSignificance(connectorUserId, elementGUID, metadataSourceOptions);
679+
}
680+
560681

561682
/**
562683
* Classify the collection to indicate that it is an editing collection - this means it is

open-metadata-implementation/frameworks/open-metadata-framework/src/main/java/org/odpi/openmetadata/frameworks/openmetadata/converters/OpenMetadataPropertyConverterBase.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11319,6 +11319,14 @@ else if (propertyHelper.isTypeOf(attachedClassification, OpenMetadataType.ANCHOR
1131911319
((AnchorsProperties)beanProperties).setAnchorDomainName(this.removeAnchorDomainName(elementProperties));
1132011320
((AnchorsProperties)beanProperties).setAnchorScopeGUID(this.removeAnchorScopeGUID(elementProperties));
1132111321
}
11322+
else if (propertyHelper.isTypeOf(attachedClassification, OpenMetadataType.BUSINESS_SIGNIFICANT_CLASSIFICATION.typeName))
11323+
{
11324+
beanProperties = new BusinessSignificantProperties();
11325+
11326+
((BusinessSignificantProperties)beanProperties).setDescription(this.removeDescription(elementProperties));
11327+
((BusinessSignificantProperties)beanProperties).setScope(this.removeScope(elementProperties));
11328+
((BusinessSignificantProperties)beanProperties).setBusinessCapability(this.removeBusinessCapability(elementProperties));
11329+
}
1132211330
else if (propertyHelper.isTypeOf(attachedClassification, OpenMetadataType.CALCULATED_VALUE_CLASSIFICATION.typeName))
1132311331
{
1132411332
beanProperties = new CalculatedValueProperties();
@@ -12215,6 +12223,10 @@ else if (propertyHelper.isTypeOf(relationshipHeader, OpenMetadataType.DIGITAL_SU
1221512223
else if (propertyHelper.isTypeOf(relationshipHeader, OpenMetadataType.DIGITAL_SUPPORT_RELATIONSHIP.typeName))
1221612224
{
1221712225
relationshipBeanProperties = new DigitalSupportProperties();
12226+
12227+
((DigitalSupportProperties)relationshipBeanProperties).setLabel(this.removeLabel(elementProperties));
12228+
((DigitalSupportProperties)relationshipBeanProperties).setDescription(this.removeDescription(elementProperties));
12229+
1221812230
}
1221912231
else if (propertyHelper.isTypeOf(relationshipHeader, OpenMetadataType.DISCOVERED_SCHEMA_TYPE_RELATIONSHIP.typeName))
1222012232
{

0 commit comments

Comments
 (0)