Interface AssetOnboardingInterface
- All Known Implementing Classes:
AssetOwner
,AvroFileAssetOwner
,CSVFileAssetOwner
,FileSystemAssetOwner
,ValidValuesAssetOwner
public interface AssetOnboardingInterface
AssetOnboardingInterface provides the client-side interface for an asset owner to set up the metadata about their
asset. This includes defining its name, source and license.
-
Method Summary
Modifier and TypeMethodDescriptionaddAssetToCatalog
(String userId, String typeName, String qualifiedName, String displayName, String description, Map<String, String> additionalProperties, Map<String, Object> extendedProperties) Add a simple asset description to the catalog.addAssetToCatalog
(String userId, AssetProperties assetProperties) Add a comprehensive asset description to the catalog.addAssetToCatalogUsingTemplate
(String userId, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent an asset using an existing asset as a template.addCombinedSchemaToAsset
(String userId, String assetGUID, SchemaTypeProperties schemaType, List<SchemaAttributeProperties> schemaAttributes) Stores the supplied schema details in the catalog and attaches it to the asset.void
addConnectionToAsset
(String userId, String assetGUID, String assetSummary, Connection connection) Deprecated.addSchemaAttribute
(String userId, String assetGUID, String parentGUID, SchemaAttributeProperties schemaAttribute) Adds an attribute to a complex schema type like a relational table, avro schema or a structured document.void
addSchemaAttributes
(String userId, String assetGUID, String parentGUID, List<SchemaAttributeProperties> schemaAttributes) Adds attributes to a complex schema type like a relational table, avro schema or a structured document.addSchemaTypeToAsset
(String userId, String assetGUID, SchemaTypeProperties schemaType) Stores the supplied schema type in the catalog and attaches it to the asset.void
attachSchemaTypeToAsset
(String userId, String assetGUID, String schemaTypeGUID) Links the supplied schema type directly to the asset.void
clearAssetRelationship
(String userId, String relationshipTypeName, String relationshipGUID) Remove the relationship between two elements.void
clearSchemaElementAsCalculatedValue
(String userId, String schemaElementGUID) Remove the calculated value designation from the schema element.void
clearSchemaElementRelationship
(String userId, String endOneGUID, String endTwoGUID, String relationshipTypeName) Remove a relationship between two schema elements.void
clearSchemaTypeParent
(String userId, String schemaTypeGUID, String parentElementGUID, String parentElementTypeName) Remove the relationship between a schema type and its parent data asset, process or port.createAnchoredSchemaType
(String userId, String anchorGUID, SchemaTypeProperties schemaTypeProperties) Create a new metadata element to represent a schema type.createSchemaAttributeFromTemplate
(String userId, String schemaElementGUID, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.createSchemaType
(String userId, SchemaTypeProperties schemaTypeProperties) Create a new metadata element to represent a schema type.createSchemaTypeFromTemplate
(String userId, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent a schema type using an existing metadata element as a template.void
deleteAssetSchemaType
(String userId, String assetGUID) Detaches and deletes an asset's schema.detachSchemaTypeFromAsset
(String userId, String assetGUID) Unlinks the schema from the asset but does not delete it.findSchemaAttributes
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of schema attribute metadata elements that contain the search string.findSchemaType
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of schema type metadata elements that contain the search string.getNestedSchemaAttributes
(String userId, String parentSchemaElementGUID, int startFrom, int pageSize) Retrieve the list of schema attributes associated with a schema element.getSchemaAttributeByGUID
(String userId, String schemaAttributeGUID) Retrieve the schema attribute metadata element with the supplied unique identifier.getSchemaAttributesByName
(String userId, String name, 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, 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.void
removeSchemaAttribute
(String userId, String schemaAttributeGUID) Remove the metadata element representing a schema attribute.void
removeSchemaType
(String userId, String schemaTypeGUID) Remove the metadata element representing a schema type.void
setSchemaElementAsCalculatedValue
(String userId, String schemaElementGUID, String formula) Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.setupRelatedAsset
(String userId, String relationshipTypeName, String fromAssetGUID, String toAssetGUID, RelationshipProperties relationshipProperties) Link two asset together.void
setupSchemaElementRelationship
(String userId, String endOneGUID, String endTwoGUID, String relationshipTypeName, RelationshipProperties properties) Create a relationship between two schema elements.void
setupSchemaTypeParent
(String userId, String schemaTypeGUID, String parentElementGUID, String parentElementTypeName, RelationshipProperties properties) Connect a schema type to a data asset, process or port.void
updateAsset
(String userId, String assetGUID, boolean isMergeUpdate, AssetProperties assetProperties) Update the metadata element representing an asset.void
updateAssetRelationship
(String userId, String relationshipTypeName, String relationshipGUID, boolean isMergeUpdate, RelationshipProperties relationshipProperties) Update relationship between two elements.void
updateSchemaAttribute
(String userId, String schemaAttributeGUID, boolean isMergeUpdate, SchemaAttributeProperties schemaAttributeProperties) Update the properties of the metadata element representing a schema attribute.void
updateSchemaType
(String userId, String schemaTypeGUID, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties) Update the metadata element representing a schema type.
-
Method Details
-
addAssetToCatalog
String addAssetToCatalog(String userId, String typeName, String qualifiedName, String displayName, String description, Map<String, String> additionalProperties, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties) Add a simple asset description to the catalog.- Parameters:
userId
- calling user (assumed to be the owner)typeName
- specific type of the asset - this must match a defined subtypequalifiedName
- unique name for the asset in the catalogdisplayName
- display name for the asset in the catalogdescription
- description of the asset in the catalogadditionalProperties
- additional properties added by the callerextendedProperties
- properties from the subtypes- Returns:
- unique identifier (guid) of the asset
- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
addAssetToCatalog
String addAssetToCatalog(String userId, AssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add a comprehensive asset description to the catalog.- Parameters:
userId
- calling userassetProperties
- properties for the asset- Returns:
- unique identifier (guid) of the asset
- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
addAssetToCatalogUsingTemplate
String addAssetToCatalogUsingTemplate(String userId, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent an asset using an existing asset as a template.- Parameters:
userId
- calling usertemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new 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)
-
updateAsset
void updateAsset(String userId, String assetGUID, boolean isMergeUpdate, AssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing an asset.- Parameters:
userId
- calling userassetGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?assetProperties
- new properties for this 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)
-
setupRelatedAsset
String setupRelatedAsset(String userId, String relationshipTypeName, String fromAssetGUID, String toAssetGUID, RelationshipProperties relationshipProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link two asset together. Use information from the relationship type definition to ensure the fromAssetGUID and toAssetGUID are the right way around.- Parameters:
userId
- calling userrelationshipTypeName
- type name of relationship to createfromAssetGUID
- unique identifier of the asset at end 1 of the relationshiptoAssetGUID
- unique identifier of the asset at end 2 of the relationshiprelationshipProperties
- unique identifier for this relationship- Returns:
- unique identifier of the 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)
-
updateAssetRelationship
void updateAssetRelationship(String userId, String relationshipTypeName, String relationshipGUID, boolean isMergeUpdate, RelationshipProperties relationshipProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update relationship between two elements.- Parameters:
userId
- calling userrelationshipTypeName
- type name of relationship to updaterelationshipGUID
- unique identifier of the relationshiprelationshipProperties
- description and/or purpose of the relationshipisMergeUpdate
- should the new properties be merged with the existing properties, or replace them entirely- 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)
-
clearAssetRelationship
void clearAssetRelationship(String userId, String relationshipTypeName, String relationshipGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the relationship between two elements.- Parameters:
userId
- calling userrelationshipTypeName
- type name of relationship to deleterelationshipGUID
- unique identifier of the 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)
-
addCombinedSchemaToAsset
String addCombinedSchemaToAsset(String userId, String assetGUID, SchemaTypeProperties schemaType, List<SchemaAttributeProperties> schemaAttributes) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Stores the supplied schema details in the catalog and attaches it to the asset. If another schema is currently attached to the asset, it is unlinked and deleted. If more attributes need to be added in addition to the ones supplied then this can be done with addSchemaAttributesToSchemaType().- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached toschemaType
- schema type to create and attach directly to the asset.schemaAttributes
- optional schema attributes.- Returns:
- guid of the schema type or
- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
addSchemaTypeToAsset
String addSchemaTypeToAsset(String userId, String assetGUID, SchemaTypeProperties schemaType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Stores the supplied schema type in the catalog and attaches it to the asset. If another schema is currently attached to the asset, it is unlinked and deleted.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached toschemaType
- schema type to create and attach directly to the asset.- Returns:
- guid of the new schema type or
- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
attachSchemaTypeToAsset
void attachSchemaTypeToAsset(String userId, String assetGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Links the supplied schema type directly to the asset. If this schema is either not found, or already attached to an asset, then an error occurs. If another schema is currently attached to the asset, it is unlinked and deleted.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached toschemaTypeGUID
- unique identifier of the schema type to attach- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
detachSchemaTypeFromAsset
String detachSchemaTypeFromAsset(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Unlinks the schema from the asset but does not delete it. This means it can be reattached to a different asset.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached to- Returns:
- guid of detached schema type
- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
deleteAssetSchemaType
void deleteAssetSchemaType(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Detaches and deletes an asset's schema.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached to- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
createSchemaType
String createSchemaType(String userId, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type.- Parameters:
userId
- calling userschemaTypeProperties
- 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)
-
createAnchoredSchemaType
String createAnchoredSchemaType(String userId, String anchorGUID, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema type.- Parameters:
userId
- calling useranchorGUID
- unique identifier of the intended anchor of the schema typeschemaTypeProperties
- 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)
-
createSchemaTypeFromTemplate
String createSchemaTypeFromTemplate(String userId, 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 usertemplateGUID
- 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 schemaTypeGUID, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a schema type.- Parameters:
userId
- calling userschemaTypeGUID
- 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)
-
setupSchemaTypeParent
void setupSchemaTypeParent(String userId, String schemaTypeGUID, String parentElementGUID, String parentElementTypeName, RelationshipProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Connect a schema type to a data asset, process or port.- Parameters:
userId
- calling userschemaTypeGUID
- unique identifier of the schema type to connectparentElementGUID
- unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName
- unique type name of the open metadata element that this schema type is to be connected toproperties
- properties for the 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)
-
clearSchemaTypeParent
void clearSchemaTypeParent(String userId, String schemaTypeGUID, String parentElementGUID, String parentElementTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the relationship between a schema type and its parent data asset, process or port.- Parameters:
userId
- calling userschemaTypeGUID
- unique identifier of the schema type to connectparentElementGUID
- unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName
- unique type name of the open metadata element that this schema type is to be connected to- 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 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 userendOneGUID
- 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 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 userendOneGUID
- 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)
-
removeSchemaType
void removeSchemaType(String userId, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a schema type.- Parameters:
userId
- calling userschemaTypeGUID
- 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)
-
findSchemaType
List<SchemaTypeElement> findSchemaType(String userId, String searchString, 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 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)
-
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 to be connected toparentElementTypeName
- unique type name of the open metadata element that this schema type is to be 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, 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 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)
-
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
ElementHeader 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)
-
addSchemaAttributes
void addSchemaAttributes(String userId, String assetGUID, String parentGUID, List<SchemaAttributeProperties> schemaAttributes) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Adds attributes to a complex schema type like a relational table, avro schema or a structured document. This method can be called repeatedly to add many attributes to a schema.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached toparentGUID
- unique identifier of the schema element to anchor these attributes to.schemaAttributes
- list of schema attribute objects.- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
addSchemaAttribute
String addSchemaAttribute(String userId, String assetGUID, String parentGUID, SchemaAttributeProperties schemaAttribute) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Adds an attribute to a complex schema type like a relational table, avro schema or a structured document. This method can be called repeatedly to add many attributes to a schema. Since the GUID is returned, it is possible to add nested schema attributes to another schema attribute.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the schema is to be attached toparentGUID
- unique identifier of the schema element to anchor these attributes to.schemaAttribute
- schema attribute object to add to the schema.- Returns:
- list of unique identifiers for the new schema attributes returned in the same order as the supplied attribute or
- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
createSchemaAttributeFromTemplate
String createSchemaAttributeFromTemplate(String userId, 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 userschemaElementGUID
- 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)
-
updateSchemaAttribute
void updateSchemaAttribute(String userId, String schemaAttributeGUID, boolean isMergeUpdate, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties of the metadata element representing a schema attribute.- Parameters:
userId
- calling userschemaAttributeGUID
- 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)
-
setSchemaElementAsCalculatedValue
void setSchemaElementAsCalculatedValue(String userId, String schemaElementGUID, String formula) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.- Parameters:
userId
- calling userschemaElementGUID
- unique identifier of the metadata element to updateformula
- description of the logic that maps data values to- 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)
-
clearSchemaElementAsCalculatedValue
void clearSchemaElementAsCalculatedValue(String userId, String schemaElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the calculated value designation from the schema element.- Parameters:
userId
- calling userschemaElementGUID
- 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)
-
removeSchemaAttribute
void removeSchemaAttribute(String userId, String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a schema attribute.- Parameters:
userId
- calling userschemaAttributeGUID
- 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, 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 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)
-
getNestedSchemaAttributes
List<SchemaAttributeElement> getNestedSchemaAttributes(String userId, String parentSchemaElementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of schema attributes associated with a schema element.- 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, 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 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)
-
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)
-
addConnectionToAsset
@Deprecated void addConnectionToAsset(String userId, String assetGUID, String assetSummary, Connection connection) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Deprecated.Adds a connection to an asset. Assets can have multiple connections attached.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset to attach the connection toassetSummary
- summary of the asset that is stored in the relationship between the asset and the connection.connection
- connection object. If the connection is already stored (matching guid) then the existing connection is used.- Throws:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-