<!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 type="com.appiancorp.web.framework.kernel.main.ActionFormBean">
    <appian-form-bean name="genericContentForm" type="com.appiancorp.content.forms.GenericContentForm" />
    <appian-form-bean name="administrationForm" type="com.appiancorp.km.forms.AdministrationForm"/>
    <appian-form-bean name="kcStatisticsForm" type="com.appiancorp.km.forms.KcStatisticsForm"/>
  </appian-form-beans>
  <global-forwards type="com.appiancorp.web.framework.kernel.main.ActionForward">
  </global-forwards>
  <appian-action-mappings>
    <appian-action path="/contents/GetContainer" name="genericContentForm" scope="request"
      type="com.appiancorp.content.actions.GetContainerAction">
      <forward name="success" path="/contents/container.jsp" />
      <forward name="subscribeKC" path="/knowledge/subscribe.jsp" />
      <forward name="contentError" path="/contents/error.jsp"/>
    </appian-action>
    <appian-action path="/contents/GetContent" name="genericContentForm" scope="request"
      type="com.appiancorp.content.actions.GetContentAction">
      <forward name="document" path="/knowledge/GetDocument.do" />
      <forward name="datastore" path="/admin/datatype/dataStoresView.do" />
      <forward name="queryrule" path="/rules/getQueryRule.do" />
      <forward name="contentError" path="/contents/error.jsp"/>
    </appian-action>
     <appian-action path="/contents/createcontentfolder"
        type="com.appiancorp.rules.browse.CreateRulesFolder" >
      <forward name="prepare" path="/knowledge/browse/createfolder.jsp" />
    </appian-action>
    <appian-action path="/contents/GetContentVersions" name="genericContentForm" scope="request"
      type="com.appiancorp.content.actions.GetContentVersionsAction">
      <forward name="success" path="/contents/versions.jsp" />
      <forward name="contentError" path="/contents/error.jsp"/>
    </appian-action>
    <appian-action path="/contents/DiscussContent"
        type="com.appiancorp.content.actions.DiscussContentAction" 
        name="genericContentForm" scope="request">
      <forward name="success" path="/forums/forum_V.do"/>
    </appian-action>
    <appian-action path="/contents/DeleteContent"
        type="com.appiancorp.content.actions.DeleteContentAction" 
        name="genericContentForm" scope="request">
      <forward name="success" path="/contents/GetContainer.do"/>
      <forward name="back" path="/contents/GetContainer.do"/>
      <forward name="contentError" path="/contents/error.jsp"/>
    </appian-action>
    <appian-action path="/contents/deleteExpiredContent"
        type="com.appiancorp.content.actions.DeleteContentAction" 
        name="genericContentForm" scope="request">
      <forward name="success" path="/knowledge/viewFileExpirations.do" />
      <forward name="error" path="/knowledge/viewFileExpirations.do" />
    </appian-action>
    <appian-action path="/contents/GetFavorites"
        type="com.appiancorp.content.actions.GetFavoritesAction" 
        name="genericContentForm" scope="request">
      <forward name="success" path="/contents/favorites.jsp" />
      <forward name="contentError" path="/contents/error.jsp"/>
    </appian-action>
    <appian-action path="/contents/Search"
        type="com.appiancorp.content.actions.SearchAction" 
        name="genericContentForm" scope="request">
      <forward name="success" path="/contents/search.jsp" />
      <forward name="contentError" path="/contents/error.jsp"/>
    </appian-action>
    <appian-action path="/contents/MoveContent"
        type="com.appiancorp.content.actions.MoveContentAction" 
        name="genericContentForm" scope="request">
      <forward name="success" path="/contents/GetContainer.do"/>
      <forward name="error" path="/contents/GetContainer.do"/>
    </appian-action>

    <appian-action path="/contents/DeactivateCommunity"
            type="com.appiancorp.km.actions.DeactivateCommunityAction"
            name="administrationForm" scope="request">
      <forward name="success" path="/knowledge/Administration.do"/>
      <forward name="error" path="/knowledge/Administration.do" />
    </appian-action>

    <appian-action path="/contents/DeactivateCommunityFromGrid"
            type="com.appiancorp.km.actions.DeactivateCommunityAction"
            name="administrationForm" scope="request">
      <forward name="success" path="/contents/GetContainer.do"/>
      <forward name="error" path="/contents/GetContainer.do" />
    </appian-action>

    <appian-action path="/contents/ReactivateCommunity"
            type="com.appiancorp.km.actions.ReactivateCommunityAction"
            name="administrationForm" scope="request">
      <forward name="success" path="/knowledge/Administration.do"/>
      <forward name="error" path="/knowledge/Administration.do" />
    </appian-action>

    <appian-action path="/contents/ChangeUserQuota"
            type="com.appiancorp.km.actions.ChangeUserQuotaAction"
            name="administrationForm" scope="request">
      <forward name="prepare" path="/knowledge/Administration.do" />
      <forward name="success" path="/knowledge/Administration.do"/>
      <forward name="error" path="/knowledge/Administration.do" />
    </appian-action>

    <appian-action path="/contents/ViewKCStatistics"
            type="com.appiancorp.km.actions.ViewKCStatistics"
            name="administrationForm" scope="request">
      <forward name="success" path="/contents/kc_statistics.jsp"/>
      <forward name="error" path="/portal/blank.jsp" />
    </appian-action>

    <appian-action path="/dataStore" type="com.appiancorp.process.analytics2.actions.NoChromeAction" >
      <forward name="success" path="/contents/GetContent.do"/>
    </appian-action>
  </appian-action-mappings>

  <message-resources parameter="text.java.com.appiancorp.content.application-i18n" key="content-app-i18n"/>
  <message-resources parameter="resources.application"/>

</appian-web-config>
