Complete the code that allows the deletion of group permissions in files and/or folde...
authorNatasa Kapravelou <akapravelou@gmail.com>
Thu, 23 Sep 2010 09:42:15 +0000 (12:42 +0300)
committerNatasa Kapravelou <akapravelou@gmail.com>
Thu, 23 Sep 2010 09:42:15 +0000 (12:42 +0300)
src/gr/ebs/gss/server/ejb/ExternalAPIBean.java

index b112b51..a6add6d 100644 (file)
@@ -502,8 +502,10 @@ public class ExternalAPIBean implements ExternalAPI, ExternalAPIRemote {
                                }
                        }
                        List<FileHeader> 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();