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

<struts>
  
	<constant name="struts.custom.i18n.resources" value="webpages" />    
    
	<package name="default" namespace="/" extends="struts-default">
	
	    <default-interceptor-ref name="defaultStack"/>
	  
 		 <action name="index" method="start" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
			  <result name="success">/index.jsp</result>
			  <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="pvp2login" method="pvp2login" 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="newuser">/jsp/newUserRequest.jsp</result>
			  <result name="error">/index.jsp</result>
			  <interceptor-ref name="defaultStack"/>
		 </action>
 		 
 		 <action name="requestNewUser" method="requestNewUser" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
 		    <result name="newuser">/jsp/newUserRequest.jsp</result>
			  <result name="success">/index.jsp</result>
			  <result name="error">/index.jsp</result>
			  <interceptor-ref name="defaultStack"/>
		 </action>
 		 
 		  <action name="mailAddressVerification" method="mailAddressVerification" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
 		    <result name="error">/index.jsp</result>
			  <result name="success">/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>
	      <result name="ssologout" type="redirect">${ssologouturl}</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"/>
		 </action>		    
	</package>
	
	<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" type="redirectAction">
	          <param name="actionName">logout</param>
            <param name="namespace">/</param> 
	     </result>
			<interceptor-ref name="defaultStack"/>
		</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" 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" 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" 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="success" 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="loadOA" method="inital" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
			<result name="editOA">/jsp/editOAGeneral.jsp</result>
			<result name="success" 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="bkuFramePreview" method="bkuFramePreview" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
			<result type="stream">
    		<param name="contentType">text/html</param>
    		<param name="inputName">stream</param>
    	</result>
			<interceptor-ref name="defaultStack"/>
		</action>
 		
 		 <action name="saveOA" method="saveOA" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
			<result name="success" type="chain">${nextPage}</result>
			<result name="error_validation">/jsp/editOAGeneral.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="cancleandbackOA" method="cancleAndBackOA" class="at.gv.egovernment.moa.id.configuration.struts.action.EditOAAction">
			<result type="chain">${nextPage}</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 name="success" type="chain">${nextPage}</result>
			<result name="error_validation">/jsp/editOAGeneral.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" 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="saveGeneralConfig" method="saveConfig" class="at.gv.egovernment.moa.id.configuration.struts.action.EditGeneralConfigAction">
			<result name="success" type="chain">main</result>
			<result name="error_validation">/jsp/editMOAConfig.jsp</result>
			<result name="error">/error.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="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" 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="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>
			<result name="error">/error.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>
			<result name="error">/error.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>
			<result name="error">/error.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" 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">${nextPage}</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">${nextPage}</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>
		
		<action name="sendVerificationMail" method="sendVerificationMail" class="at.gv.egovernment.moa.id.configuration.struts.action.UserManagementAction">
			<result type="stream">
    		<param name="contentType">text/html</param>
    		<param name="inputName">stream</param>
    	</result>
			<interceptor-ref name="defaultStack"/>
		</action>
		
		<action name="adminRequestsInit" method="init" class="at.gv.egovernment.moa.id.configuration.struts.action.OpenAdminRequestsAction">
			<result name="success">/jsp/openadminrequests.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>