Class OpenMetadataAPIRootHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
- Type Parameters:
B
- bean class
- Direct Known Subclasses:
OpenMetadataAPIGenericHandler
OpenMetadataAPIRootHandler provides the common properties for the generic handlers.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected AuditLog
protected OpenMetadataAPIGenericConverter<B>
protected RepositoryErrorHandler
protected InvalidParameterHandler
protected String
protected RepositoryHandler
protected OMRSRepositoryHelper
protected OpenMetadataServerSecurityVerifier
protected String
protected String
-
Constructor Summary
ConstructorDescriptionOpenMetadataAPIRootHandler
(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 information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionReturn this handler's converter.getElementStub
(EntityProxy entityProxy) Convert an entity proxy into an element stub.Return the repository handler for this server.Return the repository helper for this server.Return the name of this server.Return the name of this service.Return the list of zones to use for retrieving assets.getTypeDefByName
(String suppliedTypeName, String defaultTypeName) Return the type definition for the named type.void
setSecurityVerifier
(OpenMetadataServerSecurityVerifier securityVerifier) Set up a new security verifier (the handler runs with a default verifier until this method is called).
-
Field Details
-
converter
-
beanClass
-
serviceName
-
serverName
-
repositoryHelper
-
repositoryHandler
-
invalidParameterHandler
-
localServerUserId
-
securityVerifier
-
supportedZones
-
publishZones
-
defaultZones
-
errorHandler
-
qualifiedNamePropertyNamesList
-
assetActionDescription
- See Also:
-
auditLog
-
-
Constructor Details
-
OpenMetadataAPIRootHandler
public OpenMetadataAPIRootHandler(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 information needed to interact with the repository services- 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 Asset instances from.defaultZones
- list of zones that the access service should set in all new Asset instances.publishZones
- list of zones that the access service sets up in published Asset instances.auditLog
- destination for audit log events.
-
-
Method Details
-
getConverter
Return this handler's converter.- Returns:
- converter
-
setSecurityVerifier
Set up a new security verifier (the handler runs with a default verifier until this method is called).
The security verifier provides authorization checks for access and maintenance changes to open metadata. Authorization checks are enabled through the OpenMetadataServerSecurityConnector.- Parameters:
securityVerifier
- new security verifier
-
getRepositoryHelper
Return the repository helper for this server.- Returns:
- repository helper object
-
getRepositoryHandler
Return the repository handler for this server.- Returns:
- repository handler object
-
getElementStub
Convert an entity proxy into an element stub.- Parameters:
entityProxy
- proxy to convert- Returns:
- element stub
- Throws:
PropertyServerException
- null entity proxy
-
getSupportedZones
Return the list of zones to use for retrieving assets.- Returns:
- list of zone names
-
getTypeDefByName
Return the type definition for the named type.- Parameters:
suppliedTypeName
- caller's subtype (or null)defaultTypeName
- common super type- Returns:
- type definition
-
getServiceName
Return the name of this service.- Returns:
- string name
-
getServerName
Return the name of this server.- Returns:
- string name
-