mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1956 (Create record capability allows user to edit metadata and copy category/folder /record)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97433 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
<ref bean="rmEditRecordMetadataCapability"/>
|
||||
<ref bean="rmModifyUnfiledRecordsContainerFolderCapability"/>
|
||||
<ref bean="rmEditHoldCapability"/>
|
||||
<ref bean="rmCreateRecordsCapability"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
@@ -63,7 +62,6 @@
|
||||
<ref bean="rmEditRecordMetadataCapability"/>
|
||||
<ref bean="rmModifyUnfiledRecordsContainerFolderCapability"/>
|
||||
<ref bean="rmEditHoldCapability"/>
|
||||
<ref bean="rmCreateRecordsCapability"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
@@ -135,6 +133,7 @@
|
||||
<bean id="rmCopyRecordCapability"
|
||||
parent="declarativeCapability">
|
||||
<property name="name" value="CopyRecord"/>
|
||||
<property name="permission" value="CreateRecords"/>
|
||||
<property name="private" value="true"/>
|
||||
<property name="kinds">
|
||||
<list>
|
||||
@@ -153,6 +152,7 @@
|
||||
<bean id="rmCopyUnfiledRecordCapability"
|
||||
parent="declarativeCapability">
|
||||
<property name="name" value="CopyUnfiledRecord"/>
|
||||
<property name="permission" value="CreateRecords"/>
|
||||
<property name="private" value="true"/>
|
||||
<property name="kinds">
|
||||
<list>
|
||||
@@ -170,6 +170,7 @@
|
||||
<bean id="rmCopyRecordFolderCapability"
|
||||
parent="declarativeCapability">
|
||||
<property name="name" value="CopyRecordFolder"/>
|
||||
<property name="permission" value="CreateModifyDestroyFolders"/>
|
||||
<property name="private" value="true"/>
|
||||
<property name="kinds">
|
||||
<list>
|
||||
@@ -204,6 +205,7 @@
|
||||
<bean id="rmCopyRecordCategoryCapability"
|
||||
parent="declarativeCapability">
|
||||
<property name="name" value="CopyRecordCategory"/>
|
||||
<property name="permission" value="CreateModifyDestroyFileplanMetadata"/>
|
||||
<property name="private" value="true"/>
|
||||
<property name="kinds">
|
||||
<list>
|
||||
|
@@ -17,6 +17,11 @@
|
||||
<property name="group"><ref bean="recordsGroup"/></property>
|
||||
<property name="index" value="35" />
|
||||
<property name="permission" value="CreateRecords"/>
|
||||
<property name="kinds">
|
||||
<list>
|
||||
<value>RECORD_FOLDER</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="conditions">
|
||||
<map>
|
||||
<entry key="capabilityCondition.filling" value="true"/>
|
||||
|
@@ -50,7 +50,7 @@ function runAction(p_params)
|
||||
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
||||
{
|
||||
result.name = fileNode.name;
|
||||
result.error = "The destination is either frozen, closed or cut off!";
|
||||
result.error = "You don't have filing permission on the destination or the destination is either frozen, closed or cut off!";
|
||||
results.push(result);
|
||||
continue;
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@ function runAction(p_params)
|
||||
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
||||
{
|
||||
result.name = fileNode.name;
|
||||
result.error = "The destination is either frozen, closed or cut off!";
|
||||
result.error = "You don't have filing permission on the destination or the destination is either frozen, closed or cut off!";
|
||||
results.push(result);
|
||||
continue;
|
||||
}
|
||||
|
@@ -50,7 +50,7 @@ function runAction(p_params)
|
||||
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
||||
{
|
||||
result.name = fileNode.name;
|
||||
result.error = "The destination is either frozen, closed or cut off!";
|
||||
result.error = "You don't have filing permission on the destination or the destination is either frozen, closed or cut off!";
|
||||
results.push(result);
|
||||
continue;
|
||||
}
|
||||
|
@@ -145,7 +145,7 @@ public class FileReportAction extends RMActionExecuterAbstractBase implements Re
|
||||
{
|
||||
if (AccessStatus.DENIED.equals(capabilityService.getCapability("FillingPermissionOnly").hasPermission(nodeRef)))
|
||||
{
|
||||
throw new AlfrescoRuntimeException("The destination is either frozen, closed or cut off!");
|
||||
throw new AlfrescoRuntimeException("You don't have filing permission on the destination or the destination is either frozen, closed or cut off!");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user