public class OpenMetadataPlatformSecurityConnector extends ConnectorBase implements OpenMetadataPlatformSecurity
ConnectorBase.ProtectedConnection| Modifier and Type | Field and Description |
|---|---|
protected String |
connectorName |
protected MessageFormatter |
messageFormatter |
protected String |
serverRootURL |
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, isActive, securedProperties| Constructor and Description |
|---|
OpenMetadataPlatformSecurityConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Free up any resources held since the connector is no longer needed.
|
protected void |
logConnectorDisconnecting()
Write an audit log message to say that the connector is stopping.
|
protected void |
logConnectorStarting()
Write an audit log message to say that the connector is initializing.
|
protected void |
logRecord(String logMessageId,
AuditLogRecordSeverity severity,
String logMessage)
Log an audit log record for an event, decision, error, or exception detected by the OMRS.
|
void |
setServerPlatformURL(String serverURLRoot) |
void |
start()
Indicates that the connector is completely configured and can begin processing.
|
protected void |
throwUnauthorizedPlatformAccess(String userId,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
void |
validateUserAsInvestigatorForPlatform(String userId)
Check that the calling user is authorized to issue operator requests to the OMAG Server Platform.
|
void |
validateUserAsOperatorForPlatform(String userId)
Check that the calling user is authorized to issue operator requests to the OMAG Server Platform.
|
void |
validateUserForNewServer(String userId)
Check that the calling user is authorized to create new servers.
|
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toStringprotected MessageFormatter messageFormatter
protected String connectorName
protected String serverRootURL
public OpenMetadataPlatformSecurityConnector()
protected void logRecord(String logMessageId, AuditLogRecordSeverity severity, String logMessage)
logMessageId - id for the audit log recordseverity - is this an event, decision, error or exception?logMessage - description of the audit log record including specific resources involvedprotected void logConnectorStarting()
protected void logConnectorDisconnecting()
public void setServerPlatformURL(String serverURLRoot)
protected void throwUnauthorizedPlatformAccess(String userId, String methodName) throws UserNotAuthorizedException
userId - calling usermethodName - calling methodUserNotAuthorizedException - the authorization check failedpublic void start()
throws ConnectorCheckedException
start in class ConnectorBaseConnectorCheckedException - there is a problem within the connector.public void validateUserForNewServer(String userId) throws UserNotAuthorizedException
validateUserForNewServer in interface OpenMetadataPlatformSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to access this platformpublic void validateUserAsOperatorForPlatform(String userId) throws UserNotAuthorizedException
validateUserAsOperatorForPlatform in interface OpenMetadataPlatformSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to issue operator commands to this platformpublic void validateUserAsInvestigatorForPlatform(String userId) throws UserNotAuthorizedException
validateUserAsInvestigatorForPlatform in interface OpenMetadataPlatformSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to issue diagnostic commands to this platformpublic void disconnect()
throws ConnectorCheckedException
disconnect in class ConnectorBaseConnectorCheckedException - there is a problem within the connector.Copyright © 2018–2020 ODPi. All rights reserved.