public class OpenMetadataServerSecurityConnector extends ConnectorBase implements AuditLoggingComponent, OpenMetadataRepositorySecurity, OpenMetadataServerSecurity, OpenMetadataServiceSecurity, OpenMetadataConnectionSecurity, OpenMetadataAssetSecurity
ConnectorBase.ProtectedConnection| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected String |
connectorName |
protected String |
localServerUserId |
protected String |
serverName |
protected String |
unknownTypeName |
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, isActive, securedProperties| Constructor and Description |
|---|
OpenMetadataServerSecurityConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Free up any resources held since the connector is no longer needed.
|
protected String |
getAssetGUID(Asset asset)
Return a string representing the unique identifier for the asset.
|
protected String |
getConnectionQualifiedName(Connection connection)
Return a string representing the unique identifier for the connection.
|
protected String |
getInstanceGUID(InstanceHeader instance)
Return a string representing the unique identifier for a repository instance.
|
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 String |
printZoneList(List<String> zones)
Return a string representing the list of zones.
|
List<String> |
setAssetZonesToDefault(List<String> defaultZones,
Asset asset)
Determine the appropriate setting for the asset zones depending on the content of the asset and the
default zones.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
void |
setLocalServerUserId(String userId)
Provide the local server's userId.
|
void |
setServerName(String serverName)
Set the name of the server that this connector is supporting.
|
List<String> |
setSupportedZonesForUser(List<String> supportedZones,
String serviceName,
String user)
Determine the appropriate setting for the supported zones depending on the user and the
default supported zones set up for the service.
|
void |
start()
Indicates that the connector is completely configured and can begin processing.
|
protected void |
throwIncompleteAsset(String userId,
Asset asset,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedAssetAccess(String userId,
Asset asset,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedAssetChange(String userId,
Asset asset,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedAssetCreate(String userId,
Asset asset,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedAssetFeedback(String userId,
Asset asset,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedConnectionAccess(String userId,
Connection connection,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedInstanceAccess(String userId,
String instanceGUID,
String typeName,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedInstanceChange(String userId,
String instanceGUID,
String typeName,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedInstanceCreate(String userId,
String typeGUID,
String methodName)
Write an audit log message and throw exception to record an unauthorized access.
|
protected void |
throwUnauthorizedServerAccess(String userId,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedServiceAccess(String userId,
String serviceName,
String serviceOperationName,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedTypeAccess(String userId,
String typeGUID,
String typeName,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedTypeChange(String userId,
String typeGUID,
String typeName,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
protected void |
throwUnauthorizedZoneChange(String userId,
Asset asset,
List<String> originalZones,
List<String> newZones,
String methodName)
Write an audit log message and throw exception to record an
unauthorized access.
|
void |
validateUserAsServerAdmin(String userId)
Check that the calling user is authorized to update the configuration for a server.
|
void |
validateUserAsServerInvestigator(String userId)
Check that the calling user is authorized to issue operator requests to the OMAG Server.
|
void |
validateUserAsServerOperator(String userId)
Check that the calling user is authorized to issue operator requests to the OMAG Server.
|
void |
validateUserForAssetAttachmentUpdate(String userId,
Asset asset)
Tests for whether a specific user should have the right to update elements attached directly
to an asset such as schema and connections.
|
Connection |
validateUserForAssetConnectionList(String userId,
Asset asset,
List<Connection> connections)
Select a connection from the list of connections attached to an asset.
|
void |
validateUserForAssetCreate(String userId,
Asset asset)
Tests for whether a specific user should have the right to create an asset within a zone.
|
void |
validateUserForAssetDelete(String userId,
Asset asset)
Tests for whether a specific user should have the right to delete an asset within a zone.
|
void |
validateUserForAssetDetailUpdate(String userId,
Asset originalAsset,
AssetAuditHeader originalAssetAuditHeader,
Asset newAsset)
Tests for whether a specific user should have the right to update an asset.
|
void |
validateUserForAssetFeedback(String userId,
Asset asset)
Tests for whether a specific user should have the right to attach feedback - such as comments,
ratings, tags and likes, to the asset.
|
void |
validateUserForAssetRead(String userId,
Asset asset)
Tests for whether a specific user should have read access to a specific asset within a zone.
|
void |
validateUserForConnection(String userId,
Connection connection)
Tests for whether a specific user should have access to a connection.
|
void |
validateUserForEntityClassificationAdd(String userId,
String metadataCollectionName,
EntityDetail instance,
String classificationName,
InstanceProperties properties)
Tests for whether a specific user should have the right to add a classification to an entity instance
within a repository.
|
void |
validateUserForEntityClassificationDelete(String userId,
String metadataCollectionName,
EntityDetail instance,
String classificationName)
Tests for whether a specific user should have the right to delete a classification from an entity instance
within a repository.
|
void |
validateUserForEntityClassificationUpdate(String userId,
String metadataCollectionName,
EntityDetail instance,
String classificationName,
InstanceProperties properties)
Tests for whether a specific user should have the right to update the classification for an entity instance
within a repository.
|
void |
validateUserForEntityCreate(String userId,
String metadataCollectionName,
String entityTypeGUID,
InstanceProperties initialProperties,
List<Classification> initialClassifications,
InstanceStatus initialStatus)
Tests for whether a specific user should have the right to create a instance within a repository.
|
void |
validateUserForEntityDelete(String userId,
String metadataCollectionName,
EntityDetail instance)
Tests for whether a specific user should have the right to delete a instance within a repository.
|
void |
validateUserForEntityProxyRead(String userId,
String metadataCollectionName,
EntityProxy instance)
Tests for whether a specific user should have read access to a specific instance within a repository.
|
void |
validateUserForEntityRead(String userId,
String metadataCollectionName,
EntityDetail instance)
Tests for whether a specific user should have read access to a specific instance within a repository.
|
void |
validateUserForEntityReHoming(String userId,
String metadataCollectionName,
EntityDetail instance,
String newHomeMetadataCollectionId,
String newHomeMetadataCollectionName)
Tests for whether a specific user should have the right to change the home of a instance within a repository.
|
void |
validateUserForEntityReIdentification(String userId,
String metadataCollectionName,
EntityDetail instance,
String newGUID)
Tests for whether a specific user should have the right to change the guid on a instance within a repository.
|
void |
validateUserForEntityRestore(String userId,
String metadataCollectionName,
String deletedEntityGUID)
Tests for whether a specific user should have the right to restore a instance within a repository.
|
void |
validateUserForEntityReTyping(String userId,
String metadataCollectionName,
EntityDetail instance,
TypeDefSummary newTypeDefSummary)
Tests for whether a specific user should have the right to change the type of a instance within a repository.
|
void |
validateUserForEntitySummaryRead(String userId,
String metadataCollectionName,
EntitySummary instance)
Tests for whether a specific user should have read access to a specific instance within a repository.
|
void |
validateUserForEntityUpdate(String userId,
String metadataCollectionName,
EntityDetail instance)
Tests for whether a specific user should have the right to update a instance within a repository.
|
void |
validateUserForRelationshipCreate(String userId,
String metadataCollectionName,
String relationshipTypeGUID,
InstanceProperties initialProperties,
EntitySummary entityOneSummary,
EntitySummary entityTwoSummary,
InstanceStatus initialStatus)
Tests for whether a specific user should have the right to create a instance within a repository.
|
void |
validateUserForRelationshipDelete(String userId,
String metadataCollectionName,
Relationship instance)
Tests for whether a specific user should have the right to delete a instance within a repository.
|
void |
validateUserForRelationshipRead(String userId,
String metadataCollectionName,
Relationship instance)
Tests for whether a specific user should have read access to a specific instance within a repository.
|
void |
validateUserForRelationshipReHoming(String userId,
String metadataCollectionName,
Relationship instance,
String newHomeMetadataCollectionId,
String newHomeMetadataCollectionName)
Tests for whether a specific user should have the right to change the home of a instance within a repository.
|
void |
validateUserForRelationshipReIdentification(String userId,
String metadataCollectionName,
Relationship instance,
String newGUID)
Tests for whether a specific user should have the right to change the guid on a instance within a repository.
|
void |
validateUserForRelationshipRestore(String userId,
String metadataCollectionName,
String deletedRelationshipGUID)
Tests for whether a specific user should have the right to restore a instance within a repository.
|
void |
validateUserForRelationshipReTyping(String userId,
String metadataCollectionName,
Relationship instance,
TypeDefSummary newTypeDefSummary)
Tests for whether a specific user should have the right to change the type of a instance within a repository.
|
void |
validateUserForRelationshipUpdate(String userId,
String metadataCollectionName,
Relationship instance)
Tests for whether a specific user should have the right to update a instance within a repository.
|
void |
validateUserForServer(String userId)
Check that the calling user is authorized to issue a (any) request to the OMAG Server Platform.
|
void |
validateUserForService(String userId,
String serviceName)
Check that the calling user is authorized to issue this request.
|
void |
validateUserForServiceOperation(String userId,
String serviceName,
String serviceOperationName)
Check that the calling user is authorized to issue this specific request.
|
void |
validateUserForTypeCreate(String userId,
String metadataCollectionName,
AttributeTypeDef attributeTypeDef)
Tests for whether a specific user should have the right to create a type within a repository.
|
void |
validateUserForTypeCreate(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have the right to create a type within a repository.
|
void |
validateUserForTypeDelete(String userId,
String metadataCollectionName,
AttributeTypeDef attributeTypeDef)
Tests for whether a specific user should have the right to delete a type within a repository.
|
void |
validateUserForTypeDelete(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have the right to delete a type within a repository.
|
void |
validateUserForTypeRead(String userId,
String metadataCollectionName,
AttributeTypeDef attributeTypeDef)
Tests for whether a specific user should have read access to a specific type within a repository.
|
void |
validateUserForTypeRead(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have read access to a specific type within a repository.
|
void |
validateUserForTypeReIdentify(String userId,
String metadataCollectionName,
AttributeTypeDef originalAttributeTypeDef,
String newTypeDefGUID,
String newTypeDefName)
Tests for whether a specific user should have the right to change the identifiers for a type within a repository.
|
void |
validateUserForTypeReIdentify(String userId,
String metadataCollectionName,
TypeDef originalTypeDef,
String newTypeDefGUID,
String newTypeDefName)
Tests for whether a specific user should have the right to change the identifiers for a type within a repository.
|
void |
validateUserForTypeUpdate(String userId,
String metadataCollectionName,
TypeDef typeDef,
TypeDefPatch patch)
Tests for whether a specific user should have the right to update a typeDef within a repository.
|
List<String> |
verifyAssetZones(List<String> defaultZones,
List<String> supportedZones,
Asset originalAsset,
Asset updatedAsset)
Deprecated.
|
List<String> |
verifyAssetZones(List<String> defaultZones,
List<String> supportedZones,
List<String> publishZones,
Asset originalAsset,
Asset updatedAsset)
Determine the appropriate setting for the asset zones depending on the content of the asset and the
settings of both default zones and supported zones.
|
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toStringprotected AuditLog auditLog
protected String serverName
protected String localServerUserId
protected String connectorName
protected final String unknownTypeName
protected void logConnectorStarting()
protected void logConnectorDisconnecting()
protected String getAssetGUID(Asset asset)
asset - asset to testprotected String printZoneList(List<String> zones)
zones - zones to outputprotected String getConnectionQualifiedName(Connection connection)
connection - connection to testprotected String getInstanceGUID(InstanceHeader instance)
instance - instance to testprotected void throwUnauthorizedServerAccess(String userId, String methodName) throws UserNotAuthorizedException
userId - calling usermethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedServiceAccess(String userId, String serviceName, String serviceOperationName, String methodName) throws UserNotAuthorizedException
userId - calling userserviceName - name of serviceserviceOperationName - name of operationmethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedTypeAccess(String userId, String typeGUID, String typeName, String methodName) throws UserNotAuthorizedException
userId - calling usertypeGUID - uniqueId of typetypeName - name of typemethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedTypeChange(String userId, String typeGUID, String typeName, String methodName) throws UserNotAuthorizedException
userId - calling usertypeGUID - uniqueId of typetypeName - name of typemethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedInstanceCreate(String userId, String typeGUID, String methodName) throws UserNotAuthorizedException
userId - calling usertypeGUID - uniqueId of typemethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedInstanceAccess(String userId, String instanceGUID, String typeName, String methodName) throws UserNotAuthorizedException
userId - calling userinstanceGUID - uniqueId of typetypeName - name of typemethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedInstanceChange(String userId, String instanceGUID, String typeName, String methodName) throws UserNotAuthorizedException
userId - calling userinstanceGUID - uniqueId of typetypeName - name of typemethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedAssetAccess(String userId, Asset asset, String methodName) throws UserNotAuthorizedException
userId - calling userasset - asset being accessedmethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedAssetChange(String userId, Asset asset, String methodName) throws UserNotAuthorizedException
userId - calling userasset - asset being accessedmethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedAssetCreate(String userId, Asset asset, String methodName) throws UserNotAuthorizedException
userId - calling userasset - asset being accessedmethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwIncompleteAsset(String userId, Asset asset, String methodName) throws UserNotAuthorizedException
userId - calling userasset - asset being accessedmethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedZoneChange(String userId, Asset asset, List<String> originalZones, List<String> newZones, String methodName) throws UserNotAuthorizedException
userId - calling userasset - asset being accessedoriginalZones - previous value of the zone membership for the asset being accessednewZones - new value of the zone membership for the asset being accessedmethodName - calling methodUserNotAuthorizedException - the authorization check failedprotected void throwUnauthorizedAssetFeedback(String userId, Asset asset, String methodName) throws UserNotAuthorizedException
userId - calling userasset - asset in errormethodName - calling methodUserNotAuthorizedException - the user is not authorized to access this zoneprotected void throwUnauthorizedConnectionAccess(String userId, Connection connection, String methodName) throws UserNotAuthorizedException
userId - calling userconnection - connection to validatemethodName - calling methodUserNotAuthorizedException - the authorization check failedpublic void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic void setServerName(String serverName)
serverName - name of serverpublic void setLocalServerUserId(String userId)
userId - local server's userIdpublic void start()
throws ConnectorCheckedException
start in class ConnectorBaseConnectorCheckedException - there is a problem within the connector.public List<String> setSupportedZonesForUser(List<String> supportedZones, String serviceName, String user) throws InvalidParameterException, PropertyServerException
setSupportedZonesForUser in interface OpenMetadataAssetSecuritysupportedZones - default setting of the supported zones for the serviceserviceName - name of the called serviceuser - name of the userInvalidParameterException - one of the parameter values is invalidPropertyServerException - there is a problem calculating the zonespublic List<String> setAssetZonesToDefault(List<String> defaultZones, Asset asset) throws InvalidParameterException, PropertyServerException
setAssetZonesToDefault in interface OpenMetadataAssetSecuritydefaultZones - setting of the default zones for the serviceasset - initial values for the assetInvalidParameterException - one of the asset values is invalidPropertyServerException - there is a problem calculating the zones@Deprecated public List<String> verifyAssetZones(List<String> defaultZones, List<String> supportedZones, Asset originalAsset, Asset updatedAsset) throws InvalidParameterException, PropertyServerException
verifyAssetZones in interface OpenMetadataAssetSecuritydefaultZones - setting of the default zones for the servicesupportedZones - setting of the supported zones for the serviceoriginalAsset - original values for the assetupdatedAsset - updated values for the assetInvalidParameterException - one of the asset values is invalidPropertyServerException - there is a problem calculating the zonespublic List<String> verifyAssetZones(List<String> defaultZones, List<String> supportedZones, List<String> publishZones, Asset originalAsset, Asset updatedAsset) throws InvalidParameterException, PropertyServerException
verifyAssetZones in interface OpenMetadataAssetSecuritydefaultZones - setting of the default zones for the servicesupportedZones - setting of the supported zones for the servicepublishZones - setting of the publishZones for the serviceoriginalAsset - original values for the assetupdatedAsset - updated values for the assetInvalidParameterException - one of the asset values is invalidPropertyServerException - there is a problem calculating the zonespublic void validateUserForServer(String userId) throws UserNotAuthorizedException
validateUserForServer in interface OpenMetadataServerSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to access this functionpublic void validateUserAsServerAdmin(String userId) throws UserNotAuthorizedException
validateUserAsServerAdmin in interface OpenMetadataServerSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to change configurationpublic void validateUserAsServerOperator(String userId) throws UserNotAuthorizedException
validateUserAsServerOperator in interface OpenMetadataServerSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to issue operator commands to this serverpublic void validateUserAsServerInvestigator(String userId) throws UserNotAuthorizedException
validateUserAsServerInvestigator in interface OpenMetadataServerSecurityuserId - calling userUserNotAuthorizedException - the user is not authorized to issue diagnostic commands to this serverpublic void validateUserForService(String userId, String serviceName) throws UserNotAuthorizedException
validateUserForService in interface OpenMetadataServiceSecurityuserId - calling userserviceName - name of called serviceUserNotAuthorizedException - the user is not authorized to access this servicepublic void validateUserForServiceOperation(String userId, String serviceName, String serviceOperationName) throws UserNotAuthorizedException
validateUserForServiceOperation in interface OpenMetadataServiceSecurityuserId - calling userserviceName - name of called serviceserviceOperationName - name of called operationUserNotAuthorizedException - the user is not authorized to access this servicepublic void validateUserForConnection(String userId, Connection connection) throws UserNotAuthorizedException
validateUserForConnection in interface OpenMetadataConnectionSecurityuserId - identifier of userconnection - connection objectUserNotAuthorizedException - the user is not authorized to access this servicepublic Connection validateUserForAssetConnectionList(String userId, Asset asset, List<Connection> connections) throws UserNotAuthorizedException
validateUserForAssetConnectionList in interface OpenMetadataConnectionSecurityuserId - calling userasset - asset requested by callerconnections - list of attached connectionsUserNotAuthorizedException - the user is not authorized to access this servicepublic void validateUserForAssetCreate(String userId, Asset asset) throws UserNotAuthorizedException
validateUserForAssetCreate in interface OpenMetadataAssetSecurityuserId - identifier of userasset - asset detailsUserNotAuthorizedException - the user is not authorized to change this assetpublic void validateUserForAssetRead(String userId, Asset asset) throws UserNotAuthorizedException
validateUserForAssetRead in interface OpenMetadataAssetSecurityuserId - identifier of userasset - asset to testUserNotAuthorizedException - the user is not authorized to access this assetpublic void validateUserForAssetDetailUpdate(String userId, Asset originalAsset, AssetAuditHeader originalAssetAuditHeader, Asset newAsset) throws UserNotAuthorizedException
validateUserForAssetDetailUpdate in interface OpenMetadataAssetSecurityuserId - identifier of useroriginalAsset - original asset detailsoriginalAssetAuditHeader - details of the asset's audit headernewAsset - new asset detailsUserNotAuthorizedException - the user is not authorized to change this assetpublic void validateUserForAssetAttachmentUpdate(String userId, Asset asset) throws UserNotAuthorizedException
validateUserForAssetAttachmentUpdate in interface OpenMetadataAssetSecurityuserId - identifier of userasset - original asset detailsUserNotAuthorizedException - the user is not authorized to change this assetpublic void validateUserForAssetFeedback(String userId, Asset asset) throws UserNotAuthorizedException
validateUserForAssetFeedback in interface OpenMetadataAssetSecurityuserId - identifier of userasset - original asset detailsUserNotAuthorizedException - the user is not authorized to change this assetpublic void validateUserForAssetDelete(String userId, Asset asset) throws UserNotAuthorizedException
validateUserForAssetDelete in interface OpenMetadataAssetSecurityuserId - identifier of userasset - asset detailsUserNotAuthorizedException - the user is not authorized to change this assetpublic void validateUserForTypeCreate(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException
validateUserForTypeCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailsUserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForTypeCreate(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) throws UserNotAuthorizedException
validateUserForTypeCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionattributeTypeDef - type detailsUserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForTypeRead(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException
validateUserForTypeRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailsUserNotAuthorizedException - the user is not authorized to retrieve typespublic void validateUserForTypeRead(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) throws UserNotAuthorizedException
validateUserForTypeRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionattributeTypeDef - type detailsUserNotAuthorizedException - the user is not authorized to retrieve typespublic void validateUserForTypeUpdate(String userId, String metadataCollectionName, TypeDef typeDef, TypeDefPatch patch) throws UserNotAuthorizedException
validateUserForTypeUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - current typeDef detailspatch - proposed changes to typeUserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForTypeDelete(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException
validateUserForTypeDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailsUserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForTypeDelete(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) throws UserNotAuthorizedException
validateUserForTypeDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionattributeTypeDef - type detailsUserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForTypeReIdentify(String userId, String metadataCollectionName, TypeDef originalTypeDef, String newTypeDefGUID, String newTypeDefName) throws UserNotAuthorizedException
validateUserForTypeReIdentify in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionoriginalTypeDef - type detailsnewTypeDefGUID - the new identifier for the type.newTypeDefName - new name for this type.UserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForTypeReIdentify(String userId, String metadataCollectionName, AttributeTypeDef originalAttributeTypeDef, String newTypeDefGUID, String newTypeDefName) throws UserNotAuthorizedException
validateUserForTypeReIdentify in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionoriginalAttributeTypeDef - type detailsnewTypeDefGUID - the new identifier for the type.newTypeDefName - new name for this type.UserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForEntityCreate(String userId, String metadataCollectionName, String entityTypeGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus) throws UserNotAuthorizedException
validateUserForEntityCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionentityTypeGUID - unique identifier (guid) for the new entity's type.initialProperties - initial list of properties for the new entity null means no properties.initialClassifications - initial list of classifications for the new entity null means no classifications.initialStatus - initial status typically DRAFT, PREPARED or ACTIVE.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityRead(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException
validateUserForEntityRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to retrieve instancespublic void validateUserForEntitySummaryRead(String userId, String metadataCollectionName, EntitySummary instance) throws UserNotAuthorizedException
validateUserForEntitySummaryRead in interface OpenMetadataRepositorySecurityuserId - identifier of userinstance - instance detailsUserNotAuthorizedException - the user is not authorized to retrieve instancespublic void validateUserForEntityProxyRead(String userId, String metadataCollectionName, EntityProxy instance) throws UserNotAuthorizedException
validateUserForEntityProxyRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to retrieve instancespublic void validateUserForEntityUpdate(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException
validateUserForEntityUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityClassificationAdd(String userId, String metadataCollectionName, EntityDetail instance, String classificationName, InstanceProperties properties) throws UserNotAuthorizedException
validateUserForEntityClassificationAdd in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsclassificationName - String name for the classification.properties - list of properties for the classification.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityClassificationUpdate(String userId, String metadataCollectionName, EntityDetail instance, String classificationName, InstanceProperties properties) throws UserNotAuthorizedException
validateUserForEntityClassificationUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsclassificationName - String name for the classification.properties - list of properties for the classification.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityClassificationDelete(String userId, String metadataCollectionName, EntityDetail instance, String classificationName) throws UserNotAuthorizedException
validateUserForEntityClassificationDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsclassificationName - String name for the classification.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityDelete(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException
validateUserForEntityDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityRestore(String userId, String metadataCollectionName, String deletedEntityGUID) throws UserNotAuthorizedException
validateUserForEntityRestore in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiondeletedEntityGUID - String unique identifier (guid) for the entity.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityReIdentification(String userId, String metadataCollectionName, EntityDetail instance, String newGUID) throws UserNotAuthorizedException
validateUserForEntityReIdentification in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewGUID - the new guid for the instance.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityReTyping(String userId, String metadataCollectionName, EntityDetail instance, TypeDefSummary newTypeDefSummary) throws UserNotAuthorizedException
validateUserForEntityReTyping in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewTypeDefSummary - details of this instance's new TypeDef.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForEntityReHoming(String userId, String metadataCollectionName, EntityDetail instance, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName) throws UserNotAuthorizedException
validateUserForEntityReHoming in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewHomeMetadataCollectionId - unique identifier for the new home metadata collection/repository.newHomeMetadataCollectionName - display name for the new home metadata collection/repository.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipCreate(String userId, String metadataCollectionName, String relationshipTypeGUID, InstanceProperties initialProperties, EntitySummary entityOneSummary, EntitySummary entityTwoSummary, InstanceStatus initialStatus) throws UserNotAuthorizedException
validateUserForRelationshipCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionrelationshipTypeGUID - unique identifier (guid) for the new relationship's type.initialProperties - initial list of properties for the new entity null means no properties.entityOneSummary - the unique identifier of one of the entities that the relationship is connecting together.entityTwoSummary - the unique identifier of the other entity that the relationship is connecting together.initialStatus - initial status typically DRAFT, PREPARED or ACTIVE.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipRead(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException
validateUserForRelationshipRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to retrieve instancespublic void validateUserForRelationshipUpdate(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException
validateUserForRelationshipUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipDelete(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException
validateUserForRelationshipDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipRestore(String userId, String metadataCollectionName, String deletedRelationshipGUID) throws UserNotAuthorizedException
validateUserForRelationshipRestore in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiondeletedRelationshipGUID - String unique identifier (guid) for the relationship.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipReIdentification(String userId, String metadataCollectionName, Relationship instance, String newGUID) throws UserNotAuthorizedException
validateUserForRelationshipReIdentification in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewGUID - the new guid for the instance.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipReTyping(String userId, String metadataCollectionName, Relationship instance, TypeDefSummary newTypeDefSummary) throws UserNotAuthorizedException
validateUserForRelationshipReTyping in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewTypeDefSummary - details of this instance's new TypeDef.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void validateUserForRelationshipReHoming(String userId, String metadataCollectionName, Relationship instance, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName) throws UserNotAuthorizedException
validateUserForRelationshipReHoming in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewHomeMetadataCollectionId - unique identifier for the new home metadata collection/repository.newHomeMetadataCollectionName - display name for the new home metadata collection/repository.UserNotAuthorizedException - the user is not authorized to maintain instancespublic void disconnect()
throws ConnectorCheckedException
disconnect in class ConnectorBaseConnectorCheckedException - there is a problem within the connector.Copyright © 2018–2020 ODPi. All rights reserved.