AnsweredAssumed Answered

Can I obtain all Config parts of a ConfigLookupContext

Question asked by iblanco on Dec 29, 2010
I have a config file like this:

<alfresco-config area="discussion-notifiable-properties">
    <config evaluator="string-compare" condition="cm:content">
        <typeName>contenido estándar</typeName>
        <properties>
            <property display="Nombre" name="cm:name"/>
            <property display="Título" name="cm:title"/>
            <property display="Descripción" name="cm:description"/>
        </properties>
        <creationTemplate>alfresco/extension/notificaciones/notificarNuevoDocumento.ftl</creationTemplate>
        <deletionTemplate>alfresco/extension/notificaciones/notificarBorradoDocumento.ftl</deletionTemplate>
        <modificationTemplate>alfresco/extension/notificaciones/notificarCambiosDocumento.ftl</modificationTemplate>
        <versioningTemplate>alfresco/extension/notificaciones/notificarVersionDocumento.ftl</versioningTemplate>
    </config>
    <config evaluator="string-compare" condition="cm:folder">
        <typeName>espacio</typeName>
        <properties>
            <property display="Nombre" name="cm:name"/>
            <property display="Título" name="cm:title"/>
            <property display="Descripción" name="cm:description"/>
        </properties>
    </config>
</alfresco-config>

I can get easily a Config for, for example cm:folder, like this:

      Config config = this.configService.getConfig("cm:folder",
            this.configCtx);
Being this.configCtx the ConfigLookupContext for discussion-notifiable-properties area.

But I can't find a way to get ALL the Configs of the context. Is it possible at all or is it a design restriction due to the existence of many different possible evaluators ?

Thanks

Outcomes