ui.acls.principal.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="principalRuleClusters" type="com.infobip.kafkistry.service.acl.PrincipalAclsClustersPerRuleInspection" -->
<#-- @ftlvariable name="principalClusterRules" type="com.infobip.kafkistry.service.acl.PrincipalAclsInspection" -->
<#-- @ftlvariable name="principalOwned" type="java.lang.Boolean" -->
<#-- @ftlvariable name="selectedRule" type="java.lang.String" -->
<#-- @ftlvariable name="selectedCluster" type="java.lang.String" -->
<#-- @ftlvariable name="pendingPrincipalRequests" type="java.util.List" -->
<#-- @ftlvariable name="gitStorageEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="autopilotEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="autopilotActions" type="java.util.List" -->
<#include "../commonResources.ftl"/>
Kafkistry: Principal acls
<#include "../commonMenu.ftl">
<#import "../common/util.ftl" as util>
<#import "util.ftl" as aclUtil>
<#assign principal = principalRuleClusters.principal>
<#include "../common/backBtn.ftl">
Principal ACLs: ${principal}
<#assign existInRegistry = principalRuleClusters.principalAcls??>
Principal
${principal}
Principal in registry
<@util.inRegistry flag = existInRegistry/>
OK
<@util.ok ok = principalRuleClusters.status.ok/>
Owner
<#if existInRegistry>
${principalRuleClusters.principalAcls.owner}
<#if principalOwned>
<@util.yourOwned what="principal"/>
#if>
<#else>
[none]
#if>
<#if existInRegistry>
Description
${principalRuleClusters.principalAcls.description}
#if>
<#if autopilotEnabled>
Autopilot
<#assign actionsSearchTerm = principal>
<#include "../autopilot/relatedActions.ftl">
#if>
Actions
<#if existInRegistry>
Delete from registry...
Edit ACLs...
#if>
<#assign principalActions = util.enumListToStringList(principalRuleClusters.availableOperations)>
<#if !existInRegistry && principalActions?seq_contains("IMPORT_PRINCIPAL")>
Import to registry...
#if>
<#if existInRegistry && principalActions?seq_contains("EDIT_PRINCIPAL_ACLS")>
Suggest edit...
#if>
<#if existInRegistry && principalActions?seq_contains("CREATE_MISSING_ACLS")>
Create all missing ACLs...
#if>
<#if principalActions?seq_contains("DELETE_UNWANTED_ACLS")>
Delete all unwanted ACLs...
#if>
<#if gitStorageEnabled>
Pending changes
<#assign pendingRequests = pendingPrincipalRequests>
<#include "../common/pendingChanges.ftl">
#if>
<#if selectedRule?? || !(selectedCluster??)>
<#assign ruleClusters = true>
<#assign clusterRules = false>
<#else>
<#assign ruleClusters = false>
<#assign clusterRules = true>
#if>
style="display: none;"#if>>
<#include "principalRuleClusters.ftl">
style="display: none;"#if>>
<#include "principalClusterRules.ftl">
<#import "../quotas/util.ftl" as quotaUtil>
Affected by entity quotas
<#if principalClusterRules.affectingQuotaEntities?size == 0>
(none)
<#else>
Quota entity
Affected by on clusters
<#list principalClusterRules.affectingQuotaEntities as entity, presence>
<@quotaUtil.entity entity=entity/>
<@util.presence presence=presence/>
#list>
#if>
<#if existInRegistry>
<#if gitStorageEnabled>
<#assign historyUrl = appUrl.acls().showPrincipalHistory(principal)>
<#include "../git/entityHistoryContainer.ftl">
#if>
Principal ACLs in registry
File name:
#if>
<#include "../common/pageBottom.ftl">