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);
|
}
|
|
|
}
|