<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
      <property name="targetObject" ref="thumbnailRegistry" />
      <property name="targetMethod" value="addThumbnailDefinition" />
      <property name="arguments">
         <list>
            <bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
               <property name="name" value="pdf" />
               <property name="mimetype" value="application/pdf" />
               <property name="transformationOptions">
               <!-- The thumbnail definition have transformationOptions mandatory -->
               <!-- But there are none for pdf, so use SWFTransformationsOptions as dummy -->
                  <bean class="org.alfresco.repo.content.transform.swf.SWFTransformationOptions">
                     <property name="flashVersion" value="9" />
                  </bean>
               </property>
            </bean>
         </list>
      </property>
   </bean>
</beans>

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <bean id="thumbnail.register.pdfpreview" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
      <property name="targetObject" ref="thumbnailRegistry" />
      <property name="targetMethod" value="addThumbnailDefinition" />
      <property name="arguments">
         <list>
            <bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
               <property name="name" value="pdf" />
               <property name="mimetype" value="application/pdf" />
               <property name="transformationOptions">
               <!-- The thumbnail definition have transformationOptions mandatory -->
               <!-- But there are none for pdf, so use SWFTransformationsOptions as dummy -->
                  <bean class="org.alfresco.repo.content.transform.swf.SWFTransformationOptions">
                     <property name="flashVersion" value="9" />
                  </bean>
               </property>
            </bean>
         </list>
      </property>
   </bean>
</beans>

Add ID to 'pdf' thumbnail Spring bean
Add ID to 'pdf' thumbnail Spring bean

git-svn-id: d71704da40e819af2ba9ff15fdfd08baa69d9f90@1362 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
