| | |
| | | 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; |
| | |
| | | |
| | | public interface WebLoServiceI { |
| | | |
| | | |
| | | /** |
| | | * 获取平台的链接类型的操作类 |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | ClientLinkObjectOperation getLoOption() throws VciBaseException; |
| | | |
| | | /** |
| | | * 根据查询条件来查询链接类型 |
| | | * @param linkType 链接类型 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 根据查询条件来查询链接类型 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 查询链接类型 |
| | |
| | | * @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端的业务类型 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 查询链接类型 |
| | |
| | | * @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; |
| | | |
| | |
| | | * @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; |
| | | |
| | |
| | | * @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; |
| | | |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | *查询链接类型某端的业务类型 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 查询链接类型某端的业务类型 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 保存链接类型对象 |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | List<ClientLinkObject> saveClientLinkObjects(List<ClientLinkObject> clos) throws VciBaseException; |
| | | List<LinkObject> saveLinkObjects(List<LinkObject> clos) throws VciBaseException; |
| | | |
| | | /** |
| | | * 创建连接类型 |
| | |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | ClientLinkObject createClientLinkObject(String loName) throws VciBaseException; |
| | | LinkObject createLinkObject(String loName) throws VciBaseException; |
| | | |
| | | /** |
| | | * 拷贝链接类型 |
| | |
| | | * @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); |
| | | |
| | | /** |
| | | * 查询列表 |
| | |
| | | * @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; |
| | |
| | | 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()]); |
| | | }; |
| | | } |