diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java index 32c7e740da..6dfe4d629c 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java @@ -97,21 +97,21 @@ protected void isAuthorizedToMove(String typeName, AtlasEntityHeader sourceDomai AtlasEntityHeader headerToAuth = new AtlasEntityHeader(typeName); if (sourceDomain != null) { - //Update sub-domains on source parent + //Update sub-domains/product on source parent String qualifiedNameToAuth = sourceDomain.getAttribute(QUALIFIED_NAME) + qualifiedNameToAuthSuffix; headerToAuth.setAttribute(QUALIFIED_NAME, qualifiedNameToAuth); AtlasAuthorizationUtils.verifyAccess(new AtlasEntityAccessRequest(typeRegistry, AtlasPrivilege.ENTITY_UPDATE, headerToAuth), - DATA_DOMAIN_ENTITY_TYPE, AtlasPrivilege.ENTITY_UPDATE, sourceDomain.getAttribute(NAME)); + AtlasPrivilege.ENTITY_UPDATE.name(), " " , typeName, " : ", qualifiedNameToAuth); } if (targetDomain != null) { - //Create sub-domains on target parent + //Create sub-domains/product on target parent String qualifiedNameToAuth = targetDomain.getAttribute(QUALIFIED_NAME) + qualifiedNameToAuthSuffix; headerToAuth.setAttribute(QUALIFIED_NAME, qualifiedNameToAuth); AtlasAuthorizationUtils.verifyAccess(new AtlasEntityAccessRequest(typeRegistry, AtlasPrivilege.ENTITY_CREATE, headerToAuth), - DATA_DOMAIN_ENTITY_TYPE, AtlasPrivilege.ENTITY_CREATE, targetDomain.getAttribute(NAME)); + AtlasPrivilege.ENTITY_CREATE.name(), " " , typeName, " : ", qualifiedNameToAuth); } }