X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/ff397940455a1c9eecc31da380c6507c9b209bb3..de595072a5b2c6928438ea8b2ed2f557be34c109:/src/gr/ebs/gss/server/ejb/ExternalAPIBean.java diff --git a/src/gr/ebs/gss/server/ejb/ExternalAPIBean.java b/src/gr/ebs/gss/server/ejb/ExternalAPIBean.java index b112b51..a6add6d 100644 --- a/src/gr/ebs/gss/server/ejb/ExternalAPIBean.java +++ b/src/gr/ebs/gss/server/ejb/ExternalAPIBean.java @@ -502,8 +502,10 @@ public class ExternalAPIBean implements ExternalAPI, ExternalAPIRemote { } } List files = dao.getSharedFilesNotInSharedFolders(userId); - for(FileHeader h : files) + for(FileHeader h : files){ h.getPermissions().removeAll(group.getPermissions()); + touchFile(h,owner,now); + } owner.removeSpecifiedGroup(group); dao.delete(group); } @@ -2679,7 +2681,7 @@ public class ExternalAPIBean implements ExternalAPI, ExternalAPIRemote { } /** - * Mark the folder as modified from the specified user and change modification date. + * Mark the folder as modified from the specified user and change it's modification date. */ private void touchFolder(Folder f, User owner, Date now){ final AuditInfo auditInfo = new AuditInfo(); @@ -2691,7 +2693,7 @@ public class ExternalAPIBean implements ExternalAPI, ExternalAPIRemote { } /** - * Mark the file as modified from the specified user and change modification date. + * Mark the file as modified from the specified user and change it's modification date. */ private void touchFile(FileHeader f, User owner, Date now){ final AuditInfo auditInfo = new AuditInfo();