<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-archive" type="javascript" label="actions.<monEntreprise>.archive">
<param name="function">onActionArchive</param>
<param name="successMessage">message.archive.success</param>
<param name="failureMessage">message.archive.failure</param>
<evaluator negate="true">evaluator.doclib.action.isLocked</evaluator>
</action>
<action id="document-execute-script" type="javascript" label="actions.document.archive.by.script"></action>
</actions>
<actionGroups>
<actionGroup id="document-browse">
<action index="264" id="document-archive"/>
<action index="266" id="document-execute-script"/>
</actionGroup>
</actionGroups>
</config>
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<!– <css src="my-custom-action.css" /> –>
<js src="components/documentlibrary/archive.js"/>
</dependencies>
<dependencies/>
</config>
<bean id="archive" class="org.alfresco.module.<monEntrepriseAmp>.ArchiveActionExecuter" parent="action-executer">
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="repository">
<ref bean="repositoryHelper"/>
</property>
</bean>
var archiveAction = actions.create("archive");
archiveAction.execute(document);
(function() {
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onActionArchive",
fn: function <monEntreprise>_onActionArchive(file) {
var archiveAction = actions.create("archive");
archiveAction.execute(document);
}
});
})();
Content from pre 2016 and from language groups that have been closed.
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.