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="rmEditRecordMetadataCapability"/>
|
||||||
<ref bean="rmModifyUnfiledRecordsContainerFolderCapability"/>
|
<ref bean="rmModifyUnfiledRecordsContainerFolderCapability"/>
|
||||||
<ref bean="rmEditHoldCapability"/>
|
<ref bean="rmEditHoldCapability"/>
|
||||||
<ref bean="rmCreateRecordsCapability"/>
|
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
@@ -63,7 +62,6 @@
|
|||||||
<ref bean="rmEditRecordMetadataCapability"/>
|
<ref bean="rmEditRecordMetadataCapability"/>
|
||||||
<ref bean="rmModifyUnfiledRecordsContainerFolderCapability"/>
|
<ref bean="rmModifyUnfiledRecordsContainerFolderCapability"/>
|
||||||
<ref bean="rmEditHoldCapability"/>
|
<ref bean="rmEditHoldCapability"/>
|
||||||
<ref bean="rmCreateRecordsCapability"/>
|
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
@@ -135,6 +133,7 @@
|
|||||||
<bean id="rmCopyRecordCapability"
|
<bean id="rmCopyRecordCapability"
|
||||||
parent="declarativeCapability">
|
parent="declarativeCapability">
|
||||||
<property name="name" value="CopyRecord"/>
|
<property name="name" value="CopyRecord"/>
|
||||||
|
<property name="permission" value="CreateRecords"/>
|
||||||
<property name="private" value="true"/>
|
<property name="private" value="true"/>
|
||||||
<property name="kinds">
|
<property name="kinds">
|
||||||
<list>
|
<list>
|
||||||
@@ -153,6 +152,7 @@
|
|||||||
<bean id="rmCopyUnfiledRecordCapability"
|
<bean id="rmCopyUnfiledRecordCapability"
|
||||||
parent="declarativeCapability">
|
parent="declarativeCapability">
|
||||||
<property name="name" value="CopyUnfiledRecord"/>
|
<property name="name" value="CopyUnfiledRecord"/>
|
||||||
|
<property name="permission" value="CreateRecords"/>
|
||||||
<property name="private" value="true"/>
|
<property name="private" value="true"/>
|
||||||
<property name="kinds">
|
<property name="kinds">
|
||||||
<list>
|
<list>
|
||||||
@@ -170,6 +170,7 @@
|
|||||||
<bean id="rmCopyRecordFolderCapability"
|
<bean id="rmCopyRecordFolderCapability"
|
||||||
parent="declarativeCapability">
|
parent="declarativeCapability">
|
||||||
<property name="name" value="CopyRecordFolder"/>
|
<property name="name" value="CopyRecordFolder"/>
|
||||||
|
<property name="permission" value="CreateModifyDestroyFolders"/>
|
||||||
<property name="private" value="true"/>
|
<property name="private" value="true"/>
|
||||||
<property name="kinds">
|
<property name="kinds">
|
||||||
<list>
|
<list>
|
||||||
@@ -204,6 +205,7 @@
|
|||||||
<bean id="rmCopyRecordCategoryCapability"
|
<bean id="rmCopyRecordCategoryCapability"
|
||||||
parent="declarativeCapability">
|
parent="declarativeCapability">
|
||||||
<property name="name" value="CopyRecordCategory"/>
|
<property name="name" value="CopyRecordCategory"/>
|
||||||
|
<property name="permission" value="CreateModifyDestroyFileplanMetadata"/>
|
||||||
<property name="private" value="true"/>
|
<property name="private" value="true"/>
|
||||||
<property name="kinds">
|
<property name="kinds">
|
||||||
<list>
|
<list>
|
||||||
|
@@ -17,6 +17,11 @@
|
|||||||
<property name="group"><ref bean="recordsGroup"/></property>
|
<property name="group"><ref bean="recordsGroup"/></property>
|
||||||
<property name="index" value="35" />
|
<property name="index" value="35" />
|
||||||
<property name="permission" value="CreateRecords"/>
|
<property name="permission" value="CreateRecords"/>
|
||||||
|
<property name="kinds">
|
||||||
|
<list>
|
||||||
|
<value>RECORD_FOLDER</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
<property name="conditions">
|
<property name="conditions">
|
||||||
<map>
|
<map>
|
||||||
<entry key="capabilityCondition.filling" value="true"/>
|
<entry key="capabilityCondition.filling" value="true"/>
|
||||||
@@ -124,7 +129,7 @@
|
|||||||
<property name="group"><ref bean="recordsGroup"/></property>
|
<property name="group"><ref bean="recordsGroup"/></property>
|
||||||
<property name="index" value="45" />
|
<property name="index" value="45" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="rmDeleteLinksCapability"
|
<bean id="rmDeleteLinksCapability"
|
||||||
parent="declarativeCapability">
|
parent="declarativeCapability">
|
||||||
<property name="name" value="DeleteLinks"/>
|
<property name="name" value="DeleteLinks"/>
|
||||||
|
@@ -50,7 +50,7 @@ function runAction(p_params)
|
|||||||
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
||||||
{
|
{
|
||||||
result.name = fileNode.name;
|
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);
|
results.push(result);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@@ -48,7 +48,7 @@ function runAction(p_params)
|
|||||||
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
||||||
{
|
{
|
||||||
result.name = fileNode.name;
|
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);
|
results.push(result);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@@ -50,7 +50,7 @@ function runAction(p_params)
|
|||||||
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
if (!rmService.getRecordsManagementNode(destNode).hasCapability("FillingPermissionOnly"))
|
||||||
{
|
{
|
||||||
result.name = fileNode.name;
|
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);
|
results.push(result);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@@ -145,7 +145,7 @@ public class FileReportAction extends RMActionExecuterAbstractBase implements Re
|
|||||||
{
|
{
|
||||||
if (AccessStatus.DENIED.equals(capabilityService.getCapability("FillingPermissionOnly").hasPermission(nodeRef)))
|
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