mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
124278 adavis: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 124237 amorarasu: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2) 124191 amorarasu: Merged V4.2-BUG-FIX (4.2.7) to 5.0.N (5.0.4) 124133 arebegea: MNT-14671 : Site with document locked for Edit Offline cannot be deleted - disabled the ASPECT_LOCKABLE when deleting a site - added tests for delete and restore site git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1628,6 +1628,7 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
|
||||
//
|
||||
// See ALF-7888 for some background on this issue
|
||||
this.behaviourFilter.disableBehaviour(siteNodeRef, ContentModel.ASPECT_UNDELETABLE);
|
||||
this.behaviourFilter.disableBehaviour(ContentModel.ASPECT_LOCKABLE);
|
||||
|
||||
NodeRef siteParent = getSiteParent(shortName);
|
||||
this.behaviourFilter.disableBehaviour(siteParent, ContentModel.ASPECT_AUDITABLE);
|
||||
@@ -1639,6 +1640,7 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
|
||||
finally
|
||||
{
|
||||
this.behaviourFilter.enableBehaviour(siteNodeRef, ContentModel.ASPECT_UNDELETABLE);
|
||||
this.behaviourFilter.enableBehaviour(ContentModel.ASPECT_LOCKABLE);
|
||||
this.behaviourFilter.enableBehaviour(siteParent, ContentModel.ASPECT_AUDITABLE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user