Started removing DTOs
[pithos] / src / gr / ebs / gss / server / ejb / GSSDAO.java
index 518964a..4241f16 100644 (file)
@@ -348,16 +348,6 @@ public interface GSSDAO {
        public Nonce getNonce(String nonce, Long userId) throws ObjectNotFoundException;
 
        /**
-        * Loads the file for indexing. That means the file is loaded with the lazy fields needed for inedexing, initialized.
-        * For now only the tags need to be initialized
-        *
-        * @param id
-        * @return the {@link FileHeader} with initialized tags
-        * @throws ObjectNotFoundException when a file with the specified id does not exist
-        */
-       public FileHeader getFileForIndexing(Long id) throws ObjectNotFoundException;
-
-       /**
         * Calculates total file size of user.
         *
         * @param userId the ID of the user
@@ -473,4 +463,43 @@ public interface GSSDAO {
         */
        public List<FileHeader> getFilesPermittedForGroup(Long userId, Long groupId) throws ObjectNotFoundException;
 
+    /**
+     * Gets a file with tags initialized, cause indexing does not always run within a transaction (e.g. during rebuild)
+     * 
+     * @param id
+     * @return
+     * @throws ObjectNotFoundException
+     */
+    public FileHeader getFileForIndexing(Long id) throws ObjectNotFoundException;
+
+       /**
+        * @param userId
+        * @return
+        */
+       List<FileHeader> getSharingFilesForUser(Long userId);
+
+       /**
+        * @param userId
+        * @return
+        */
+       List<Folder> getSharingFoldersForUser(Long userId);
+
+       /**
+        * @param userId
+        * @return
+        */
+       List<Group> getGroupsContainingUser(Long userId);
+
+       /**
+        * @param userId
+        * @return
+        */
+       List<FileUploadStatus> getUploadStatus(Long userId);
+
+       /**
+        * @param userId
+        * @return
+        */
+       int deletePermissionsNotCorrespondingToFilesAndFolders(Long userId);
+
 }