ui.acls.affectingAcls.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="affectingAcls" type="java.util.List" -->
<#import "util.ftl" as aclUtil>
<#macro aclRuleRow aclRule>
<#-- @ftlvariable name="aclRule" type="com.infobip.kafkistry.kafka.KafkaAclRule" -->
${aclRule.host}
<@aclUtil.resource resource = aclRule.resource/>
<@aclUtil.operation type = aclRule.operation.type/>
<@aclUtil.policy policy = aclRule.operation.policy/>
#macro>
Affected by ACL rules (${affectingAcls?size})
<#if affectingAcls?size == 0>
(none)
<#else>
Principal
Host
Resource
Operation
Policy
<#assign wildcardAcls = []>
<#assign acls = []>
<#list affectingAcls as aclRule>
<#if aclRule.resource.name == '*'>
<#assign wildcardAcls = wildcardAcls + [aclRule]>
<#else>
<#assign acls = acls + [aclRule]>
#if>
#list>
<#list acls as aclRule>
<@aclRuleRow aclRule=aclRule/>
#list>
<#if wildcardAcls?size gt 0>
▼
△
<#list wildcardAcls as aclRule>
<@aclRuleRow aclRule=aclRule/>
#list>
#if>
#if>