1
2
3
4
5 package gboat2.web.business;
6
7 import gboat2.base.core.dao.Page;
8 import gboat2.base.core.service.IBaseService;
9 import gboat2.web.model.Resource;
10
11 import java.util.List;
12
13
14
15
16
17
18 public interface IResourceBusiness extends IBaseService {
19
20
21
22
23
24
25
26
27
28 public Page<Resource> getAnnotatedResources(String queryString, String page, String pagesize);
29
30
31
32
33
34
35 public double getMaxOrderWithParent(String parentId);
36
37
38
39
40
41
42
43
44 public boolean moveResource(String movedId, String targetParentId, int targetIndex);
45
46
47
48
49
50
51
52 public boolean deleteResource(Resource resource) ;
53
54
55
56
57
58
59 public List<Resource> getChildrenByParentId(String parentId);
60
61
62
63
64
65
66 public List<Resource> getChildrenByParentId(String parentId, String systemId);
67
68
69
70
71
72
73 public List<Resource> getTopLevelResources(String systemId);
74
75
76
77
78
79 public Resource getResourcesTree(String systemId);
80
81
82
83
84
85
86 public Resource getPreviousSibling(Resource res);
87
88 public List<Resource> getAllResource();
89
90 public Resource getResourceByResname(String resName);
91
92 public List<Resource> getResourceByUrl(String resUrl);
93
94
95
96
97
98
99 public Resource getResourceByCode(String resCode);
100
101
102
103
104
105
106
107 public boolean copyResource(String copyedId, String targetParentId);
108
109
110
111
112
113
114
115 }