As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ public class MyActionExecuter extends ActionExecuterAbstractBase { /** Runtime NodeService with no permissions protection */ private NodeService nodeService; /** * @param nodeService The Runtime NodeService to set. */ public void setNodeService(NodeService nodeService) { this.nodeService = nodeService; } /** * @see org.alfresco.repo.action.executer.ActionExecuterAbstractBase#executeImpl(org.alfresco.service.cmr.action.Action, org.alfresco.service.cmr.repository.NodeRef) */ protected void executeImpl(Action action, NodeRef actionedUponNodeRef) { // add the cm:countable aspect as required ………. } /** * @see org.alfresco.repo.action.ParameterizedItemAbstractBase#addParameterDefinitions(java.util.List) */ protected void addParameterDefinitions(List<ParameterDefinition> paramList) { // none required } }
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– Registration of new models –> <bean id="myModel.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/MyModel.xml</value> </list> </property> <property name="labels"> <list> <value>alfresco/extension/MyModel</value> </list> </property> </bean> <bean id="actionExecuter" class="executer.MyActionExecuter" parent="action-executer"> <property name="nodeService"> <ref bean="nodeService" /> <!– runtime nodeService –> </property> </bean> </beans>