mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@125603 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
39 lines
1.0 KiB
Java
39 lines
1.0 KiB
Java
package org.alfresco.opencmis.mapping;
|
|
|
|
import org.alfresco.opencmis.dictionary.CMISNodeInfo;
|
|
import org.alfresco.service.ServiceRegistry;
|
|
import org.alfresco.service.cmr.security.PermissionService;
|
|
import org.apache.chemistry.opencmis.commons.enums.Action;
|
|
|
|
/**
|
|
* Alfresco Permission based Action Evaluator
|
|
*
|
|
* @author florian.mueller
|
|
*/
|
|
public class CanCancelCheckOutActionEvaluator extends AbstractActionEvaluator
|
|
{
|
|
private PermissionActionEvaluator permissionEvaluator;
|
|
|
|
/**
|
|
* Construct
|
|
*/
|
|
protected CanCancelCheckOutActionEvaluator(ServiceRegistry serviceRegistry)
|
|
{
|
|
super(serviceRegistry, Action.CAN_CANCEL_CHECK_OUT);
|
|
permissionEvaluator = new PermissionActionEvaluator(
|
|
serviceRegistry,
|
|
Action.CAN_CANCEL_CHECK_OUT,
|
|
PermissionService.CANCEL_CHECK_OUT);
|
|
}
|
|
|
|
public boolean isAllowed(CMISNodeInfo nodeInfo)
|
|
{
|
|
if (nodeInfo.isPWC())
|
|
{
|
|
return permissionEvaluator.isAllowed(nodeInfo);
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|