<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Customizing an existing Alfresco classYou can define a bean named fileContentStore in your sprin in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96844#M28397</link>
    <description>&lt;DIV&gt;&lt;FONT&gt;You can define a bean named fileContentStore in your spring context file ,alfresco will use your fileContentStore implementation to override it's default.&lt;BR /&gt;Like following &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;    &amp;lt;bean id="fileContentStore" class="Your StoreSelectorAspectContentStore  implementation"&amp;gt;
 ....
    &amp;lt;/bean&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 Oct 2020 03:10:22 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2020-10-28T03:10:22Z</dc:date>
    <item>
      <title>Customizing an existing Alfresco class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96843#M28396</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my objective is customizing an&amp;nbsp;&lt;/SPAN&gt;existing Alfresco&amp;nbsp;&lt;SPAN&gt;class instead of changing directly in the org.alfresco:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the solution was "&lt;SPAN&gt;creation of a custom content store implementation that inherit from StoreSelectorAspectContentStore and register you implementation in spring configuration extension", I did that but my problem is thatI I dont know how to&amp;nbsp;register my implementation in spring configuration extension.&lt;BR /&gt;&lt;BR /&gt;thank you for your help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 17:02:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96843#M28396</guid>
      <dc:creator>ALfreSara</dc:creator>
      <dc:date>2020-10-27T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an existing Alfresco classYou can define a bean named fileContentStore in your sprin</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96844#M28397</link>
      <description>&lt;DIV&gt;&lt;FONT&gt;You can define a bean named fileContentStore in your spring context file ,alfresco will use your fileContentStore implementation to override it's default.&lt;BR /&gt;Like following &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;    &amp;lt;bean id="fileContentStore" class="Your StoreSelectorAspectContentStore  implementation"&amp;gt;
 ....
    &amp;lt;/bean&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Oct 2020 03:10:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96844#M28397</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-10-28T03:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an existing Alfresco classYou can define a bean named fileContentStore in your sprin</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96845#M28398</link>
      <description>&lt;P&gt;Thank you for reply,&lt;/P&gt;&lt;P&gt;after adding the bean here is the error displayed:&lt;/P&gt;&lt;P&gt;Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'contentStoresToClean' while setting bean property 'stores'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentStoresToClean' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'fileContentStore' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileContentStore' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\content-store-selector-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 09280000 Property 'storesByName' has not been set: fr.alfresco.enterprise.repo.content.routing.StoreSelectorAspectContentStore@2bd4501d (class fr.alfresco.enterprise.repo.content.routing.StoreSelectorAspectContentStore)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\content-store-selector-context.xml]: Cannot resolve reference to bean 'fileContentStore' while setting bean property 'storesByName' with key [TypedStringValue: value [default], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileContentStore' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\content-store-selector-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 09280000 Property 'storesByName' has not been set:&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:59:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96845#M28398</guid>
      <dc:creator>ALfreSara</dc:creator>
      <dc:date>2020-10-28T10:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an existing Alfresco classYou can define a bean named fileContentStore in your sprin</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96846#M28399</link>
      <description>&lt;P&gt;&lt;FONT&gt;StoreSelectorAspectContentStore has a storesByName property dependency&amp;nbsp; which should be injected by constructor in your spring content-store-selector-context.xml file.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 13:09:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-an-existing-alfresco-class/m-p/96846#M28399</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-10-28T13:09:04Z</dc:date>
    </item>
  </channel>
</rss>

