|
1 |
| package photospace.service; |
|
2 |
| |
|
3 |
| import org.springframework.remoting.jaxrpc.*; |
|
4 |
| import photospace.*; |
|
5 |
| import photospace.meta.*; |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| public class Photospace |
|
13 |
| extends ServletEndpointSupport |
|
14 |
| { |
|
15 |
0
| public Meta browse(String path, int sortOrder, int start, int end) throws Exception
|
|
16 |
| { |
|
17 |
0
| return Application.searcher().browse(path, sortOrder, start, end);
|
|
18 |
| } |
|
19 |
| |
|
20 |
0
| public SearchResult search(String query, int sortOrder, int start, int end) throws Exception
|
|
21 |
| { |
|
22 |
0
| return Application.searcher().search(query, sortOrder, start, end);
|
|
23 |
| } |
|
24 |
| |
|
25 |
0
| public Meta get(String path) throws Exception
|
|
26 |
| { |
|
27 |
0
| return Application.persister().getMeta(path);
|
|
28 |
| } |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| |
|
36 |
| } |