09-08-2009 10:36 AM
09-08-2009 11:06 AM
09-09-2009 01:24 AM
09-09-2009 05:21 AM
<!– Edit document offline action –>
<action id="edit_doc_offline">
<permissions>
<permission allow="true">Write</permission>
</permissions>
<evaluator>org.alfresco.web.action.evaluator.EditDocOfflineEvaluator</evaluator>
<label-id>edit_doc_offline</label-id>
<image>/images/icons/edit_offline.gif</image>
<action-listener>#{EditOfflineDialog.setupContentAction}</action-listener>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
09-09-2009 08:08 AM
09-09-2009 10:21 AM
public class BookReaderEvaluator implements ActionEvaluator {
@Override
public boolean evaluate(Node node) {
NodeService nodeService = Repository.getServiceRegistry(
FacesContext.getCurrentInstance()).getNodeService();
NodeRef spaceRef = node.getNodeRef();
boolean hasTiffContentItems = false;
List<ChildAssociationRef> childList = nodeService.getChildAssocs(
spaceRef);
Node childNode = null;
for (ChildAssociationRef child : childList) {
childNode = new Node(child.getChildRef());
if (childNode.getName().endsWith(".tiff")) {
hasTiffContentItems = true;
break;
}
}
return hasTiffContentItems;
}
}
09-09-2009 10:33 AM
09-11-2009 09:19 AM
09-11-2009 09:42 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.