mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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
|
||||
|
@@ -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>
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user