Class OpenMetadataServerSecurityVerifier
java.lang.Object
org.odpi.openmetadata.metadatasecurity.server.OpenMetadataServerSecurityVerifier
- All Implemented Interfaces:
- OpenMetadataElementSecurity,- OpenMetadataRepositorySecurity,- OpenMetadataServerSecurity,- OpenMetadataServiceSecurity,- OpenMetadataEventsSecurity
public class OpenMetadataServerSecurityVerifier
extends Object
implements OpenMetadataRepositorySecurity, OpenMetadataEventsSecurity, OpenMetadataElementSecurity, OpenMetadataServerSecurity, OpenMetadataServiceSecurity
OpenMetadataServerSecurityVerifier provides the plug-in point for the open metadata server connector.
 It supports the same security interfaces, and handles the fact that the security connector is
 optional.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetVisibleZones(String userId) Return the list of visible zones for this user.voidregisterSecurityValidator(String localServerUserId, String serverName, AuditLog auditLog, Connection connection) Register an open metadata server security connector to verify access to the server's services.selectConnection(String userId, EntityDetail assetEntity, List<EntityDetail> connectionEntities, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Use the security connector to make a choice on which connection to supply to the requesting user.booleanvalidateEntityReferenceCopySave(String userId, EntityDetail instance) Tests for whether a reference copy should be saved to the repository.validateInboundEvent(String cohortName, OMRSInstanceEvent event) Validate whether an event received from another member of the cohort should be processed by this server.validateOutboundEvent(String cohortName, OMRSInstanceEvent event) Validate whether an event should be sent to the other members of the cohort by this server.booleanvalidateRelationshipReferenceCopySave(String userId, Relationship instance) Tests for whether a reference copy should be saved to the repository.voidvalidateUserAsServerAdmin(String userId) Check that the calling user is authorized to update the configuration for a server.voidCheck that the calling user is authorized to issue operator requests to the OMAG Server.voidvalidateUserAsServerOperator(String userId) Check that the calling user is authorized to issue operator requests to the OMAG Server.voidvalidateUserForAnchorAddFeedback(String userId, EntityDetail anchorEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to attach feedback - such as comments, ratings, tags and likes, to the anchor or member element.voidvalidateUserForAnchorAttach(String userId, EntityDetail anchorEntity, EntityDetail attachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to link unanchored elementsvoidvalidateUserForAnchorClassify(String userId, EntityDetail anchorEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to add or update a classification on this anchor or member element.voidvalidateUserForAnchorDeclassify(String userId, EntityDetail anchorEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to remove a classification from this anchor or member elementvoidvalidateUserForAnchorDeleteFeedback(String userId, EntityDetail anchorEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to detach feedback - such as comments, ratings, tags and likes, to the anchor or member element.voidvalidateUserForAnchorDetach(String userId, EntityDetail anchorEntity, EntityDetail detachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to link unanchored elementsvoidvalidateUserForAnchorMemberAdd(String userId, EntityDetail anchorEntity, EntityDetail newMemberEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to attach feedback - such as comments, ratings, tags and likes, to the element.voidvalidateUserForAnchorMemberDelete(String userId, EntityDetail anchorEntity, EntityDetail obsoleteEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to delete an element and all of its contents.voidvalidateUserForAnchorMemberRead(String userId, EntityDetail anchorEntity, EntityDetail requestedEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have read access to a specific element and its contents.voidvalidateUserForAnchorMemberStatusUpdate(String userId, EntityDetail anchorEntity, EntityDetail originalEntity, InstanceStatus newStatus, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to update the instance status of an element.voidvalidateUserForAnchorMemberUpdate(String userId, EntityDetail anchorEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to update elements attached directly to an anchor such as glossary terms and categories attached to an element.voidvalidateUserForElementAddFeedback(String userId, EntityDetail originalEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to attach feedback - such as comments, ratings, tags and likes, to the element.voidvalidateUserForElementAttach(String userId, EntityDetail startingEntity, EntityDetail attachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to link unanchored elements to this elementvoidvalidateUserForElementClassify(String userId, EntityDetail originalEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to add or update a classification on this element.voidvalidateUserForElementCreate(String userId, String entityTypeGUID, String entityTypeName, InstanceProperties newProperties, List<Classification> classifications, InstanceStatus instanceStatus, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to create an element.voidvalidateUserForElementDeclassify(String userId, EntityDetail originalEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to remove a classification from this elementvoidvalidateUserForElementDelete(String userId, EntityDetail entity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to delete an element and all of its contents.voidvalidateUserForElementDeleteFeedback(String userId, EntityDetail originalEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to detach feedback - such as comments, ratings, tags and likes, to the element.voidvalidateUserForElementDetach(String userId, EntityDetail startingEntity, EntityDetail detachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to link unanchored elements to this elementvoidvalidateUserForElementDetailUpdate(String userId, EntityDetail originalEntity, InstanceProperties newEntityProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to update the properties of an element.voidvalidateUserForElementRead(String userId, EntityDetail requestedEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have read access to a specific element and its contents.voidvalidateUserForElementStatusUpdate(String userId, EntityDetail originalEntity, InstanceStatus newStatus, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) Tests for whether a specific user should have the right to update the properties of an element.voidvalidateUserForEntityClassificationAdd(String userId, String metadataCollectionName, EntitySummary 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.voidvalidateUserForEntityClassificationDelete(String userId, String metadataCollectionName, EntitySummary instance, String classificationName) Tests for whether a specific user should have the right to delete a classification from an entity instance within a repository.voidvalidateUserForEntityClassificationUpdate(String userId, String metadataCollectionName, EntitySummary 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.voidvalidateUserForEntityCreate(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 an instance within a repository.voidvalidateUserForEntityDelete(String userId, String metadataCollectionName, EntityDetail instance) Tests for whether a specific user should have the right to delete an instance within a repository.voidvalidateUserForEntityProxyRead(String userId, String metadataCollectionName, EntityProxy instance) Tests for whether a specific user should have read access to a specific instance within a repository.validateUserForEntityRead(String userId, String metadataCollectionName, EntityDetail instance) Tests for whether a specific user should have read access to a specific instance within a repository.voidvalidateUserForEntityReHoming(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 an instance within a repository.voidvalidateUserForEntityReIdentification(String userId, String metadataCollectionName, EntityDetail instance, String newGUID) Tests for whether a specific user should have the right to change the guid on an instance within a repository.voidvalidateUserForEntityRestore(String userId, String metadataCollectionName, String deletedEntityGUID) Tests for whether a specific user should have the right to delete an instance within a repository.voidvalidateUserForEntityReTyping(String userId, String metadataCollectionName, EntityDetail instance, TypeDefSummary newTypeDefSummary) Tests for whether a specific user should have the right to change an instance's type within a repository.voidvalidateUserForEntitySummaryRead(String userId, String metadataCollectionName, EntitySummary instance) Tests for whether a specific user should have read access to a specific instance within a repository.voidvalidateUserForEntityUpdate(String userId, String metadataCollectionName, EntityDetail instance) Tests for whether a specific user should have the right to update an instance within a repository.voidvalidateUserForRelationshipCreate(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 an instance within a repository.voidvalidateUserForRelationshipDelete(String userId, String metadataCollectionName, Relationship instance) Tests for whether a specific user should have the right to delete an instance within a repository.validateUserForRelationshipRead(String userId, String metadataCollectionName, Relationship instance) Tests for whether a specific user should have read access to a specific instance within a repository.voidvalidateUserForRelationshipReHoming(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 an instance within a repository.voidvalidateUserForRelationshipReIdentification(String userId, String metadataCollectionName, Relationship instance, String newGUID) Tests for whether a specific user should have the right to change the guid on an instance within a repository.voidvalidateUserForRelationshipRestore(String userId, String metadataCollectionName, String deletedRelationshipGUID) Tests for whether a specific user should have the right to delete an instance within a repository.voidvalidateUserForRelationshipReTyping(String userId, String metadataCollectionName, Relationship instance, TypeDefSummary newTypeDefSummary) Tests for whether a specific user should have the right to change an instance's type within a repository.voidvalidateUserForRelationshipUpdate(String userId, String metadataCollectionName, Relationship instance) Tests for whether a specific user should have the right to update an instance within a repository.voidvalidateUserForServer(String userId) Check that the calling user is authorized to issue a (any) request to the OMAG Server Platform.voidvalidateUserForService(String userId, String serviceName) Check that the calling user is authorized to issue this request.voidvalidateUserForServiceOperation(String userId, String serviceName, String serviceOperationName) Check that the calling user is authorized to issue this specific request.voidvalidateUserForTypeCreate(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) Tests for whether a specific user should have the right to create a type within a repository.voidvalidateUserForTypeCreate(String userId, String metadataCollectionName, TypeDef typeDef) Tests for whether a specific user should have the right to create a type within a repository.voidvalidateUserForTypeDelete(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) Tests for whether a specific user should have the right to delete a type within a repository.voidvalidateUserForTypeDelete(String userId, String metadataCollectionName, TypeDef typeDef) Tests for whether a specific user should have the right to delete a type within a repository.voidvalidateUserForTypeRead(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) Tests for whether a specific user should have read access to a specific type within a repository.voidvalidateUserForTypeRead(String userId, String metadataCollectionName, TypeDef typeDef) Tests for whether a specific user should have read access to a specific type within a repository.voidvalidateUserForTypeReIdentify(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.voidvalidateUserForTypeReIdentify(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.voidvalidateUserForTypeUpdate(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.
- 
Constructor Details- 
OpenMetadataServerSecurityVerifierpublic OpenMetadataServerSecurityVerifier()Default constructor
 
- 
- 
Method Details- 
registerSecurityValidatorpublic void registerSecurityValidator(String localServerUserId, String serverName, AuditLog auditLog, Connection connection) throws InvalidParameterException Register an open metadata server security connector to verify access to the server's services.- Parameters:
- localServerUserId- local server's userId
- serverName- local server's name
- auditLog- logging destination
- connection- properties used to create the connector
- Throws:
- InvalidParameterException- the connection is invalid
 
- 
getVisibleZonespublic List<String> getVisibleZones(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of visible zones for this user.- Parameters:
- userId- calling user
- Returns:
- list of zone names
- Throws:
- InvalidParameterException- invalid parameter
- PropertyServerException- problem from the verifier
- UserNotAuthorizedException- user not recognized
 
- 
validateUserForServerCheck that the calling user is authorized to issue a (any) request to the OMAG Server Platform.- Specified by:
- validateUserForServerin interface- OpenMetadataServerSecurity
- Parameters:
- userId- calling user
- Throws:
- UserNotAuthorizedException- the user is not authorized to access this function
 
- 
validateUserAsServerAdminCheck that the calling user is authorized to update the configuration for a server.- Specified by:
- validateUserAsServerAdminin interface- OpenMetadataServerSecurity
- Parameters:
- userId- calling user
- Throws:
- UserNotAuthorizedException- the user is not authorized to change configuration
 
- 
validateUserAsServerOperatorCheck that the calling user is authorized to issue operator requests to the OMAG Server.- Specified by:
- validateUserAsServerOperatorin interface- OpenMetadataServerSecurity
- Parameters:
- userId- calling user
- Throws:
- UserNotAuthorizedException- the user is not authorized to issue operator commands to this server
 
- 
validateUserAsServerInvestigatorCheck that the calling user is authorized to issue operator requests to the OMAG Server.- Specified by:
- validateUserAsServerInvestigatorin interface- OpenMetadataServerSecurity
- Parameters:
- userId- calling user
- Throws:
- UserNotAuthorizedException- the user is not authorized to issue diagnostic commands to this server
 
- 
validateUserForServicepublic void validateUserForService(String userId, String serviceName) throws UserNotAuthorizedException Check that the calling user is authorized to issue this request.- Specified by:
- validateUserForServicein interface- OpenMetadataServiceSecurity
- Parameters:
- userId- calling user
- serviceName- name of called service
- Throws:
- UserNotAuthorizedException- the user is not authorized to access this service
 
- 
validateUserForServiceOperationpublic void validateUserForServiceOperation(String userId, String serviceName, String serviceOperationName) throws UserNotAuthorizedException Check that the calling user is authorized to issue this specific request.- Specified by:
- validateUserForServiceOperationin interface- OpenMetadataServiceSecurity
- Parameters:
- userId- calling user
- serviceName- name of called service
- serviceOperationName- name of called operation
- Throws:
- UserNotAuthorizedException- the user is not authorized to access this service
 
- 
selectConnectionpublic EntityDetail selectConnection(String userId, EntityDetail assetEntity, List<EntityDetail> connectionEntities, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Use the security connector to make a choice on which connection to supply to the requesting user.- Specified by:
- selectConnectionin interface- OpenMetadataElementSecurity
- Parameters:
- userId- calling userId
- assetEntity- associated asset - may be null
- connectionEntities- list of retrieved connections
- repositoryHelper- for working with OMRS objects
- serviceName- calling service
- methodName- calling method
- Returns:
- single connection entity, or null
- Throws:
- UserNotAuthorizedException- the user is not able to use any of the connections
 
- 
validateUserForElementCreatepublic void validateUserForElementCreate(String userId, String entityTypeGUID, String entityTypeName, InstanceProperties newProperties, List<Classification> classifications, InstanceStatus instanceStatus, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException, InvalidParameterException, PropertyServerException Tests for whether a specific user should have the right to create an element.- Specified by:
- validateUserForElementCreatein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- entityTypeGUID- unique identifier of the type of entity to create
- entityTypeName- unique name of the type of entity to create
- newProperties- properties for new entity
- classifications- classifications for new entity
- instanceStatus- status for new entity
- repositoryHelper- manipulates repository service objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to perform this command
- InvalidParameterException- one of the parameters is null or invalid.
- PropertyServerException- there is a problem retrieving information from the property server(s).
 
- 
validateUserForElementReadpublic void validateUserForElementRead(String userId, EntityDetail requestedEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException, InvalidParameterException, PropertyServerException Tests for whether a specific user should have read access to a specific element and its contents.- Specified by:
- validateUserForElementReadin interface- OpenMetadataElementSecurity
- Parameters:
- userId- calling user
- requestedEntity- entity requested by the caller
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- InvalidParameterException- one of the parameters is null or invalid.
- PropertyServerException- there is a problem retrieving information from the property server(s).
- UserNotAuthorizedException- the requesting user is not authorized to issue this request.
 
- 
validateUserForAnchorMemberReadpublic void validateUserForAnchorMemberRead(String userId, EntityDetail anchorEntity, EntityDetail requestedEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific element and its contents.- Specified by:
- validateUserForAnchorMemberReadin interface- OpenMetadataElementSecurity
- Parameters:
- userId- calling user
- anchorEntity- entity for the anchor (if extracted - may be null)
- requestedEntity- entity requested by the caller
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- user not authorized to issue this request
 
- 
validateUserForElementDetailUpdatepublic void validateUserForElementDetailUpdate(String userId, EntityDetail originalEntity, InstanceProperties newEntityProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update the properties of an element.- Specified by:
- validateUserForElementDetailUpdatein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- originalEntity- original entity details
- newEntityProperties- new properties
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorMemberUpdatepublic void validateUserForAnchorMemberUpdate(String userId, EntityDetail anchorEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update elements attached directly to an anchor such as glossary terms and categories attached to an element. These updates could be to their properties, classifications and relationships.- Specified by:
- validateUserForAnchorMemberUpdatein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- element details
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementStatusUpdatepublic void validateUserForElementStatusUpdate(String userId, EntityDetail originalEntity, InstanceStatus newStatus, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update the properties of an element.- Specified by:
- validateUserForElementStatusUpdatein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- originalEntity- original entity details
- newStatus- new value for status
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementAttachpublic void validateUserForElementAttach(String userId, EntityDetail startingEntity, EntityDetail attachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to link unanchored elements to this element- Specified by:
- validateUserForElementAttachin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- startingEntity- end 1 details
- attachingEntity- end 1 details
- relationshipName- name of the relationship
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementDetachpublic void validateUserForElementDetach(String userId, EntityDetail startingEntity, EntityDetail detachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to link unanchored elements to this element- Specified by:
- validateUserForElementDetachin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- startingEntity- end 1 details
- detachingEntity- end 2 details
- relationshipName- name of the relationship
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementAddFeedbackpublic void validateUserForElementAddFeedback(String userId, EntityDetail originalEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to attach feedback - such as comments, ratings, tags and likes, to the element.- Specified by:
- validateUserForElementAddFeedbackin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- originalEntity- original entity details
- feedbackEntity- feedback element
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementDeleteFeedbackpublic void validateUserForElementDeleteFeedback(String userId, EntityDetail originalEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to detach feedback - such as comments, ratings, tags and likes, to the element.- Specified by:
- validateUserForElementDeleteFeedbackin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- originalEntity- original entity details
- feedbackEntity- feedback element
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementClassifypublic void validateUserForElementClassify(String userId, EntityDetail originalEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to add or update a classification on this element.- Specified by:
- validateUserForElementClassifyin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- originalEntity- original entity details
- classificationName- name of the classification
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementDeclassifypublic void validateUserForElementDeclassify(String userId, EntityDetail originalEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to remove a classification from this element- Specified by:
- validateUserForElementDeclassifyin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- originalEntity- original entity details
- classificationName- name of the classification
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorMemberStatusUpdatepublic void validateUserForAnchorMemberStatusUpdate(String userId, EntityDetail anchorEntity, EntityDetail originalEntity, InstanceStatus newStatus, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update the instance status of an element.- Specified by:
- validateUserForAnchorMemberStatusUpdatein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- originalEntity- original entity details
- newStatus- new value for status
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorAttachpublic void validateUserForAnchorAttach(String userId, EntityDetail anchorEntity, EntityDetail attachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to link unanchored elements- Specified by:
- validateUserForAnchorAttachin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- attachingEntity- new element
- relationshipName- name of the relationship
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorDetachpublic void validateUserForAnchorDetach(String userId, EntityDetail anchorEntity, EntityDetail detachingEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to link unanchored elements- Specified by:
- validateUserForAnchorDetachin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- detachingEntity- obsolete element
- relationshipName- name of the relationship
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorAddFeedbackpublic void validateUserForAnchorAddFeedback(String userId, EntityDetail anchorEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to attach feedback - such as comments, ratings, tags and likes, to the anchor or member element.- Specified by:
- validateUserForAnchorAddFeedbackin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- feedbackEntity- feedback element
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorDeleteFeedbackpublic void validateUserForAnchorDeleteFeedback(String userId, EntityDetail anchorEntity, EntityDetail feedbackEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to detach feedback - such as comments, ratings, tags and likes, to the anchor or member element.- Specified by:
- validateUserForAnchorDeleteFeedbackin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- feedbackEntity- feedback element
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorClassifypublic void validateUserForAnchorClassify(String userId, EntityDetail anchorEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to add or update a classification on this anchor or member element.- Specified by:
- validateUserForAnchorClassifyin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- classificationName- name of the classification
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorDeclassifypublic void validateUserForAnchorDeclassify(String userId, EntityDetail anchorEntity, String classificationName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to remove a classification from this anchor or member element- Specified by:
- validateUserForAnchorDeclassifyin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- classificationName- name of the classification
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorMemberDeletepublic void validateUserForAnchorMemberDelete(String userId, EntityDetail anchorEntity, EntityDetail obsoleteEntity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete an element and all of its contents.- Specified by:
- validateUserForAnchorMemberDeletein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- obsoleteEntity- original element details
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForElementDeletepublic void validateUserForElementDelete(String userId, EntityDetail entity, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete an element and all of its contents.- Specified by:
- validateUserForElementDeletein interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- entity- original element details
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForAnchorMemberAddpublic void validateUserForAnchorMemberAdd(String userId, EntityDetail anchorEntity, EntityDetail newMemberEntity, String relationshipName, OMRSRepositoryHelper repositoryHelper, String serviceName, String methodName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to attach feedback - such as comments, ratings, tags and likes, to the element.- Specified by:
- validateUserForAnchorMemberAddin interface- OpenMetadataElementSecurity
- Parameters:
- userId- identifier of user
- anchorEntity- anchor details
- newMemberEntity- feedback element
- relationshipName- name of the relationship
- repositoryHelper- helper for OMRS objects
- serviceName- calling service
- methodName- calling method
- Throws:
- UserNotAuthorizedException- the user is not authorized to change this element
 
- 
validateUserForTypeCreatepublic void validateUserForTypeCreate(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException Tests for whether a specific user should have the right to create a type within a repository.- Specified by:
- validateUserForTypeCreatein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- typeDef- type details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForTypeCreatepublic void validateUserForTypeCreate(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) throws UserNotAuthorizedException Tests for whether a specific user should have the right to create a type within a repository.- Specified by:
- validateUserForTypeCreatein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- attributeTypeDef- type details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForTypeReadpublic void validateUserForTypeRead(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific type within a repository.- Specified by:
- validateUserForTypeReadin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- typeDef- type details
- Throws:
- UserNotAuthorizedException- the user is not authorized to retrieve types
 
- 
validateUserForTypeReadpublic void validateUserForTypeRead(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific type within a repository.- Specified by:
- validateUserForTypeReadin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- attributeTypeDef- type details
- Throws:
- UserNotAuthorizedException- the user is not authorized to retrieve types
 
- 
validateUserForTypeUpdatepublic void validateUserForTypeUpdate(String userId, String metadataCollectionName, TypeDef typeDef, TypeDefPatch patch) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update a type within a repository.- Specified by:
- validateUserForTypeUpdatein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- typeDef- type details
- patch- changes to the type
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForTypeDeletepublic void validateUserForTypeDelete(String userId, String metadataCollectionName, TypeDef typeDef) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete a type within a repository.- Specified by:
- validateUserForTypeDeletein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- typeDef- type details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForTypeDeletepublic void validateUserForTypeDelete(String userId, String metadataCollectionName, AttributeTypeDef attributeTypeDef) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete a type within a repository.- Specified by:
- validateUserForTypeDeletein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- attributeTypeDef- type details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForTypeReIdentifypublic void validateUserForTypeReIdentify(String userId, String metadataCollectionName, TypeDef originalTypeDef, String newTypeDefGUID, String newTypeDefName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change the identifiers for a type within a repository.- Specified by:
- validateUserForTypeReIdentifyin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForTypeReIdentifypublic void validateUserForTypeReIdentify(String userId, String metadataCollectionName, AttributeTypeDef originalAttributeTypeDef, String newTypeDefGUID, String newTypeDefName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change the identifiers for a type within a repository.- Specified by:
- validateUserForTypeReIdentifyin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain types
 
- 
validateUserForEntityCreatepublic void validateUserForEntityCreate(String userId, String metadataCollectionName, String entityTypeGUID, InstanceProperties initialProperties, List<Classification> initialClassifications, InstanceStatus initialStatus) throws UserNotAuthorizedException Tests for whether a specific user should have the right to create an instance within a repository.- Specified by:
- validateUserForEntityCreatein 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityReadpublic EntityDetail validateUserForEntityRead(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific instance within a repository.- Specified by:
- validateUserForEntityReadin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Returns:
- entity to return (maybe altered by the connector)
- Throws:
- UserNotAuthorizedException- the user is not authorized to retrieve instances
 
- 
validateUserForEntitySummaryReadpublic void validateUserForEntitySummaryRead(String userId, String metadataCollectionName, EntitySummary instance) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific instance within a repository.- Specified by:
- validateUserForEntitySummaryReadin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Throws:
- UserNotAuthorizedException- the user is not authorized to retrieve instances
 
- 
validateUserForEntityProxyReadpublic void validateUserForEntityProxyRead(String userId, String metadataCollectionName, EntityProxy instance) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific instance within a repository.- Specified by:
- validateUserForEntityProxyReadin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Throws:
- UserNotAuthorizedException- the user is not authorized to retrieve instances
 
- 
validateUserForEntityUpdatepublic void validateUserForEntityUpdate(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update an instance within a repository.- Specified by:
- validateUserForEntityUpdatein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityClassificationAddpublic void validateUserForEntityClassificationAdd(String userId, String metadataCollectionName, EntitySummary instance, String classificationName, InstanceProperties properties) throws UserNotAuthorizedException Tests for whether a specific user should have the right to add a classification to an entity instance within a repository.- Specified by:
- validateUserForEntityClassificationAddin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityClassificationUpdatepublic void validateUserForEntityClassificationUpdate(String userId, String metadataCollectionName, EntitySummary instance, String classificationName, InstanceProperties properties) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update the classification for an entity instance within a repository.- Specified by:
- validateUserForEntityClassificationUpdatein 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityClassificationDeletepublic void validateUserForEntityClassificationDelete(String userId, String metadataCollectionName, EntitySummary instance, String classificationName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete a classification from an entity instance within a repository.- Specified by:
- validateUserForEntityClassificationDeletein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- classificationName- String name for the classification.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityDeletepublic void validateUserForEntityDelete(String userId, String metadataCollectionName, EntityDetail instance) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete an instance within a repository.- Specified by:
- validateUserForEntityDeletein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityRestorepublic void validateUserForEntityRestore(String userId, String metadataCollectionName, String deletedEntityGUID) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete an instance within a repository.- Specified by:
- validateUserForEntityRestorein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- deletedEntityGUID- String unique identifier (guid) for the entity.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityReIdentificationpublic void validateUserForEntityReIdentification(String userId, String metadataCollectionName, EntityDetail instance, String newGUID) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change the guid on an instance within a repository.- Specified by:
- validateUserForEntityReIdentificationin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- newGUID- the new guid for the instance.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityReTypingpublic void validateUserForEntityReTyping(String userId, String metadataCollectionName, EntityDetail instance, TypeDefSummary newTypeDefSummary) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change an instance's type within a repository.- Specified by:
- validateUserForEntityReTypingin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForEntityReHomingpublic void validateUserForEntityReHoming(String userId, String metadataCollectionName, EntityDetail instance, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change the home of an instance within a repository.- Specified by:
- validateUserForEntityReHomingin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipCreatepublic void validateUserForRelationshipCreate(String userId, String metadataCollectionName, String relationshipTypeGUID, InstanceProperties initialProperties, EntitySummary entityOneSummary, EntitySummary entityTwoSummary, InstanceStatus initialStatus) throws UserNotAuthorizedException Tests for whether a specific user should have the right to create an instance within a repository.- Specified by:
- validateUserForRelationshipCreatein 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipReadpublic Relationship validateUserForRelationshipRead(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException Tests for whether a specific user should have read access to a specific instance within a repository.- Specified by:
- validateUserForRelationshipReadin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Returns:
- relationship to return (maybe altered by the connector)
- Throws:
- UserNotAuthorizedException- the user is not authorized to retrieve instances
 
- 
validateUserForRelationshipUpdatepublic void validateUserForRelationshipUpdate(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException Tests for whether a specific user should have the right to update an instance within a repository.- Specified by:
- validateUserForRelationshipUpdatein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipDeletepublic void validateUserForRelationshipDelete(String userId, String metadataCollectionName, Relationship instance) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete an instance within a repository.- Specified by:
- validateUserForRelationshipDeletein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipRestorepublic void validateUserForRelationshipRestore(String userId, String metadataCollectionName, String deletedRelationshipGUID) throws UserNotAuthorizedException Tests for whether a specific user should have the right to delete an instance within a repository.- Specified by:
- validateUserForRelationshipRestorein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- deletedRelationshipGUID- String unique identifier (guid) for the relationship.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipReIdentificationpublic void validateUserForRelationshipReIdentification(String userId, String metadataCollectionName, Relationship instance, String newGUID) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change the guid on an instance within a repository.- Specified by:
- validateUserForRelationshipReIdentificationin interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- metadataCollectionName- configurable name of the metadata collection
- instance- instance details
- newGUID- the new guid for the instance.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipReTypingpublic void validateUserForRelationshipReTyping(String userId, String metadataCollectionName, Relationship instance, TypeDefSummary newTypeDefSummary) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change an instance's type within a repository.- Specified by:
- validateUserForRelationshipReTypingin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateUserForRelationshipReHomingpublic void validateUserForRelationshipReHoming(String userId, String metadataCollectionName, Relationship instance, String newHomeMetadataCollectionId, String newHomeMetadataCollectionName) throws UserNotAuthorizedException Tests for whether a specific user should have the right to change the home of an instance within a repository.- Specified by:
- validateUserForRelationshipReHomingin 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.
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateEntityReferenceCopySavepublic boolean validateEntityReferenceCopySave(String userId, EntityDetail instance) throws UserNotAuthorizedException Tests for whether a reference copy should be saved to the repository.- Specified by:
- validateEntityReferenceCopySavein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- instance- instance details
- Returns:
- flag indicating whether the reference copy should be saved
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateRelationshipReferenceCopySavepublic boolean validateRelationshipReferenceCopySave(String userId, Relationship instance) throws UserNotAuthorizedException Tests for whether a reference copy should be saved to the repository.- Specified by:
- validateRelationshipReferenceCopySavein interface- OpenMetadataRepositorySecurity
- Parameters:
- userId- identifier of user
- instance- instance details
- Returns:
- flag indicating whether the reference copy should be saved
- Throws:
- UserNotAuthorizedException- the user is not authorized to maintain instances
 
- 
validateInboundEventValidate whether an event received from another member of the cohort should be processed by this server.- Specified by:
- validateInboundEventin interface- OpenMetadataEventsSecurity
- Parameters:
- cohortName- name of the cohort
- event- event that has been received
- Returns:
- inbound event to process (maybe updated) or null to indicate that the event should be ignored
 
- 
validateOutboundEventValidate whether an event should be sent to the other members of the cohort by this server.- Specified by:
- validateOutboundEventin interface- OpenMetadataEventsSecurity
- Parameters:
- cohortName- name of the cohort
- event- event that has been received
- Returns:
- outbound event to send (maybe updated) or null to indicate that the event should be ignored
 
 
-