10-19-2006 04:59 AM
10-19-2006 05:25 AM
10-25-2006 09:42 AM
10-27-2006 04:06 AM
01-10-2007 12:14 PM
package org.alfresco.web.action.evaluator;
import org.alfresco.model.ContentModel;
import org.alfresco.service.cmr.security.PermissionService;
import org.alfresco.web.action.ActionEvaluator;
import org.alfresco.web.bean.repository.Node;
/**
* UI Action Evaluator - Checkin document.
*
* @author Kevin Roast
*/
public class CheckinDocEvaluator implements ActionEvaluator
{
/**
* @see org.alfresco.web.action.ActionEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
*/
public boolean evaluate(Node node)
{
return (node.hasPermission(PermissionService.OWNER_AUTHORITY) &&
node.hasAspect(ContentModel.ASPECT_WORKING_COPY) == true);
}
}
that is to say put OWNER_AUTHORITY instead of CHECK_IN or should we create another class ?01-10-2007 04:47 PM
<config>
<actions>
<action id="checkin_doc">
<evaluator>your.CheckinDocEvaluator</evaluator>
<label-id>checkin</label-id>
<image>/images/icons/CheckIn_icon.gif</image>
<action-listener>#{CheckinCheckoutBean.setupContentAction}</action-listener>
<action>dialog:checkinFile</action>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
</actions>
</config>
01-11-2007 12:02 PM
01-15-2007 05:28 AM
node.isWorkingCopyOwner() == true
05-11-2007 05:02 AM
<action id="cancel_checkout_doc">
<evaluator>my.version.CancelCheckoutDocEvaluator</evaluator>
<label-id>undocheckout</label-id>
<image>/images/icons/undo_checkout.gif</image>
<action-listener>#{CheckinCheckoutBean.setupContentAction}</action-listener>
<action>dialog:undoCheckoutFile</action>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
05-11-2007 08:53 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.