@@ -110,15 +110,16 @@ public Collection<GroupSessionCount> getActivateGroupSessionCounts() {
110110
111111 @ Operation (
112112 summary = "Get a page of all groups the requesting user can access for proctoring" ,
113- description = "Sorting: the sort parameter to sort the list of entities before paging\n "
114- + "the sort parameter is the name of the entity-model attribute to sort with a leading '-' sign for\n "
115- + "descending sort order. Note that not all entity-model attribute are suited for sorting while the most\n "
116- + "are.\n "
117- + "</p>\n "
118- + "Filter: The filter attributes accepted by this API depend on the actual entity model (domain object)\n "
119- + "and are of the form [domain-attribute-name]=[filter-value]. E.g.: name=abc or type=EXAM. Usually\n "
120- + "filter attributes of text type are treated as SQL wildcard with %[text]% to filter all text containing\n "
121- + "a given text-snippet." ,
113+ description = """
114+ Sorting: the sort parameter to sort the list of entities before paging
115+ the sort parameter is the name of the entity-model attribute to sort with a leading '-' sign for
116+ descending sort order. Note that not all entity-model attribute are suited for sorting while the most
117+ are.
118+ </p>
119+ Filter: The filter attributes accepted by this API depend on the actual entity model (domain object)
120+ and are of the form [domain-attribute-name]=[filter-value]. E.g.: name=abc or type=EXAM. Usually
121+ filter attributes of text type are treated as SQL wildcard with %[text]% to filter all text containing
122+ a given text-snippet.""" ,
122123 requestBody = @ io .swagger .v3 .oas .annotations .parameters .RequestBody (
123124 content = { @ Content (mediaType = MediaType .APPLICATION_FORM_URLENCODED_VALUE ) }),
124125 parameters = {
@@ -167,15 +168,16 @@ public Page<GroupViewData> getGroups(
167168
168169 @ Operation (
169170 summary = "Get a page of screen proctoring session data of a given group" ,
170- description = "Sorting: the sort parameter to sort the list of entities before paging\n "
171- + "the sort parameter is the name of the entity-model attribute to sort with a leading '-' sign for\n "
172- + "descending sort order. Note that not all entity-model attribute are suited for sorting while the most\n "
173- + "are.\n "
174- + "</p>\n "
175- + "Filter: The filter attributes accepted by this API depend on the actual entity model (domain object)\n "
176- + "and are of the form [domain-attribute-name]=[filter-value]. E.g.: name=abc or type=EXAM. Usually\n "
177- + "filter attributes of text type are treated as SQL wildcard with %[text]% to filter all text containing\n "
178- + "a given text-snippet." ,
171+ description = """
172+ Sorting: the sort parameter to sort the list of entities before paging
173+ the sort parameter is the name of the entity-model attribute to sort with a leading '-' sign for
174+ descending sort order. Note that not all entity-model attribute are suited for sorting while the most
175+ are.
176+ </p>
177+ Filter: The filter attributes accepted by this API depend on the actual entity model (domain object)
178+ and are of the form [domain-attribute-name]=[filter-value]. E.g.: name=abc or type=EXAM. Usually
179+ filter attributes of text type are treated as SQL wildcard with %[text]% to filter all text containing
180+ a given text-snippet.""" ,
179181 requestBody = @ io .swagger .v3 .oas .annotations .parameters .RequestBody (
180182 content = { @ Content (mediaType = MediaType .APPLICATION_FORM_URLENCODED_VALUE ) }),
181183 parameters = {
@@ -196,12 +198,11 @@ public Page<GroupViewData> getGroups(
196198 description = "The sorting order" ),
197199 @ Parameter (
198200 name = "filterCriteria" ,
199- description = "Additional search filter criteria \n " +
200- "This is a collecting map of all request parameter and used by the method to extract "
201- +
202- "known search filter criteria and if available in the mapping use it for the search request\n "
203- +
204- "NOTE: For OpenAPI 3 input please use the form: {\" columnName\" :\" filterValue\" }" ,
201+ description = """
202+ Additional search filter criteria\s
203+ This is a collecting map of all request parameter and used by the method to extract \
204+ known search filter criteria and if available in the mapping use it for the search request
205+ NOTE: For OpenAPI 3 input please use the form: {"columnName":"filterValue"}""" ,
205206 example = "{\" active\" :true}" ,
206207 required = false ,
207208 allowEmptyValue = true )
@@ -973,10 +974,9 @@ public List<UserListForApplicationSearch> getUserListForApplicationSearch(
973974 @ RequestParam (name = API .SCREENSHOT_META_DATA_ACTIVE_WINDOW_TITLE , required = true ) final String metadataWindowTitle ,
974975 @ RequestParam (name = API .PARAM_GROUP_IDS , required = true ) final String groupIds ){
975976
976- return this .screenshotDataDAO .getUserListForApplicationSearch (metadataApplication , metadataWindowTitle , getIdListFromParameter (groupIds ))
977- .getOrThrow ()
978- .stream ()
979- .toList ();
977+ return this .screenshotDataDAO
978+ .getUserListForApplicationSearch (metadataApplication , metadataWindowTitle , getIdListFromParameter (groupIds ))
979+ .getOrThrow ();
980980 }
981981
982982 @ Operation (
@@ -1005,10 +1005,9 @@ public List<Long> getTimestampListForApplicationSearch(
10051005 @ RequestParam (name = API .SCREENSHOT_META_DATA_APPLICATION , required = true ) final String metadataApplication ,
10061006 @ RequestParam (name = API .SCREENSHOT_META_DATA_ACTIVE_WINDOW_TITLE , required = true ) final String metadataWindowTitle ){
10071007
1008- return this .screenshotDataDAO .getTimestampListForApplicationSearch (sessionUuid , metadataApplication , metadataWindowTitle )
1009- .getOrThrow ()
1010- .stream ()
1011- .toList ();
1008+ return this .screenshotDataDAO
1009+ .getTimestampListForApplicationSearch (sessionUuid , metadataApplication , metadataWindowTitle )
1010+ .getOrThrow ();
10121011 }
10131012
10141013
@@ -1058,8 +1057,8 @@ private List<Long> getIdListFromParameter(final String ids){
10581057 String [] idsString = StringUtils .split (ids , Constants .LIST_SEPARATOR_CHAR );
10591058 List <Long > idsList = new ArrayList <>();
10601059
1061- for ( int i = 0 ; i < idsString . length ; i ++) {
1062- idsList .add (Long .parseLong (idsString [ i ] ));
1060+ for ( String s : idsString ) {
1061+ idsList .add (Long .parseLong (s ));
10631062 }
10641063
10651064 return idsList ;
0 commit comments