AnsweredAssumed Answered

What is the use of a component in alfresco?

Question asked by kartech11 on Jul 6, 2018
Latest reply on Jul 6, 2018 by afaust

I am currently looking at bootstrapping my content model and live search within my project. I am using the AIO sample project for reference as well.

 

Can you please tell me what is the purpose of the DemoComponent below? I dont seem to need the below bean for bootstrapping my content model and live search files. My customizations seem to work fine without the DemoComponent. What is the purpose of such a component and when do you use it in your projects?

 

<bean id="com.mycomp.alfresco.DemoComponent" class="com.mycomp.alfresco.platformsample.DemoComponent" parent="module.baseComponent" >
    <property name="moduleId" value="alfresco-bootstrap-platform-jar" />  <!-- See module.properties -->
    <property name="name" value="DemoComponent" />
    <property name="description" value="A demonstration component" />
    <property name="sinceVersion" value="1.0" />
    <property name="appliesFromVersion" value="0.99" /> <!-- 1.0 would not work here when using SNAPSHOT version in project  -->
    <property name="nodeService" ref="NodeService" />
    <property name="nodeLocatorService" ref="nodeLocatorService" />

Outcomes