08-23-2007 01:35 PM
08-29-2007 11:55 AM
<config>
<actions>
<action id="process_project">
<evaluator>com.mediamine.rcd.core.upload.ProcessProjectEvaluator</evaluator>
<label>Process Project</label>
<image>/images/icons/workflow.gif</image>
<action-listener>#{UploadBean.processProject}</action-listener>
</action>
<action-group id="space_browse_menu">
<action idref="process_project" />
</action-group>
</actions>
</config>
package com.mediamine.rcd.core.upload;
import javax.faces.context.FacesContext;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.web.action.ActionEvaluator;
import org.alfresco.web.app.servlet.FacesHelper;
import org.alfresco.web.bean.repository.Node;
import com.mediamine.rcd.core.domain.RCDModel;
public class ProcessProjectEvaluator implements ActionEvaluator
{
public boolean evaluate(Node node)
{
FacesContext fc = FacesContext.getCurrentInstance();
NodeService nodeService = (NodeService)FacesHelper.getManagedBean(fc, "NodeService");
return nodeService.hasAspect(node.getNodeRef(), RCDModel.ASPECT_UPLOADED_PROJECT);
}
}
09-03-2007 07:12 AM
<action idref="id-of-the-action" hide="true" />
09-05-2007 10:37 AM
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.