RM-1429 (The user with read-only permissions on the item can unfreeze it via deleting hold)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@72277 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-05-29 23:05:35 +00:00
parent 885847135d
commit 2d2227e47a
6 changed files with 130 additions and 7 deletions

View File

@@ -35,4 +35,5 @@ rm.action.undo-not-last=The cut off can't be undone, because the last dispositio
rm.action.records_only_undeclared=Only records can be completed.
rm.action.event-not-undone=The event {0} can't be undone, because it's not defined on the disposition lifecycle.
rm.action.node-not-record-category=The disposition schedule could not be created, because the actioned upon node ({0}) was not a record category.
rm.action.parameter-not-supplied=The parameter ''{0}'' has not been supplied.
rm.action.parameter-not-supplied=The parameter ''{0}'' has not been supplied.
rm.action.delete-not-hold-type=The hold couldn't be deleted, because the node isn't of type {0}. (actionedUponNodeRef={1})

View File

@@ -139,6 +139,7 @@
<property name="parameterProcessorComponent" ref="parameterProcessorComponent"/>
<property name="modelSecurityService" ref="modelSecurityService" />
<property name="recordFolderService" ref="RecordFolderService" />
<property name="holdService" ref="HoldService" />
</bean>
<bean id="rmProxyAction"
@@ -1054,12 +1055,12 @@
<bean id="addRecordTypes" class="org.alfresco.module.org_alfresco_module_rm.action.impl.AddRecordTypeAction" parent="rmAction">
<property name="publicAction" value="true"/>
</bean>
<!-- file report action -->
<bean id="fileReport"
class="org.alfresco.module.org_alfresco_module_rm.action.impl.FileReportAction"
parent="rmAction">
parent="rmAction">
<property name="reportService" ref="ReportService" />
<property name="publicAction" value="false"/>
</bean>
@@ -1074,7 +1075,7 @@
</list>
</property>
</bean>
<bean id="fileReport_security" parent="actionSecurity">
<property name="objectDefinitionSource">
<value>
@@ -1085,4 +1086,29 @@
</property>
</bean>
<bean id="deleteHold" class="org.alfresco.module.org_alfresco_module_rm.action.impl.DeleteHoldAction" parent="rmAction">
<property name="auditedImmediately" value="true"/>
</bean>
<bean id="deleteHold_proxy" parent="rmProxyAction" >
<property name="target">
<ref bean="deleteHold"/>
</property>
<property name="interceptorNames">
<list>
<idref bean="deleteHold_security"/>
</list>
</property>
</bean>
<bean id="deleteHold_security" parent="actionSecurity">
<property name="objectDefinitionSource">
<value>
org.alfresco.module.org_alfresco_module_rm.action.RecordsManagementAction.execute=RM_CAP.0.rma:filePlanComponent.DeleteHoldContainer
org.alfresco.module.org_alfresco_module_rm.action.RecordsManagementAction.*=RM_ALLOW
org.alfresco.repo.action.executer.ActionExecuter.*=RM_ALLOW
</value>
</property>
</bean>
</beans>

View File

@@ -895,4 +895,15 @@
</property>
<property name="capability" value ="FileHoldReport"/>
</bean>
</beans>
<bean id="jsonConversionComponent.deleteHold"
parent="jsonConversionComponent.baseAction">
<property name="name" value="deleteHold"/>
<property name="kinds">
<set>
<value>HOLD</value>
</set>
</property>
<property name="capability" value ="DeleteHoldContainer"/>
</bean>
</beans>