public class ProcessHandler extends Object
| Constructor and Description |
|---|
ProcessHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
DataEngineRegistrationHandler dataEngineRegistrationHandler,
AssetHandler assetHandler,
List<String> defaultZones,
List<String> supportedZones)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessPortRelationship(String userId,
String processGUID,
String portGUID,
String externalSourceName)
Create ProcessPort relationships between a Process asset and the corresponding Ports.
|
String |
createProcess(String userId,
Process process,
String externalSourceName)
Create the process
|
String |
findProcess(String userId,
String qualifiedName)
Find out if the Process object is already stored in the repository.
|
Set<String> |
getPortsForProcess(String userId,
String processGUID,
String portTypeName)
Retrieve all port objects that are connected to the process
|
void |
setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier)
Set up a new security verifier (the handler runs with a default verifier until this
method is called).
|
void |
updateProcess(String userId,
String processGUID,
Process updatedProcess)
Update the process
|
void |
updateProcessStatus(String userId,
String guid,
InstanceStatus instanceStatus)
Update the process instance status
|
public ProcessHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, DataEngineRegistrationHandler dataEngineRegistrationHandler, AssetHandler assetHandler, List<String> defaultZones, List<String> supportedZones)
serviceName - 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 objectsdataEngineRegistrationHandler - provides calls for retrieving external data engine guidassetHandler - provides utilities for manipulating the repository services assetsdefaultZones - setting of the default zones for the handlersupportedZones - setting of the supported zones for the handlerpublic void setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier)
The security verifier provides authorization checks for access and maintenance changes to open metadata. Authorization checks are enabled through the OpenMetadataServerSecurityConnector.
securityVerifier - new security verifierpublic String createProcess(String userId, Process process, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocess - the values of the processexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateProcess(String userId, String processGUID, Process updatedProcess) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the guid of the process to be updatedupdatedProcess - the new values of the processInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String findProcess(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addProcessPortRelationship(String userId, String processGUID, String portGUID, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processportGUID - the unique identifier of the portexternalSourceName - the unique name of the external sourceInvalidParameterExceptionUserNotAuthorizedExceptionPropertyServerExceptionpublic void updateProcessStatus(String userId, String guid, InstanceStatus instanceStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userguid - the guid name of the processinstanceStatus - the status of the processInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Set<String> getPortsForProcess(String userId, String processGUID, String portTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processportTypeName - the type of the port to be retrievedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.