⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spkeyinfoinvokerimpl.java

📁 打印管理程序,测试完全通过.windows开发环境.
💻 JAVA
字号:
package jp.co.ntl.swing.ext.user.spkey;

import java.util.Vector;

import jp.co.ntl.Net;
import jp.co.ntl.NetworkException;
import jp.co.ntl.ServerException;
import jp.co.ntl.TimeOutException;
import jp.co.ntl.spkey.SPKeyInfo;
import jp.co.ntl.swing.ext.InvokerUtil;

public class SPKeyInfoInvokerImpl extends SPKeyInfoInvoker {
	private InvokerUtil	iu;
	
	SPKeyInfoInvokerImpl(Net net) {
		this.iu = new InvokerUtil(net);
	}
	
	public Vector getSPKeyInfo() throws NetworkException, ServerException, TimeOutException {
		return iu.serverAccessRetVector(Net.spkeyServletName, Net.CMD_GetSPKeyInfo);
	}
	
	public Vector getSPKeyInfoByUserName(String userName, int keyKind, int validity) throws NetworkException, ServerException, TimeOutException {
		Object[]	param = new Object[] {
			userName, new Integer(keyKind), new Integer(validity)	
		};
		return iu.serverAccessRetVector(Net.spkeyServletName, Net.CMD_GetSPKeyInfoByUserName, param);
	}

	public void changeSPKeyInfo(SPKeyInfo spKeyInfo) throws NetworkException, ServerException, TimeOutException {
		iu.serverAccessRetVoid(Net.spkeyServletName, Net.CMD_ChangeSPKeyInfo, spKeyInfo);
	}
	
	public void addSPKey(SPKeyInfo spKeyInfo) throws NetworkException, ServerException, TimeOutException {
		iu.serverAccessRetVoid(Net.spkeyServletName, Net.CMD_AddSPKey, spKeyInfo);
	}
	
	public void delSPKey(SPKeyInfo spKeyInfo) throws NetworkException, ServerException, TimeOutException {
		iu.serverAccessRetVoid(Net.spkeyServletName, Net.CMD_DeleteSPKey, spKeyInfo);
	}
	
	public boolean checkRegisteredSPKey(SPKeyInfo spKeyInfo) throws NetworkException, ServerException, TimeOutException {
		return iu.serverAccessRetBoolean(Net.spkeyServletName, Net.CMD_IsRegisteredSPKey, spKeyInfo, InvokerUtil.RET_REGISTERED);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -