ludc
2024-09-26 085df90e488067783759dcd63cdb5fb43a51ff1f
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIManagerServiceI.java
@@ -1,19 +1,26 @@
package com.vci.web.service;
import com.vci.corba.common.PLException;
import com.vci.corba.omd.btm.BizType;
import com.vci.corba.omd.qtm.QTInfo;
import com.vci.corba.portal.data.PLUILayout;
import com.vci.dto.RoleRightDTO;
import com.vci.dto.UIAuthorDTO;
import com.vci.corba.portal.data.PLTabPage;
import com.vci.corba.portal.data.PortalVI;
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.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
 * @author ludc
@@ -49,21 +56,148 @@
     * 根据主键和业务类型oid删除ui上下文数据
     * @return
     */
    boolean delUIContextData(String[] oids) throws PLException;
    boolean delUIContextData(String[] oids,String plRelatedType) throws PLException;
    /**
     * 克隆ui上下文
     * @param pluiLayoutCloneVO
     * @return
     */
    boolean cloneUiContextData(PLUILayoutCloneVO pluiLayoutCloneVO) throws PLException;
    boolean cloneUIContextData(PLUILayoutCloneVO pluiLayoutCloneVO) throws PLException;
    /**
     * 根据勾选的条件获取需要导出的ui上下文树
     * @param expDatas
     * @return
     */
    Tree getExpContextTree(List<String> expDatas);
    /**
     * 导出ui上下文(勾选的要导出的控制区的数据)
     * oids
     * @return
     */
    void expUiContextData(String[] oids, HttpServletResponse response) throws PLException, IOException;
    String expUIContextData(Map<String,String> expConditionMap) throws PLException, IOException;
    /**
     * 导入UI上下文
     * @param file
     * @return
     */
    BaseResult impUIContextData(File file, boolean isCovered,String selectBtm);
    //区域相关查询、添加、删除、修改等接口
    /**
     * 根据上下文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权限树
@@ -71,13 +205,46 @@
     * @return
     * @throws VciBaseException
     */
     List<Tree> getUIAuthor(BaseQueryObject baseQueryObject)throws Exception;
    List<Tree> getUIAuthor(BaseQueryObject baseQueryObject)throws Exception;
    /***
    /**
     * UI授权
     * @param uiAuthorDTO
     * @return
     * @throws Exception
     */
    public boolean authorizedUI(UIAuthorDTO uiAuthorDTO)throws Exception;
    boolean authorizedUI(UIAuthorDTO uiAuthorDTO)throws Exception;
    /**
     * 业务类型、源对象类型、顶层节点显示类型等都调用这个接口查询
     * @param baseQueryObject
     * @return
     * @throws PLException
     */
    DataGrid<BizType> getBtmDatasByPage(BaseQueryObject baseQueryObject) throws Throwable;
    /**
     * UI定义下拉查询(templateType为UI定义时的选择对象下拉查询)
     * @param baseQueryObject selectBtmType 选择的源对象,带分页信息
     * @return
     * @throws PLException
     */
    DataGrid<PLUILayout> getUILayoutDatasByPage(BaseQueryObject baseQueryObject)throws Throwable;
    /**
     * 选择模板下拉查询(templateType为表格、表单、树表时的选择对象下拉查询)
     * @param baseQueryObject
     * @return
     * @throws PLException
     */
    DataGrid<PortalVI> getPortalVIDatasByPage(BaseQueryObject baseQueryObject) throws Throwable;
    /**
     * 查询模板下拉查询
     * @param baseQueryObject
     * @return
     * @throws PLException
     */
    DataGrid<QTInfo> getQTInfoDatasByPage(BaseQueryObject baseQueryObject)throws Throwable;
}