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 |
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 |
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 type 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 - 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 - type detailspatch - changes to the 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 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 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 instancesCopyright © 2018–2020 ODPi. All rights reserved.