07-25-2013 06:26 AM
<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>
…
…
07-25-2013 09:24 AM
<evaluator negate="true">evaluator.doclib.action.hasAspect("NonScaricabile")</evaluator>
07-29-2013 04:30 AM
07-29-2013 08:55 AM
<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>
07-29-2013 10:13 AM
<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>
07-30-2013 06:27 AM
<config evaluator="node-type" condition="cm:folder" >[…]</config>
07-30-2013 07:13 AM
…
<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>
…
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.