Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/WebLoServiceI.java
@@ -1,8 +1,7 @@
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.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.DataGrid;
@@ -16,12 +15,6 @@
public interface WebLoServiceI {
   /**
    * 获取平台的链接类型的操作类
    * @return
    * @throws VciBaseException
    */
    ClientLinkObjectOperation getLoOption() throws VciBaseException;
   /**
    * 根据查询条件来查询链接类型
@@ -30,7 +23,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 +33,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 +44,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 +55,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 +67,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 +82,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 +96,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 +107,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 +116,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 +135,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 +146,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 +187,7 @@
    * @return
    * @throws VciBaseException
    */
   List<ClientLinkObject> saveClientLinkObjects(List<ClientLinkObject> clos) throws VciBaseException;
   List<LinkObject> saveLinkObjects(List<LinkObject> clos) throws VciBaseException;
   /**
    * 创建连接类型
@@ -202,7 +195,7 @@
    * @return
    * @throws VciBaseException
    */
   ClientLinkObject createClientLinkObject(String loName) throws VciBaseException;
   LinkObject createLinkObject(String loName) throws VciBaseException;
   /**
    * 拷贝链接类型
@@ -210,21 +203,21 @@
    * @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;
   /**
    * 查询链接类型和业务类型
@@ -272,8 +265,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 +299,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()]);
   };
}