{{!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --}}
Policy ID :  
Policy Name: {{policyName}}
Service Name: {{repoName}}
{{#if zoneName}}
Zone Name: {{zoneName}}
{{/if}} {{#if repositoryType}}
Repository Type: {{repositoryType}}
{{/if}}
Created Date: {{objectCreatedDate}}
Created By: {{userName}}
{{#if collection.length}}
Policy Details:

Fields

    {{#each collection}}
  1. {{./this.attributes.attributeName}}
  2. {{/each}}

New Value

    {{#each collection}} {{#compare ./this.attributes.newValue "eq" ''}}
  1. --
  2. {{else}}
  3. {{./this.attributes.newValue}}
  4. {{/compare}} {{/each}}
{{/if}} {{#if newPolicyValidityPeriod}}
Validity Period:

New Value

{{#each newPolicyValidityPeriod}}
  1. Start Date: {{#if this.startTime}} {{this.startTime}} {{else}} -- {{/if}}
  2. End Date: {{#if this.endTime}} {{this.endTime}} {{else}} -- {{/if}}
  3. Time Zone: {{#if this.timeZone}} {{this.timeZone}} {{else}} -- {{/if}}

{{/each}}
{{/if}} {{#if newPolicyConditions}}
Policy Conditions:

New Value

{{#each newPolicyConditions}}
  • {{#if this.type}} {{this.type}}: [{{this.values}}] {{else}} -- {{/if}}
  • {{/each}}
    {{/if}} {{#if newPolicyItems}}
    Allow PolicyItems:

    New Value

    {{#each newPolicyItems}}
    1. Roles: {{#if_eq this.roles compare=0}} <empty> {{else}} {{this.roles}} {{/if_eq}}
    2. Groups: {{#if_eq this.groups compare=0}} <empty> {{else}} {{this.groups}} {{/if_eq}}
    3. Users: {{#if_eq this.users compare=0}} <empty> {{else}} {{this.users}} {{/if_eq}}
    4. Permissions: {{#each this.permissions}} {{this}} , {{/each}}
    5. {{#if this.conditions}}
    6. Conditions: {{#each this.conditions}} {{this.type}} : [{{this.values}}], {{/each}}
    7. {{/if}}
    8. Delegate Admin:{{this.delegateAdmin}}

    {{/each}}
    {{/if}} {{#if newAllowExceptionPolicyItems}}
    Allow Exceptions:

    New Value

    {{#each newAllowExceptionPolicyItems}}
    1. Roles: {{#if_eq this.roles compare=0}} <empty> {{else}} {{this.roles}} {{/if_eq}}
    2. Groups: {{#if_eq this.groups compare=0}} <empty> {{else}} {{this.groups}} {{/if_eq}}
    3. Users: {{#if_eq this.users compare=0}} <empty> {{else}} {{this.users}} {{/if_eq}}
    4. Permissions: {{#each this.permissions}} {{this}} , {{/each}}
    5. {{#if this.conditions}}
    6. Conditions: {{#each this.conditions}} {{this.type}} : [{{this.values}}], {{/each}}
    7. {{/if}}
    8. Delegate Admin:{{this.delegateAdmin}}

    {{/each}}
    {{/if}} {{#if newDenyPolicyItems}}
    Deny PolicyItems:

    New Value

    {{#each newDenyPolicyItems}}
    1. Roles: {{#if_eq this.roles compare=0}} <empty> {{else}} {{this.roles}} {{/if_eq}}
    2. Groups: {{#if_eq this.groups compare=0}} <empty> {{else}} {{this.groups}} {{/if_eq}}
    3. Users: {{#if_eq this.users compare=0}} <empty> {{else}} {{this.users}} {{/if_eq}}
    4. Permissions: {{#each this.permissions}} {{this}} , {{/each}}
    5. {{#if this.conditions}}
    6. Conditions: {{#each this.conditions}} {{this.type}}: [{{this.values}}], {{/each}}
    7. {{/if}}
    8. Delegate Admin:{{this.delegateAdmin}}

    {{/each}}
    {{/if}} {{#if newDenyExceptionPolicyItems}}
    Deny Exception PolicyItems:

    New Value

    {{#each newDenyExceptionPolicyItems}}
    1. Roles: {{#if_eq this.roles compare=0}} <empty> {{else}} {{this.roles}} {{/if_eq}}
    2. Groups: {{#if_eq this.groups compare=0}} <empty> {{else}} {{this.groups}} {{/if_eq}}
    3. Users: {{#if_eq this.users compare=0}} <empty> {{else}} {{this.users}} {{/if_eq}}
    4. Permissions: {{#each this.permissions}} {{this}} , {{/each}}
    5. {{#if this.conditions}}
    6. Conditions: {{#each this.conditions}} {{this.type}} : [{{this.values}}], {{/each}}
    7. {{/if}}
    8. Delegate Admin:{{this.delegateAdmin}}

    {{/each}}
    {{/if}} {{#if newMaskPolicyItems}}
    Masking Policy Items:

    New Value

    {{#each newMaskPolicyItems}}
    1. Roles: {{#if_eq this.roles compare=0}} <empty> {{else}} {{this.roles}} {{/if_eq}}
    2. Groups: {{#if_eq this.groups compare=0}} <empty> {{else}} {{this.groups}} {{/if_eq}}
    3. Users: {{#if_eq this.users compare=0}} <empty> {{else}} {{this.users}} {{/if_eq}}
    4. Accesses: {{#each this.accesses}} {{this.type}} , {{/each}}
    5. {{#if this.dataMaskInfo}}
    6. Data Mask Types: {{this.dataMaskInfo.dataMaskType}}
    7. {{/if}}

    {{/each}}
    {{/if}} {{#if newRowFilterPolicyItems}}
    Row Level Filter Policy Items:

    New Value

    {{#each newRowFilterPolicyItems}}
    1. Roles: {{#if_eq this.roles compare=0}} <empty> {{else}} {{this.roles}} {{/if_eq}}
    2. Groups: {{#if_eq this.groups compare=0}} <empty> {{else}} {{this.groups}} {{/if_eq}}
    3. Users: {{#if_eq this.users compare=0}} <empty> {{else}} {{this.users}} {{/if_eq}}
    4. Accesses: {{#each this.accesses}} {{this.type}} , {{/each}}
    5. {{#if this.rowFilterInfo}}
    6. Row Level Filter: {{this.rowFilterInfo.filterExpr}}
    7. {{/if}}

    {{/each}}
    {{/if}}