07-11-2013 06:50 PM
executeImpl(…) method, Java cannot find the this.nodeService object.
public void executeImpl(Action action, NodeRef actionedUponNodeRef)
{
if (this.nodeService.exists(actionedUponNodeRef) == true) // <– nodeService undefined here
{
QName aspectQName = (QName)action.getParameterValue(PARAM_ASPECT_NAME);
this.nodeService.addAspect(actionedUponNodeRef, aspectQName, null); // <– nodeService undefined here
}
}
ActionExecuterAbstractBase class, and found the baseNodeService field to be private, not public or even protected. It only has one setter and no getter. Since this class is part of Alfresco's core source code, I'd prefer not to mess up with it.samples folder of said SDK. Project dependencies: JRE 6 and "SDK Alfresco Embedded" project.ActionExecuterAbstractBase code? Is there a workaround?07-12-2013 04:21 AM
<bean id="add-aspect" class="org.alfresco.repo.action.executer.AddAspectActionExecuter" parent="action-executer"></bean>
<bean id="add-aspect" class="org.alfresco.repo.action.executer.AddAspectActionExecuter" parent="action-executer">
<property name="nodeService">
<ref bean="nodeService" />
</property>
</bean>
private NodeService nodeService;
public void setNodeService(NodeService nodeService)
{
this.nodeService = nodeService;
}
this.nodeService
07-15-2013 05:51 PM
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.