public abstract class OMRSRepositoryConnector extends ConnectorBase implements OMRSMetadataCollectionManager, AuditLoggingComponent
ConnectorBase.ProtectedConnection| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected int |
maxPageSize |
protected OMRSMetadataCollection |
metadataCollection |
protected String |
metadataCollectionId |
protected String |
metadataCollectionName |
protected String |
organizationName |
protected OMRSRepositoryHelper |
repositoryHelper |
protected String |
repositoryName |
protected OMRSRepositoryValidator |
repositoryValidator |
protected String |
serverName |
protected String |
serverType |
protected String |
serverUserId |
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
OMRSRepositoryConnector()
Default constructor nothing to do
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxPageSize()
Return the maximum PageSize
|
OMRSMetadataCollection |
getMetadataCollection()
Returns the metadata collection object that provides an OMRS abstraction of the metadata within
a metadata repository.
|
String |
getMetadataCollectionId()
Return the unique Id for this metadata collection.
|
String |
getMetadataCollectionName()
Return the metadata collection name of this repository connector.
|
String |
getOrganizationName()
Return the name of the organization that runs/owns the server used to access the repository.
|
OMRSRepositoryHelper |
getRepositoryHelper()
Return the repository helper for this connector.
|
String |
getRepositoryName()
Return the name of the repository where the metadata collection resides.
|
OMRSRepositoryValidator |
getRepositoryValidator()
Return the repository validator for this connector.
|
String |
getServerName()
Return the name of the server where the metadata collection resides.
|
String |
getServerType()
Return the descriptive string describing the type of the server.
|
String |
getServerUserId()
Return the userId that the local server should use when processing events and there is no external user
driving the operation.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
void |
setMaxPageSize(int maxPageSize)
Set up the maximum PageSize
|
void |
setMetadataCollectionId(String metadataCollectionId)
Set up the unique Id for this metadata collection.
|
void |
setMetadataCollectionName(String metadataCollectionName)
Explicitly set up the metadata collection name.
|
void |
setOrganizationName(String organizationName)
Set up the name of the organization that runs/owns the server used to access the repository.
|
void |
setRepositoryHelper(OMRSRepositoryHelper repositoryHelper)
Set up a repository helper object for the repository connector to use.
|
void |
setRepositoryName(String repositoryName)
Set up the name of the repository where the metadata collection resides.
|
void |
setRepositoryValidator(OMRSRepositoryValidator repositoryValidator)
Set up a repository validator for the repository connector to use.
|
void |
setServerName(String serverName)
Set up the name of the server where the metadata collection resides.
|
void |
setServerType(String serverType)
Set up the descriptive string describing the type of the server.
|
void |
setServerUserId(String localServerUserId)
Set up the userId that the local server should use when processing events and there is no external user
driving the operation.
|
void |
validateRepositoryIsActive(String methodName)
Throw a RepositoryErrorException if the connector is not active.
|
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, start, toStringprotected OMRSRepositoryHelper repositoryHelper
protected OMRSRepositoryValidator repositoryValidator
protected String repositoryName
protected String serverName
protected String serverType
protected String organizationName
protected String serverUserId
protected int maxPageSize
protected String metadataCollectionId
protected String metadataCollectionName
protected OMRSMetadataCollection metadataCollection
protected AuditLog auditLog
public OMRSRepositoryConnector()
public void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic void setRepositoryHelper(OMRSRepositoryHelper repositoryHelper)
setRepositoryHelper in interface OMRSMetadataCollectionManagerrepositoryHelper - helper object for building and querying TypeDefs and metadata instances.public OMRSRepositoryHelper getRepositoryHelper()
public void setRepositoryValidator(OMRSRepositoryValidator repositoryValidator)
setRepositoryValidator in interface OMRSMetadataCollectionManagerrepositoryValidator - validator object to check the validity of TypeDefs and metadata instances.public OMRSRepositoryValidator getRepositoryValidator()
public String getRepositoryName()
getRepositoryName in interface OMRSMetadataCollectionManagerpublic void setRepositoryName(String repositoryName)
setRepositoryName in interface OMRSMetadataCollectionManagerrepositoryName - String namepublic String getServerName()
getServerName in interface OMRSMetadataCollectionManagerpublic void setServerName(String serverName)
setServerName in interface OMRSMetadataCollectionManagerserverName - String namepublic String getServerType()
getServerType in interface OMRSMetadataCollectionManagerpublic void setServerType(String serverType)
setServerType in interface OMRSMetadataCollectionManagerserverType - String server typepublic String getOrganizationName()
getOrganizationName in interface OMRSMetadataCollectionManagerpublic void setOrganizationName(String organizationName)
setOrganizationName in interface OMRSMetadataCollectionManagerorganizationName - String organization namepublic String getServerUserId()
getServerUserId in interface OMRSMetadataCollectionManagerpublic void setServerUserId(String localServerUserId)
setServerUserId in interface OMRSMetadataCollectionManagerlocalServerUserId - string user idpublic String getMetadataCollectionId()
getMetadataCollectionId in interface OMRSMetadataCollectionManagerpublic void setMetadataCollectionId(String metadataCollectionId)
setMetadataCollectionId in interface OMRSMetadataCollectionManagermetadataCollectionId - String unique Idpublic String getMetadataCollectionName()
public void setMetadataCollectionName(String metadataCollectionName)
metadataCollectionName - display name of the metadata collection.public int getMaxPageSize()
getMaxPageSize in interface OMRSMetadataCollectionManagerpublic void setMaxPageSize(int maxPageSize)
setMaxPageSize in interface OMRSMetadataCollectionManagermaxPageSize - maximum number of elements that can be retrieved on a request.public void validateRepositoryIsActive(String methodName) throws RepositoryErrorException
methodName - name of calling methodRepositoryErrorException - repository connector has not started or has been disconnected.public OMRSMetadataCollection getMetadataCollection() throws RepositoryErrorException
getMetadataCollection in interface OMRSMetadataCollectionManagerRepositoryErrorException - no metadata collectionCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.