public class OMRSMetadataSecurity extends Object implements OpenMetadataRepositorySecurity
| Constructor and Description |
|---|
OMRSMetadataSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
setSecurityVerifier(OpenMetadataRepositorySecurity securityConnector)
Set up a new security verifier (the handler runs with a default verifier until this
method is called).
|
void |
validateUserForEntityClassificationUpdate(String userId,
String metadataCollectionName,
EntityDetail instance,
Classification classification)
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,
EntityDetail instance)
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 |
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,
Relationship instance)
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 |
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 |
validateUserForTypeCreate(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have the right to create a typeDef within a repository.
|
void |
validateUserForTypeDelete(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have the right to delete a typeDef within a repository.
|
void |
validateUserForTypeRead(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have read access to a specific typeDef within a repository.
|
void |
validateUserForTypeUpdate(String userId,
String metadataCollectionName,
TypeDef typeDef)
Tests for whether a specific user should have the right to update a typeDef within a repository.
|
public void setSecurityVerifier(OpenMetadataRepositorySecurity securityConnector)
securityConnector - new security verifierpublic void validateUserForTypeCreate(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException
validateUserForTypeCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - typeDef 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 - typeDef detailsUserNotAuthorizedException - the user is not authorized to retrieve typespublic void validateUserForTypeUpdate(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException
validateUserForTypeUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - typeDef detailsUserNotAuthorizedException - 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 - typeDef detailsUserNotAuthorizedException - the user is not authorized to maintain typespublic void validateUserForEntityCreate(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException
validateUserForEntityCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - 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 usermetadataCollectionName - configurable name of the metadata collectioninstance - 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 validateUserForEntityClassificationUpdate(String userId, String metadataCollectionName, EntityDetail instance, Classification classification) throws UserNotAuthorizedException
validateUserForEntityClassificationUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsclassification - classification detailsUserNotAuthorizedException - 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 validateUserForRelationshipCreate(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException
validateUserForRelationshipCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsUserNotAuthorizedException - 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 instancesCopyright © 2018–2019 ODPi. All rights reserved.