All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.agiletec.apsadmin.portal.page.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
    "http://struts.apache.org/dtds/struts-2.5.dtd">

<struts>

    <package name="core_do/rs/Page" namespace="/do/rs/Page" extends="entando-default">

        <interceptors>
            <interceptor name="json" class="org.apache.struts2.json.JSONInterceptor" />
            <interceptor-stack name="jsonStack">
                <interceptor-ref name="json">
                    <param name="enableSMD">true</param>
                </interceptor-ref>
            </interceptor-stack>
        </interceptors>

        <action name="setOffline" class="pageAction" method="doSetOffline">
            <result type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="pageTree" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="references" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">pageResponse</param>
            </result>
            <interceptor-ref name="entandoActionLogger" >
                <param name="includeActionProperties">pageCode</param>
            </interceptor-ref>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="setOnline" class="pageAction" method="doSetOnline">
            <result type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="pageTree" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="references" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">pageResponse</param>
            </result>
            <interceptor-ref name="entandoActionLogger" >
                <param name="includeActionProperties">pageCode</param>
            </interceptor-ref>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="detail" class="pageAction" method="pageDetails">
            <result type="json">
                <param name="root">pageDetailResponse</param>
            </result>
            <result name="pageTree" type="json">
                <param name="root">pageDetailResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="moveWidget" class="pageConfigAction" method="move">
            <result type="json">
                <param name="root">moveWidgetResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">moveWidgetResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">moveWidgetResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="joinWidget" class="pageConfigAction" method="joinWidgetJson">
            <param name="joinWidgetRequest">true</param>
            <result type="json">
                <param name="root">joinWidgetResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">joinWidgetResponse</param>
            </result>
            <result name="pageTree" type="json">
                <param name="root">joinWidgetResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">joinWidgetResponse</param>
            </result>
            <result name="configureSpecialWidget" type="json">
                <param name="root">joinWidgetResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="deleteWidget" class="pageConfigAction" method="deleteWidgetJson">
            <result type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <result name="pageTree" type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="restoreOnlineConfig" class="pageConfigAction" method="restoreOnlineConfig">
            <result type="json">
                <param name="root">restoreOnlineConfigResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <result name="pageTree" type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">deleteWidgetResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="status" class="pageFinderAction">
            <result type="json">
                <param name="root">pagesStatusResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">pagesStatusResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">pagesStatusResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">enterBackend</param>
            </interceptor-ref>
        </action>

        <action name="lastUpdated" class="pageFinderAction" method="getLastUpdated">
            <result type="json">
                <param name="root">lastUpdatePagesResponse</param>
            </result>
            <result name="input" type="json">
                <param name="root">lastUpdatePagesResponse</param>
            </result>
            <result name="failure" type="json">
                <param name="root">lastUpdatePagesResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">enterBackend</param>
            </interceptor-ref>
        </action>

        <action name="moveTree" class="pageTreeAction" method="moveTree">
            <result name="pageTree" type="json">
                <param name="root">pageResponse</param>
            </result>
            <result name="success" type="json">
                <param name="root">pageResponse</param>
            </result>
            <interceptor-ref name="jsonStack" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

    </package>

    <package name="core_do/ABSTRACT/Page" extends="entando-default" abstract="true">

        <global-results>
            <result name="pageTree" type="chain">
                <param name="actionName">viewTree</param>
                <param name="selectedNode">${selectedNode}</param>
            </result>
        </global-results>

        <action name="new" class="pageAction" method="newPage">
            <result type="tiles">admin.Page.entry</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="edit" class="pageAction" method="edit">
            <result type="tiles">admin.Page.entry</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="copy" class="pageAction" method="copy">
            <result type="tiles">admin.Page.entry</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="entryEdit*" class="pageAction" method="entryEdit" >
            <result type="tiles">admin.Page.entry</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="trash" class="pageAction" method="trash">
            <result name="references" type="tiles">admin.Page.references</result>
            <result type="tiles">admin.Page.trash</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="delete" class="pageAction" method="delete">
            <result name="references" type="tiles">admin.Page.references</result>
            <result type="redirectAction">
                <param name="actionName">viewTree</param>
                <param name="selectedNode">${selectedNode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="save" class="pageAction" method="save">
            <result name="input" type="tiles">admin.Page.entry</result>
            <result type="redirectAction">
                <param name="actionName">viewTree</param>
                <param name="selectedNode">${pageCode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoValidationStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="saveConfigure" class="pageAction" method="saveAndConfigure">
            <result name="input" type="tiles">admin.Page.entry</result>
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="pageCode">${selectedNode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoValidationStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="detail" class="pageAction" method="showDetail">
            <result type="tiles">admin.Page.detail</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="printPageDetails" class="pageAction" method="showDetail">
            <result type="dispatcher">/WEB-INF/apsadmin/jsp/portal/include/pageInfo_details.jsp</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="checkSetOffline" class="pageAction" method="checkSetOffline">
            <result name="references" type="tiles">admin.Page.references</result>
            <result name="input" type="chain">viewTree</result>
            <result type="tiles">admin.Page.offline</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="doSetOffline" class="pageAction" method="doSetOffline">
            <result name="references" type="tiles">admin.Page.references</result>
            <result name="input" type="chain">viewTree</result>
            <result type="redirectAction">
                <param name="actionName">viewTree</param>
                <param name="selectedNode">${pageCode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="checkSetOnline" class="pageAction" method="checkSetOnline">
            <result name="input" type="chain">viewTree</result>
            <result type="tiles">admin.Page.online</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="doSetOnline" class="pageAction" method="doSetOnline">
            <result name="input" type="chain">viewTree</result>
            <result type="redirectAction">
                <param name="actionName">viewTree</param>
                <param name="selectedNode">${pageCode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="doConfigure" class="pageConfigAction" >
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="pageCode">${selectedNode}</param>
            </result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="preview" class="pagePreviewAction" method="preview" >
            <result type="dispatcher">
                <param name="location">/WEB-INF/apsadmin/jsp/portal/previewPage.jsp</param>
                <param name="token">${previewToken}</param>
            </result>
            <interceptor-ref name="entandoFreeStack">
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="setDefaultWidgets" class="pageAction" method="setDefaultWidgets">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="pageCode">${pageCode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="setViewerPage" class="pageAction" method="setViewerPageAPI">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="pageCode">${pageCode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

    </package>

    <package name="core_do/Page/Console" namespace="/do/Page/Console" extends="core_do/ABSTRACT/Page">

        <action name="viewTree" class="pageConfigAction" >
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="pageCode">${selectedNode}</param>
            </result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="viewTreeMenu" class="pageTreeMenuAction" method="intro">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <result name="noRoot" type="redirectAction">
            	<param name="namespace">/do/Page</param>
                <param name="actionName">viewTree</param>
            </result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
            <interceptor-ref name="redirectMessage" />
        </action>

        <action name="openCloseTreeNode" class="pageTreeMenuAction" method="buildTree">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="configure" class="pageTreeMenuAction" method="intro">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <result name="noRoot" type="redirectAction">
            	<param name="namespace">/do/Page</param>
                <param name="actionName">viewTree</param>
            </result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
            <interceptor-ref name="redirectMessage" />
        </action>

    </package>


    <package name="core_do/Page" namespace="/do/Page" extends="core_do/ABSTRACT/Page">

        <action name="viewTree" class="pageTreeAction">
            <result type="tiles">admin.Page.viewTree</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="systemParams" class="pageSettingsAction" method="configSystemParams">
            <result type="tiles">admin.Page.settings</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">superuser</param>
            </interceptor-ref>
            <interceptor-ref name="redirectMessage" />
        </action>

        <action name="updateSystemParams" class="pageSettingsAction" method="updateSystemParams">
            <result type="redirectAction">systemParams</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">superuser</param>
            </interceptor-ref>
            <interceptor-ref name="redirectMessage" />
        </action>

        <action name="viewTreeMenu" class="pageTreeMenuAction" method="intro">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="configure" class="pageTreeMenuAction" method="intro">
            <result type="tiles">admin.Page.viewTreeMenu</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
                <param name="chain.includeParameters">fieldErrors,actionErrors,actionMessages</param>
            </interceptor-ref>
        </action>

        <action name="moveUp" class="pageTreeAction" method="moveUp">
            <result type="tiles">admin.Page.viewTree</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="moveDown" class="pageTreeAction" method="moveDown">
            <result type="tiles">admin.Page.viewTree</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="openCloseTreeNode" class="pageTreeAction" method="buildTree">
            <result type="tiles">admin.Page.viewTree</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="joinExtraGroup*" class="pageAction" method="joinExtraGroup">
            <result type="tiles">admin.Page.entry</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="removeExtraGroup*" class="pageAction" method="removeExtraGroup">
            <result type="tiles">admin.Page.entry</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="search" class="pageFinderAction" method="search">
            <result name="pageTree" type="redirectAction">viewTree</result>
            <result name="input" type="tiles">admin.Page.searchResult</result>
            <result type="tiles">admin.Page.searchResult</result>
            <interceptor-ref name="entandoValidationStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <!-- ######### INIZIO OPERAZIONI CONFIGURAZIONE FRAME PAGINA ######### -->

        <action name="editFrame" class="pageConfigAction" method="editFrame">
            <result name="configureSpecialWidget" type="chain">
                <param name="namespace">/do/Page/SpecialWidget</param>
                <param name="actionName">${showletAction}</param>
            </result>
            <result type="tiles">admin.Page.editFrame</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="joinWidget" class="pageConfigAction" method="joinWidget">
            <result name="input" type="tiles">admin.Page.editFrame</result>
            <result name="configureSpecialWidget" type="chain">
                <param name="namespace">/do/Page/SpecialWidget</param>
                <param name="actionName">${widgetAction}</param>
            </result>
            <result type="tiles">admin.Page.configure</result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="trashWidgetFromPage" class="pageConfigAction" method="trashWidget">
            <result type="tiles">admin.Page.showlet.trash</result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="deleteWidgetFromPage" class="pageConfigAction" method="deleteWidget">
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="pageCode">${pageCode}</param>
            </result>
            <interceptor-ref name="entandoActionLogger" />
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="moveWidgetUp" class="pageTreeAction" method="moveWidgetUp">
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="selectedNode">${selectedNode}</param>
            </result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <action name="moveWidgetDown" class="pageTreeAction" method="moveWidgetDown">
            <result type="redirectAction">
                <param name="actionName">configure</param>
                <param name="selectedNode">${selectedNode}</param>
            </result>
            <interceptor-ref name="entandoDefaultStack">
                <param name="requestAuth.requiredPermission">managePages</param>
            </interceptor-ref>
        </action>

        <!-- ######### FINE OPERAZIONI CONFIGURAZIONE FRAME PAGINA ######### -->

    </package>

</struts>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy