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

@@ -93,6 +93,9 @@ executeScript.script-ref.display-label=Script
# Send Email
sendEmail.title=Send email
sendEmail.description=Send an email
# Set Property
setPropertyValue.title=Set property value
setPropertyValue.description=Set a property value
# Action parameter constraints
rm-ac-is-kind-kinds.record_category=Record Category

View File

@@ -892,5 +892,22 @@
<property name="publicAction" value="true"/>
<property name="delegateAction" ref="mail" />
</bean>
<!-- Set property value action -->
<bean id="setProperty_proxy" class="org.alfresco.module.org_alfresco_module_rm.capability.RMActionProxyFactoryBean" parent="rmProxyAction" init-method="registerAction">
<property name="target">
<ref bean="setPropertyValue"/>
</property>
<property name="interceptorNames">
<list>
<idref bean="allow_security"/>
</list>
</property>
</bean>
<bean id="setPropertyValue" class="org.alfresco.module.org_alfresco_module_rm.action.impl.DelegateAction">
<property name="publicAction" value="true"/>
<property name="delegateAction" ref="set-property-value" />
</bean>
</beans>

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;