private void updateNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity,List<NamespacePermissionEnum> namespacePermissions){
  userNamespaceAuthorizationEntity.setReadPermission(namespacePermissions.contains(NamespacePermissionEnum.READ));
  userNamespaceAuthorizationEntity.setWritePermission(namespacePermissions.contains(NamespacePermissionEnum.WRITE));
  userNamespaceAuthorizationEntity.setExecutePermission(namespacePermissions.contains(NamespacePermissionEnum.EXECUTE));
  userNamespaceAuthorizationEntity.setGrantPermission(namespacePermissions.contains(NamespacePermissionEnum.GRANT));
}

private void updateNamespacePermissions ( UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity , List < NamespacePermissionEnum > namespacePermissions ) { userNamespaceAuthorizationEntity . setReadPermission ( namespacePermissions . contains ( NamespacePermissionEnum . READ ) ) ; userNamespaceAuthorizationEntity . setWritePermission ( namespacePermissions . contains ( NamespacePermissionEnum . WRITE ) ) ; userNamespaceAuthorizationEntity . setExecutePermission ( namespacePermissions . contains ( NamespacePermissionEnum . EXECUTE ) ) ; userNamespaceAuthorizationEntity . setGrantPermission ( namespacePermissions . contains ( NamespacePermissionEnum . GRANT ) ) ; }
sets relative flags on the user namespace authorization entity as per specified list of namespace permissions .
