Class OMRSMetadataDefaultRepositorySecurity

  • All Implemented Interfaces:
    OpenMetadataRepositorySecurity

    public class OMRSMetadataDefaultRepositorySecurity
    extends java.lang.Object
    implements OpenMetadataRepositorySecurity
    OMRSMetadataDefaultRepositorySecurity provides a default instance repository security support that allows all actions. It is replaced if the server's security connector implements the repository security interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean validateEntityReferenceCopySave​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
      Tests for whether a reference copy should be saved to the repository.
      boolean validateRelationshipReferenceCopySave​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
      Tests for whether a reference copy should be saved to the repository.
      void validateUserForEntityClassificationAdd​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance, java.lang.String classificationName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance, java.lang.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​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance, java.lang.String classificationName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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​(java.lang.String userId, java.lang.String metadataCollectionName, java.lang.String entityTypeGUID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties initialProperties, java.util.List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> initialClassifications, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus initialStatus)
      Tests for whether a specific user should have the right to create a instance within a repository.
      void validateUserForEntityDelete​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
      Tests for whether a specific user should have the right to delete a instance within a repository.
      void validateUserForEntityProxyRead​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy instance)
      Tests for whether a specific user should have read access to a specific instance within a repository.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail validateUserForEntityRead​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
      Tests for whether a specific user should have read access to a specific instance within a repository.
      void validateUserForEntityReHoming​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance, java.lang.String newHomeMetadataCollectionId, java.lang.String newHomeMetadataCollectionName)
      Tests for whether a specific user should have the right to change the home of a instance within a repository.
      void validateUserForEntityReIdentification​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance, java.lang.String newGUID)
      Tests for whether a specific user should have the right to change the guid on a instance within a repository.
      void validateUserForEntityRestore​(java.lang.String userId, java.lang.String metadataCollectionName, java.lang.String deletedEntityGUID)
      Tests for whether a specific user should have the right to restore a instance within a repository.
      void validateUserForEntityReTyping​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary newTypeDefSummary)
      Tests for whether a specific user should have the right to change the type of a instance within a repository.
      void validateUserForEntitySummaryRead​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance)
      Tests for whether a specific user should have read access to a specific instance within a repository.
      void validateUserForEntityUpdate​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
      Tests for whether a specific user should have the right to update a instance within a repository.
      void validateUserForRelationshipCreate​(java.lang.String userId, java.lang.String metadataCollectionName, java.lang.String relationshipTypeGUID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties initialProperties, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary entityOneSummary, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary entityTwoSummary, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus initialStatus)
      Tests for whether a specific user should have the right to create a instance within a repository.
      void validateUserForRelationshipDelete​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
      Tests for whether a specific user should have the right to delete a instance within a repository.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship validateUserForRelationshipRead​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
      Tests for whether a specific user should have read access to a specific instance within a repository.
      void validateUserForRelationshipReHoming​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance, java.lang.String newHomeMetadataCollectionId, java.lang.String newHomeMetadataCollectionName)
      Tests for whether a specific user should have the right to change the home of a instance within a repository.
      void validateUserForRelationshipReIdentification​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance, java.lang.String newGUID)
      Tests for whether a specific user should have the right to change the guid on a instance within a repository.
      void validateUserForRelationshipRestore​(java.lang.String userId, java.lang.String metadataCollectionName, java.lang.String deletedRelationshipGUID)
      Tests for whether a specific user should have the right to restore a instance within a repository.
      void validateUserForRelationshipReTyping​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary newTypeDefSummary)
      Tests for whether a specific user should have the right to change the type of a instance within a repository.
      void validateUserForRelationshipUpdate​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
      Tests for whether a specific user should have the right to update a instance within a repository.
      void validateUserForTypeCreate​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef attributeTypeDef)
      Tests for whether a specific user should have the right to create a type within a repository.
      void validateUserForTypeCreate​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef)
      Tests for whether a specific user should have the right to create a type within a repository.
      void validateUserForTypeDelete​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef attributeTypeDef)
      Tests for whether a specific user should have the right to delete a type within a repository.
      void validateUserForTypeDelete​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef)
      Tests for whether a specific user should have the right to delete a type within a repository.
      void validateUserForTypeRead​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef attributeTypeDef)
      Tests for whether a specific user should have read access to a specific type within a repository.
      void validateUserForTypeRead​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef)
      Tests for whether a specific user should have read access to a specific type within a repository.
      void validateUserForTypeReIdentify​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef originalAttributeTypeDef, java.lang.String newTypeDefGUID, java.lang.String newTypeDefName)
      Tests for whether a specific user should have the right to change the identifiers for a type within a repository.
      void validateUserForTypeReIdentify​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef originalTypeDef, java.lang.String newTypeDefGUID, java.lang.String newTypeDefName)
      Tests for whether a specific user should have the right to change the identifiers for a type within a repository.
      void validateUserForTypeUpdate​(java.lang.String userId, java.lang.String metadataCollectionName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefPatch patch)
      Tests for whether a specific user should have the right to update a type within a repository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OMRSMetadataDefaultRepositorySecurity

        public OMRSMetadataDefaultRepositorySecurity()
    • Method Detail

      • validateUserForTypeCreate

        public void validateUserForTypeCreate​(java.lang.String userId,
                                              java.lang.String metadataCollectionName,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef)
        Tests for whether a specific user should have the right to create a type within a repository.
        Specified by:
        validateUserForTypeCreate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        typeDef - type details
      • validateUserForTypeCreate

        public void validateUserForTypeCreate​(java.lang.String userId,
                                              java.lang.String metadataCollectionName,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef attributeTypeDef)
        Tests for whether a specific user should have the right to create a type within a repository.
        Specified by:
        validateUserForTypeCreate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        attributeTypeDef - type details
      • validateUserForTypeRead

        public void validateUserForTypeRead​(java.lang.String userId,
                                            java.lang.String metadataCollectionName,
                                            org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef)
        Tests for whether a specific user should have read access to a specific type within a repository.
        Specified by:
        validateUserForTypeRead in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        typeDef - type details
      • validateUserForTypeRead

        public void validateUserForTypeRead​(java.lang.String userId,
                                            java.lang.String metadataCollectionName,
                                            org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef attributeTypeDef)
        Tests for whether a specific user should have read access to a specific type within a repository.
        Specified by:
        validateUserForTypeRead in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        attributeTypeDef - type details
      • validateUserForTypeUpdate

        public void validateUserForTypeUpdate​(java.lang.String userId,
                                              java.lang.String metadataCollectionName,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefPatch patch)
        Tests for whether a specific user should have the right to update a type within a repository.
        Specified by:
        validateUserForTypeUpdate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        typeDef - type details
        patch - changes to the type
      • validateUserForTypeDelete

        public void validateUserForTypeDelete​(java.lang.String userId,
                                              java.lang.String metadataCollectionName,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef typeDef)
        Tests for whether a specific user should have the right to delete a type within a repository.
        Specified by:
        validateUserForTypeDelete in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        typeDef - type details
      • validateUserForTypeDelete

        public void validateUserForTypeDelete​(java.lang.String userId,
                                              java.lang.String metadataCollectionName,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef attributeTypeDef)
        Tests for whether a specific user should have the right to delete a type within a repository.
        Specified by:
        validateUserForTypeDelete in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        attributeTypeDef - type details
      • validateUserForTypeReIdentify

        public void validateUserForTypeReIdentify​(java.lang.String userId,
                                                  java.lang.String metadataCollectionName,
                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef originalTypeDef,
                                                  java.lang.String newTypeDefGUID,
                                                  java.lang.String newTypeDefName)
        Tests for whether a specific user should have the right to change the identifiers for a type within a repository.
        Specified by:
        validateUserForTypeReIdentify in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        originalTypeDef - type details
        newTypeDefGUID - the new identifier for the type.
        newTypeDefName - new name for this type.
      • validateUserForTypeReIdentify

        public void validateUserForTypeReIdentify​(java.lang.String userId,
                                                  java.lang.String metadataCollectionName,
                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef originalAttributeTypeDef,
                                                  java.lang.String newTypeDefGUID,
                                                  java.lang.String newTypeDefName)
        Tests for whether a specific user should have the right to change the identifiers for a type within a repository.
        Specified by:
        validateUserForTypeReIdentify in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        originalAttributeTypeDef - type details
        newTypeDefGUID - the new identifier for the type.
        newTypeDefName - new name for this type.
      • validateUserForEntityCreate

        public void validateUserForEntityCreate​(java.lang.String userId,
                                                java.lang.String metadataCollectionName,
                                                java.lang.String entityTypeGUID,
                                                org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties initialProperties,
                                                java.util.List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> initialClassifications,
                                                org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus initialStatus)
        Tests for whether a specific user should have the right to create a instance within a repository.
        Specified by:
        validateUserForEntityCreate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        entityTypeGUID - 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.
      • validateUserForEntityRead

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail validateUserForEntityRead​(java.lang.String userId,
                                                                                                                                                              java.lang.String metadataCollectionName,
                                                                                                                                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
        Tests for whether a specific user should have read access to a specific instance within a repository.
        Specified by:
        validateUserForEntityRead in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        Returns:
        entity to return (may be altered by the repositorySecurityConnector)
      • validateUserForEntitySummaryRead

        public void validateUserForEntitySummaryRead​(java.lang.String userId,
                                                     java.lang.String metadataCollectionName,
                                                     org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance)
        Tests for whether a specific user should have read access to a specific instance within a repository.
        Specified by:
        validateUserForEntitySummaryRead in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
      • validateUserForEntityProxyRead

        public void validateUserForEntityProxyRead​(java.lang.String userId,
                                                   java.lang.String metadataCollectionName,
                                                   org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy instance)
        Tests for whether a specific user should have read access to a specific instance within a repository.
        Specified by:
        validateUserForEntityProxyRead in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
      • validateUserForEntityUpdate

        public void validateUserForEntityUpdate​(java.lang.String userId,
                                                java.lang.String metadataCollectionName,
                                                org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
        Tests for whether a specific user should have the right to update a instance within a repository.
        Specified by:
        validateUserForEntityUpdate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
      • validateUserForEntityClassificationAdd

        public void validateUserForEntityClassificationAdd​(java.lang.String userId,
                                                           java.lang.String metadataCollectionName,
                                                           org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance,
                                                           java.lang.String classificationName,
                                                           org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties)
        Tests for whether a specific user should have the right to add a classification to an entity instance within a repository.
        Specified by:
        validateUserForEntityClassificationAdd in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        classificationName - String name for the classification.
        properties - list of properties for the classification.
      • validateUserForEntityClassificationUpdate

        public void validateUserForEntityClassificationUpdate​(java.lang.String userId,
                                                              java.lang.String metadataCollectionName,
                                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance,
                                                              java.lang.String classificationName,
                                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties)
        Tests for whether a specific user should have the right to update the classification for an entity instance within a repository.
        Specified by:
        validateUserForEntityClassificationUpdate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        classificationName - String name for the classification.
        properties - list of properties for the classification.
      • validateUserForEntityClassificationDelete

        public void validateUserForEntityClassificationDelete​(java.lang.String userId,
                                                              java.lang.String metadataCollectionName,
                                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary instance,
                                                              java.lang.String classificationName)
        Tests for whether a specific user should have the right to delete a classification from an entity instance within a repository.
        Specified by:
        validateUserForEntityClassificationDelete in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        classificationName - String name for the classification.
      • validateUserForEntityDelete

        public void validateUserForEntityDelete​(java.lang.String userId,
                                                java.lang.String metadataCollectionName,
                                                org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
        Tests for whether a specific user should have the right to delete a instance within a repository.
        Specified by:
        validateUserForEntityDelete in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
      • validateUserForEntityRestore

        public void validateUserForEntityRestore​(java.lang.String userId,
                                                 java.lang.String metadataCollectionName,
                                                 java.lang.String deletedEntityGUID)
        Tests for whether a specific user should have the right to restore a instance within a repository.
        Specified by:
        validateUserForEntityRestore in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        deletedEntityGUID - String unique identifier (guid) for the entity.
      • validateUserForEntityReIdentification

        public void validateUserForEntityReIdentification​(java.lang.String userId,
                                                          java.lang.String metadataCollectionName,
                                                          org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance,
                                                          java.lang.String newGUID)
        Tests for whether a specific user should have the right to change the guid on a instance within a repository.
        Specified by:
        validateUserForEntityReIdentification in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        newGUID - the new guid for the instance.
      • validateUserForEntityReTyping

        public void validateUserForEntityReTyping​(java.lang.String userId,
                                                  java.lang.String metadataCollectionName,
                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance,
                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary newTypeDefSummary)
        Tests for whether a specific user should have the right to change the type of a instance within a repository.
        Specified by:
        validateUserForEntityReTyping in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        newTypeDefSummary - details of this instance's new TypeDef.
      • validateUserForEntityReHoming

        public void validateUserForEntityReHoming​(java.lang.String userId,
                                                  java.lang.String metadataCollectionName,
                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance,
                                                  java.lang.String newHomeMetadataCollectionId,
                                                  java.lang.String newHomeMetadataCollectionName)
        Tests for whether a specific user should have the right to change the home of a instance within a repository.
        Specified by:
        validateUserForEntityReHoming in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        newHomeMetadataCollectionId - unique identifier for the new home metadata collection/repository.
        newHomeMetadataCollectionName - display name for the new home metadata collection/repository.
      • validateUserForRelationshipCreate

        public void validateUserForRelationshipCreate​(java.lang.String userId,
                                                      java.lang.String metadataCollectionName,
                                                      java.lang.String relationshipTypeGUID,
                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties initialProperties,
                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary entityOneSummary,
                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary entityTwoSummary,
                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus initialStatus)
        Tests for whether a specific user should have the right to create a instance within a repository.
        Specified by:
        validateUserForRelationshipCreate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        relationshipTypeGUID - 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.
      • validateUserForRelationshipRead

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship validateUserForRelationshipRead​(java.lang.String userId,
                                                                                                                                                                    java.lang.String metadataCollectionName,
                                                                                                                                                                    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
        Tests for whether a specific user should have read access to a specific instance within a repository.
        Specified by:
        validateUserForRelationshipRead in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        Returns:
        relationship to return (may be altered by the repositorySecurityConnector)
      • validateUserForRelationshipUpdate

        public void validateUserForRelationshipUpdate​(java.lang.String userId,
                                                      java.lang.String metadataCollectionName,
                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
        Tests for whether a specific user should have the right to update a instance within a repository.
        Specified by:
        validateUserForRelationshipUpdate in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
      • validateUserForRelationshipDelete

        public void validateUserForRelationshipDelete​(java.lang.String userId,
                                                      java.lang.String metadataCollectionName,
                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
        Tests for whether a specific user should have the right to delete a instance within a repository.
        Specified by:
        validateUserForRelationshipDelete in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
      • validateUserForRelationshipRestore

        public void validateUserForRelationshipRestore​(java.lang.String userId,
                                                       java.lang.String metadataCollectionName,
                                                       java.lang.String deletedRelationshipGUID)
        Tests for whether a specific user should have the right to restore a instance within a repository.
        Specified by:
        validateUserForRelationshipRestore in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        deletedRelationshipGUID - String unique identifier (guid) for the relationship.
      • validateUserForRelationshipReIdentification

        public void validateUserForRelationshipReIdentification​(java.lang.String userId,
                                                                java.lang.String metadataCollectionName,
                                                                org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance,
                                                                java.lang.String newGUID)
        Tests for whether a specific user should have the right to change the guid on a instance within a repository.
        Specified by:
        validateUserForRelationshipReIdentification in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        newGUID - the new guid for the instance.
      • validateUserForRelationshipReTyping

        public void validateUserForRelationshipReTyping​(java.lang.String userId,
                                                        java.lang.String metadataCollectionName,
                                                        org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance,
                                                        org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary newTypeDefSummary)
        Tests for whether a specific user should have the right to change the type of a instance within a repository.
        Specified by:
        validateUserForRelationshipReTyping in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        newTypeDefSummary - details of this instance's new TypeDef.
      • validateUserForRelationshipReHoming

        public void validateUserForRelationshipReHoming​(java.lang.String userId,
                                                        java.lang.String metadataCollectionName,
                                                        org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance,
                                                        java.lang.String newHomeMetadataCollectionId,
                                                        java.lang.String newHomeMetadataCollectionName)
        Tests for whether a specific user should have the right to change the home of a instance within a repository.
        Specified by:
        validateUserForRelationshipReHoming in interface OpenMetadataRepositorySecurity
        Parameters:
        userId - identifier of user
        metadataCollectionName - configurable name of the metadata collection
        instance - instance details
        newHomeMetadataCollectionId - unique identifier for the new home metadata collection/repository.
        newHomeMetadataCollectionName - display name for the new home metadata collection/repository.
      • validateEntityReferenceCopySave

        public boolean validateEntityReferenceCopySave​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail instance)
        Tests for whether a reference copy should be saved to the repository.
        Specified by:
        validateEntityReferenceCopySave in interface OpenMetadataRepositorySecurity
        Parameters:
        instance - instance details
        Returns:
        flag indicating whether the reference copy should be saved
      • validateRelationshipReferenceCopySave

        public boolean validateRelationshipReferenceCopySave​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship instance)
        Tests for whether a reference copy should be saved to the repository.
        Specified by:
        validateRelationshipReferenceCopySave in interface OpenMetadataRepositorySecurity
        Parameters:
        instance - instance details
        Returns:
        flag indicating whether the reference copy should be saved