ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
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
package com.vci.server.omd.attribpool;
 
import com.vci.corba.common.VCIError;
import com.vci.corba.omd.atm.AttPoolService;
import com.vci.corba.omd.atm.AttribItem;
import com.vci.server.omd.attribpool.delegate.AttributeDelegate;
import com.vci.server.omd.attribpool.delegate.IAPServerDelegate;
import com.zeroc.Ice.Current;
 
public class APServiceImpl implements AttPoolService {
 
    private IAPServerDelegate getAPServerDelegate() {
        IAPServerDelegate apDelegate = null;
        
        apDelegate = AttributeDelegate.getInstance();
        
        return apDelegate;
    }
    
    /**
     * 增加属性
     */
    @Override
    public boolean addAttribItem(AttribItem attribItem, Current current) throws VCIError{
        return getAPServerDelegate().addAttribItem(attribItem);
    }
 
    /**
     * 查询属性
     */
    @Override
    public AttribItem[] getAttribItems(String filter, long start,
            long rows, Current current) throws VCIError{
        return getAPServerDelegate().getAttribItems(filter, (int)start, (int)rows);
    }
 
    /**
     * 检查要插入的记录是否存在
     */
    @Override
    public boolean checkRowIsExists(String name, Current current) throws VCIError{
        return getAPServerDelegate().checkRowIsExists(name);
    }
 
    /**
     * 修改属性
     */
    @Override
    public boolean modifyAbItem(AttribItem attribItem, Current current) throws VCIError{
        return getAPServerDelegate().modifyAbItem(attribItem);
    }
 
    /**
     * 批量删除属性: abItems
     */
    @Override
    public boolean deleteAbItems(AttribItem[] abItems, Current current) throws VCIError{
        return getAPServerDelegate().deleteAbItems(abItems);
    }
    
    public boolean deleteAbItem(AttribItem att, Current current) throws VCIError {
        return getAPServerDelegate().deleteAbItem(att);
    }
 
    /**
     * 根据属性名获取属性
     */
    @Override
    public AttribItem[] getAttribItemsByNames(String[] attNames, Current current) throws VCIError{
        return getAPServerDelegate().getAttribItemsByNames(attNames);
    }
 
    /**
     * 根据属性名返回属性
     */
    @Override
    public AttribItem getAttribItemByName(String abName, Current current) throws VCIError{
        return getAPServerDelegate().getAttribItemByName(abName);
    }
 
    /**
     * 根据属性名获取属性数据类型
     */
    @Override
    public String getAttribItemDataType(String abName, Current current) throws VCIError{
        return getAPServerDelegate().getAttribItemDataType(abName);
    }
 
    /**
     * 提供属性池的数据文件数据
     */
    @Override
    public String getAPData(Current current) throws VCIError{
        return getAPServerDelegate().getAPData();
    }
 
    
 
    /**
     * 获取使用指定枚举名的属性名列表
     */
    @Override
    public String[] getAPNamesByEMName(String emName, Current current) throws VCIError{
        return getAPServerDelegate().getAPNamesByEMName(emName);
    }
 
 
    /**
     * 获取不在参数列表中的属性项
     */
    //add by caill 给 getAttribItemsOutNames方法添加text参数,用来获取查询框中的值
    @Override
    public AttribItem[] getAttribItemsOutNames(String[] abNameArray,String text, Current current)
            throws VCIError {
        return getAPServerDelegate().getAttribItemsOutNames(abNameArray, text);
    }
 
 
}