aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/resources/struts.xml
diff options
context:
space:
mode:
Diffstat (limited to 'id/ConfigWebTool/src/main/resources/struts.xml')
-rw-r--r--id/ConfigWebTool/src/main/resources/struts.xml194
1 files changed, 175 insertions, 19 deletions
diff --git a/id/ConfigWebTool/src/main/resources/struts.xml b/id/ConfigWebTool/src/main/resources/struts.xml
index 83234ba3c..a729f5f57 100644
--- a/id/ConfigWebTool/src/main/resources/struts.xml
+++ b/id/ConfigWebTool/src/main/resources/struts.xml
@@ -16,6 +16,23 @@
<interceptor-ref name="defaultStack"/>
</action>
+ <action name="authenticate" method="authenticate" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
+ <result name="success" type="redirectAction">
+ <param name="actionName">main</param>
+ <param name="namespace">/secure</param>
+ </result>
+ <result name="error">/index.jsp</result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="logout" method="logout" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
+ <result name="success" type="redirectAction">
+ <param name="actionName">index</param>
+ <param name="namespace">/</param>
+ </result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
<action name="error" method="error" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
<result name="error">/error.jsp</result>
<interceptor-ref name="defaultStack"/>
@@ -25,45 +42,70 @@
<package name="secure" namespace="/secure" extends="struts-default">
<default-interceptor-ref name="defaultStack"/>
-
+
+ <action name="index">
+ <result type="redirectAction">
+ <param name="actionName">index</param>
+ <param name="namespace">/</param>
+ </result>
+ </action>
+
<action name="main" method="generateMainFrame" class="at.gv.egovernment.moa.id.configuration.struts.action.MainAction">
<result name="success">/jsp/mainpage.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
- </action>
-
+ </action>
+
<action name="listallapplications" method="listAllOnlineAppliactions" class="at.gv.egovernment.moa.id.configuration.struts.action.ListOAsAction">
<result name="success">/jsp/listOAs.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="searchOAInit" method="searchOAInit" class="at.gv.egovernment.moa.id.configuration.struts.action.ListOAsAction">
<result name="success">/jsp/searchOAs.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="searchOA" method="searchOA" class="at.gv.egovernment.moa.id.configuration.struts.action.ListOAsAction">
<result name="success">/jsp/searchOAs.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="newOA" method="newOA" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
<result name="editOA">/jsp/editOAGeneral.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="loadOA" method="inital" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
<result name="editOA">/jsp/editOAGeneral.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
@@ -71,27 +113,39 @@
<result name="success" type="chain">main</result>
<result name="error_validation">/jsp/editOAGeneral.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="cancleandbackOA" method="cancleAndBackOA" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
<result type="chain">main</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="deleteOA" method="deleteOA" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
<result type="chain">main</result>
<result name="error_validation">/jsp/editOAGeneral.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
<action name="loadGeneralConfig" method="loadConfig" class="at.gv.egovernment.moa.id.configuration.struts.action.EditGeneralConfigAction">
<result name="success">/jsp/editMOAConfig.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<result name="notallowed" type="chain">main</result>
<interceptor-ref name="defaultStack"/>
</action>
@@ -100,7 +154,10 @@
<result name="success" type="chain">main</result>
<result name="error_validation">/jsp/editMOAConfig.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<result name="notallowed" type="chain">main</result>
<interceptor-ref name="defaultStack"/>
</action>
@@ -108,17 +165,116 @@
<action name="backGeneralConfig" method="back" class="at.gv.egovernment.moa.id.configuration.struts.action.EditGeneralConfigAction">
<result name="success" type="chain">main</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="importexport" method="init" class="at.gv.egovernment.moa.id.configuration.struts.action.ImportExportAction">
+ <result name="success">/jsp/importexport.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <result name="notallowed" type="chain">main</result>
<interceptor-ref name="defaultStack"/>
</action>
- <action name="addTestUser" method="createTestUser" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
- <result name="success" type="chain">main</result>
+ <action name="importlegacy" method="importLegacyConfig" class="at.gv.egovernment.moa.id.configuration.struts.action.ImportExportAction">
+ <result name="success">/jsp/mainpage.jsp</result>
+ <result name="error_validation">/jsp/importexport.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <result name="notallowed">/jsp/mainpage.jsp</result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="importConfig" method="importXMLConfig" class="at.gv.egovernment.moa.id.configuration.struts.action.ImportExportAction">
+ <result name="success">/jsp/mainpage.jsp</result>
+ <result name="error_validation">/jsp/importexport.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <result name="notallowed">/jsp/mainpage.jsp</result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="exportConfig" method="downloadXMLConfig" class="at.gv.egovernment.moa.id.configuration.struts.action.ImportExportAction">
+ <result name="success" type="stream">
+ <param name="contentType">application/octet-stream</param>
+ <param name="inputName">fileInputStream</param>
+ <param name="contentDisposition">attachment;filename="MOAID-2.0_config.xml"</param>
+ <param name="bufferSize">1024</param>
+ </result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <result name="error_validation">/jsp/importexport.jsp</result>
+ <result name="notallowed">/jsp/mainpage.jsp</result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="usermanagementInit" method="init" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
+ <result name="success">/jsp/usermanagement.jsp</result>
+ <result name="notallowed">/jsp/edituser.jsp</result>
<result name="error">/error.jsp</result>
- <result name="reauthentication">/index.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
<interceptor-ref name="defaultStack"/>
</action>
-
+
+ <action name="createUser" method="createuser" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
+ <result name="success">/jsp/edituser.jsp</result>
+ <result name="notallowed" type="chain">main</result>
+ <result name="error">/error.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="editUser" method="edituser" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
+ <result name="success">/jsp/edituser.jsp</result>
+ <result name="error">/error.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="deleteUser" method="deleteuser" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
+ <result name="success" type="chain">usermanagementInit</result>
+ <result name="notallowed" type="chain">main</result>
+ <result name="error">/error.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
+ <action name="saveUser" method="saveuser" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
+ <result name="success" type="chain">usermanagementInit</result>
+ <result name="error_validation">/jsp/edituser.jsp</result>
+ <result name="notallowed" type="chain">main</result>
+ <result name="error">/error.jsp</result>
+ <result name="reauthentication" type="redirectAction">
+ <param name="actionName">logout</param>
+ <param name="namespace">/</param>
+ </result>
+ <interceptor-ref name="defaultStack"/>
+ </action>
+
</package>
</struts> \ No newline at end of file