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
|
# Send Email
|
||||||
sendEmail.title=Send email
|
sendEmail.title=Send email
|
||||||
sendEmail.description=Send an email
|
sendEmail.description=Send an email
|
||||||
|
# Set Property
|
||||||
|
setPropertyValue.title=Set property value
|
||||||
|
setPropertyValue.description=Set a property value
|
||||||
|
|
||||||
# Action parameter constraints
|
# Action parameter constraints
|
||||||
rm-ac-is-kind-kinds.record_category=Record Category
|
rm-ac-is-kind-kinds.record_category=Record Category
|
||||||
|
@@ -892,5 +892,22 @@
|
|||||||
<property name="publicAction" value="true"/>
|
<property name="publicAction" value="true"/>
|
||||||
<property name="delegateAction" ref="mail" />
|
<property name="delegateAction" ref="mail" />
|
||||||
</bean>
|
</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>
|
</beans>
|
@@ -54,6 +54,11 @@ public class CompositeCapability extends DeclarativeCapability
|
|||||||
// Check each capability using 'OR' logic
|
// Check each capability using 'OR' logic
|
||||||
for (Capability capability : capabilities)
|
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);
|
int capabilityResult = capability.evaluate(nodeRef);
|
||||||
if (capabilityResult != AccessDecisionVoter.ACCESS_DENIED)
|
if (capabilityResult != AccessDecisionVoter.ACCESS_DENIED)
|
||||||
{
|
{
|
||||||
@@ -64,6 +69,13 @@ public class CompositeCapability extends DeclarativeCapability
|
|||||||
}
|
}
|
||||||
break;
|
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;
|
return result;
|
||||||
|
Reference in New Issue
Block a user