RM-697 The set property action should be available when creating a RM rule

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Craig Tan
2013-08-20 12:34:29 +00:00
parent 09b3c4037b
commit aa1bcd5e56
3 changed files with 32 additions and 0 deletions

View File

@@ -54,6 +54,11 @@ public class CompositeCapability extends DeclarativeCapability
// Check each capability using 'OR' logic
for (Capability capability : capabilities)
{
if (logger.isDebugEnabled() == true)
{
logger.debug("Evaluating child capability " + capability.getName() + " on nodeRef " + nodeRef.toString() + " for composite capability " + name);
}
int capabilityResult = capability.evaluate(nodeRef);
if (capabilityResult != AccessDecisionVoter.ACCESS_DENIED)
{
@@ -64,6 +69,13 @@ public class CompositeCapability extends DeclarativeCapability
}
break;
}
else
{
if (logger.isDebugEnabled() == true)
{
logger.debug("Access denied for child capability " + capability.getName() + " on nodeRef " + nodeRef.toString() + " for composite capability " + name);
}
}
}
return result;