1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.opencastproject.list.impl;
23
24 import org.opencastproject.list.api.ResourceListFilter;
25 import org.opencastproject.list.api.ResourceListQuery;
26 import org.opencastproject.util.data.Option;
27
28 import java.util.Collections;
29 import java.util.List;
30
31
32
33
34 public class EmptyResourceListQuery implements ResourceListQuery {
35 @Override
36 public List<ResourceListFilter<?>> getFilters() {
37 return Collections.emptyList();
38 }
39
40 @Override
41 public List<ResourceListFilter<?>> getAvailableFilters() {
42 return Collections.emptyList();
43 }
44
45 @Override
46 public ResourceListFilter<?> getFilter(String name) {
47 return null;
48 }
49
50 @Override
51 public Option<Integer> getLimit() {
52 return Option.some(0);
53 }
54
55 @Override
56 public Option<Integer> getOffset() {
57 return Option.none();
58 }
59
60 @Override
61 public Option<String> getSortBy() {
62 return Option.none();
63 }
64
65 @Override
66 public Boolean hasFilter(String name) {
67 return false;
68 }
69 }