<?xml version="1.0" encoding="ISO-8859-1"?>
<configuration
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
   xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">


  <component>
    <key>org.exoplatform.services.cms.views.ManageViewService</key>
    <type>org.exoplatform.services.cms.views.impl.ManageViewServiceImpl</type>
  </component>
  
	<external-component-plugins>
    <target-component>org.exoplatform.services.cms.views.ManageViewService</target-component>
    	<component-plugin> 
        <name>manage.view.plugin</name>
        <set-method>setManageViewPlugin</set-method>
        <type>org.exoplatform.services.cms.views.impl.ManageViewPlugin</type>
        <description>this plugin manage user view</description>
        <init-params>
        	<value-param>
	        	<name>autoCreateInNewRepository</name>
	        	<value>true</value>
	        </value-param>
	        <value-param>
	        	<name>predefinedViewsLocation</name>
	        	<value>war:/conf/dms-extension/dms/artifacts</value>
	        </value-param>	        
          <object-param>	      
		        <name>Timeline-View-document</name>
		        <description>View configuration for System workspace</description>
		        <object type="org.exoplatform.services.cms.views.ViewConfig">		          
		          <field name="name"><string>Timeline-View-document</string></field>
		          <field name="permissions"><string>*:/platform/users</string></field>
		          <field name="template"><string>/exo:ecm/views/templates/ecm-explorer/TimelineView</string></field>	
		          <field name="tabList">
                <collection type="java.util.ArrayList">
                  <value>
                    <object type="org.exoplatform.services.cms.views.ViewConfig$Tab">
                      <field name="tabName"><string>Actions</string></field>
                      <field name="buttons">
                      	<string>upload; addFolder; deleteNode; editDocument; taggingDocument; vote; Comment; viewMetadatas; 
                      	</string>
                      </field>
                    </object>
                  </value>
                </collection>
              </field>
		        </object>
		      </object-param>  
			<object-param>	      
				<name>Spacemanagement-Document-View</name>
				<description>View configuration for Space Managers</description>
				<object type="org.exoplatform.services.cms.views.ViewConfig">		          
					<field name="name"><string>Spacemanagement-Document-View</string></field>
					<!-- 
					should be portal.administrator.mstype:portal.administrator.groups 
					for more details see portal.war/WEB-INF/conf/portal/portal-configuration.xml
					-->
					<field name="permissions"><string>manager:/platform/administrators</string></field>
					<field name="template"><string>/exo:ecm/views/templates/ecm-explorer/ListView</string></field>	
					<field name="tabList">
					<collection type="java.util.ArrayList">
						<value>
						<object type="org.exoplatform.services.cms.views.ViewConfig$Tab">
							<field name="tabName"><string>Actions</string></field>
							<field name="buttons">
								<string>addDocument; editDocument; upload; addFolder; manageVersions; managePublications; manageCategories; manageRelations; viewProperties; exportNode; importNode</string>
							</field>
						</object>
						</value>
					</collection>
					</field>
				</object>
			</object-param>  
	      </init-params>	
      </component-plugin> 
  </external-component-plugins>
  
</configuration>
