Class OpenMetadataAPIRootHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
- Type Parameters:
B- bean class
- Direct Known Subclasses:
OpenMetadataAPIAnchorHandler
OpenMetadataAPIRootHandler provides the common properties for the generic handlers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected AuditLogprotected OpenMetadataAPIGenericConverter<B> protected RepositoryErrorHandlerprotected InvalidParameterHandlerprotected Stringprotected RepositoryHandlerprotected OMRSRepositoryHelperprotected OpenMetadataServerSecurityVerifierprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionOpenMetadataAPIRootHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, AuditLog auditLog) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringReturn a caller-supplied value ready to write to the log.Return 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.getTypeDefByName(String suppliedTypeName, String defaultTypeName) Return the type definition for the named type.protected booleanisObservedAnchorType(String typeName) Is this the type of anchor element whose activity is reported in the audit log with the METADATA-OBSERVABILITY messages? These are the elements whose popularity is of interest to the people using the open metadata ecosystem: assets, digital products and glossary terms.voidsetSecurityVerifier(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
-
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, 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 verifierauditLog- 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
-
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
-
isObservedAnchorType
Is this the type of anchor element whose activity is reported in the audit log with the METADATA-OBSERVABILITY messages? These are the elements whose popularity is of interest to the people using the open metadata ecosystem: assets, digital products and glossary terms.- Parameters:
typeName- name of the element's type- Returns:
- boolean
-
getServerName
Return the name of this server.- Returns:
- string name
-
forLog
Return a caller-supplied value ready to write to the log. Line breaks are replaced so that a value cannot start what looks like a new log entry.- Parameters:
value- value supplied by the caller- Returns:
- value without line breaks
-