public class OMRSMetadataDefaultRepositorySecurity extends Object implements OpenMetadataRepositorySecurity
| Constructor and Description |
|---|
OMRSMetadataDefaultRepositorySecurity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
validateEntityReferenceCopySave(EntityDetail instance)
Tests for whether a reference copy should be saved to the repository.
|
boolean |
validateRelationshipReferenceCopySave(Relationship instance)
Tests for whether a reference copy should be saved to the repository.
|
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.
|
EntityDetail |
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.
|
Relationship |
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 OMRSMetadataDefaultRepositorySecurity()
public void validateUserForTypeCreate(String userId, String metadataCollectionName, TypeDef typeDef)
validateUserForTypeCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailspublic void validateUserForTypeCreate(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef)
validateUserForTypeCreate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionattributeTypeDef - type detailspublic void validateUserForTypeRead(String userId, String metadataCollectionName, TypeDef typeDef)
validateUserForTypeRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailspublic void validateUserForTypeRead(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef)
validateUserForTypeRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionattributeTypeDef - type detailspublic void validateUserForTypeUpdate(String userId, String metadataCollectionName, TypeDef typeDef, TypeDefPatch patch)
validateUserForTypeUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailspatch - changes to the typepublic void validateUserForTypeDelete(String userId, String metadataCollectionName, TypeDef typeDef)
validateUserForTypeDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiontypeDef - type detailspublic void validateUserForTypeDelete(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef)
validateUserForTypeDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectionattributeTypeDef - type detailspublic void validateUserForTypeReIdentify(String userId, String metadataCollectionName, TypeDef originalTypeDef, String newTypeDefGUID, String newTypeDefName)
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.public void validateUserForTypeReIdentify(String userId, String metadataCollectionName, AttributeTypeDef originalAttributeTypeDef, String newTypeDefGUID, String newTypeDefName)
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.public void validateUserForEntityCreate(String userId, String metadataCollectionName, String entityTypeGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus)
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.public EntityDetail validateUserForEntityRead(String userId, String metadataCollectionName, EntityDetail instance)
validateUserForEntityRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForEntitySummaryRead(String userId, String metadataCollectionName, EntitySummary instance)
validateUserForEntitySummaryRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForEntityProxyRead(String userId, String metadataCollectionName, EntityProxy instance)
validateUserForEntityProxyRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForEntityUpdate(String userId, String metadataCollectionName, EntityDetail instance)
validateUserForEntityUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForEntityClassificationAdd(String userId, String metadataCollectionName, EntityDetail instance, String classificationName, InstanceProperties properties)
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.public void validateUserForEntityClassificationUpdate(String userId, String metadataCollectionName, EntityDetail instance, String classificationName, InstanceProperties properties)
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.public void validateUserForEntityClassificationDelete(String userId, String metadataCollectionName, EntityDetail instance, String classificationName)
validateUserForEntityClassificationDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsclassificationName - String name for the classification.public void validateUserForEntityDelete(String userId, String metadataCollectionName, EntityDetail instance)
validateUserForEntityDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForEntityRestore(String userId, String metadataCollectionName, String deletedEntityGUID)
validateUserForEntityRestore in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiondeletedEntityGUID - String unique identifier (guid) for the entity.public void validateUserForEntityReIdentification(String userId, String metadataCollectionName, EntityDetail instance, String newGUID)
validateUserForEntityReIdentification in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewGUID - the new guid for the instance.public void validateUserForEntityReTyping(String userId, String metadataCollectionName, EntityDetail instance, TypeDefSummary newTypeDefSummary)
validateUserForEntityReTyping in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewTypeDefSummary - details of this instance's new TypeDef.public void validateUserForEntityReHoming(String userId, String metadataCollectionName, EntityDetail instance, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName)
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.public void validateUserForRelationshipCreate(String userId, String metadataCollectionName, String relationshipTypeGUID, InstanceProperties initialProperties, EntitySummary entityOneSummary, EntitySummary entityTwoSummary, InstanceStatus initialStatus)
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.public Relationship validateUserForRelationshipRead(String userId, String metadataCollectionName, Relationship instance)
validateUserForRelationshipRead in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForRelationshipUpdate(String userId, String metadataCollectionName, Relationship instance)
validateUserForRelationshipUpdate in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForRelationshipDelete(String userId, String metadataCollectionName, Relationship instance)
validateUserForRelationshipDelete in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailspublic void validateUserForRelationshipRestore(String userId, String metadataCollectionName, String deletedRelationshipGUID)
validateUserForRelationshipRestore in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectiondeletedRelationshipGUID - String unique identifier (guid) for the relationship.public void validateUserForRelationshipReIdentification(String userId, String metadataCollectionName, Relationship instance, String newGUID)
validateUserForRelationshipReIdentification in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewGUID - the new guid for the instance.public void validateUserForRelationshipReTyping(String userId, String metadataCollectionName, Relationship instance, TypeDefSummary newTypeDefSummary)
validateUserForRelationshipReTyping in interface OpenMetadataRepositorySecurityuserId - identifier of usermetadataCollectionName - configurable name of the metadata collectioninstance - instance detailsnewTypeDefSummary - details of this instance's new TypeDef.public void validateUserForRelationshipReHoming(String userId, String metadataCollectionName, Relationship instance, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName)
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.public boolean validateEntityReferenceCopySave(EntityDetail instance)
validateEntityReferenceCopySave in interface OpenMetadataRepositorySecurityinstance - instance detailspublic boolean validateRelationshipReferenceCopySave(Relationship instance)
validateRelationshipReferenceCopySave in interface OpenMetadataRepositorySecurityinstance - instance detailsCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.