public class SchemaExchangeRESTServices extends Object
| Constructor and Description |
|---|
SchemaExchangeRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
clearColumnAsPrimaryKey(String serverName,
String userId,
String schemaAttributeGUID,
MetadataCorrelationProperties requestBody)
Remove the primary key designation from the schema attribute.
|
VoidResponse |
clearForeignKeyRelationship(String serverName,
String userId,
String primaryKeyGUID,
String foreignKeyGUID,
AssetManagerIdentifiersRequestBody requestBody)
Remove the foreign key relationship between two schema elements.
|
VoidResponse |
clearSchemaElementAsCalculatedValue(String serverName,
String userId,
String schemaElementGUID,
MetadataCorrelationProperties requestBody)
Remove the calculated value designation from the schema element.
|
VoidResponse |
clearSchemaTypeParent(String serverName,
String userId,
String parentElementGUID,
String parentElementTypeName,
String schemaTypeGUID,
AssetManagerIdentifiersRequestBody requestBody)
Remove the relationship between a schema type and its parent data asset, process or port.
|
GUIDResponse |
createSchemaAttribute(String serverName,
String userId,
String schemaElementGUID,
boolean assetManagerIsHome,
SchemaAttributeRequestBody requestBody)
Create a new metadata element to represent a schema attribute.
|
GUIDResponse |
createSchemaAttributeFromTemplate(String serverName,
String userId,
String schemaElementGUID,
String templateGUID,
boolean assetManagerIsHome,
TemplateRequestBody requestBody)
Create a new metadata element to represent a schema attribute using an existing metadata element as a template.
|
GUIDResponse |
createSchemaType(String serverName,
String userId,
boolean assetManagerIsHome,
SchemaTypeRequestBody requestBody)
Create a new metadata element to represent a schema type.
|
GUIDResponse |
createSchemaTypeFromTemplate(String serverName,
String userId,
String templateGUID,
boolean assetManagerIsHome,
TemplateRequestBody requestBody)
Create a new metadata element to represent a schema type using an existing metadata element as a template.
|
SchemaAttributeElementsResponse |
findSchemaAttributes(String serverName,
String userId,
int startFrom,
int pageSize,
SearchStringRequestBody requestBody)
Retrieve the list of schema attribute metadata elements that contain the search string.
|
SchemaTypeElementsResponse |
findSchemaType(String serverName,
String userId,
int startFrom,
int pageSize,
SearchStringRequestBody requestBody)
Retrieve the list of schema type metadata elements that contain the search string.
|
SchemaAttributeElementsResponse |
getAttributesForSchemaType(String serverName,
String userId,
String schemaTypeGUID,
int startFrom,
int pageSize,
AssetManagerIdentifiersRequestBody requestBody)
Retrieve the list of schema attributes associated with a schemaType.
|
SchemaAttributeElementResponse |
getSchemaAttributeByGUID(String serverName,
String userId,
String schemaAttributeGUID,
AssetManagerIdentifiersRequestBody requestBody)
Retrieve the schema attribute metadata element with the supplied unique identifier.
|
SchemaAttributeElementsResponse |
getSchemaAttributesByName(String serverName,
String userId,
int startFrom,
int pageSize,
NameRequestBody requestBody)
Retrieve the list of schema attribute metadata elements with a matching qualified or display name.
|
SchemaTypeElementResponse |
getSchemaTypeByGUID(String serverName,
String userId,
String schemaTypeGUID,
AssetManagerIdentifiersRequestBody requestBody)
Retrieve the schema type metadata element with the supplied unique identifier.
|
SchemaTypeElementsResponse |
getSchemaTypeByName(String serverName,
String userId,
int startFrom,
int pageSize,
NameRequestBody requestBody)
Retrieve the list of schema type metadata elements with a matching qualified or display name.
|
SchemaTypeElementResponse |
getSchemaTypeForElement(String serverName,
String userId,
String parentElementGUID,
String parentElementTypeName,
AssetManagerIdentifiersRequestBody requestBody)
Return the schema type associated with a specific open metadata element (data asset, process or port).
|
ElementHeaderResponse |
getSchemaTypeParent(String serverName,
String userId,
String schemaTypeGUID,
AssetManagerIdentifiersRequestBody requestBody)
Retrieve the header of the metadata element connected to a schema type.
|
VoidResponse |
removeSchemaAttribute(String serverName,
String userId,
String schemaAttributeGUID,
MetadataCorrelationProperties requestBody)
Remove the metadata element representing a schema attribute.
|
VoidResponse |
removeSchemaType(String serverName,
String userId,
String schemaTypeGUID,
MetadataCorrelationProperties requestBody)
Remove the metadata element representing a schema type.
|
VoidResponse |
setSchemaElementAsCalculatedValue(String serverName,
String userId,
String schemaElementGUID,
boolean assetManagerIsHome,
MetadataCorrelationProperties requestBody)
Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.
|
VoidResponse |
setupColumnAsPrimaryKey(String serverName,
String userId,
String schemaAttributeGUID,
boolean assetManagerIsHome,
PrimaryKeyClassificationRequestBody requestBody)
Classify the column schema attribute to indicate that it describes a primary key.
|
VoidResponse |
setupForeignKeyRelationship(String serverName,
String userId,
String primaryKeyGUID,
String foreignKeyGUID,
boolean assetManagerIsHome,
ForeignKeyRequestBody requestBody)
Link two schema attributes together to show a foreign key relationship.
|
VoidResponse |
setupSchemaTypeParent(String serverName,
String userId,
String parentElementGUID,
String parentElementTypeName,
String schemaTypeGUID,
boolean assetManagerIsHome,
AssetManagerIdentifiersRequestBody requestBody)
Connect a schema type to a data asset, process or port.
|
VoidResponse |
updateForeignKeyRelationship(String serverName,
String userId,
String primaryKeyGUID,
String foreignKeyGUID,
ForeignKeyRequestBody requestBody)
Update the relationship properties for the query target.
|
VoidResponse |
updateSchemaAttribute(String serverName,
String userId,
String schemaAttributeGUID,
boolean isMergeUpdate,
SchemaAttributeRequestBody requestBody)
Update the properties of the metadata element representing a schema attribute.
|
VoidResponse |
updateSchemaType(String serverName,
String userId,
String schemaTypeGUID,
boolean isMergeUpdate,
SchemaTypeRequestBody requestBody)
Update the metadata element representing a schema type.
|
public SchemaExchangeRESTServices()
public GUIDResponse createSchemaType(String serverName, String userId, boolean assetManagerIsHome, SchemaTypeRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userassetManagerIsHome - ensure that only the asset manager can update this schema elementrequestBody - properties about the schema type to storepublic GUIDResponse createSchemaTypeFromTemplate(String serverName, String userId, String templateGUID, boolean assetManagerIsHome, TemplateRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userassetManagerIsHome - ensure that only the asset manager can update this schema elementtemplateGUID - unique identifier of the metadata element to copyrequestBody - properties that override the templatepublic VoidResponse updateSchemaType(String serverName, String userId, String schemaTypeGUID, boolean isMergeUpdate, SchemaTypeRequestBody requestBody)
serverName - name of the server to route the request touserId - 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)?requestBody - new properties for the metadata elementpublic VoidResponse setupSchemaTypeParent(String serverName, String userId, String parentElementGUID, String parentElementTypeName, String schemaTypeGUID, boolean assetManagerIsHome, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - 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 toassetManagerIsHome - ensure that only the asset manager can update this relationshiprequestBody - unique identifier/name of software server capability representing the callerpublic VoidResponse clearSchemaTypeParent(String serverName, String userId, String parentElementGUID, String parentElementTypeName, String schemaTypeGUID, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - 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 torequestBody - unique identifier/name of software server capability representing the callerpublic VoidResponse removeSchemaType(String serverName, String userId, String schemaTypeGUID, MetadataCorrelationProperties requestBody)
serverName - name of the server to route the request touserId - calling userschemaTypeGUID - unique identifier of the metadata element to removerequestBody - unique identifier/name of software server capability representing the caller and external identifier of elementpublic SchemaTypeElementsResponse findSchemaType(String serverName, String userId, int startFrom, int pageSize, SearchStringRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - string to find in the properties plus external identifierspublic SchemaTypeElementResponse getSchemaTypeForElement(String serverName, String userId, String parentElementGUID, String parentElementTypeName, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - 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 torequestBody - unique identifier/name of software server capability representing the callerpublic SchemaTypeElementsResponse getSchemaTypeByName(String serverName, String userId, int startFrom, int pageSize, NameRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - name to search for plus identifierspublic SchemaTypeElementResponse getSchemaTypeByGUID(String serverName, String userId, String schemaTypeGUID, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userschemaTypeGUID - unique identifier of the requested metadata elementrequestBody - unique identifier/name of software server capability representing the callerpublic ElementHeaderResponse getSchemaTypeParent(String serverName, String userId, String schemaTypeGUID, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userschemaTypeGUID - unique identifier of the requested metadata elementrequestBody - unique identifier/name of software server capability representing the callerpublic GUIDResponse createSchemaAttribute(String serverName, String userId, String schemaElementGUID, boolean assetManagerIsHome, SchemaAttributeRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userassetManagerIsHome - ensure that only the asset manager can update this schema attributeschemaElementGUID - unique identifier of the schemaType or Schema Attribute where the schema attribute is connected torequestBody - properties for the schema attributepublic GUIDResponse createSchemaAttributeFromTemplate(String serverName, String userId, String schemaElementGUID, String templateGUID, boolean assetManagerIsHome, TemplateRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userschemaElementGUID - unique identifier of the schemaType or Schema Attribute where the schema attribute is connected totemplateGUID - unique identifier of the metadata element to copyassetManagerIsHome - ensure that only the asset manager can update this schema attributerequestBody - properties that override the templatepublic VoidResponse updateSchemaAttribute(String serverName, String userId, String schemaAttributeGUID, boolean isMergeUpdate, SchemaAttributeRequestBody requestBody)
serverName - name of the server to route the request touserId - 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)?requestBody - new properties for the schema attributepublic VoidResponse setSchemaElementAsCalculatedValue(String serverName, String userId, String schemaElementGUID, boolean assetManagerIsHome, MetadataCorrelationProperties requestBody)
serverName - name of the server to route the request touserId - calling userschemaElementGUID - unique identifier of the metadata element to updateassetManagerIsHome - ensure that only the asset manager can update this classificationrequestBody - unique identifier/name of software server capability representing the caller and external identifier of elementpublic VoidResponse clearSchemaElementAsCalculatedValue(String serverName, String userId, String schemaElementGUID, MetadataCorrelationProperties requestBody)
serverName - name of the server to route the request touserId - calling userschemaElementGUID - unique identifier of the metadata element to updaterequestBody - unique identifier/name of software server capability representing the caller and external identifier of elementpublic VoidResponse setupColumnAsPrimaryKey(String serverName, String userId, String schemaAttributeGUID, boolean assetManagerIsHome, PrimaryKeyClassificationRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userassetManagerIsHome - ensure that only the asset manager can update this classificationschemaAttributeGUID - unique identifier of the metadata element to updaterequestBody - details of the primary key plus external identifierspublic VoidResponse clearColumnAsPrimaryKey(String serverName, String userId, String schemaAttributeGUID, MetadataCorrelationProperties requestBody)
serverName - name of the server to route the request touserId - calling userschemaAttributeGUID - unique identifier of the metadata element to updaterequestBody - unique identifier/name of software server capability representing the caller and external identifier of elementpublic VoidResponse setupForeignKeyRelationship(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean assetManagerIsHome, ForeignKeyRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userprimaryKeyGUID - unique identifier of the derived schema elementforeignKeyGUID - unique identifier of the query target schema elementassetManagerIsHome - ensure that only the asset manager can update this relationshiprequestBody - properties for the foreign key relationshippublic VoidResponse updateForeignKeyRelationship(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, ForeignKeyRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userprimaryKeyGUID - unique identifier of the derived schema elementforeignKeyGUID - unique identifier of the query target schema elementrequestBody - properties for the foreign key relationship plus external identifierspublic VoidResponse clearForeignKeyRelationship(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userprimaryKeyGUID - unique identifier of the derived schema elementforeignKeyGUID - unique identifier of the query target schema elementrequestBody - unique identifier/name of software server capability representing the callerpublic VoidResponse removeSchemaAttribute(String serverName, String userId, String schemaAttributeGUID, MetadataCorrelationProperties requestBody)
serverName - name of the server to route the request touserId - calling userschemaAttributeGUID - unique identifier of the metadata element to removerequestBody - unique identifier/name of software server capability representing the caller and external identifier of elementpublic SchemaAttributeElementsResponse findSchemaAttributes(String serverName, String userId, int startFrom, int pageSize, SearchStringRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - string to find in the properties plus external identifierspublic SchemaAttributeElementsResponse getAttributesForSchemaType(String serverName, String userId, String schemaTypeGUID, int startFrom, int pageSize, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userschemaTypeGUID - unique identifier of the schemaType of intereststartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - unique identifier/name of software server capability representing the callerpublic SchemaAttributeElementsResponse getSchemaAttributesByName(String serverName, String userId, int startFrom, int pageSize, NameRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - unique identifier/name of software server capability representing the callerpublic SchemaAttributeElementResponse getSchemaAttributeByGUID(String serverName, String userId, String schemaAttributeGUID, AssetManagerIdentifiersRequestBody requestBody)
serverName - name of the server to route the request touserId - calling userschemaAttributeGUID - unique identifier of the requested metadata elementrequestBody - unique identifier/name of software server capability representing the callerCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.