ludc
2024-09-12 aed7f0e9be4e88a4ed632f9ca7aca05fa1e7f6b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
package com.vci.web.service;
 
import com.vci.corba.common.PLException;
import com.vci.corba.portal.data.PLUILayout;
import com.vci.corba.portal.data.PLTabPage;
import com.vci.pagemodel.PLTabButtonVO;
import com.vci.pagemodel.PLUILayoutCloneVO;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.BaseQueryObject;
import com.vci.starter.web.pagemodel.BaseResult;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.dto.UIAuthorDTO;
import com.vci.starter.web.pagemodel.Tree;
import com.vci.pagemodel.PLDefinationVO;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
 
/**
 * @author ludc
 * @date 2024/8/28 17:05
 */
public interface UIManagerServiceI {
 
    /**
     * 通过业务类型name查询ui上下文,支持分页
     * @param baseQueryObject
     * @return
     * @throws PLException
     */
    DataGrid gridUIContextData(BaseQueryObject baseQueryObject) throws PLException;
 
    /**
     * 给业务类型下添加ui上下文
     * @param pluiLayout
     * @return
     * @throws PLException
     */
    boolean saveUIContextData(PLUILayout pluiLayout) throws PLException;
 
    /**
     * 修改业务类型下添加ui上下文
     * @param pluiLayout
     * @return
     * @throws PLException
     */
    boolean updateUIContextData(PLUILayout pluiLayout) throws PLException;
 
    /**
     * 根据主键和业务类型oid删除ui上下文数据
     * @return
     */
    boolean delUIContextData(String[] oids,String plRelatedType) throws PLException;
 
    /**
     * 克隆ui上下文
     * @param pluiLayoutCloneVO
     * @return
     */
    boolean cloneUIContextData(PLUILayoutCloneVO pluiLayoutCloneVO) throws PLException;
 
    /**
     * 根据勾选的条件获取需要导出的ui上下文树
     * @param expDatas
     * @return
     */
    Tree getExpContextTree(List<String> expDatas);
 
    /**
     * 导出ui上下文(勾选的要导出的控制区的数据)
     * oids
     * @return
     */
    String expUIContextData(Map<String,String> expConditionMap) throws PLException, IOException;
 
    /**
     * 导入UI上下文
     * @param file
     * @return
     */
    BaseResult impUIContextData(MultipartFile file);
 
    //区域相关查询、添加、删除、修改等接口
    /**
     * 根据上下文ID和区域类型,按顺序获取当前区域的tab页
     */
    DataGrid getTabByContextIdAndType(String contextId, int areaType) throws PLException;
 
    /**
     * 添加区域数据
     * @param plTabPage
     * @return
     */
    boolean addTabData(PLTabPage plTabPage) throws PLException;
 
    /**
     * 修改区域数据
     * @param plTabPage
     * @return
     */
    boolean updateTabData(PLTabPage plTabPage) throws PLException;
 
    /**
     * 删除区域数据
     * @param oids
     * @return
     */
    boolean deleteTabData(String[] oids) throws PLException;
 
    /**
     * 检查扩展属性数据格式是否合规,并给出提示
     * @param extAttr
     * @return
     */
    BaseResult checkTabPageExtAttrIsOk(String extAttr);
 
    //页面设计相关接口
    /**
     * 查询页面设计定义
     * @param pageContextOId
     * @return
     */
    DataGrid getPLPageDefinations(String pageContextOId) throws PLException;
 
    /**
     * 添加页面定义
     * @param pdVO
     * @return
     */
    boolean addPageDefination(PLDefinationVO pdVO) throws Throwable;
 
    /**
     * 修改页面定义
     * @param pdVO
     * @return
     */
    boolean updatePageDefination(PLDefinationVO pdVO) throws Throwable;
 
    /**
     * 删除页面定义
     * @param oids
     * @return
     */
    boolean delPageDefination(String[] oids) throws PLException;
 
    //页面设计下配置按钮相关接口
    /**
     * 获取页签区域按钮配置信息
     * @param pageDefinationOid
     * @return
     */
    List<PLTabButtonVO> getTabButtons(String pageDefinationOid);
 
    /**
     * 添加按钮配置信息
     * @param tabButtonVO
     * @return
     */
    BaseResult addTapButton(PLTabButtonVO tabButtonVO);
 
    /**
     * 修改按钮配置信息
     * @param tabButtonVO
     * @return
     */
    BaseResult updateTapButton(PLTabButtonVO tabButtonVO);
 
    /**
     * 保存或修改按钮配置信息
     * @param tabButtonVO
     * @return
     */
    boolean saveOrUpdateTapButton(PLTabButtonVO tabButtonVO,boolean isAdd);
 
    /**
     * 删除单个按钮配置
     * @param tabButtonVO
     * @return
     */
    boolean deleteTapButton(PLTabButtonVO tabButtonVO) throws PLException;
 
    /**
     * 调整为下级按钮
     * @param tabButtonVO
     * @return
     */
    BaseResult joinBtn(PLTabButtonVO tabButtonVO) throws PLException;
 
    /**
     * 调整为上级按钮
     * @param tabButtonVO
     * @return
     */
    BaseResult exitBtn(PLTabButtonVO tabButtonVO) throws PLException;
 
    /**
     * 获取UI权限树
     * @param baseQueryObject
     * @return
     * @throws VciBaseException
     */
    List<Tree> getUIAuthor(BaseQueryObject baseQueryObject)throws Exception;
 
    /**
     * UI授权
     * @param uiAuthorDTO
     * @return
     * @throws Exception
     */
    boolean authorizedUI(UIAuthorDTO uiAuthorDTO)throws Exception;
 
}