Interface SchemaManagerInterface
- All Known Implementing Classes:
APIManagerClient
,DisplayApplicationClient
,EventBrokerClient
,FilesAndFoldersClient
,SchemaManagerClient
public interface SchemaManagerInterface
SchemaManagerInterface defines the common methods for managing SchemaTypes and SchemaAttributes. It is incorporated in the
EventBrokerInterface, ApplicationInterface and the APIManagerInterface.
SchemaAttributes describe the data fields of the schema. If a schema attribute's type is simple (that is
primitive, literal, enum or external) its details are passed with the schema attribute. Complex schema types (such as Maps,
Choices) are constructed first and then their identifiers are attached to the schema attribute.
SchemaTypes are used when creating complex schema structures that involve maps, choice and links to externally defined
schemas that are, for example, part of a standard.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCalculatedValue
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID) Remove the calculated value designation from the schema element.void
clearQueryTargetRelationship
(String userId, String externalSourceGUID, String externalSourceName, String derivedElementGUID, String queryTargetGUID) Remove the query target relationship between two schema elements.void
clearSchemaElementRelationship
(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName) Remove a relationship between two schema elements.void
clearSchemaTypes
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID) Remove the linked schema types from a schema attribute.createEnumSchemaType
(String userId, String externalSourceGUID, String externalSourceName, EnumSchemaTypeProperties schemaTypeProperties, String validValuesSetGUID) Create a new metadata element to represent a schema type that has a fixed set of values that are described by a valid value set.createLiteralSchemaType
(String userId, String externalSourceGUID, String externalSourceName, LiteralSchemaTypeProperties schemaTypeProperties) Create a new metadata element to represent a schema type that has a fixed value.createMapSchemaType
(String userId, String externalSourceGUID, String externalSourceName, MapSchemaTypeProperties schemaTypeProperties, String mapFromSchemaTypeGUID, String mapToSchemaTypeGUID) Create a new metadata element to represent a schema type.createPrimitiveSchemaType
(String userId, String externalSourceGUID, String externalSourceName, PrimitiveSchemaTypeProperties schemaTypeProperties) Create a new metadata element to represent a primitive schema type such as a string, integer or character.createSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, SchemaAttributeProperties schemaAttributeProperties) Create a new metadata element to represent a schema attribute.createSchemaAttributeFromTemplate
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.createSchemaTypeChoice
(String userId, String externalSourceGUID, String externalSourceName, SchemaTypeChoiceProperties schemaTypeProperties, List<String> schemaTypeOptionGUIDs) Create a new metadata element to represent a list of possible schema types that can be used for the attached schema attribute.createSchemaTypeFromTemplate
(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent a schema type using an existing metadata element as a template.createStructSchemaType
(String userId, String externalSourceGUID, String externalSourceName, StructSchemaTypeProperties schemaTypeProperties) Create a new metadata element to represent a schema type.findSchemaAttributes
(String userId, String searchString, String typeName, int startFrom, int pageSize) Retrieve the list of schema attribute metadata elements that contain the search string.findSchemaType
(String userId, String searchString, String typeName, int startFrom, int pageSize) Retrieve the list of schema type metadata elements that contain the search string.findValidValueSet
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of valid value set metadata elements that contain the search string.getNestedAttributes
(String userId, String parentSchemaElementGUID, int startFrom, int pageSize) Retrieve the list of schema attributes associated with a StructSchemaType or nested underneath a schema attribute.getSchemaAttributeByGUID
(String userId, String schemaAttributeGUID) Retrieve the schema attribute metadata element with the supplied unique identifier.getSchemaAttributesByName
(String userId, String name, String typeName, int startFrom, int pageSize) Retrieve the list of schema attribute metadata elements with a matching qualified or display name.getSchemaTypeByGUID
(String userId, String schemaTypeGUID) Retrieve the schema type metadata element with the supplied unique identifier.getSchemaTypeByName
(String userId, String name, String typeName, int startFrom, int pageSize) Retrieve the list of schema type metadata elements with a matching qualified or display name.getSchemaTypeForElement
(String userId, String parentElementGUID, String parentElementTypeName) Return the schema type associated with a specific open metadata element (data asset, process or port).getSchemaTypeParent
(String userId, String schemaTypeGUID) Retrieve the header of the metadata element connected to a schema type.getValidValueSetByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of valid value set metadata elements with a matching qualified or display name.void
removeSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID) Remove the metadata element representing a schema attribute.void
removeSchemaType
(String userId, String externalSourceGUID, String externalSourceName, String schemaTypeGUID) Remove the metadata element representing a schema type.void
setupCalculatedValue
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String formula) Classify the schema element to indicate that it describes a calculated value.void
setupQueryTargetRelationship
(String userId, String externalSourceGUID, String externalSourceName, String derivedElementGUID, String queryTargetGUID, DerivedSchemaTypeQueryTargetProperties queryTargetProperties) Link two schema elements together to show a query target relationship.void
setupSchemaElementRelationship
(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName, RelationshipProperties properties) Create a relationship between two schema elements.void
setupSchemaType
(String userId, String externalSourceGUID, String externalSourceName, String relationshipTypeName, String schemaAttributeGUID, String schemaTypeGUID) Connect a schema type to a schema attribute.void
updateQueryTargetRelationship
(String userId, String externalSourceGUID, String externalSourceName, String derivedElementGUID, String queryTargetGUID, DerivedSchemaTypeQueryTargetProperties queryTargetProperties) Update the relationship properties for the query target.void
updateSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, boolean isMergeUpdate, SchemaAttributeProperties schemaAttributeProperties) Update the properties of the metadata element representing a schema attribute.void
updateSchemaType
(String userId, String externalSourceGUID, String externalSourceName, String schemaTypeGUID, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties) Update the metadata element representing a schema type.
-
Method Details
-
createPrimitiveSchemaType
String createPrimitiveSchemaType(String userId, String externalSourceGUID, String externalSourceName, PrimitiveSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a primitive schema type such as a string, integer or character.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeProperties
- properties about the schema type to store- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createLiteralSchemaType
String createLiteralSchemaType(String userId, String externalSourceGUID, String externalSourceName, LiteralSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type that has a fixed value.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeProperties
- properties about the schema type to store- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createEnumSchemaType
String createEnumSchemaType(String userId, String externalSourceGUID, String externalSourceName, EnumSchemaTypeProperties schemaTypeProperties, String validValuesSetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type that has a fixed set of values that are described by a valid value set.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeProperties
- properties about the schema type to storevalidValuesSetGUID
- unique identifier of the valid values set to used- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getValidValueSetByName
List<ValidValueSetElement> getValidValueSetByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of valid value set metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findValidValueSet
List<ValidValueSetElement> findValidValueSet(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of valid value set metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createStructSchemaType
String createStructSchemaType(String userId, String externalSourceGUID, String externalSourceName, StructSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeProperties
- properties about the schema type to store- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createSchemaTypeChoice
String createSchemaTypeChoice(String userId, String externalSourceGUID, String externalSourceName, SchemaTypeChoiceProperties schemaTypeProperties, List<String> schemaTypeOptionGUIDs) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a list of possible schema types that can be used for the attached schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeProperties
- properties about the schema type to storeschemaTypeOptionGUIDs
- unique identifier for the schema types to choose from- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createMapSchemaType
String createMapSchemaType(String userId, String externalSourceGUID, String externalSourceName, MapSchemaTypeProperties schemaTypeProperties, String mapFromSchemaTypeGUID, String mapToSchemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeProperties
- properties about the schema type to storemapFromSchemaTypeGUID
- unique identifier of the domain of the mapmapToSchemaTypeGUID
- unique identifier of the range of the map- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createSchemaTypeFromTemplate
String createSchemaTypeFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type using an existing metadata element as a template.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new schema type
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateSchemaType
void updateSchemaType(String userId, String externalSourceGUID, String externalSourceName, String schemaTypeGUID, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a schema type. It is possible to use the subtype property classes or set up specialized properties in extended properties.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?schemaTypeProperties
- new properties for the metadata element- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeSchemaType
void removeSchemaType(String userId, String externalSourceGUID, String externalSourceName, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a schema type.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaTypeGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupSchemaElementRelationship
void setupSchemaElementRelationship(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName, RelationshipProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between two schema elements. The name of the desired relationship, and any properties (including effectivity dates) are passed on the API.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerendOneGUID
- unique identifier of the schema element at end one of the relationshipendTwoGUID
- unique identifier of the schema element at end two of the relationshiprelationshipTypeName
- type of the relationship to createproperties
- relationship properties- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearSchemaElementRelationship
void clearSchemaElementRelationship(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship between two schema elements. The name of the desired relationship is passed on the API.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerendOneGUID
- unique identifier of the schema element at end one of the relationshipendTwoGUID
- unique identifier of the schema element at end two of the relationshiprelationshipTypeName
- type of the relationship to delete- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findSchemaType
List<SchemaTypeElement> findSchemaType(String userId, String searchString, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of schema type metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiestypeName
- optional type name for the schema type - used to restrict the search resultsstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getSchemaTypeForElement
SchemaTypeElement getSchemaTypeForElement(String userId, String parentElementGUID, String parentElementTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the schema type associated with a specific open metadata element (data asset, process or port).- Parameters:
userId
- calling userparentElementGUID
- unique identifier of the open metadata element that this schema type is connected toparentElementTypeName
- unique type name of the open metadata element that this schema type is connected to- Returns:
- metadata element describing the schema type associated with the requested parent element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getSchemaTypeByName
List<SchemaTypeElement> getSchemaTypeByName(String userId, String name, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of schema type metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search fortypeName
- optional type name for the schema type - used to restrict the search resultsstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getSchemaTypeByGUID
SchemaTypeElement getSchemaTypeByGUID(String userId, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the schema type metadata element with the supplied unique identifier.- Parameters:
userId
- calling userschemaTypeGUID
- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getSchemaTypeParent
ElementStub getSchemaTypeParent(String userId, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the header of the metadata element connected to a schema type.- Parameters:
userId
- calling userschemaTypeGUID
- unique identifier of the requested metadata element- Returns:
- header for parent element (data asset, process, port)
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createSchemaAttribute
String createSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaElementGUID
- unique identifier of the schemaType or Schema Attribute where the schema attribute is nested underneathschemaAttributeProperties
- properties for the schema attribute- Returns:
- unique identifier of the new metadata element for the schema attribute
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createSchemaAttributeFromTemplate
String createSchemaAttributeFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema attribute using an existing metadata element as a template.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaElementGUID
- unique identifier of the schemaType or Schema Attribute where the schema attribute is connected totemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element for the schema attribute
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupSchemaType
void setupSchemaType(String userId, String externalSourceGUID, String externalSourceName, String relationshipTypeName, String schemaAttributeGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Connect a schema type to a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerrelationshipTypeName
- name of relationship to createschemaAttributeGUID
- unique identifier of the schema attributeschemaTypeGUID
- unique identifier of the schema type to connect- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearSchemaTypes
void clearSchemaTypes(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the linked schema types from a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaAttributeGUID
- unique identifier of the schema attribute- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateSchemaAttribute
void updateSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, boolean isMergeUpdate, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties of the metadata element representing a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaAttributeGUID
- unique identifier of the schema attribute to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?schemaAttributeProperties
- new properties for the schema attribute- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeSchemaAttribute
void removeSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaAttributeGUID
- unique identifier of the metadata element to remove- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findSchemaAttributes
List<SchemaAttributeElement> findSchemaAttributes(String userId, String searchString, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of schema attribute metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiestypeName
- optional type name for the schema attribute - used to restrict the search resultsstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getNestedAttributes
List<SchemaAttributeElement> getNestedAttributes(String userId, String parentSchemaElementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of schema attributes associated with a StructSchemaType or nested underneath a schema attribute.- Parameters:
userId
- calling userparentSchemaElementGUID
- unique identifier of the schema element of intereststartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getSchemaAttributesByName
List<SchemaAttributeElement> getSchemaAttributesByName(String userId, String name, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of schema attribute metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search fortypeName
- optional type name for the schema type - used to restrict the search resultsstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getSchemaAttributeByGUID
SchemaAttributeElement getSchemaAttributeByGUID(String userId, String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the schema attribute metadata element with the supplied unique identifier.- Parameters:
userId
- calling userschemaAttributeGUID
- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupCalculatedValue
void setupCalculatedValue(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String formula) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Classify the schema element to indicate that it describes a calculated value.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaElementGUID
- unique identifier of the metadata element to updateformula
- formula for calculating the value - this may contain placeholders that are identified by the queryIds used in the queryTarget relationships- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearCalculatedValue
void clearCalculatedValue(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the calculated value designation from the schema element.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerschemaElementGUID
- unique identifier of the metadata element to update- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupQueryTargetRelationship
void setupQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String derivedElementGUID, String queryTargetGUID, DerivedSchemaTypeQueryTargetProperties queryTargetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link two schema elements together to show a query target relationship. The query target provides data values to calculate a derived value.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerderivedElementGUID
- unique identifier of the derived schema elementqueryTargetGUID
- unique identifier of the query target schema elementqueryTargetProperties
- properties for the query target relationship- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateQueryTargetRelationship
void updateQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String derivedElementGUID, String queryTargetGUID, DerivedSchemaTypeQueryTargetProperties queryTargetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the relationship properties for the query target.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerderivedElementGUID
- unique identifier of the derived schema elementqueryTargetGUID
- unique identifier of the query target schema elementqueryTargetProperties
- properties for the query target relationship- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearQueryTargetRelationship
void clearQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String derivedElementGUID, String queryTargetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the query target relationship between two schema elements.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerderivedElementGUID
- unique identifier of the derived schema elementqueryTargetGUID
- unique identifier of the query target schema element- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-