06-11-2010 11:07 AM
06-15-2010 07:48 AM
/*
* 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>
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.