wangting
2024-12-02 cdba4febf23c6f55346a474579361923aacf0bc9
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/WebLoServiceI.java
@@ -1,9 +1,9 @@
package com.vci.web.service;
import com.vci.client.bof.ClientBusinessObject;
import com.vci.client.bof.ClientLinkObject;
import com.vci.client.bof.ClientLinkObjectOperation;
import com.vci.corba.omd.data.AttributeValue;
import com.vci.corba.omd.data.BusinessObject;
import com.vci.corba.omd.data.LinkObject;
import com.vci.corba.query.data.BOAndLO;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.starter.web.pagemodel.PageHelper;
@@ -15,14 +15,6 @@
public interface WebLoServiceI {
   /**
    * 获取平台的链接类型的操作类
    * @return
    * @throws VciBaseException
    */
    ClientLinkObjectOperation getLoOption() throws VciBaseException;
   /**
    * 根据查询条件来查询链接类型
    * @param linkType 链接类型
@@ -30,7 +22,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientLinkObject>  queryCLO(String linkType, Map<String, String> conditionMap) throws VciBaseException;
    List<LinkObject>  queryCLO(String linkType, Map<String, String> conditionMap) throws VciBaseException;
   /**
    * 根据查询条件来查询链接类型
@@ -40,7 +32,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientBusinessObject> queryLinkCbo(String linkType, String toBtmname, Map<String, String> conditionMap) throws VciBaseException;
    List<BusinessObject> queryLinkCbo(String linkType, String toBtmname, Map<String, String> conditionMap) throws VciBaseException;
   /**
    * 查询链接类型
@@ -51,7 +43,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientLinkObject> queryCLO(String linkType, String toBtmName, int level, Map<String, String> conditionMap) throws VciBaseException;
    List<LinkObject> queryCLO(String linkType, String toBtmName, int level, Map<String, String> conditionMap) throws VciBaseException;
   /**
    * 查询to端的业务类型
@@ -62,7 +54,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientBusinessObject> queryLinkCbo(String linkType, String toBtmname, int level, Map<String, String> conditionMap) throws VciBaseException;
    List<BusinessObject> queryLinkCbo(String linkType, String toBtmname, int level, Map<String, String> conditionMap) throws VciBaseException;
   /**
    * 查询链接类型
@@ -74,7 +66,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientLinkObject> queryCLO(String linkType, String toBtmName,
    List<LinkObject> queryCLO(String linkType, String toBtmName,
                                     int level, boolean isDirection, Map<String, String> conditionMap)
         throws VciBaseException;
@@ -89,7 +81,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientLinkObject> queryCLO(String linkType, String toBtmName,
    List<LinkObject> queryCLO(String linkType, String toBtmName,
                                     int level, boolean isDirection, Map<String, String> conditionMap, PageHelper ph)
         throws VciBaseException;
@@ -103,7 +95,7 @@
    * @return
    * @throws VciBaseException
    */
    List<ClientBusinessObject> queryLinkCbo(String linkType, String toBtmname,
    List<BusinessObject> queryLinkCbo(String linkType, String toBtmname,
                                             int level, boolean isDirection, Map<String, String> conditionMap)
         throws VciBaseException;
@@ -114,7 +106,7 @@
    * @return
    * @throws VciBaseException
    */
    Map<String,com.vci.client.bof.ClientBusinessObject> queryLinkedCbo(LinkObject[] lo, boolean isDirection) throws VciBaseException;
    Map<String,BusinessObject> queryLinkedCbo(LinkObject[] lo, boolean isDirection) throws VciBaseException;
   /**
    *查询链接类型某端的业务类型
@@ -123,16 +115,16 @@
    * @return
    * @throws VciBaseException
    */
    Map<String,com.vci.client.bof.ClientBusinessObject> queryLinkedCbo(List los, boolean isDirection) throws VciBaseException;
    Map<String,BusinessObject> queryLinkedCbo(List los, boolean isDirection) throws VciBaseException;
   /**
    *查询链接类型某端的业务类型
    * @param clo 链接类型对象
    * @param isDirection 是否反向
    * @return
    * @throws VciBaseException
    */
    Map<String,com.vci.client.bof.ClientBusinessObject> queryLinkedCbo(ClientLinkObject[] clo, boolean isDirection) throws VciBaseException;
//   /**
//    *查询链接类型某端的业务类型
//    * @param clo 链接类型对象
//    * @param isDirection 是否反向
//    * @return
//    * @throws VciBaseException
//    */
//    Map<String,BusinessObject> queryLinkedCbo(LinkObject[] clo, boolean isDirection) throws VciBaseException;
   /**
    * 查询链接类型某端的业务类型
@@ -142,7 +134,7 @@
    * @return
    * @throws VciBaseException
    */
    Map<String, com.vci.client.bof.ClientBusinessObject> queryLinkedCbo(ClientLinkObject[] clol,
    Map<String, BusinessObject> queryLinkedCbo(LinkObject[] clol,
                                                      boolean isDirection, List<String> queryColumn) throws VciBaseException;
   /**
@@ -153,40 +145,40 @@
    * @return
    * @throws VciBaseException
    */
    Map<String, ClientBusinessObject> queryLinkedCbo(List los,
    Map<String, BusinessObject> queryLinkedCbo(List los,
                                                      boolean isDirection, List<String> queryColumn) throws VciBaseException;
   
    /**
     * ClientLinkObject 转为HashMap
     * LinkObject 转为HashMap
     * @param clos clos
     * @return map
     * @throws VciBaseException
     */
     List<Map> clos2Map(List<ClientLinkObject> clos) throws VciBaseException;
     List<Map> clos2Map(List<LinkObject> clos) throws VciBaseException;
    
    /**
     * ClientLinkObject 转为HashMap
     * LinkObject 转为HashMap
     * @param clo
     * @return
     * @throws VciBaseException
     */
     Map clo2Map(ClientLinkObject clo) throws VciBaseException;
     Map clo2Map(LinkObject clo) throws VciBaseException;
    
    /**
     * map转为ClientLinkObject
     * map转为LinkObject
     * @param map 
     * @return
     * @throws VciBaseException
     */
     List<ClientLinkObject> map2Clos(List<Map> map) throws VciBaseException;
     List<LinkObject> map2Clos(List<Map> map) throws VciBaseException;
    
    /**
     * map转为ClientLinkObject
     * map转为LinkObject
     * @param map
     * @return
     * @throws VciBaseException
     */
     ClientLinkObject map2Clo(Map map) throws VciBaseException;
     LinkObject map2Clo(Map map) throws VciBaseException;
   /**
    * 保存链接类型对象
@@ -194,7 +186,7 @@
    * @return
    * @throws VciBaseException
    */
   List<ClientLinkObject> saveClientLinkObjects(List<ClientLinkObject> clos) throws VciBaseException;
   List<LinkObject> saveLinkObjects(List<LinkObject> clos) throws VciBaseException;
   /**
    * 创建连接类型
@@ -202,7 +194,7 @@
    * @return
    * @throws VciBaseException
    */
   ClientLinkObject createClientLinkObject(String loName) throws VciBaseException;
   LinkObject createLinkObject(String loName) throws VciBaseException;
   /**
    * 拷贝链接类型
@@ -210,35 +202,35 @@
    * @return
    * @throws VciBaseException
    */
   ClientLinkObject cloneClientLinkObject(ClientLinkObject clo) throws VciBaseException;
   LinkObject cloneLinkObject(LinkObject clo) throws VciBaseException;
   /**
    * 删除链接类型
    * @param clos 链接类型的内容
    * @throws VciBaseException
    */
   void deleteClientLinkObjects(List<ClientLinkObject> clos) throws VciBaseException;
   void deleteLinkObjects(List<LinkObject> clos) throws VciBaseException;
   /**
    * 更新链接类型
    * @param clos 链接类型的对象
    * @throws VciBaseException 执行出错会抛出异常
    */
   void updateClientLinkObject(List<ClientLinkObject> clos) throws VciBaseException;
   void updateLinkObject(List<LinkObject> clos) throws VciBaseException;
   /**
    * 查询链接类型和业务类型
    * @param linkTypeDataQuery 查询对象
    * @return 链接类型和关联的to端
    */
   List<com.vci.corba.query.data.BOAndLO> queryCLOAndBOBySchema(UILinkTypeDataQuery linkTypeDataQuery) ;
   List<BOAndLO> queryCLOAndBOBySchema(UILinkTypeDataQuery linkTypeDataQuery) ;
   /**
    * 使用链接类型的名称查询 链接类型的to端的业务类型
    * @param linkTypeDataQuery 查询的对象
    * @return 链接对象和to端业务对象
    */
   List<com.vci.corba.query.data.BOAndLO> queryCLOAndBoByLinkType(UILinkTypeDataQuery linkTypeDataQuery);
   List<BOAndLO> queryCLOAndBoByLinkType(UILinkTypeDataQuery linkTypeDataQuery);
   /**
    * 查询列表
@@ -272,8 +264,8 @@
    * @param attributeName 属性名称
    * @param attributeValue 属性的值
    */
   public default void setAttribute(com.vci.client.bof.ClientLinkObject clo,String attributeName,String attributeValue){
      com.vci.corba.omd.data.AttributeValue[] attrValues =clo.getLinkObject().newAttrValList;
   public default void setAttribute(LinkObject clo,String attributeName,String attributeValue){
      com.vci.corba.omd.data.AttributeValue[] attrValues =clo.newAttrValList;
      ArrayList<com.vci.corba.omd.data.AttributeValue> attrValList = new ArrayList();
      com.vci.corba.omd.data.AttributeValue attrVal;
      int i;
@@ -306,6 +298,6 @@
         attrValList.add(attrVal);
      }
      clo.getLinkObject().newAttrValList = (com.vci.corba.omd.data.AttributeValue[])attrValList.toArray(new com.vci.corba.omd.data.AttributeValue[attrValList.size()]);
      clo.newAttrValList = attrValList.toArray(new AttributeValue[attrValList.size()]);
   };
}