Hello,
my objective is customizing an existing Alfresco class instead of changing directly in the org.alfresco:
the solution was "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 register my implementation in spring configuration extension.
thank you for your help.
<bean id="fileContentStore" class="Your StoreSelectorAspectContentStore implementation"> .... </bean>
Thank you for reply,
after adding the bean here is the error displayed:
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)
...
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:
StoreSelectorAspectContentStore has a storesByName property dependency which should be injected by constructor in your spring content-store-selector-context.xml file.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.