<?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" />    
  <constant name="struts.mapper.action.prefix.enabled" value="true" />
  <constant name="struts.mapper.action.prefix.crossNamespaces" value="false" />
  <constant name="struts.xwork.chaining.copyErrors" value="true"/>
  <constant name="struts.xwork.chaining.copyMessages" value="true"/>
    
	<package name="default" namespace="/" extends="struts-default">
	
	
		
 		<interceptors>
 				<!-- <interceptor name="HibernateSessionInterceptor" class="at.gv.egovernment.moa.id.configuration.struts.interceptor.HibernateSessionInterceptor"/> -->
 		
	    	<interceptor-stack name="OwnStack">
	    		<!-- <interceptor-ref name="HibernateSessionInterceptor" /> -->
 	  			<interceptor-ref name="params">
  					<param
							name="excludeParams">^class\..*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^method:.*</param>
					</interceptor-ref>
					<interceptor-ref name="defaultStack" />	
				</interceptor-stack>
	  	</interceptors>
	  	<default-interceptor-ref name="OwnStack"/>
	  
 		 <action name="index" method="start" class="at.gv.egovernment.moa.id.configuration.struts.action.IndexAction">
			  <result name="success">/index.jsp</result>
			  <result name="loginWithOutAuth" type="redirectAction">
	          <param name="actionName">main</param>
            <param name="namespace">/secure</param>
	      </result>
			  <interceptor-ref name="OwnStack"/>
		 </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="OwnStack"/>
		 </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="OwnStack"/>
		 </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="OwnStack"/>
		 </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="OwnStack"/>
		 </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="OwnStack"/>
		 </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="OwnStack"/>
		 </action>		    
	</package>
	
	<package name="secure" namespace="/secure" extends="struts-default">
	    
	   	<interceptors>
	   		<!-- <interceptor name="HibernateSessionInterceptor" class="at.gv.egovernment.moa.id.configuration.struts.interceptor.HibernateSessionInterceptor"/> -->
	   	
	    	<interceptor-stack name="OwnStack">
	    		<!-- <interceptor-ref name="HibernateSessionInterceptor" /> -->
	  			<interceptor-ref name="params">
  					<param
						name="excludeParams">^class\..*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^method:.*</param>
					</interceptor-ref>
					<interceptor-ref name="chain"/>
					<interceptor-ref name="defaultStack" />
				</interceptor-stack>
	  	</interceptors>
	  	<default-interceptor-ref name="OwnStack"/>
	  
	  <action name="index">
	      <result type="redirectAction">
	          <param name="actionName">index</param>
            <param name="namespace">/</param>
	      </result>
	  </action>
	  
	  <action name="changeLanguage" method="changeLanguage" class="at.gv.egovernment.moa.id.configuration.struts.action.MainAction">
			  <result name="success" type="chain">main</result>
			  <interceptor-ref name="OwnStack"/>
		 </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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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">/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="OwnStack"/>
		</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="OwnStack"/>
		</action>
 		
 		<action name="bkuFramePreview" method="bkuFramePreview" class="at.gv.egovernment.moa.id.configuration.struts.action.BasicOAAction">
			<result type="stream">
    		<param name="contentType">text/html</param>
    		<param name="inputName">stream</param>
    	</result>
			<interceptor-ref name="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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-3.0_config.properties"</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</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="OwnStack"/>
		</action>
		
		<action name="listallinterfederationidps" method="listAllIDPs" class="at.gv.egovernment.moa.id.configuration.struts.action.InterfederationIDPAction">
			<result name="success">/jsp/interfederation/idplist.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="OwnStack"/>
		</action>
		
		<action name="loadIDP" method="loadIDPInformation" class="at.gv.egovernment.moa.id.configuration.struts.action.InterfederationIDPAction">
			<result name="success-VIDP">/jsp/interfederation/vidp.jsp</result>
			<result name="success-MOAIDP">/jsp/interfederation/moa_idp.jsp</result>
			<result name="success-IDPGATEWAY">/jsp/interfederation/pvpgateway.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="OwnStack"/>
		</action>

 		<action name="newIDP" method="newIDP" class="at.gv.egovernment.moa.id.configuration.struts.action.InterfederationIDPAction">
			<result name="editOA-VIDP">/jsp/interfederation/vidp.jsp</result>
			<result name="editOA-MOAIDP">/jsp/interfederation/moa_idp.jsp</result>
			<result name="editOA-IDPGATEWAY">/jsp/interfederation/pvpgateway.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="OwnStack"/>
		</action>


 		 <action name="saveMOAIDP" method="saveIDP" class="at.gv.egovernment.moa.id.configuration.struts.action.MOAIDPAction">
			<result name="success" type="chain">main</result>
			<result name="error_validation">/jsp/interfederation/moa_idp.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="OwnStack"/>
		</action>
		
		<action name="saveIDPGateway" method="saveIDP" class="at.gv.egovernment.moa.id.configuration.struts.action.IDPGatewayAction">
			<result name="success" type="chain">main</result>
			<result name="error_validation">/jsp/interfederation/pvpgateway.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="OwnStack"/>
		</action>
		
		<action name="saveVIDP" method="saveIDP" class="at.gv.egovernment.moa.id.configuration.struts.action.VIDPAction">
			<result name="success" type="chain">main</result>
			<result name="error_validation">/jsp/interfederation/vidp.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="OwnStack"/>
		</action>
		
 		<action name="cancleandbackIDP" method="cancleAndBackIDP" class="at.gv.egovernment.moa.id.configuration.struts.action.InterfederationIDPAction">
			<result type="chain">main</result>
			<result name="reauthentication" type="redirectAction">
	          <param name="actionName">logout</param>
            <param name="namespace">/</param> 
	     </result>
			<interceptor-ref name="OwnStack"/>
		</action> 		
 	
 		<action name="deleteIDP" method="deleteIDP" class="at.gv.egovernment.moa.id.configuration.struts.action.InterfederationIDPAction">
			<result name="success" type="chain">main</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="OwnStack"/>
		</action> 
				
 	</package>
			
</struts>