Skip to content

Commit

Permalink
Fix schema type support (odpi#7692)
Browse files Browse the repository at this point in the history
Signed-off-by: Mandy Chessell <[email protected]>
  • Loading branch information
mandy-chessell committed Jun 19, 2023
1 parent 15cc9c8 commit a691909
Show file tree
Hide file tree
Showing 87 changed files with 3,089 additions and 4,366 deletions.
3 changes: 1 addition & 2 deletions application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 26,7 @@ server.ssl.trust-store-password=egeria

# WARNING! setting 'strict.ssl=false' allows java clients to open https connections without checking the validity of
# certificates from the servers it is calling.
# Alternate you can import self signed certificates into java truststore or setup an truststore only for this app
# Alternate you can import self-signed certificates into java truststore or set up a truststore only for this app
# by adding the store into server.ssl.trust-store parameter
strict.ssl=true
# Comma separated values of http headers to be added to ThreadLocal
Expand Down Expand Up @@ -73,4 73,3 @@ springdoc.swagger-ui.docExpansion=none
# Endpoints web configuration
#management.endpoints.web.exposure.include=*
management.health.cassandra.enabled=false

Original file line number Diff line number Diff line change
Expand Up @@ -413,7 413,7 @@ void clearAssetRelationship(String userId,
* @param assetManagerName unique name of software capability representing the caller
* @param relationshipTypeName type name of relationship to delete
* @param fromAssetGUID unique identifier of the asset at end 1 of the relationship
* @param startingFrom start position for results
* @param startFrom start position for results
* @param pageSize maximum number of results
* @param effectiveTime the time that the retrieved elements must be effective for (null for any time, new Date() for now)
* @param forLineage return elements marked with the Memento classification?
Expand All @@ -430,7 430,7 @@ List<RelationshipElement> getRelatedAssetsAtEnd2(String userId,
String assetManagerName,
String relationshipTypeName,
String fromAssetGUID,
int startingFrom,
int startFrom,
int pageSize,
Date effectiveTime,
boolean forLineage,
Expand All @@ -447,7 447,7 @@ List<RelationshipElement> getRelatedAssetsAtEnd2(String userId,
* @param assetManagerName unique name of software capability representing the caller
* @param relationshipTypeName type name of relationship to delete
* @param toAssetGUID unique identifier of the asset at end 2 of the relationship
* @param startingFrom start position for results
* @param startFrom start position for results
* @param pageSize maximum number of results
* @param effectiveTime the time that the retrieved elements must be effective for (null for any time, new Date() for now)
* @param forLineage return elements marked with the Memento classification?
Expand All @@ -464,7 464,7 @@ List<RelationshipElement> getRelatedAssetsAtEnd1(String userId,
String assetManagerName,
String relationshipTypeName,
String toAssetGUID,
int startingFrom,
int startFrom,
int pageSize,
Date effectiveTime,
boolean forLineage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 54,38 @@ String createSchemaType(String userId,
PropertyServerException;


/**
* Create a new metadata element to represent a schema type.
*
* @param userId calling user
* @param assetManagerGUID unique identifier of software capability representing the caller
* @param assetManagerName unique name of software capability representing the caller
* @param assetManagerIsHome ensure that only the asset manager can update this schema element
* @param anchorGUID unique identifier of the intended anchor of the schema type
* @param externalIdentifierProperties optional properties used to define an external identifier
* @param schemaTypeProperties properties about the schema type to store
* @param forLineage return elements marked with the Memento classification?
* @param forDuplicateProcessing do not merge elements marked as duplicates?
*
* @return unique identifier of the new schema type
*
* @throws InvalidParameterException one of the parameters is invalid
* @throws UserNotAuthorizedException the user is not authorized to issue this request
* @throws PropertyServerException there is a problem reported in the open metadata server(s)
*/
String createAnchoredSchemaType(String userId,
String assetManagerGUID,
String assetManagerName,
boolean assetManagerIsHome,
String anchorGUID,
ExternalIdentifierProperties externalIdentifierProperties,
boolean forLineage,
boolean forDuplicateProcessing,
SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException;


/**
* Create a new metadata element to represent a schema type using an existing metadata element as a template.
*
Expand Down
Loading

0 comments on commit a691909

Please sign in to comment.