mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -142,5 +142,4 @@
|
|||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
@@ -170,14 +170,15 @@
|
|||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="rmManageAccessRightsCapability"
|
<bean id="rmManageAccessRightsCapability"
|
||||||
parent="declarativeCapability">
|
parent="declarativeCapability">
|
||||||
<property name="name" value="ManageAccessRights"/>
|
<property name="name" value="ManageAccessRights"/>
|
||||||
<property name="permission" value="ManageAccessRights"/>
|
<property name="permission" value="ManageAccessRights"/>
|
||||||
<property name="conditions">
|
<property name="conditions">
|
||||||
<map>
|
<map>
|
||||||
<entry key="capabilityCondition.frozen" value="false"/>
|
<entry key="capabilityCondition.frozen" value="false"/>
|
||||||
</map>
|
<entry key="capabilityCondition.filling" value="true"/>
|
||||||
</property>
|
</map>
|
||||||
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="rmMapClassificationGuideMetadataCapability"
|
<bean id="rmMapClassificationGuideMetadataCapability"
|
||||||
|
@@ -300,18 +300,18 @@
|
|||||||
<property name="capability" value="Delete"/>
|
<property name="capability" value="Delete"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="jsonConversionComponent.managePermissionsAction"
|
<bean id="jsonConversionComponent.managePermissionsAction"
|
||||||
parent="jsonConversionComponent.baseAction">
|
parent="jsonConversionComponent.baseAction">
|
||||||
<property name="name" value="managePermissions"/>
|
<property name="name" value="managePermissions"/>
|
||||||
<property name="kinds">
|
<property name="kinds">
|
||||||
<set>
|
<set>
|
||||||
<value>RECORD_CATEGORY</value>
|
<value>FILE_PLAN</value>
|
||||||
<value>RECORD_FOLDER</value>
|
<value>RECORD_CATEGORY</value>
|
||||||
<value>RECORD</value>
|
<value>RECORD_FOLDER</value>
|
||||||
</set>
|
</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="capability" value ="ManageAccessRights"/>
|
<property name="capability" value ="ManageAccessRights"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="jsonConversionComponent.viewAuditLogAction"
|
<bean id="jsonConversionComponent.viewAuditLogAction"
|
||||||
parent="jsonConversionComponent.baseAction">
|
parent="jsonConversionComponent.baseAction">
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user