Class APIParameterListHandler<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.APIParameterListHandler<B>
-
- Type Parameters:
B- class that represents the API parameter list
public class APIParameterListHandler<B> extends ReferenceableHandler<B>
APIParameterListHandler provides the exchange of metadata about APIParameterList schema types between the repository and the OMAS.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
Constructors Constructor Description APIParameterListHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)Construct the handler with information needed to work with B objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateAPIParameterList(String userId, String externalSourceGUID, String externalSourceName, String apiOperationGUID, String apiOperationGUIDParameterName, String qualifiedName, String displayName, String description, String versionNumber, boolean isDeprecated, String author, String usage, String encodingStandard, String namespace, boolean required, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String relationshipTypeName, String methodName)Create the API parameter list object.StringcreateAPIParameterListFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String apiOperationGUID, String apiOperationGUIDParameterName, String templateGUID, String qualifiedName, String displayName, String description, String relationshipTypeName, String methodName)Create a API parameter list from a template.List<B>findAPIParameterLists(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName)Retrieve the list of API parameter lists metadata elements that contain the search string.BgetAPIParameterListByGUID(String userId, String guid, String guidParameterName, String methodName)Retrieve the API parameter list metadata element with the supplied unique identifier.List<B>getAPIParameterListsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName)Retrieve the list of API parameter list metadata elements with a matching qualified or display name.List<B>getAPIParameterListsForOperation(String userId, String apiOperationGUID, String apiOperationGUIDParameterName, int startFrom, int pageSize, String methodName)Retrieve the API parameter lists metadata element with the supplied unique identifier.voidremoveAPIParameterList(String userId, String externalSourceGUID, String externalSourceName, String apiParameterListGUID, String apiParameterListGUIDParameterName, String qualifiedName, String methodName)Remove the metadata element representing a API parameter lists.voidupdateAPIParameterList(String userId, String externalSourceGUID, String externalSourceName, String apiParameterListGUID, String apiParameterListGUIDParameterName, String qualifiedName, String displayName, String description, String versionNumber, boolean isDeprecated, String author, String usage, String encodingStandard, String namespace, boolean required, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, String methodName)Update the API parameter list.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
APIParameterListHandler
public APIParameterListHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
Construct the handler with information needed to work with B objects.- Parameters:
converter- specific converter for this bean classbeanClass- name of bean class that is represented by the generic class BserviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectslocalServerUserId- userId for this serversecurityVerifier- open metadata security services verifiersupportedZones- list of zones that the access service is allowed to serve B instances fromdefaultZones- list of zones that the access service should set in all new B instancespublishZones- list of zones that the access service sets up in published B instancesauditLog- destination for audit log events
-
-
Method Detail
-
createAPIParameterList
public String createAPIParameterList(String userId, String externalSourceGUID, String externalSourceName, String apiOperationGUID, String apiOperationGUIDParameterName, String qualifiedName, String displayName, String description, String versionNumber, boolean isDeprecated, String author, String usage, String encodingStandard, String namespace, boolean required, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String relationshipTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the API parameter list object.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerapiOperationGUID- unique identifier of the owning API operationapiOperationGUIDParameterName- parameter supplying apiOperationGUIDqualifiedName- unique name for the API parameter list - used in other configurationdisplayName- short display name for the API parameter listdescription- description of the API parameter listversionNumber- version of the schema type.isDeprecated- is the schema type deprecatedauthor- name of the authorusage- guidance on how the schema should be used.encodingStandard- format of the schemanamespace- namespace where the schema is defined.required- is this parameter list required when the API is called?additionalProperties- additional properties for a API parameter listsuppliedTypeName- type name from the caller (enables creation of subtypes)extendedProperties- properties for a API parameter list subtyperelationshipTypeName- which relationship should connect the APIOperation and the APIParameterList?methodName- calling method- Returns:
- unique identifier of the new API parameter list object
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
createAPIParameterListFromTemplate
public String createAPIParameterListFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String apiOperationGUID, String apiOperationGUIDParameterName, String templateGUID, String qualifiedName, String displayName, String description, String relationshipTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a API parameter list from a template.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerapiOperationGUID- unique identifier of the owning API operationapiOperationGUIDParameterName- parameter supplying apiOperationGUIDtemplateGUID- unique identifier of the metadata element to copyqualifiedName- unique name for the API parameter list - used in other configurationdisplayName- short display name for the API parameter listdescription- description of the API parameter listrelationshipTypeName- which relationship should connect the APIOperation and the APIParameterList?methodName- calling method- 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)
-
updateAPIParameterList
public void updateAPIParameterList(String userId, String externalSourceGUID, String externalSourceName, String apiParameterListGUID, String apiParameterListGUIDParameterName, String qualifiedName, String displayName, String description, String versionNumber, boolean isDeprecated, String author, String usage, String encodingStandard, String namespace, boolean required, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the API parameter list.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerapiParameterListGUID- unique identifier for the API parameter list to updateapiParameterListGUIDParameterName- parameter supplying the API parameter listqualifiedName- unique name for the API parameter list - used in other configurationdisplayName- short display name for the API parameter listdescription- description of the governance API parameter listversionNumber- version of the schema typeisDeprecated- is the schema type deprecatedauthor- name of the authorusage- guidance on how the schema should be usedencodingStandard- format of the schemanamespace- namespace where the schema is definedrequired- is this parameter required when the API is invokedadditionalProperties- additional properties for an API parameter listsuppliedTypeName- type of termextendedProperties- properties for a governance API parameter list subtypeisMergeUpdate- are unspecified properties unchanged (true) or removed?methodName- calling method- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeAPIParameterList
public void removeAPIParameterList(String userId, String externalSourceGUID, String externalSourceName, String apiParameterListGUID, String apiParameterListGUIDParameterName, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a API parameter lists.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerapiParameterListGUID- unique identifier of the metadata element to removeapiParameterListGUIDParameterName- parameter for apiParameterListGUIDqualifiedName- validating propertymethodName- calling method- 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<B> findAPIParameterLists(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of API parameter lists 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 propertiessearchStringParameterName- name of parameter supplying the search stringstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- 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)
-
getAPIParameterListsByName
public List<B> getAPIParameterListsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) 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:
userId- calling username- name to search fornameParameterName- parameter supplying namestartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- 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)
-
getAPIParameterListsForOperation
public List<B> getAPIParameterListsForOperation(String userId, String apiOperationGUID, String apiOperationGUIDParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the API parameter lists metadata element with the supplied unique identifier.- Parameters:
userId- calling userapiOperationGUID- unique identifier of the requested metadata elementapiOperationGUIDParameterName- parameter name of the apiOperationGUIDstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of API parameter lists 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)
-
getAPIParameterListByGUID
public B getAPIParameterListByGUID(String userId, String guid, String guidParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the API parameter list metadata element with the supplied unique identifier.- Parameters:
userId- calling userguid- unique identifier of the requested metadata elementguidParameterName- parameter name of guidmethodName- calling method- 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)
-
-