<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appian-web-config PUBLIC "-//Appian Corporation//DTD Appian Web MVC Configuration 1.0//EN" "/WEB-INF/appian-web-config_1_0.dtd" >

<appian-web-config>
<appian-form-beans>
	<appian-form-bean  name="ap_sidCollabDisplayForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.CollabDisplayForm"/>
	<appian-form-bean  name="ap_sidCollabSetupForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.CollabSetupForm"/>
	<appian-form-bean name="ap_UploadFileForm" type="com.appiancorp.ap2.p.collabkc.mediator.UploadFileForm" />
	<appian-form-bean name="ap_CreateFolderForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.CreateFolderForm" />
	<appian-form-bean name="ap_CreateVersionForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.CreateVersionForm" />
	<appian-form-bean name="ap_ViewVersionForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.ViewVersionForm" />
	<appian-form-bean name="ap_DeleteFileForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.DeleteFileForm" />
	<appian-form-bean name="ap_PreConfigForm"
		type="com.appiancorp.ap2.p.collabkc.mediator.PreConfigForm" />
	<appian-form-bean name="ap_DeleteVersionForm" type="com.appiancorp.web.framework.kernel.main.DynaActionForm">
		<form-property name="versionList" type="java.lang.String" /> 
		<form-property name="docId" type="java.lang.String" /> 
		<form-property name="verdeleteval" type="java.lang.String" /> 
	</appian-form-bean>
	<appian-form-bean name="ap_CheckInOutForm" type="com.appiancorp.web.framework.kernel.main.DynaActionForm">
		<form-property name="documentId" type="java.lang.String" /> 
		<form-property name="inorout" type="java.lang.String" /> 
		<form-property name="checkinoutval" type="java.lang.String" /> 
		<form-property name="folderId" type="java.lang.String" /> 
	</appian-form-bean>
	<appian-form-bean name="ap_DummyForm1" type="com.appiancorp.web.framework.kernel.main.DynaActionForm"></appian-form-bean>
	<appian-form-bean name="ap_DummyForm2" type="com.appiancorp.web.framework.kernel.main.DynaActionForm"></appian-form-bean>
	<appian-form-bean name="ap_DummyForm3" type="com.appiancorp.web.framework.kernel.main.DynaActionForm"></appian-form-bean>
 </appian-form-beans>

  <global-forwards type="com.appiancorp.web.framework.kernel.main.ActionForward">
    <forward name="/p_dt/globalgo" path="/p_dt/go.do" />
    <forward name="imgPath" path="/collaboration/img/"/>
    <forward name="docContext" path="/doc/"/>
  </global-forwards>

  <appian-action-mappings>

    <appian-action path="/portlet/collabkc/preupload" include="/portlet/collabkc/upload_file.jsp"/>
    <appian-action path="/portlet/collabkc/preversion" include="/portlet/collabkc/createversion.jsp"/>
    <appian-action path="/portlet/collabkc/preconfig"
            type="com.appiancorp.ap2.p.collabkc.action.PreConfig" 
            name="ap_PreConfigForm" scope="request" validate="false">
        <forward name="success" path="/portlet/collabkc/configure.jsp"/>
		<forward name="view" path="/portlet/collabkc/view.do"/>
        <forward name="error" path="/portlet/collabkc/error.jsp"/>
    </appian-action>

      <appian-action path="/portlet/collabkc/collabconfig"
              type="com.appiancorp.ap2.p.collabkc.action.CollabConfig" 
              name="ap_sidCollabSetupForm" scope="request" validate="false">
        <forward name="success" path="/portlet/collabkc/view.do"/>
        <forward name="error" path="/portlet/collabkc/error.jsp"/>
      <forward name="failure" path="/portlet/collabkc/preconfig.do"/>
    </appian-action>

    <appian-action path="/portlet/collabkc/view"
            type="com.appiancorp.ap2.p.collabkc.action.ViewAction"
            name="ap_sidCollabDisplayForm"
            scope="request"
            cancellable="true">
      <forward name="error" path="/portlet/collabkc/error.jsp" />
      <forward name="configure" path="/portlet/collabkc/preconfig.do" />
      <forward name="unsubscribed" path="/portlet/collabkc/unsubscribed.jsp" />
      <forward name="pending" path="/portlet/collabkc/pending.jsp" />
      <forward name="folder" path="/portlet/collabkc/viewFolder.do" />
      <forward name="kc" path="/portlet/collabkc/viewKC.do" />
    </appian-action>

    <appian-action path="/portlet/collabkc/viewKC"
          type="com.appiancorp.ap2.p.collabkc.action.ViewKC"
          name="ap_sidCollabDisplayForm"
          scope="request"
          cancellable="true">
      <forward name="error" path="/portlet/collabkc/error.jsp" />
      <forward name="configure" path="/portlet/collabkc/preconfig.do" />
      <forward name="unsubscribed" path="/portlet/collabkc/unsubscribed.jsp" />
      <forward name="pending" path="/portlet/collabkc/pending.jsp" />
      <forward name="success" path="/portlet/collabkc/kc.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/viewFolder"
            type="com.appiancorp.ap2.p.collabkc.action.ViewFolder"
            name="ap_sidCollabDisplayForm"
            scope="request">
      <forward name="error" path="/portlet/collabkc/error.jsp" />
      <forward name="success" path="/portlet/collabkc/folder.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/uploadfile"
            type="com.appiancorp.ap2.p.collabkc.action.UploadFile" 
            name="ap_UploadFileForm"  scope="request" >
      <forward name="success" path="/portlet/collabkc/file_uploaded.jsp"/>
      <forward name="error" path="/portlet/collabkc/preupload.do" />
    </appian-action>

    <appian-action path="/portlet/collabkc/createfolder"
            type="com.appiancorp.ap2.p.collabkc.action.CreateFolder" 
            name="ap_CreateFolderForm" scope="request">
     <forward name="success" path="/portlet/collabkc/view.do"/>
     <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/createversion"
            type="com.appiancorp.ap2.p.collabkc.action.CreateVersion" 
            name="ap_CreateVersionForm" >
      <forward name="success" path="/portlet/collabkc/file_versioned.jsp"/>
      <forward name="error" path="/portlet/collabkc/preversion.do" />
    </appian-action>

    <appian-action path="/portlet/collabkc/viewversion"
            type="com.appiancorp.ap2.p.collabkc.action.ViewVersion" 
            name="ap_ViewVersionForm" scope="request">
      <forward name="success" path="/portlet/collabkc/viewversion.jsp"/>
      <forward name="view" path="/portlet/collabkc/view.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/deleteversions"
            scope="request"  
            type="com.appiancorp.ap2.p.collabkc.action.DeleteVersion" 
            name="ap_DeleteVersionForm"  >
      <forward name="main" path="/portlet/collabkc/view.do"/>
      <forward name="success" path="/portlet/collabkc/viewversion.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/deletefiles"
            type="com.appiancorp.ap2.p.collabkc.action.DeleteFiles" 
            name="ap_DeleteFileForm" >
      <forward name="success" path="/portlet/collabkc/view.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/checkinout"
            type="com.appiancorp.ap2.p.collabkc.action.CheckInOut" 
            name="ap_CheckInOutForm">
      <forward name="success" path="/portlet/collabkc/view.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/dummy1"
            type="com.appiancorp.ap2.p.collabkc.action.Dummy" 
            name="ap_DummyForm1" >
      <forward name="success" path="/portlet/collabkc/view.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/dummy2"
            type="com.appiancorp.ap2.p.collabkc.action.Dummy" name="ap_DummyForm2" >
      <forward name="success" path="/portlet/collabkc/view.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/dummy3"
            type="com.appiancorp.ap2.p.collabkc.action.Dummy" name="ap_DummyForm3" >
      <forward name="success" path="/portlet/collabkc/view.do"/>
      <forward name="error" path="/portlet/collabkc/error.jsp" />
    </appian-action>

    <appian-action path="/portlet/collabkc/subscribe"
            type="com.appiancorp.ap2.p.collabkc.action.Subscribe">
      <forward name="configure" path="/portlet/collabkc/preconfig.do" />
      <forward name="error" path="/portlet/collabkc/error.jsp" />
      <forward name="success" path="/portlet/collabkc/view.do" />
    </appian-action>

  </appian-action-mappings>

  <message-resources parameter="text.java.com.appiancorp.ap2.p.collabkc.collabkc-i18n" key="p-collabkc-i18n"/>
  <message-resources parameter="resources.application"/>

</appian-web-config>
