DOD Recert: Allow permissions to be set on the file plan node (so that Dan and Jan can create root categories)

* Merge HEAD to DEV/DODCERT

    - r43798 RM-552 (Add 'Manage Permission' action to file plan toolbar)
    - r43859 RM-552 (Add 'Manage Permission' action to file plan toolbar)
                * Changed the icons
    - r43863 RM-552 (Add 'Manage Permission' action to file plan toolbar)
                * Changed the existing ManageAccessRights capability and reusing it



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/DODRECERT@50933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-06-12 04:09:07 +00:00
parent 70ba19991c
commit cb6eb52bbf
4 changed files with 34 additions and 31 deletions

View File

@@ -142,5 +142,4 @@
</list> </list>
</property> </property>
</bean> </bean>
</beans> </beans>

View File

@@ -176,6 +176,7 @@
<property name="conditions"> <property name="conditions">
<map> <map>
<entry key="capabilityCondition.frozen" value="false"/> <entry key="capabilityCondition.frozen" value="false"/>
<entry key="capabilityCondition.filling" value="true"/>
</map> </map>
</property> </property>
</bean> </bean>

View File

@@ -305,9 +305,9 @@
<property name="name" value="managePermissions"/> <property name="name" value="managePermissions"/>
<property name="kinds"> <property name="kinds">
<set> <set>
<value>FILE_PLAN</value>
<value>RECORD_CATEGORY</value> <value>RECORD_CATEGORY</value>
<value>RECORD_FOLDER</value> <value>RECORD_FOLDER</value>
<value>RECORD</value>
</set> </set>
</property> </property>
<property name="capability" value ="ManageAccessRights"/> <property name="capability" value ="ManageAccessRights"/>

View File

@@ -831,8 +831,11 @@ public class RecordsManagementSecurityServiceImpl implements RecordsManagementSe
{ {
public Boolean doWork() throws Exception public Boolean doWork() throws Exception
{ {
if (recordsManagementService.isFilePlan(nodeRef) == false && if (recordsManagementService.isFilePlan(nodeRef) == true)
recordsManagementService.isRecordCategory(nodeRef) == true) {
setPermissionDown(nodeRef, authority, permission);
}
else if (recordsManagementService.isRecordCategory(nodeRef) == true)
{ {
setReadPermissionUp(nodeRef, authority); setReadPermissionUp(nodeRef, authority);
setPermissionDown(nodeRef, authority, permission); setPermissionDown(nodeRef, authority, permission);