config-browser.showConfig.ftl Maven / Gradle / Ivy
<#--
/*
* $Id$
*
* 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.
*/
-->
<#include "tigris-macros.ftl"/>
<@startPage pageTitle="Action information"/>
Action information - ${actionName}
Action name: ${actionName}
Namespace: ${namespace}
Action class: ${config.className}
Action method: <#if config.methodName?exists>${config.methodName}#if>
Parameters: <#list config.params?keys as p>
${p}
#list>
Default location:
${base}${namespace}/${actionName}<#if extension != "">.${extension}#if>
<@s.url id="url" action="showConfig" includeParams="none">
<@s.param name="namespace">${namespace}@s.param>
<@s.param name="actionName">${actionName}@s.param>
@s.url>
<#assign url = url + "&detailView=">
<#assign detailsSelected = false>
<#assign exceptionsSelected = false>
<#assign interceptorsSelected = false>
<#assign propertiesSelected = false>
<#assign validatorsSelected = false>
<#if detailView == "results">
<#assign detailsSelected = true>
<#elseif detailView == "exceptions">
<#assign exceptionsSelected = true>
<#elseif detailView == "interceptors">
<#assign interceptorsSelected = true>
<#elseif detailView == "properties">
<#assign propertiesSelected = true>
<#else>
<#assign validatorsSelected = true>
#if>
<@startTabs/>
<#call tab name="Results" url="${url}results" isSelected="${detailsSelected?string}"/>
<#call tab name="Exception Mappings" url="${url}exceptions" isSelected="${exceptionsSelected?string}"/>
<#call tab name="Interceptors" url="${url}interceptors" isSelected="${interceptorsSelected?string}"/>
<#call tab name="Properties" url="${url}properties" isSelected="${propertiesSelected?string}"/>
<#call tab name="Validators" url="${url}validators" isSelected="${validatorsSelected?string}"/>
<@endTabs/>
<#if detailsSelected>
Name Type Parameters
<#assign count=config.results?size>
<#list config.results.values() as r>
class="b"<#else>class="a"#if>>
${r.name}
${r.className}
<#list r.params.keySet() as p>
${p} = ${r.params[p]}
#list>
#list>
<#elseif exceptionsSelected>
Name Exception Class Name Result Parameters
<#list config.exceptionMappings as e>
class="b"<#else>class="a"#if>>
${e.name}
${e.exceptionClassName}
${e.result}
<#list e.params.keySet() as p>
${p} = ${e.params[p]}
#list>
#list>
<#elseif interceptorsSelected>
Name Type
<#list config.interceptors as i>
class="b"<#else>class="a"#if>>
${action.stripPackage(i.interceptor.class)}
${i.interceptor.class.name}
#list>
<#elseif propertiesSelected>
Name Type
<#list properties as prop>
class="b"<#else>class="a"#if>>
${prop.name}
${prop.propertyType.name}
#list>
<#else>
<@s.action name="showValidators" executeResult="true">
<@s.param name="clazz" value="'${config.className}'"/>
<@s.param name="context" value="'${namespace}'"/>
@s.action>
#if>
<#call endPage>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy