mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
HideRecordAction: Avoid unnecessary iteration
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@45770 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -58,7 +58,7 @@ public class HideRecordAction extends ActionExecuterAbstractBase implements Reco
|
|||||||
|
|
||||||
/** Permission service */
|
/** Permission service */
|
||||||
private PermissionService permissionService;
|
private PermissionService permissionService;
|
||||||
|
|
||||||
/** Extended security service */
|
/** Extended security service */
|
||||||
private ExtendedSecurityService extendedSecurityService;
|
private ExtendedSecurityService extendedSecurityService;
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ public class HideRecordAction extends ActionExecuterAbstractBase implements Reco
|
|||||||
{
|
{
|
||||||
this.permissionService = permissionService;
|
this.permissionService = permissionService;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param extendedSecurityService extended security service
|
* @param extendedSecurityService extended security service
|
||||||
*/
|
*/
|
||||||
@@ -123,9 +123,10 @@ public class HideRecordAction extends ActionExecuterAbstractBase implements Reco
|
|||||||
if (childAssociationRef.isPrimary() == false && childAssociationRef.getParentRef().equals(originalLocation))
|
if (childAssociationRef.isPrimary() == false && childAssociationRef.getParentRef().equals(originalLocation))
|
||||||
{
|
{
|
||||||
nodeService.removeChildAssociation(childAssociationRef);
|
nodeService.removeChildAssociation(childAssociationRef);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the extended security from the node ... this prevents the users from continuing to see the record in searchs and other linked locations
|
// remove the extended security from the node ... this prevents the users from continuing to see the record in searchs and other linked locations
|
||||||
extendedSecurityService.removeAllExtendedReaders(actionedUponNodeRef);
|
extendedSecurityService.removeAllExtendedReaders(actionedUponNodeRef);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user