@@ -23,7 +23,6 @@ public interface RecordDao extends GenericDao<Record, Long> {
23
23
*
24
24
* @param parentId - The Id of the record whose child records we need to retrieve.
25
25
* @param pgCrit Pagination Criteria
26
- * @param recordTypefilter
27
26
* @return An {@link ISearchResults} object.
28
27
*/
29
28
ISearchResults <BaseRecord > getPaginatedChildRecordsOfParentWithFilter (
@@ -35,9 +34,6 @@ ISearchResults<BaseRecord> getPaginatedChildRecordsOfParentWithFilter(
35
34
* Retrieves a list of ids of all the visible, non-deleted, normal (i.e., not templates)
36
35
* structured documents belonging to a parent folder id. The ids are all ordered by creation date
37
36
* ascending, i.e., oldest entries first.
38
- *
39
- * @param parentId
40
- * @return
41
37
*/
42
38
List <Long > getNotebookContentsExcludeFolders (Long parentId );
43
39
@@ -46,7 +42,6 @@ ISearchResults<BaseRecord> getPaginatedChildRecordsOfParentWithFilter(
46
42
*
47
43
* @param users A collection of users to order
48
44
* @param pgCrit PAgination criteria for sorting purposes
49
- * @return
50
45
*/
51
46
Map <String , DatabaseUsageByUserGroupByResult > getTotalRecordsForUsers (
52
47
Collection <User > users , PaginationCriteria <User > pgCrit );
@@ -60,12 +55,7 @@ Map<String, DatabaseUsageByUserGroupByResult> getTotalRecordsForUsers(
60
55
Map <String , DatabaseUsageByUserGroupByResult > getTotalRecordsForUsers (
61
56
PaginationCriteria <User > pgCrit );
62
57
63
- /**
64
- * Gets record in the database related with field
65
- *
66
- * @param fieldId
67
- * @return
68
- */
58
+ /** Gets record in the database related with field */
69
59
BaseRecord getRecordFromFieldId (long fieldId );
70
60
71
61
Long getCountOfUsersWithRecords ();
@@ -91,40 +81,26 @@ Map<String, DatabaseUsageByUserGroupByResult> getTotalRecordsForUsers(
91
81
*/
92
82
List <RSpaceDocView > getRecordViewsById (Set <Long > dbids );
93
83
94
- /**
95
- * Get records by id, from a list of Ids.
96
- *
97
- * @param dbids
98
- * @return
99
- */
84
+ /** Get records by id, from a list of Ids. */
100
85
List <Record > getRecordsById (List <Long > dbids );
101
86
102
87
/**
103
- * Gets all viewable records belonging to the user. This method does <em>not</em> return items
104
- * belonging to other users.
105
- *
106
- * @param user
107
- * @return
88
+ * Gets all viewable records belonging to the set of users. This method does <em>not</em> return
89
+ * items belonging to other users.
108
90
*/
109
- Set <BaseRecord > getViewableRecordsForUser ( User user );
91
+ Set <BaseRecord > getViewableRecordsForUsers ( Set < Long > userIds );
110
92
111
93
/**
112
- * Gets all viewable templates belonging to the user. This method does <em>not</em> return items
113
- * belonging to other users.
114
- *
115
- * @param user
116
- * @return
94
+ * Gets all viewable templates belonging to the set of users. This method does <em>not</em> return
95
+ * items belonging to other users.
117
96
*/
118
- Set <BaseRecord > getViewableTemplatesForUser ( User user );
97
+ Set <BaseRecord > getViewableTemplatesForUsers ( Set < Long > userIds );
119
98
120
99
/**
121
- * Gets all viewable media files belonging to the user. This method does <em>not</em> return items
122
- * belonging to other users.
123
- *
124
- * @param user
125
- * @return
100
+ * Gets all viewable media files belonging to the set of users. This method does <em>not</em>
101
+ * return items belonging to other users.
126
102
*/
127
- Set <BaseRecord > getViewableMediaFiles (User user );
103
+ Set <BaseRecord > getViewableMediaFiles (Set < Long > userIds );
128
104
129
105
/** Tests if BaseRecord with id is a Record or not */
130
106
boolean isRecord (Long id );
@@ -144,8 +120,6 @@ List<String> getTextDataFromOntologyFilesOwnedByUserIfSharedWithAGroup(
144
120
* If <code>admin</code> is linked to a community, gets all tags in documents created by users of
145
121
* that community. Otherwise, returns an empty set.
146
122
*
147
- * @param admin
148
- * @param tagSearch
149
123
* @return A list of docTag values (these may contain multiple individual tags)
150
124
*/
151
125
List <String > getTagsMetaDataForRecordsVisibleByCommunityAdmin (User admin , String tagSearch );
@@ -155,7 +129,6 @@ List<String> getTextDataFromOntologyFilesOwnedByUserIfSharedWithAGroup(
155
129
/**
156
130
* Gets some metadata of Documents that link to a media file
157
131
*
158
- * @param mediaFileId
159
132
* @return a possibly empty but non-null List
160
133
*/
161
134
List <RecordInformation > getInfosOfDocumentsLinkedToMediaFile (Long mediaFileId );
@@ -166,43 +139,24 @@ List<String> getTextDataFromOntologyFilesOwnedByUserIfSharedWithAGroup(
166
139
* RSPAC-1735) in the same transaction, whereby hibernate occasionally does not issue an SQL
167
140
* 'delete from RecordToFolder' from old folder <em>In general use RecordManager#move to move
168
141
* items around </em>
169
- *
170
- * @param toUpdate
171
- * @param newFolderId
172
- * @return
173
142
*/
174
143
int updateRecordToFolder (RecordToFolder toUpdate , Long newFolderId );
175
144
176
- /**
177
- * Get the ids of not-deleted notebooks belonging to the user
178
- *
179
- * @param user
180
- * @return
181
- */
145
+ /** Get the ids of not-deleted notebooks belonging to the user */
182
146
List <Long > getAllNotebookIdsOwnedByUser (User user );
183
147
184
148
/**
185
149
* Gets ids of all not-deleted StructuredDocuments that are in notebooks, where both the documents
186
150
* and notebooks are owned by the user
187
- *
188
- * @param user
189
- * @return
190
151
*/
191
152
List <Long > getAllDocumentIdsInNotebooksForUser (User user );
192
153
193
- /**
194
- * Gets the ids of all not-deleted Structured Documents owned by the user.
195
- *
196
- * @param user
197
- * @return
198
- */
154
+ /** Gets the ids of all not-deleted Structured Documents owned by the user. */
199
155
List <Long > getAllNonTemplateNonTemporaryStrucDocIdsOwnedByUser (User user );
200
156
201
157
/**
202
158
* Gets not-deleted document count for a user, based on filter.
203
159
*
204
- * @param recordTypes
205
- * @param user
206
160
* @return the number of documents owned by the user, of the specified types
207
161
*/
208
162
Long getRecordCountForUser (RecordTypeFilter recordTypes , User user );
0 commit comments