<aspect name="ans:NonScaricabile" />
che ho poi associato a un documento di prova. C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\share-documentlibrary-config.xml
il seguente codice:
…
…
<actions>
<!– Download document –>
<action id="document-download" type="link" label="actions.document.download">
<param name="href">{downloadUrl}</param>
<evaluator>evaluator.doclib.action.downloadBrowser</evaluator>
<!– Sfrutto questo aspetto per controllare la presenza della action download –>
<evaluator negate="true">evaluator.doclib.action.NonScaricabile</evaluator>
<!– –>
</action>
…
…
<evaluator negate="true">evaluator.doclib.action.hasAspect("NonScaricabile")</evaluator>
<alfresco-config>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-download">
<evaluator negate="true">evaluator.hasXXXAspect</evaluator>
</action>
</actions>
</config>
</alfresco-config>
<?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="evaluator.hasXXXAspect" class="org.alfresco.web.evaluator.HasAspectEvaluator">
<property name="aspects">
<list>
<value>{tuonamespace}:XXX</value>
</list>
</property>
</bean>
</beans>
<aspect name="ans:NonScaricabile">
):
<beans>
…
<bean id="evaluator.doclib.action.NonScaricabile" class="nonscaricabile.documentlibrary.action.evaluator.VerificaNonScaricabile" />
</beans>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-download">
<evaluator negate="true">evaluator.doclib.action.NonScaricabile</evaluator>
</action>
</actions>
</config>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-copy-to">
<evaluator negate="true">evaluator.doclib.action.NonScaricabile</evaluator>
</action>
</actions>
</config>
<config evaluator="node-type" condition="cm:folder" >[…]</config>
…
<aspect name="ans:NonScaricabile">
<title>Documento non scaricabile</title>
<properties>
<property name="ans:nonScaricabile">
<title>Documento non scaricabile</title>
<type>d:boolean</type>
<default>true</default>
</property>
</properties>
</aspect>
…
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
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.