Class APIIntegratorContext
- java.lang.Object
-
- org.odpi.openmetadata.integrationservices.api.connector.APIIntegratorContext
-
public class APIIntegratorContext extends Object
APIIntegratorContext is the context for managing resources from a relational api server.
-
-
Constructor Summary
Constructors Constructor Description APIIntegratorContext(APIManagerClient apiManagerClient, ConnectionManagerClient connectionManagerClient, DataManagerEventClient eventClient, String userId, String apiManagerGUID, String apiManagerName)Create a new client with no authentication embedded in the HTTP request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSchemaTypes(String apiParameterGUID)Remove the linked schema types from a API parameter.StringcreateAPI(String endpointGUID, APIProperties apiProperties)Create a new metadata element to represent an API.StringcreateAPIFromTemplate(String endpointGUID, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent an API using an existing metadata element as a template.StringcreateAPIOperation(String apiGUID, APIOperationProperties apiOperationProperties)Create a new metadata element to represent an API operation.StringcreateAPIOperationFromTemplate(String templateGUID, String apiGUID, TemplateProperties templateProperties)Create a new metadata element to represent an API operation using an existing metadata element as a template.StringcreateAPIParameter(String schemaElementGUID, APIParameterProperties apiParameterProperties)Create a new metadata element to represent a API parameter.StringcreateAPIParameterFromTemplate(String schemaElementGUID, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent a API parameter using an existing metadata element as a template.StringcreateAPIParameterList(String apiOperationGUID, APIParameterListType parameterListType, APIParameterListProperties properties)Create a new metadata element to represent an API Operation's Parameter list.StringcreateAPIParameterListFromTemplate(String templateGUID, String apiOperationGUID, APIParameterListType parameterListType, TemplateProperties templateProperties)Create a new metadata element to represent a an API Parameter List using an existing API Parameter List as a template.StringcreateEndpoint(EndpointProperties endpointProperties)Create a new metadata element to represent an endpointStringcreateEndpointFromTemplate(String networkAddress, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent a endpoint using an existing metadata element as a template.StringcreateEnumSchemaType(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.StringcreateLiteralSchemaType(LiteralSchemaTypeProperties schemaTypeProperties)Create a new metadata element to represent a schema type that has a fixed value.StringcreateMapSchemaType(MapSchemaTypeProperties schemaTypeProperties, String mapFromSchemaTypeGUID, String mapToSchemaTypeGUID)Create a new metadata element to represent a schema type.StringcreatePrimitiveSchemaType(PrimitiveSchemaTypeProperties schemaTypeProperties)Create a new metadata element to represent a primitive schema type such as a string, integer or character.StringcreateSchemaTypeChoice(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 API parameter.StringcreateSchemaTypeFromTemplate(String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent a schema type using an existing metadata element as a template.StringcreateStructSchemaType(StructSchemaTypeProperties schemaTypeProperties)Create a new metadata element to represent a schema type.List<APIOperationElement>findAPIOperations(String searchString, int startFrom, int pageSize)Retrieve the list of API operation metadata elements that contain the search string.List<APIParameterListElement>findAPIParameterLists(String searchString, int startFrom, int pageSize)Retrieve the list of API Parameter List metadata elements that contain the search string.List<APIParameterElement>findAPIParameters(String searchString, String typeName, int startFrom, int pageSize)Retrieve the list of API parameter metadata elements that contain the search string.List<APIElement>findAPIs(String searchString, int startFrom, int pageSize)Retrieve the list of API metadata elements that contain the search string.List<EndpointElement>findEndpoints(String searchString, int startFrom, int pageSize)Retrieve the list of endpoint metadata elements that contain the search string.List<SchemaTypeElement>findSchemaType(String searchString, String typeName, int startFrom, int pageSize)Retrieve the list of schema type metadata elements that contain the search string.List<ValidValueSetElement>findValidValueSet(String searchString, int startFrom, int pageSize)Retrieve the list of valid value set metadata elements that contain the search string.APIElementgetAPIByGUID(String guid)Retrieve the API metadata element with the supplied unique identifier.StringgetAPIManagerName()Return the qualified name of the API manager that is supplied in the configuration document.APIOperationElementgetAPIOperationByGUID(String guid)Retrieve the API operation metadata element with the supplied unique identifier.List<APIOperationElement>getAPIOperationsByName(String name, int startFrom, int pageSize)Retrieve the list of API operation metadata elements with a matching qualified or display name.APIParameterElementgetAPIParameterByGUID(String apiParameterGUID)Retrieve the API parameter metadata element with the supplied unique identifier.APIParameterListElementgetAPIParameterListByGUID(String guid)Retrieve the API Parameter List metadata element with the supplied unique identifier.List<APIParameterListElement>getAPIParameterListsByName(String name, int startFrom, int pageSize)Retrieve the list of API Parameter List metadata elements with a matching qualified or display name.List<APIParameterElement>getAPIParametersByName(String name, String typeName, int startFrom, int pageSize)Retrieve the list of API parameter metadata elements with a matching qualified or display name.List<APIElement>getAPIsByName(String name, int startFrom, int pageSize)Retrieve the list of API metadata elements with a matching qualified or display name.EndpointElementgetEndpointByGUID(String endpointGUID)Retrieve the endpoint metadata element with the supplied unique identifier.List<EndpointElement>getEndpointsByName(String name, int startFrom, int pageSize)Retrieve the list of endpoint metadata elements with a matching qualified or display name.List<APIElement>getMyAPIs(int startFrom, int pageSize)Retrieve the list of apis created by this caller.List<APIParameterElement>getNestedAPIParameters(String parentElementGUID, int startFrom, int pageSize)Retrieve the list of API parameters associated with a parameter list or nested underneath another parameter.List<APIOperationElement>getOperationsForAPI(String apiGUID, int startFrom, int pageSize)Return the list of operations associated with an API.List<APIParameterListElement>getParameterListsForAPIOperation(String apiOperationGUID, int startFrom, int pageSize)Return the list of API Parameter Lists associated with an API Operation.SchemaTypeElementgetSchemaTypeByGUID(String schemaTypeGUID)Retrieve the schema type metadata element with the supplied unique identifier.List<SchemaTypeElement>getSchemaTypeByName(String name, String typeName, int startFrom, int pageSize)Retrieve the list of schema type metadata elements with a matching qualified or display name.SchemaTypeElementgetSchemaTypeForElement(String parentElementGUID, String parentElementTypeName)Return the schema type associated with a specific open metadata element (data asset, process or port).ElementHeadergetSchemaTypeParent(String schemaTypeGUID)Retrieve the header of the metadata element connected to a schema type.List<ValidValueSetElement>getValidValueSetByName(String name, int startFrom, int pageSize)Retrieve the list of valid value set metadata elements with a matching qualified or display name.voidpublishAPI(String apiGUID)Update the zones for the API asset so that it becomes visible to consumers.voidregisterListener(DataManagerEventListener listener)Register a listener object that will be passed each of the events published by the Data Manager OMAS.voidremoveAPI(String apiGUID, String qualifiedName)Remove the metadata element representing an API.voidremoveAPIOperation(String apiOperationGUID, String qualifiedName)Remove the metadata element representing an API operation.voidremoveAPIParameter(String apiParameterGUID)Remove the metadata element representing a API parameter.voidremoveAPIParameterList(String apiParameterListGUID, String qualifiedName)Remove an API Parameter List and all of its parameters.voidremoveEndpoint(String endpointGUID)Remove the metadata element representing a endpoint.voidremoveSchemaType(String schemaTypeGUID)Remove the metadata element representing a schema type.voidsetAPIManagerIsHome(boolean apiManagerIsHome)Set up the flag that controls the ownership of metadata created for this API manager.voidsetupSchemaType(String relationshipTypeName, String apiParameterGUID, String schemaTypeGUID)Connect a schema type to a API parameter.voidupdateAPI(String apiGUID, boolean isMergeUpdate, APIProperties apiProperties)Update the metadata element representing an API.voidupdateAPIOperation(String apiOperationGUID, boolean isMergeUpdate, APIOperationProperties apiOperationProperties)Update the metadata element representing an API operation.voidupdateAPIParameter(String apiParameterGUID, boolean isMergeUpdate, APIParameterProperties apiParameterProperties)Update the properties of the metadata element representing a API parameter.voidupdateAPIParameterList(String apiParameterListGUID, boolean isMergeUpdate, APIParameterListProperties properties)Update the metadata element representing an API Parameter List.voidupdateEndpoint(boolean isMergeUpdate, String endpointGUID, EndpointProperties endpointProperties)Update the metadata element representing a endpoint.voidupdateSchemaType(String schemaTypeGUID, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties)Update the metadata element representing a schema type.voidwithdrawAPI(String apiGUID)Update the zones for the API asset so that it is no longer visible to consumers.
-
-
-
Constructor Detail
-
APIIntegratorContext
public APIIntegratorContext(APIManagerClient apiManagerClient, ConnectionManagerClient connectionManagerClient, DataManagerEventClient eventClient, String userId, String apiManagerGUID, String apiManagerName)
Create a new client with no authentication embedded in the HTTP request.- Parameters:
apiManagerClient- client to map request toconnectionManagerClient- client to manage connections in the metadata servereventClient- client to register for eventsuserId- integration daemon's userIdapiManagerGUID- unique identifier of the software server capability for the api managerapiManagerName- unique name of the software server capability for the api manager
-
-
Method Detail
-
getAPIManagerName
public String getAPIManagerName()
Return the qualified name of the API manager that is supplied in the configuration document.- Returns:
- string name
-
setAPIManagerIsHome
public void setAPIManagerIsHome(boolean apiManagerIsHome)
Set up the flag that controls the ownership of metadata created for this API manager. Default is true.- Parameters:
apiManagerIsHome- should the API metadata be marked as owned by the API manager so others can not update?
-
registerListener
public void registerListener(DataManagerEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
Register a listener object that will be passed each of the events published by the Data Manager OMAS.- Parameters:
listener- listener object- Throws:
InvalidParameterException- one of the parameters is null or invalid.ConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.ConnectorCheckedException- there are errors in the initialization of the connector.PropertyServerException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
createEndpoint
public String createEndpoint(EndpointProperties endpointProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an endpoint- Parameters:
endpointProperties- properties about the endpoint to store- Returns:
- unique identifier of the new endpoint
- 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)
-
createEndpointFromTemplate
public String createEndpointFromTemplate(String networkAddress, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a endpoint using an existing metadata element as a template.- Parameters:
networkAddress- location of the endpointtemplateGUID- unique identifier of the metadata element to copytemplateProperties- descriptive properties that override the template- Returns:
- unique identifier of the new endpoint
- 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)
-
updateEndpoint
public void updateEndpoint(boolean isMergeUpdate, String endpointGUID, EndpointProperties endpointProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUpdate the metadata element representing a endpoint. It is possible to use the subtype property classes or set up specialized properties in extended properties.- Parameters:
endpointGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?endpointProperties- 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)
-
removeEndpoint
public void removeEndpoint(String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a endpoint.- Parameters:
endpointGUID- 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)
-
findEndpoints
public List<EndpointElement> findEndpoints(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of endpoint metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- 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)
-
getEndpointsByName
public List<EndpointElement> getEndpointsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of endpoint metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- 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)
-
getEndpointByGUID
public EndpointElement getEndpointByGUID(String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the endpoint metadata element with the supplied unique identifier.- Parameters:
endpointGUID- 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)
-
createAPI
public String createAPI(String endpointGUID, APIProperties apiProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an API.- Parameters:
endpointGUID- unique identifier of the endpoint where this API is locatedapiProperties- properties to store- 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)
-
createAPIFromTemplate
public String createAPIFromTemplate(String endpointGUID, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an API using an existing metadata element as a template.- Parameters:
endpointGUID- unique identifier of the endpoint where this API is locatedtemplateGUID- 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)
-
updateAPI
public void updateAPI(String apiGUID, boolean isMergeUpdate, APIProperties apiProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing an API.- Parameters:
apiGUID- unique identifier of the metadata element to updateisMergeUpdate- are unspecified properties unchanged (true) or removed?apiProperties- 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)
-
publishAPI
public void publishAPI(String apiGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for the API asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Data Manager OMAS).- Parameters:
apiGUID- unique identifier of the metadata element to publish- 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)
-
withdrawAPI
public void withdrawAPI(String apiGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for the API asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Data Manager OMAS. This is the setting when the API is first created).- Parameters:
apiGUID- unique identifier of the metadata element to withdraw- 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)
-
removeAPI
public void removeAPI(String apiGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing an API.- Parameters:
apiGUID- unique identifier of the metadata element to removequalifiedName- unique name 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)
-
findAPIs
public List<APIElement> findAPIs(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- 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)
-
getAPIsByName
public List<APIElement> getAPIsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- 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)
-
getMyAPIs
public List<APIElement> getMyAPIs(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of apis created by this caller.- Parameters:
startFrom- 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)
-
getAPIByGUID
public APIElement getAPIByGUID(String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the API metadata element with the supplied unique identifier.- Parameters:
guid- 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)
-
createAPIOperation
public String createAPIOperation(String apiGUID, APIOperationProperties apiOperationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an API operation.- Parameters:
apiGUID- unique identifier of the API where the operation is locatedapiOperationProperties- properties about the API operation- Returns:
- unique identifier of the new API operation
- 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)
-
createAPIOperationFromTemplate
public String createAPIOperationFromTemplate(String templateGUID, String apiGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an API operation using an existing metadata element as a template.- Parameters:
templateGUID- unique identifier of the metadata element to copyapiGUID- unique identifier of the API where the operation is locatedtemplateProperties- properties that override the template- Returns:
- unique identifier of the new API operation
- 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)
-
updateAPIOperation
public void updateAPIOperation(String apiOperationGUID, boolean isMergeUpdate, APIOperationProperties apiOperationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing an API operation.- Parameters:
apiOperationGUID- unique identifier of the metadata element to updateisMergeUpdate- are unspecified properties unchanged (true) or removed?apiOperationProperties- 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)
-
removeAPIOperation
public void removeAPIOperation(String apiOperationGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing an API operation.- Parameters:
apiOperationGUID- unique identifier of the metadata element to removequalifiedName- unique name 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)
-
findAPIOperations
public List<APIOperationElement> findAPIOperations(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API operation metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- 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)
-
getOperationsForAPI
public List<APIOperationElement> getOperationsForAPI(String apiGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of operations associated with an API.- Parameters:
apiGUID- unique identifier of the API to querystartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of metadata elements describing the operations associated with the requested api
- 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)
-
getAPIOperationsByName
public List<APIOperationElement> getAPIOperationsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API operation metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- 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)
-
getAPIOperationByGUID
public APIOperationElement getAPIOperationByGUID(String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the API operation metadata element with the supplied unique identifier.- Parameters:
guid- 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)
-
createAPIParameterList
public String createAPIParameterList(String apiOperationGUID, APIParameterListType parameterListType, APIParameterListProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an API Operation's Parameter list. This describes the structure of the payload supported by the API's operation. The structure of this API Operation is added using API Parameter API parameters. These parameters can have a simple type or a nested structure.- Parameters:
apiOperationGUID- unique identifier of an APIOperationparameterListType- is this is a header, request of responseproperties- properties about the API parameter list- Returns:
- unique identifier of the new API parameter list
- 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)
-
createAPIParameterListFromTemplate
public String createAPIParameterListFromTemplate(String templateGUID, String apiOperationGUID, APIParameterListType parameterListType, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a an API Parameter List using an existing API Parameter List as a template.- Parameters:
templateGUID- unique identifier of the metadata element to copyapiOperationGUID- unique identifier of the API where the API Operation is locatedparameterListType- is this is a header, request of responsetemplateProperties- properties that override the template- Returns:
- unique identifier of the new API Parameter List
- 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)
-
updateAPIParameterList
public void updateAPIParameterList(String apiParameterListGUID, boolean isMergeUpdate, APIParameterListProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing an API Parameter List.- Parameters:
apiParameterListGUID- unique identifier of the metadata element to updateisMergeUpdate- are unspecified properties unchanged (true) or removed?properties- 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)
-
removeAPIParameterList
public void removeAPIParameterList(String apiParameterListGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove an API Parameter List and all of its parameters.- Parameters:
apiParameterListGUID- unique identifier of the metadata element to removequalifiedName- unique name 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)
-
findAPIParameterLists
public List<APIParameterListElement> findAPIParameterLists(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API Parameter List metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- 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)
-
getParameterListsForAPIOperation
public List<APIParameterListElement> getParameterListsForAPIOperation(String apiOperationGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of API Parameter Lists associated with an API Operation.- Parameters:
apiOperationGUID- unique identifier of the API Operation to querystartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of metadata elements describing the API Parameter Lists associated with the requested API Operation
- 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)
-
getAPIParameterListsByName
public List<APIParameterListElement> getAPIParameterListsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API Parameter List metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- 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)
-
getAPIParameterListByGUID
public APIParameterListElement getAPIParameterListByGUID(String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the API Parameter List metadata element with the supplied unique identifier.- Parameters:
guid- 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)
-
createAPIParameter
public String createAPIParameter(String schemaElementGUID, APIParameterProperties apiParameterProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a API parameter.- Parameters:
schemaElementGUID- unique identifier of the schemaType or Schema Attribute where the API parameter is nested underneathapiParameterProperties- properties for the API parameter- Returns:
- unique identifier of the new metadata element for the API parameter
- 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)
-
createAPIParameterFromTemplate
public String createAPIParameterFromTemplate(String schemaElementGUID, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a API parameter using an existing metadata element as a template.- Parameters:
schemaElementGUID- unique identifier of the schemaType or Schema Attribute where the API parameter 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 API parameter
- 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
public void setupSchemaType(String relationshipTypeName, String apiParameterGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Connect a schema type to a API parameter.- Parameters:
relationshipTypeName- name of relationship to createapiParameterGUID- unique identifier of the API parameterschemaTypeGUID- 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
public void clearSchemaTypes(String apiParameterGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the linked schema types from a API parameter.- Parameters:
apiParameterGUID- unique identifier of the API parameter- 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)
-
updateAPIParameter
public void updateAPIParameter(String apiParameterGUID, boolean isMergeUpdate, APIParameterProperties apiParameterProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of the metadata element representing a API parameter.- Parameters:
apiParameterGUID- unique identifier of the API parameter to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?apiParameterProperties- new properties for the API parameter- 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)
-
removeAPIParameter
public void removeAPIParameter(String apiParameterGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a API parameter.- Parameters:
apiParameterGUID- 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)
-
findAPIParameters
public List<APIParameterElement> findAPIParameters(String searchString, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API parameter metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiestypeName- optional type name for the API parameter - 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)
-
getNestedAPIParameters
public List<APIParameterElement> getNestedAPIParameters(String parentElementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API parameters associated with a parameter list or nested underneath another parameter.- Parameters:
parentElementGUID- unique identifier of the 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)
-
getAPIParametersByName
public List<APIParameterElement> getAPIParametersByName(String name, String typeName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API parameter metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- 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)
-
getAPIParameterByGUID
public APIParameterElement getAPIParameterByGUID(String apiParameterGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the API parameter metadata element with the supplied unique identifier.- Parameters:
apiParameterGUID- 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)
-
createPrimitiveSchemaType
public String createPrimitiveSchemaType(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:
schemaTypeProperties- 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
public String createLiteralSchemaType(LiteralSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a schema type that has a fixed value.- Parameters:
schemaTypeProperties- 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
public String createEnumSchemaType(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:
schemaTypeProperties- 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
public List<ValidValueSetElement> getValidValueSetByName(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:
name- 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
public List<ValidValueSetElement> findValidValueSet(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:
searchString- 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
public String createStructSchemaType(StructSchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a schema type.- Parameters:
schemaTypeProperties- 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
public String createSchemaTypeChoice(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 API parameter.- Parameters:
schemaTypeProperties- properties about the schema type to storeschemaTypeOptionGUIDs- list of unique identifiers for schema types to link to- 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
public String createMapSchemaType(MapSchemaTypeProperties schemaTypeProperties, String mapFromSchemaTypeGUID, String mapToSchemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a schema type.- Parameters:
schemaTypeProperties- 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
public String createSchemaTypeFromTemplate(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:
templateGUID- 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
public void updateSchemaType(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:
schemaTypeGUID- 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
public void removeSchemaType(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a schema type.- Parameters:
schemaTypeGUID- 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
public List<SchemaTypeElement> findSchemaType(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:
searchString- 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
public SchemaTypeElement getSchemaTypeForElement(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:
parentElementGUID- 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
public List<SchemaTypeElement> getSchemaTypeByName(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:
name- 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
public SchemaTypeElement getSchemaTypeByGUID(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the schema type metadata element with the supplied unique identifier.- Parameters:
schemaTypeGUID- 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
public ElementHeader getSchemaTypeParent(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the header of the metadata element connected to a schema type.- Parameters:
schemaTypeGUID- 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)
-
-