Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.odpi.openmetadata.frameworks.openmetadata.properties.collections.EditingCollectionProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.collections.ScopingCollectionProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.collections.StagingCollectionProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.digitalbusiness.BusinessSignificantProperties;
import org.odpi.openmetadata.frameworks.openmetadata.properties.glossaries.*;
import org.odpi.openmetadata.frameworks.openmetadata.properties.governance.*;
import org.odpi.openmetadata.frameworks.openmetadata.properties.operatingplatforms.CloudPlatformProperties;
Expand Down Expand Up @@ -149,6 +150,20 @@ else if (properties instanceof AnchorsProperties anchorsProperties)
OpenMetadataProperty.ANCHOR_SCOPE_GUID.name,
anchorsProperties.getAnchorScopeGUID());
}
else if (properties instanceof BusinessSignificantProperties businessSignificantProperties)
{
elementProperties = propertyHelper.addStringProperty(elementProperties,
OpenMetadataProperty.DESCRIPTION.name,
businessSignificantProperties.getDescription());

elementProperties = propertyHelper.addStringProperty(elementProperties,
OpenMetadataProperty.SCOPE.name,
businessSignificantProperties.getScope());

elementProperties = propertyHelper.addStringProperty(elementProperties,
OpenMetadataProperty.BUSINESS_CAPABILITY.name,
businessSignificantProperties.getBusinessCapability());
}
else if (properties instanceof CalculatedValueProperties calculatedValueProperties)
{
elementProperties = propertyHelper.addStringProperty(elementProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,127 @@ public void detachContract(String agreementGUID,
}


/**
* Link dependent business capabilities.
*
* @param supportedBusinessCapabilityGUID unique identifier of the business capability that is dependent on another
* @param supportingBusinessCapabilityGUID unique identifier of the business capability that is supporting
* @param makeAnchorOptions options to control access to open metadata
* @param relationshipProperties description of the relationship.
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
public void linkBusinessCapabilityDependency(String supportedBusinessCapabilityGUID,
String supportingBusinessCapabilityGUID,
MakeAnchorOptions makeAnchorOptions,
BusinessCapabilityDependencyProperties relationshipProperties) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
collectionHandler.linkBusinessCapabilityDependency(connectorUserId, supportedBusinessCapabilityGUID, supportingBusinessCapabilityGUID, makeAnchorOptions, relationshipProperties);
}


/**
* Detach dependent business capabilities.
*
* @param supportedBusinessCapabilityGUID unique identifier of the business capability that is dependent on another
* @param supportingBusinessCapabilityGUID unique identifier of the business capability that is supporting
* @param deleteOptions options to control access to open metadata
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
public void detachBusinessCapabilityDependency(String supportedBusinessCapabilityGUID,
String supportingBusinessCapabilityGUID,
DeleteOptions deleteOptions) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
collectionHandler.detachBusinessCapabilityDependency(connectorUserId, supportedBusinessCapabilityGUID, supportingBusinessCapabilityGUID, deleteOptions);
}


/**
* Attach a business capability to an element that provides digital support.
*
* @param businessCapabilityGUID unique identifier of the business capability
* @param elementGUID unique identifier of the element
* @param makeAnchorOptions options to control access to open metadata
* @param relationshipProperties description of the relationship.
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
public void linkDigitalSupport(String businessCapabilityGUID,
String elementGUID,
MakeAnchorOptions makeAnchorOptions,
DigitalSupportProperties relationshipProperties) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
collectionHandler.linkDigitalSupport(connectorUserId, businessCapabilityGUID, elementGUID, makeAnchorOptions, relationshipProperties);
}


/**
* Detach a business capability from an element that provides digital support.
*
* @param businessCapabilityGUID unique identifier of the business capability
* @param elementGUID unique identifier of the element
* @param deleteOptions options to control access to open metadata
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
public void detachDigitalSupport(String businessCapabilityGUID,
String elementGUID,
DeleteOptions deleteOptions) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
collectionHandler.detachDigitalSupport(connectorUserId, businessCapabilityGUID, elementGUID, deleteOptions);
}


/**
* Classify an element to indicate that it is significant to a particular business capability.
*
* @param elementGUID unique identifier of the element.
* @param properties properties for the classification
* @param metadataSourceOptions options to control access to open metadata
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
public void setBusinessSignificant(String elementGUID,
BusinessSignificantProperties properties,
MetadataSourceOptions metadataSourceOptions) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
collectionHandler.setBusinessSignificant(connectorUserId, elementGUID, properties, metadataSourceOptions);
}


/**
* Remove the business significant classification from the element.
*
* @param elementGUID unique identifier of the element.
* @param metadataSourceOptions options to control access to open metadata
* @throws InvalidParameterException one of the parameters is null or invalid.
* @throws PropertyServerException there is a problem retrieving information from the property server(s).
* @throws UserNotAuthorizedException the requesting user is not authorized to issue this request.
*/
public void clearBusinessSignificance(String elementGUID,
MetadataSourceOptions metadataSourceOptions) throws InvalidParameterException,
PropertyServerException,
UserNotAuthorizedException
{
collectionHandler.clearBusinessSignificance(connectorUserId, elementGUID, metadataSourceOptions);
}


/**
* Classify the collection to indicate that it is an editing collection - this means it is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11319,6 +11319,14 @@ else if (propertyHelper.isTypeOf(attachedClassification, OpenMetadataType.ANCHOR
((AnchorsProperties)beanProperties).setAnchorDomainName(this.removeAnchorDomainName(elementProperties));
((AnchorsProperties)beanProperties).setAnchorScopeGUID(this.removeAnchorScopeGUID(elementProperties));
}
else if (propertyHelper.isTypeOf(attachedClassification, OpenMetadataType.BUSINESS_SIGNIFICANT_CLASSIFICATION.typeName))
{
beanProperties = new BusinessSignificantProperties();

((BusinessSignificantProperties)beanProperties).setDescription(this.removeDescription(elementProperties));
((BusinessSignificantProperties)beanProperties).setScope(this.removeScope(elementProperties));
((BusinessSignificantProperties)beanProperties).setBusinessCapability(this.removeBusinessCapability(elementProperties));
}
else if (propertyHelper.isTypeOf(attachedClassification, OpenMetadataType.CALCULATED_VALUE_CLASSIFICATION.typeName))
{
beanProperties = new CalculatedValueProperties();
Expand Down Expand Up @@ -12215,6 +12223,10 @@ else if (propertyHelper.isTypeOf(relationshipHeader, OpenMetadataType.DIGITAL_SU
else if (propertyHelper.isTypeOf(relationshipHeader, OpenMetadataType.DIGITAL_SUPPORT_RELATIONSHIP.typeName))
{
relationshipBeanProperties = new DigitalSupportProperties();

((DigitalSupportProperties)relationshipBeanProperties).setLabel(this.removeLabel(elementProperties));
((DigitalSupportProperties)relationshipBeanProperties).setDescription(this.removeDescription(elementProperties));

}
else if (propertyHelper.isTypeOf(relationshipHeader, OpenMetadataType.DISCOVERED_SCHEMA_TYPE_RELATIONSHIP.typeName))
{
Expand Down
Loading
Loading