pref#ncu_优化民主管理、更新时冲掉单位问题、工会干部设置时展示多条成员数据等其他bug
This commit is contained in:
@@ -29,6 +29,9 @@ public class RedisConstant {
|
||||
//短信验证码
|
||||
public final static String REDIS_SMSCODE_KEY = PLATFORM_REDIS_PREFIX + "platfrom:smscode:";
|
||||
|
||||
// 短信token
|
||||
public final static String REDIS_SMS_TOKEN_KEY = PLATFORM_REDIS_PREFIX + "platfrom:sms:token:";
|
||||
|
||||
public final static String REDIS_KEY_API_SIGN_DEPLOY_NONCE = PLATFORM_REDIS_PREFIX + "api:sign:deploy:nonce:";
|
||||
public final static String REDIS_KEY_API_SIGN_OPEN_NONCE = PLATFORM_REDIS_PREFIX + "api:sign:open:nonce:";
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ RoleConstant {
|
||||
TEACHER_CONGRESS_DELEGATION_HEAD("教代会代表团团长"),
|
||||
TEACHER_CONGRESS_VICE_DELEGATION_HEAD("教代会代表团副团长"),
|
||||
TEACHER_CONGRESS_DELEGATION_CONTACT("教代会代表团联络人"),
|
||||
TEACHER_CONGRESS_DELEGATION_QUALIFICATION("教代会代表资格审查员"),
|
||||
|
||||
PROPOSAL_COMMITTEE_DIRECTOR("提案委员会主任"),
|
||||
PROPOSAL_COMMITTEE_DEPUTY_DIRECTOR("提案委员会副主任"),
|
||||
|
||||
@@ -10,30 +10,4 @@ public interface SmsService {
|
||||
* @param content 内容
|
||||
*/
|
||||
void send(String loginName, String content);
|
||||
|
||||
/**
|
||||
* 单发
|
||||
* @param loginName 工号
|
||||
* @param title 标题
|
||||
* @param content 内容
|
||||
*/
|
||||
void send(String loginName, String title, String content);
|
||||
|
||||
/**
|
||||
* 单发
|
||||
* @param loginName 工号
|
||||
* @param title 标题
|
||||
* @param content 内容
|
||||
* @param link 链接
|
||||
*/
|
||||
void send(String loginName, String title, String content, String link);
|
||||
|
||||
/**
|
||||
* 群发 多人接收内容相同时使用该方法
|
||||
* @param loginNames 工号
|
||||
* @param title 标题
|
||||
* @param content 内容
|
||||
* @param link 链接
|
||||
*/
|
||||
void massSend(List<String> loginNames, String title, String content, String link);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.budwk.app.base.sms.impl.ncu;
|
||||
|
||||
import com.budwk.app.base.sms.SmsService;
|
||||
import com.budwk.app.base.sms.impl.ncu.util.SmsTokenUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 南昌大学短信实现
|
||||
*/
|
||||
@IocBean
|
||||
@Slf4j
|
||||
public class SmsNcuServiceImpl implements SmsService {
|
||||
|
||||
private static final String SEND_MSG_URL = "https://api.ucpass.cn/sms/send";
|
||||
private static final String APP_ID = "";
|
||||
|
||||
|
||||
@Override
|
||||
public void send(String loginName, String content) {
|
||||
String token = SmsTokenUtil.getToken();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.budwk.app.base.sms.impl.ncu.util;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.budwk.app.base.constant.RedisConstant;
|
||||
import org.nutz.integration.jedis.RedisService;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @version 1.0
|
||||
* @Author FKY
|
||||
* @name:SmsTokenUtil
|
||||
* @Date 2025/12/3 9:53
|
||||
* @注释 :短信token工具类
|
||||
*/
|
||||
public class SmsTokenUtil {
|
||||
|
||||
@Inject
|
||||
private static RedisService redisService;
|
||||
|
||||
private static final String TOKEN_URL = "https://api.ucpass.cn/token";
|
||||
|
||||
private static final String CLINT_ID = "";
|
||||
|
||||
private static final String CLINT_SECRET = "";
|
||||
|
||||
private static final String SCOPE = "";
|
||||
|
||||
|
||||
public static String getToken() {
|
||||
String key = RedisConstant.REDIS_SMS_TOKEN_KEY;
|
||||
String token = redisService.get(key);
|
||||
if (StrUtil.isBlank(token)) {
|
||||
// 构造表单参数
|
||||
Map<String, String> param = new HashMap<>();
|
||||
param.put("grant_type", "client_credentials");
|
||||
param.put("client_id", CLINT_ID);
|
||||
param.put("client_secret", CLINT_SECRET);
|
||||
param.put("scope", SCOPE);
|
||||
|
||||
String body = HttpUtil.createPost(TOKEN_URL)
|
||||
.header("Content-Type", "application/x-www-form-urlencoded")
|
||||
.formStr(param).execute().body();
|
||||
|
||||
JSONObject resultJsonBody = JSONUtil.parseObj(body);
|
||||
if (resultJsonBody.getInt("code") == 200) {
|
||||
String accessToken = resultJsonBody.getStr("access_token");
|
||||
Integer expiresIn = resultJsonBody.getInt("expires_in");
|
||||
redisService.setex(key, expiresIn, accessToken);
|
||||
return accessToken;
|
||||
}
|
||||
}
|
||||
return token;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt;
|
||||
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.sms.SmsService;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.MessageSender;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.*;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.util.TokenBuilder;
|
||||
import com.budwk.app.web.commons.base.Globals;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
import org.nutz.json.Json;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 南邮短信实现
|
||||
* channeIds 短信、邮箱、及时消息(1,2,3)
|
||||
*/
|
||||
@IocBean
|
||||
@Slf4j
|
||||
public class SmsNjuptServiceImpl implements SmsService {
|
||||
@Override
|
||||
public void send(String loginName, String content) {
|
||||
Address[] address = new Address[]{
|
||||
new Address("(" + loginName + ")", "uc_ux")
|
||||
};
|
||||
Message message = builder(address, null, content, null);
|
||||
send(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void send(String loginName, String title, String content) {
|
||||
Address[] address = new Address[]{
|
||||
new Address("(" + loginName + ")", "uc_ux")
|
||||
};
|
||||
Message message = builder(address, title, content, null);
|
||||
send(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void send(String loginName, String title, String content, String link) {
|
||||
Address[] address = new Address[]{
|
||||
new Address("(" + loginName + ")", "uc_ux")
|
||||
};
|
||||
Message message = builder(address, title, content, link);
|
||||
send(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void massSend(List<String> loginNames, String title, String content, String link) {
|
||||
// List<Address> sms = loginNames.stream().map(loginName -> new Address(loginName, "sms")).toList();
|
||||
List<Address> sms = loginNames.stream().map(loginName -> new Address("(" + loginName + ")", "uc_ux")).toList();
|
||||
Address[] addresses = ArrayUtil.toArray(sms, Address.class);
|
||||
Message message = builder(addresses, title, content, link);
|
||||
send(message);
|
||||
}
|
||||
|
||||
private void send(Message message) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
private Message builder(Address[] address, String title, String content, String linkUrl) {
|
||||
Message message = new Message();
|
||||
message.setTo(address); //接收人地址
|
||||
message.setSubject(title); //标题
|
||||
message.setContent(content); //内容
|
||||
message.setMsgType(StrUtil.isNotBlank(linkUrl) ? 1 : 0); //是否有链接
|
||||
MessagePropertiesEntry signature = buildProperty("smsSignature", ""); //用户签名
|
||||
MessagePropertiesEntry innermsg = buildProperty("innerMsg", "true"); //支持站内信
|
||||
MessagePropertiesEntry imLinkUrl = buildProperty("im_linkUrl", linkUrl);//短信中的链接
|
||||
MessagePropertiesEntry[] entrys = StrUtil.isNotBlank(linkUrl) ? new MessagePropertiesEntry[]{signature, innermsg, imLinkUrl} : new MessagePropertiesEntry[]{signature, innermsg};
|
||||
message.setProperties(new MessageProperties(entrys));
|
||||
return message;
|
||||
}
|
||||
|
||||
private MessagePropertiesEntry buildProperty(String key, String value) {
|
||||
return new MessagePropertiesEntry(key, value);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.UcpWebServ_PortType;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.UcpWebServ_Service;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.UcpWebServ_ServiceLocator;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class MessageSender {
|
||||
public static final int[] MESSAGE_SOLUTION = new int[]{1};
|
||||
public static final int CHANNEL_SMS = 1;
|
||||
public static final int CHANNEL_EMAIL = 2;
|
||||
public static final int CHANNEL_IM = 3;
|
||||
private String ws_url;
|
||||
|
||||
public MessageSender(String url) {
|
||||
this.ws_url = url;
|
||||
}
|
||||
|
||||
public MessageSender(String path, String url) {
|
||||
this.ws_url = url;
|
||||
System.setProperty("javax.net.ssl.keyStore", path);
|
||||
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
|
||||
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
|
||||
}
|
||||
|
||||
public UcpWebServ_PortType loadUcpClient() throws Exception {
|
||||
UcpWebServ_Service uws_s = new UcpWebServ_ServiceLocator();
|
||||
return uws_s.getUcpWebServPort(new URL(this.ws_url));
|
||||
}
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Address implements Serializable {
|
||||
private String address;
|
||||
private String type;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(Address.class, true);
|
||||
|
||||
public Address() {
|
||||
}
|
||||
|
||||
public Address(String address, String type) {
|
||||
this.address = address;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof Address)) {
|
||||
return false;
|
||||
} else {
|
||||
Address other = (Address)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.type == null && other.getType() == null || this.type != null && this.type.equals(other.getType()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddress() != null) {
|
||||
_hashCode += this.getAddress().hashCode();
|
||||
}
|
||||
|
||||
if (this.getType() != null) {
|
||||
_hashCode += this.getType().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("address");
|
||||
elemField.setXmlName(new QName("", "address"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("type");
|
||||
elemField.setXmlName(new QName("", "type"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,133 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Attachment implements Serializable {
|
||||
private String content;
|
||||
private String mimeType;
|
||||
private String name;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(Attachment.class, true);
|
||||
|
||||
public Attachment() {
|
||||
}
|
||||
|
||||
public Attachment(String content, String mimeType, String name) {
|
||||
this.content = content;
|
||||
this.mimeType = mimeType;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getMimeType() {
|
||||
return this.mimeType;
|
||||
}
|
||||
|
||||
public void setMimeType(String mimeType) {
|
||||
this.mimeType = mimeType;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof Attachment)) {
|
||||
return false;
|
||||
} else {
|
||||
Attachment other = (Attachment)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.content == null && other.getContent() == null || this.content != null && this.content.equals(other.getContent())) && (this.mimeType == null && other.getMimeType() == null || this.mimeType != null && this.mimeType.equals(other.getMimeType())) && (this.name == null && other.getName() == null || this.name != null && this.name.equals(other.getName()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getContent() != null) {
|
||||
_hashCode += this.getContent().hashCode();
|
||||
}
|
||||
|
||||
if (this.getMimeType() != null) {
|
||||
_hashCode += this.getMimeType().hashCode();
|
||||
}
|
||||
|
||||
if (this.getName() != null) {
|
||||
_hashCode += this.getName().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "attachment"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("content");
|
||||
elemField.setXmlName(new QName("", "content"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("mimeType");
|
||||
elemField.setXmlName(new QName("", "mimeType"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("name");
|
||||
elemField.setXmlName(new QName("", "name"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,208 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Channel implements Serializable {
|
||||
private String[] addressTypes;
|
||||
private String config;
|
||||
private String friendlyName;
|
||||
private int id;
|
||||
private String implClass;
|
||||
private String name;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(Channel.class, true);
|
||||
|
||||
public Channel() {
|
||||
}
|
||||
|
||||
public Channel(String[] addressTypes, String config, String friendlyName, int id, String implClass, String name) {
|
||||
this.addressTypes = addressTypes;
|
||||
this.config = config;
|
||||
this.friendlyName = friendlyName;
|
||||
this.id = id;
|
||||
this.implClass = implClass;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String[] getAddressTypes() {
|
||||
return this.addressTypes;
|
||||
}
|
||||
|
||||
public void setAddressTypes(String[] addressTypes) {
|
||||
this.addressTypes = addressTypes;
|
||||
}
|
||||
|
||||
public String getAddressTypes(int i) {
|
||||
return this.addressTypes[i];
|
||||
}
|
||||
|
||||
public void setAddressTypes(int i, String _value) {
|
||||
this.addressTypes[i] = _value;
|
||||
}
|
||||
|
||||
public String getConfig() {
|
||||
return this.config;
|
||||
}
|
||||
|
||||
public void setConfig(String config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
public String getFriendlyName() {
|
||||
return this.friendlyName;
|
||||
}
|
||||
|
||||
public void setFriendlyName(String friendlyName) {
|
||||
this.friendlyName = friendlyName;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getImplClass() {
|
||||
return this.implClass;
|
||||
}
|
||||
|
||||
public void setImplClass(String implClass) {
|
||||
this.implClass = implClass;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof Channel)) {
|
||||
return false;
|
||||
} else {
|
||||
Channel other = (Channel)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.addressTypes == null && other.getAddressTypes() == null || this.addressTypes != null && Arrays.equals(this.addressTypes, other.getAddressTypes())) && (this.config == null && other.getConfig() == null || this.config != null && this.config.equals(other.getConfig())) && (this.friendlyName == null && other.getFriendlyName() == null || this.friendlyName != null && this.friendlyName.equals(other.getFriendlyName())) && this.id == other.getId() && (this.implClass == null && other.getImplClass() == null || this.implClass != null && this.implClass.equals(other.getImplClass())) && (this.name == null && other.getName() == null || this.name != null && this.name.equals(other.getName()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddressTypes() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getAddressTypes()); ++i) {
|
||||
Object obj = Array.get(this.getAddressTypes(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.getConfig() != null) {
|
||||
_hashCode += this.getConfig().hashCode();
|
||||
}
|
||||
|
||||
if (this.getFriendlyName() != null) {
|
||||
_hashCode += this.getFriendlyName().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getId();
|
||||
if (this.getImplClass() != null) {
|
||||
_hashCode += this.getImplClass().hashCode();
|
||||
}
|
||||
|
||||
if (this.getName() != null) {
|
||||
_hashCode += this.getName().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channel"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("addressTypes");
|
||||
elemField.setXmlName(new QName("", "addressTypes"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("config");
|
||||
elemField.setXmlName(new QName("", "config"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("friendlyName");
|
||||
elemField.setXmlName(new QName("", "friendlyName"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("id");
|
||||
elemField.setXmlName(new QName("", "id"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("implClass");
|
||||
elemField.setXmlName(new QName("", "implClass"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("name");
|
||||
elemField.setXmlName(new QName("", "name"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-265
@@ -1,265 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class ChannelDeliverState implements Serializable {
|
||||
private int billCount;
|
||||
private String chanelDeliverId;
|
||||
private int channelId;
|
||||
private String errorMessage;
|
||||
private int frameNo;
|
||||
private Recipient recipientBy;
|
||||
private String recvMessageId;
|
||||
private Calendar sendTime;
|
||||
private Recipient sendTo;
|
||||
private int state;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(ChannelDeliverState.class, true);
|
||||
|
||||
public ChannelDeliverState() {
|
||||
}
|
||||
|
||||
public ChannelDeliverState(int billCount, String chanelDeliverId, int channelId, String errorMessage, int frameNo, Recipient recipientBy, String recvMessageId, Calendar sendTime, Recipient sendTo, int state) {
|
||||
this.billCount = billCount;
|
||||
this.chanelDeliverId = chanelDeliverId;
|
||||
this.channelId = channelId;
|
||||
this.errorMessage = errorMessage;
|
||||
this.frameNo = frameNo;
|
||||
this.recipientBy = recipientBy;
|
||||
this.recvMessageId = recvMessageId;
|
||||
this.sendTime = sendTime;
|
||||
this.sendTo = sendTo;
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public int getBillCount() {
|
||||
return this.billCount;
|
||||
}
|
||||
|
||||
public void setBillCount(int billCount) {
|
||||
this.billCount = billCount;
|
||||
}
|
||||
|
||||
public String getChanelDeliverId() {
|
||||
return this.chanelDeliverId;
|
||||
}
|
||||
|
||||
public void setChanelDeliverId(String chanelDeliverId) {
|
||||
this.chanelDeliverId = chanelDeliverId;
|
||||
}
|
||||
|
||||
public int getChannelId() {
|
||||
return this.channelId;
|
||||
}
|
||||
|
||||
public void setChannelId(int channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
public String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
}
|
||||
|
||||
public void setErrorMessage(String errorMessage) {
|
||||
this.errorMessage = errorMessage;
|
||||
}
|
||||
|
||||
public int getFrameNo() {
|
||||
return this.frameNo;
|
||||
}
|
||||
|
||||
public void setFrameNo(int frameNo) {
|
||||
this.frameNo = frameNo;
|
||||
}
|
||||
|
||||
public Recipient getRecipientBy() {
|
||||
return this.recipientBy;
|
||||
}
|
||||
|
||||
public void setRecipientBy(Recipient recipientBy) {
|
||||
this.recipientBy = recipientBy;
|
||||
}
|
||||
|
||||
public String getRecvMessageId() {
|
||||
return this.recvMessageId;
|
||||
}
|
||||
|
||||
public void setRecvMessageId(String recvMessageId) {
|
||||
this.recvMessageId = recvMessageId;
|
||||
}
|
||||
|
||||
public Calendar getSendTime() {
|
||||
return this.sendTime;
|
||||
}
|
||||
|
||||
public void setSendTime(Calendar sendTime) {
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public Recipient getSendTo() {
|
||||
return this.sendTo;
|
||||
}
|
||||
|
||||
public void setSendTo(Recipient sendTo) {
|
||||
this.sendTo = sendTo;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof ChannelDeliverState)) {
|
||||
return false;
|
||||
} else {
|
||||
ChannelDeliverState other = (ChannelDeliverState)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.billCount == other.getBillCount() && (this.chanelDeliverId == null && other.getChanelDeliverId() == null || this.chanelDeliverId != null && this.chanelDeliverId.equals(other.getChanelDeliverId())) && this.channelId == other.getChannelId() && (this.errorMessage == null && other.getErrorMessage() == null || this.errorMessage != null && this.errorMessage.equals(other.getErrorMessage())) && this.frameNo == other.getFrameNo() && (this.recipientBy == null && other.getRecipientBy() == null || this.recipientBy != null && this.recipientBy.equals(other.getRecipientBy())) && (this.recvMessageId == null && other.getRecvMessageId() == null || this.recvMessageId != null && this.recvMessageId.equals(other.getRecvMessageId())) && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && (this.sendTo == null && other.getSendTo() == null || this.sendTo != null && this.sendTo.equals(other.getSendTo())) && this.state == other.getState();
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += this.getBillCount();
|
||||
if (this.getChanelDeliverId() != null) {
|
||||
_hashCode += this.getChanelDeliverId().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getChannelId();
|
||||
if (this.getErrorMessage() != null) {
|
||||
_hashCode += this.getErrorMessage().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getFrameNo();
|
||||
if (this.getRecipientBy() != null) {
|
||||
_hashCode += this.getRecipientBy().hashCode();
|
||||
}
|
||||
|
||||
if (this.getRecvMessageId() != null) {
|
||||
_hashCode += this.getRecvMessageId().hashCode();
|
||||
}
|
||||
|
||||
if (this.getSendTime() != null) {
|
||||
_hashCode += this.getSendTime().hashCode();
|
||||
}
|
||||
|
||||
if (this.getSendTo() != null) {
|
||||
_hashCode += this.getSendTo().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getState();
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channelDeliverState"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("billCount");
|
||||
elemField.setXmlName(new QName("", "billCount"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("chanelDeliverId");
|
||||
elemField.setXmlName(new QName("", "chanelDeliverId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("channelId");
|
||||
elemField.setXmlName(new QName("", "channelId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorMessage");
|
||||
elemField.setXmlName(new QName("", "errorMessage"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("frameNo");
|
||||
elemField.setXmlName(new QName("", "frameNo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("recipientBy");
|
||||
elemField.setXmlName(new QName("", "recipientBy"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("recvMessageId");
|
||||
elemField.setXmlName(new QName("", "recvMessageId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sendTime");
|
||||
elemField.setXmlName(new QName("", "sendTime"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sendTo");
|
||||
elemField.setXmlName(new QName("", "sendTo"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("state");
|
||||
elemField.setXmlName(new QName("", "state"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-323
@@ -1,323 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class ChannelMessageDetail implements Serializable {
|
||||
private int billCount;
|
||||
private String chanelDeliverId;
|
||||
private int channelId;
|
||||
private String errorMessage;
|
||||
private int frameNo;
|
||||
private ChannelMessageDetailProperties properties;
|
||||
private Recipient recipientBy;
|
||||
private String recvMessageId;
|
||||
private String replyContent;
|
||||
private int replyCount;
|
||||
private Calendar sendTime;
|
||||
private Recipient sendTo;
|
||||
private int state;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(ChannelMessageDetail.class, true);
|
||||
|
||||
public ChannelMessageDetail() {
|
||||
}
|
||||
|
||||
public ChannelMessageDetail(int billCount, String chanelDeliverId, int channelId, String errorMessage, int frameNo, ChannelMessageDetailProperties properties, Recipient recipientBy, String recvMessageId, String replyContent, int replyCount, Calendar sendTime, Recipient sendTo, int state) {
|
||||
this.billCount = billCount;
|
||||
this.chanelDeliverId = chanelDeliverId;
|
||||
this.channelId = channelId;
|
||||
this.errorMessage = errorMessage;
|
||||
this.frameNo = frameNo;
|
||||
this.properties = properties;
|
||||
this.recipientBy = recipientBy;
|
||||
this.recvMessageId = recvMessageId;
|
||||
this.replyContent = replyContent;
|
||||
this.replyCount = replyCount;
|
||||
this.sendTime = sendTime;
|
||||
this.sendTo = sendTo;
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public int getBillCount() {
|
||||
return this.billCount;
|
||||
}
|
||||
|
||||
public void setBillCount(int billCount) {
|
||||
this.billCount = billCount;
|
||||
}
|
||||
|
||||
public String getChanelDeliverId() {
|
||||
return this.chanelDeliverId;
|
||||
}
|
||||
|
||||
public void setChanelDeliverId(String chanelDeliverId) {
|
||||
this.chanelDeliverId = chanelDeliverId;
|
||||
}
|
||||
|
||||
public int getChannelId() {
|
||||
return this.channelId;
|
||||
}
|
||||
|
||||
public void setChannelId(int channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
public String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
}
|
||||
|
||||
public void setErrorMessage(String errorMessage) {
|
||||
this.errorMessage = errorMessage;
|
||||
}
|
||||
|
||||
public int getFrameNo() {
|
||||
return this.frameNo;
|
||||
}
|
||||
|
||||
public void setFrameNo(int frameNo) {
|
||||
this.frameNo = frameNo;
|
||||
}
|
||||
|
||||
public ChannelMessageDetailProperties getProperties() {
|
||||
return this.properties;
|
||||
}
|
||||
|
||||
public void setProperties(ChannelMessageDetailProperties properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public Recipient getRecipientBy() {
|
||||
return this.recipientBy;
|
||||
}
|
||||
|
||||
public void setRecipientBy(Recipient recipientBy) {
|
||||
this.recipientBy = recipientBy;
|
||||
}
|
||||
|
||||
public String getRecvMessageId() {
|
||||
return this.recvMessageId;
|
||||
}
|
||||
|
||||
public void setRecvMessageId(String recvMessageId) {
|
||||
this.recvMessageId = recvMessageId;
|
||||
}
|
||||
|
||||
public String getReplyContent() {
|
||||
return this.replyContent;
|
||||
}
|
||||
|
||||
public void setReplyContent(String replyContent) {
|
||||
this.replyContent = replyContent;
|
||||
}
|
||||
|
||||
public int getReplyCount() {
|
||||
return this.replyCount;
|
||||
}
|
||||
|
||||
public void setReplyCount(int replyCount) {
|
||||
this.replyCount = replyCount;
|
||||
}
|
||||
|
||||
public Calendar getSendTime() {
|
||||
return this.sendTime;
|
||||
}
|
||||
|
||||
public void setSendTime(Calendar sendTime) {
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public Recipient getSendTo() {
|
||||
return this.sendTo;
|
||||
}
|
||||
|
||||
public void setSendTo(Recipient sendTo) {
|
||||
this.sendTo = sendTo;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof ChannelMessageDetail)) {
|
||||
return false;
|
||||
} else {
|
||||
ChannelMessageDetail other = (ChannelMessageDetail)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.billCount == other.getBillCount() && (this.chanelDeliverId == null && other.getChanelDeliverId() == null || this.chanelDeliverId != null && this.chanelDeliverId.equals(other.getChanelDeliverId())) && this.channelId == other.getChannelId() && (this.errorMessage == null && other.getErrorMessage() == null || this.errorMessage != null && this.errorMessage.equals(other.getErrorMessage())) && this.frameNo == other.getFrameNo() && (this.properties == null && other.getProperties() == null || this.properties != null && this.properties.equals(other.getProperties())) && (this.recipientBy == null && other.getRecipientBy() == null || this.recipientBy != null && this.recipientBy.equals(other.getRecipientBy())) && (this.recvMessageId == null && other.getRecvMessageId() == null || this.recvMessageId != null && this.recvMessageId.equals(other.getRecvMessageId())) && (this.replyContent == null && other.getReplyContent() == null || this.replyContent != null && this.replyContent.equals(other.getReplyContent())) && this.replyCount == other.getReplyCount() && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && (this.sendTo == null && other.getSendTo() == null || this.sendTo != null && this.sendTo.equals(other.getSendTo())) && this.state == other.getState();
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += this.getBillCount();
|
||||
if (this.getChanelDeliverId() != null) {
|
||||
_hashCode += this.getChanelDeliverId().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getChannelId();
|
||||
if (this.getErrorMessage() != null) {
|
||||
_hashCode += this.getErrorMessage().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getFrameNo();
|
||||
if (this.getProperties() != null) {
|
||||
_hashCode += this.getProperties().hashCode();
|
||||
}
|
||||
|
||||
if (this.getRecipientBy() != null) {
|
||||
_hashCode += this.getRecipientBy().hashCode();
|
||||
}
|
||||
|
||||
if (this.getRecvMessageId() != null) {
|
||||
_hashCode += this.getRecvMessageId().hashCode();
|
||||
}
|
||||
|
||||
if (this.getReplyContent() != null) {
|
||||
_hashCode += this.getReplyContent().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getReplyCount();
|
||||
if (this.getSendTime() != null) {
|
||||
_hashCode += this.getSendTime().hashCode();
|
||||
}
|
||||
|
||||
if (this.getSendTo() != null) {
|
||||
_hashCode += this.getSendTo().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getState();
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channelMessageDetail"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("billCount");
|
||||
elemField.setXmlName(new QName("", "billCount"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("chanelDeliverId");
|
||||
elemField.setXmlName(new QName("", "chanelDeliverId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("channelId");
|
||||
elemField.setXmlName(new QName("", "channelId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorMessage");
|
||||
elemField.setXmlName(new QName("", "errorMessage"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("frameNo");
|
||||
elemField.setXmlName(new QName("", "frameNo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("properties");
|
||||
elemField.setXmlName(new QName("", "properties"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">channelMessageDetail>properties"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("recipientBy");
|
||||
elemField.setXmlName(new QName("", "recipientBy"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("recvMessageId");
|
||||
elemField.setXmlName(new QName("", "recvMessageId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("replyContent");
|
||||
elemField.setXmlName(new QName("", "replyContent"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("replyCount");
|
||||
elemField.setXmlName(new QName("", "replyCount"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sendTime");
|
||||
elemField.setXmlName(new QName("", "sendTime"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sendTo");
|
||||
elemField.setXmlName(new QName("", "sendTo"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("state");
|
||||
elemField.setXmlName(new QName("", "state"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-107
@@ -1,107 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class ChannelMessageDetailProperties implements Serializable {
|
||||
private ChannelMessageDetailPropertiesEntry[] entry;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(ChannelMessageDetailProperties.class, true);
|
||||
|
||||
public ChannelMessageDetailProperties() {
|
||||
}
|
||||
|
||||
public ChannelMessageDetailProperties(ChannelMessageDetailPropertiesEntry[] entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public ChannelMessageDetailPropertiesEntry[] getEntry() {
|
||||
return this.entry;
|
||||
}
|
||||
|
||||
public void setEntry(ChannelMessageDetailPropertiesEntry[] entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public ChannelMessageDetailPropertiesEntry getEntry(int i) {
|
||||
return this.entry[i];
|
||||
}
|
||||
|
||||
public void setEntry(int i, ChannelMessageDetailPropertiesEntry _value) {
|
||||
this.entry[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof ChannelMessageDetailProperties)) {
|
||||
return false;
|
||||
} else {
|
||||
ChannelMessageDetailProperties other = (ChannelMessageDetailProperties)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.entry == null && other.getEntry() == null || this.entry != null && Arrays.equals(this.entry, other.getEntry());
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getEntry() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getEntry()); ++i) {
|
||||
Object obj = Array.get(this.getEntry(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">channelMessageDetail>properties"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("entry");
|
||||
elemField.setXmlName(new QName("", "entry"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>channelMessageDetail>properties>entry"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-112
@@ -1,112 +0,0 @@
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ChannelMessageDetailPropertiesEntry implements Serializable {
|
||||
private String key;
|
||||
private String value;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(ChannelMessageDetailPropertiesEntry.class, true);
|
||||
|
||||
public ChannelMessageDetailPropertiesEntry() {
|
||||
}
|
||||
|
||||
public ChannelMessageDetailPropertiesEntry(String key, String value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof ChannelMessageDetailPropertiesEntry)) {
|
||||
return false;
|
||||
} else {
|
||||
ChannelMessageDetailPropertiesEntry other = (ChannelMessageDetailPropertiesEntry)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.key == null && other.getKey() == null || this.key != null && this.key.equals(other.getKey())) && (this.value == null && other.getValue() == null || this.value != null && this.value.equals(other.getValue()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getKey() != null) {
|
||||
_hashCode += this.getKey().hashCode();
|
||||
}
|
||||
|
||||
if (this.getValue() != null) {
|
||||
_hashCode += this.getValue().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>channelMessageDetail>properties>entry"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("key");
|
||||
elemField.setXmlName(new QName("", "key"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("value");
|
||||
elemField.setXmlName(new QName("", "value"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,280 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Message implements Serializable {
|
||||
private Address[] bcc;
|
||||
private Address[] cc;
|
||||
private String content;
|
||||
private int msgType;
|
||||
private boolean needReply;
|
||||
private MessageProperties properties;
|
||||
private String subject;
|
||||
private Address[] to;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(Message.class, true);
|
||||
|
||||
public Message() {
|
||||
}
|
||||
|
||||
public Message(Address[] bcc, Address[] cc, String content, int msgType, boolean needReply, MessageProperties properties, String subject, Address[] to) {
|
||||
this.bcc = bcc;
|
||||
this.cc = cc;
|
||||
this.content = content;
|
||||
this.msgType = msgType;
|
||||
this.needReply = needReply;
|
||||
this.properties = properties;
|
||||
this.subject = subject;
|
||||
this.to = to;
|
||||
}
|
||||
|
||||
public Address[] getBcc() {
|
||||
return this.bcc;
|
||||
}
|
||||
|
||||
public void setBcc(Address[] bcc) {
|
||||
this.bcc = bcc;
|
||||
}
|
||||
|
||||
public Address getBcc(int i) {
|
||||
return this.bcc[i];
|
||||
}
|
||||
|
||||
public void setBcc(int i, Address _value) {
|
||||
this.bcc[i] = _value;
|
||||
}
|
||||
|
||||
public Address[] getCc() {
|
||||
return this.cc;
|
||||
}
|
||||
|
||||
public void setCc(Address[] cc) {
|
||||
this.cc = cc;
|
||||
}
|
||||
|
||||
public Address getCc(int i) {
|
||||
return this.cc[i];
|
||||
}
|
||||
|
||||
public void setCc(int i, Address _value) {
|
||||
this.cc[i] = _value;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public int getMsgType() {
|
||||
return this.msgType;
|
||||
}
|
||||
|
||||
public void setMsgType(int msgType) {
|
||||
this.msgType = msgType;
|
||||
}
|
||||
|
||||
public boolean isNeedReply() {
|
||||
return this.needReply;
|
||||
}
|
||||
|
||||
public void setNeedReply(boolean needReply) {
|
||||
this.needReply = needReply;
|
||||
}
|
||||
|
||||
public MessageProperties getProperties() {
|
||||
return this.properties;
|
||||
}
|
||||
|
||||
public void setProperties(MessageProperties properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public String getSubject() {
|
||||
return this.subject;
|
||||
}
|
||||
|
||||
public void setSubject(String subject) {
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
public Address[] getTo() {
|
||||
return this.to;
|
||||
}
|
||||
|
||||
public void setTo(Address[] to) {
|
||||
this.to = to;
|
||||
}
|
||||
|
||||
public Address getTo(int i) {
|
||||
return this.to[i];
|
||||
}
|
||||
|
||||
public void setTo(int i, Address _value) {
|
||||
this.to[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof Message)) {
|
||||
return false;
|
||||
} else {
|
||||
Message other = (Message)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.bcc == null && other.getBcc() == null || this.bcc != null && Arrays.equals(this.bcc, other.getBcc())) && (this.cc == null && other.getCc() == null || this.cc != null && Arrays.equals(this.cc, other.getCc())) && (this.content == null && other.getContent() == null || this.content != null && this.content.equals(other.getContent())) && this.msgType == other.getMsgType() && this.needReply == other.isNeedReply() && (this.properties == null && other.getProperties() == null || this.properties != null && this.properties.equals(other.getProperties())) && (this.subject == null && other.getSubject() == null || this.subject != null && this.subject.equals(other.getSubject())) && (this.to == null && other.getTo() == null || this.to != null && Arrays.equals(this.to, other.getTo()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
int i;
|
||||
Object obj;
|
||||
if (this.getBcc() != null) {
|
||||
for(i = 0; i < Array.getLength(this.getBcc()); ++i) {
|
||||
obj = Array.get(this.getBcc(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.getCc() != null) {
|
||||
for(i = 0; i < Array.getLength(this.getCc()); ++i) {
|
||||
obj = Array.get(this.getCc(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.getContent() != null) {
|
||||
_hashCode += this.getContent().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getMsgType();
|
||||
_hashCode += (this.isNeedReply() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (this.getProperties() != null) {
|
||||
_hashCode += this.getProperties().hashCode();
|
||||
}
|
||||
|
||||
if (this.getSubject() != null) {
|
||||
_hashCode += this.getSubject().hashCode();
|
||||
}
|
||||
|
||||
if (this.getTo() != null) {
|
||||
for(i = 0; i < Array.getLength(this.getTo()); ++i) {
|
||||
obj = Array.get(this.getTo(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "message"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("bcc");
|
||||
elemField.setXmlName(new QName("", "bcc"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("cc");
|
||||
elemField.setXmlName(new QName("", "cc"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("content");
|
||||
elemField.setXmlName(new QName("", "content"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("msgType");
|
||||
elemField.setXmlName(new QName("", "msgType"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("needReply");
|
||||
elemField.setXmlName(new QName("", "needReply"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("properties");
|
||||
elemField.setXmlName(new QName("", "properties"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">message>properties"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("subject");
|
||||
elemField.setXmlName(new QName("", "subject"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("to");
|
||||
elemField.setXmlName(new QName("", "to"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-104
@@ -1,104 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.SerializationContext;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
import org.xml.sax.Attributes;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class MessageException extends AxisFault implements Serializable {
|
||||
private String message1;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessageException.class, true);
|
||||
|
||||
public MessageException() {
|
||||
}
|
||||
|
||||
public MessageException(String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
public String getMessage1() {
|
||||
return this.message1;
|
||||
}
|
||||
|
||||
public void setMessage1(String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessageException)) {
|
||||
return false;
|
||||
} else {
|
||||
MessageException other = (MessageException)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.message1 == null && other.getMessage1() == null || this.message1 != null && this.message1.equals(other.getMessage1());
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getMessage1() != null) {
|
||||
_hashCode += this.getMessage1().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public void writeDetails(QName qname, SerializationContext context) throws IOException {
|
||||
context.serialize(qname, (Attributes)null, this);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "MessageException"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("message1");
|
||||
elemField.setXmlName(new QName("", "message"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-112
@@ -1,112 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MessageProperties implements Serializable {
|
||||
private MessagePropertiesEntry[] entry;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessageProperties.class, true);
|
||||
|
||||
public MessageProperties() {
|
||||
}
|
||||
|
||||
public MessageProperties(MessagePropertiesEntry[] entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public MessagePropertiesEntry[] getEntry() {
|
||||
return this.entry;
|
||||
}
|
||||
|
||||
public void setEntry(MessagePropertiesEntry[] entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public MessagePropertiesEntry getEntry(int i) {
|
||||
return this.entry[i];
|
||||
}
|
||||
|
||||
public void setEntry(int i, MessagePropertiesEntry _value) {
|
||||
this.entry[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessageProperties)) {
|
||||
return false;
|
||||
} else {
|
||||
MessageProperties other = (MessageProperties)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.entry == null && other.getEntry() == null || this.entry != null && Arrays.equals(this.entry, other.getEntry());
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getEntry() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getEntry()); ++i) {
|
||||
Object obj = Array.get(this.getEntry(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">message>properties"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("entry");
|
||||
elemField.setXmlName(new QName("", "entry"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>message>properties>entry"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-117
@@ -1,117 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class MessagePropertiesEntry implements Serializable {
|
||||
private String key;
|
||||
private String value;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessagePropertiesEntry.class, true);
|
||||
|
||||
public MessagePropertiesEntry() {
|
||||
}
|
||||
|
||||
public MessagePropertiesEntry(String key, String value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessagePropertiesEntry)) {
|
||||
return false;
|
||||
} else {
|
||||
MessagePropertiesEntry other = (MessagePropertiesEntry)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.key == null && other.getKey() == null || this.key != null && this.key.equals(other.getKey())) && (this.value == null && other.getValue() == null || this.value != null && this.value.equals(other.getValue()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getKey() != null) {
|
||||
_hashCode += this.getKey().hashCode();
|
||||
}
|
||||
|
||||
if (this.getValue() != null) {
|
||||
_hashCode += this.getValue().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>message>properties>entry"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("key");
|
||||
elemField.setXmlName(new QName("", "key"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("value");
|
||||
elemField.setXmlName(new QName("", "value"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Recipient implements Serializable {
|
||||
private Address address;
|
||||
private int type;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(Recipient.class, true);
|
||||
|
||||
public Recipient() {
|
||||
}
|
||||
|
||||
public Recipient(Address address, int type) {
|
||||
this.address = address;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Address getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(Address address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof Recipient)) {
|
||||
return false;
|
||||
} else {
|
||||
Recipient other = (Recipient)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && this.type == other.getType();
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddress() != null) {
|
||||
_hashCode += this.getAddress().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getType();
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("address");
|
||||
elemField.setXmlName(new QName("", "address"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("type");
|
||||
elemField.setXmlName(new QName("", "type"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,171 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class SendResult implements Serializable {
|
||||
private String errorInfo;
|
||||
private String messageId;
|
||||
private boolean succeeded;
|
||||
private WrongAddress[] wrongAddresses;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(SendResult.class, true);
|
||||
|
||||
public SendResult() {
|
||||
}
|
||||
|
||||
public SendResult(String errorInfo, String messageId, boolean succeeded, WrongAddress[] wrongAddresses) {
|
||||
this.errorInfo = errorInfo;
|
||||
this.messageId = messageId;
|
||||
this.succeeded = succeeded;
|
||||
this.wrongAddresses = wrongAddresses;
|
||||
}
|
||||
|
||||
public String getErrorInfo() {
|
||||
return this.errorInfo;
|
||||
}
|
||||
|
||||
public void setErrorInfo(String errorInfo) {
|
||||
this.errorInfo = errorInfo;
|
||||
}
|
||||
|
||||
public String getMessageId() {
|
||||
return this.messageId;
|
||||
}
|
||||
|
||||
public void setMessageId(String messageId) {
|
||||
this.messageId = messageId;
|
||||
}
|
||||
|
||||
public boolean isSucceeded() {
|
||||
return this.succeeded;
|
||||
}
|
||||
|
||||
public void setSucceeded(boolean succeeded) {
|
||||
this.succeeded = succeeded;
|
||||
}
|
||||
|
||||
public WrongAddress[] getWrongAddresses() {
|
||||
return this.wrongAddresses;
|
||||
}
|
||||
|
||||
public void setWrongAddresses(WrongAddress[] wrongAddresses) {
|
||||
this.wrongAddresses = wrongAddresses;
|
||||
}
|
||||
|
||||
public WrongAddress getWrongAddresses(int i) {
|
||||
return this.wrongAddresses[i];
|
||||
}
|
||||
|
||||
public void setWrongAddresses(int i, WrongAddress _value) {
|
||||
this.wrongAddresses[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof SendResult)) {
|
||||
return false;
|
||||
} else {
|
||||
SendResult other = (SendResult)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && (this.messageId == null && other.getMessageId() == null || this.messageId != null && this.messageId.equals(other.getMessageId())) && this.succeeded == other.isSucceeded() && (this.wrongAddresses == null && other.getWrongAddresses() == null || this.wrongAddresses != null && Arrays.equals(this.wrongAddresses, other.getWrongAddresses()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getErrorInfo() != null) {
|
||||
_hashCode += this.getErrorInfo().hashCode();
|
||||
}
|
||||
|
||||
if (this.getMessageId() != null) {
|
||||
_hashCode += this.getMessageId().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += (this.isSucceeded() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (this.getWrongAddresses() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getWrongAddresses()); ++i) {
|
||||
Object obj = Array.get(this.getWrongAddresses(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "sendResult"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorInfo");
|
||||
elemField.setXmlName(new QName("", "errorInfo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("messageId");
|
||||
elemField.setXmlName(new QName("", "messageId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("succeeded");
|
||||
elemField.setXmlName(new QName("", "succeeded"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("wrongAddresses");
|
||||
elemField.setXmlName(new QName("", "wrongAddresses"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "wrongAddress"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-940
@@ -1,940 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.NoEndPointException;
|
||||
import org.apache.axis.client.Call;
|
||||
import org.apache.axis.client.Stub;
|
||||
import org.apache.axis.constants.Style;
|
||||
import org.apache.axis.constants.Use;
|
||||
import org.apache.axis.description.FaultDesc;
|
||||
import org.apache.axis.description.OperationDesc;
|
||||
import org.apache.axis.description.ParameterDesc;
|
||||
import org.apache.axis.encoding.DeserializerFactory;
|
||||
import org.apache.axis.encoding.ser.*;
|
||||
import org.apache.axis.soap.SOAPConstants;
|
||||
import org.apache.axis.utils.JavaUtils;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.encoding.SerializerFactory;
|
||||
import java.net.URL;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.Calendar;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
|
||||
public class UcpWebServPortBindingStub extends Stub implements UcpWebServ_PortType {
|
||||
private Vector cachedSerClasses;
|
||||
private Vector cachedSerQNames;
|
||||
private Vector cachedSerFactories;
|
||||
private Vector cachedDeserFactories;
|
||||
static OperationDesc[] _operations = new OperationDesc[12];
|
||||
|
||||
private static void _initOperationDesc1() {
|
||||
OperationDesc oper = new OperationDesc();
|
||||
oper.setName("sendMessage");
|
||||
ParameterDesc param = new ParameterDesc(new QName("", "boxId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "message"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "message"), Message.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult"));
|
||||
oper.setReturnClass(SendResult.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[0] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("addAttachment");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "attachment"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "attachment"), Attachment.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(String.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[1] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("deleteAttachment");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "attachmentId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
oper.setReturnClass(Boolean.TYPE);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[2] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("createMessage");
|
||||
param = new ParameterDesc(new QName("", "boxId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "message"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "message"), Message.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(String.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[3] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("deleteMessage");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
oper.setReturnClass(Boolean.TYPE);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[4] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("sendSavedMessage");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult"));
|
||||
oper.setReturnClass(SendResult.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[5] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("sendIndivMessage");
|
||||
param = new ParameterDesc(new QName("", "boxId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "message"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "message"), Message.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "solution"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "datasrc"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "idvidualParams"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult"));
|
||||
oper.setReturnClass(SendResult.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[6] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("sendIndivSavedMessage");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "solution"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "datasrc"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "idvidualParams"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult"));
|
||||
oper.setReturnClass(SendResult.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[7] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("getMessageDeliverCount");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
oper.setReturnClass(Integer.TYPE);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
_operations[8] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("getMessageDelivers");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "beginIndex"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "count"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "channelDeliverState"));
|
||||
oper.setReturnClass(ChannelDeliverState[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
_operations[9] = oper;
|
||||
}
|
||||
|
||||
private static void _initOperationDesc2() {
|
||||
OperationDesc oper = new OperationDesc();
|
||||
oper.setName("getChannelMessageDetailCount");
|
||||
ParameterDesc param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
oper.setReturnClass(Integer.TYPE);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
_operations[10] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("getChannelMessageDetails");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "beginIndex"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "count"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "channelMessageDetail"));
|
||||
oper.setReturnClass(ChannelMessageDetail[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
_operations[11] = oper;
|
||||
}
|
||||
|
||||
public UcpWebServPortBindingStub() throws AxisFault {
|
||||
this((Service)null);
|
||||
}
|
||||
|
||||
public UcpWebServPortBindingStub(URL endpointURL, Service service) throws AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public UcpWebServPortBindingStub(Service service) throws AxisFault {
|
||||
this.cachedSerClasses = new Vector();
|
||||
this.cachedSerQNames = new Vector();
|
||||
this.cachedSerFactories = new Vector();
|
||||
this.cachedDeserFactories = new Vector();
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
Class beansf = BeanSerializerFactory.class;
|
||||
Class beandf = BeanDeserializerFactory.class;
|
||||
Class enumsf = EnumSerializerFactory.class;
|
||||
Class enumdf = EnumDeserializerFactory.class;
|
||||
Class arraysf = ArraySerializerFactory.class;
|
||||
Class arraydf = ArrayDeserializerFactory.class;
|
||||
Class simplesf = SimpleSerializerFactory.class;
|
||||
Class simpledf = SimpleDeserializerFactory.class;
|
||||
Class simplelistsf = SimpleListSerializerFactory.class;
|
||||
Class simplelistdf = SimpleListDeserializerFactory.class;
|
||||
QName qName = new QName("http://serv.ucp.sudytech.com/", ">>channelMessageDetail>properties>entry");
|
||||
this.cachedSerQNames.add(qName);
|
||||
Class cls = ChannelMessageDetailPropertiesEntry.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", ">>message>properties>entry");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessagePropertiesEntry.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", ">channelMessageDetail>properties");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = ChannelMessageDetailProperties.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", ">message>properties");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageProperties.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "address");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = Address.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "attachment");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = Attachment.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "channel");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = Channel.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "channelDeliverState");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = ChannelDeliverState.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "channelMessageDetail");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = ChannelMessageDetail.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "message");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = Message.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "MessageException");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageException.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "recipient");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = Recipient.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "sendResult");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = SendResult.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://serv.ucp.sudytech.com/", "wrongAddress");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = WrongAddress.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
}
|
||||
|
||||
protected Call createCall() throws RemoteException {
|
||||
try {
|
||||
Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
|
||||
Enumeration keys = super.cachedProperties.keys();
|
||||
|
||||
while(keys.hasMoreElements()) {
|
||||
String key = (String)keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
|
||||
synchronized(this) {
|
||||
if (this.firstCall()) {
|
||||
_call.setEncodingStyle((String)null);
|
||||
|
||||
for(int i = 0; i < this.cachedSerFactories.size(); ++i) {
|
||||
Class cls = (Class)this.cachedSerClasses.get(i);
|
||||
QName qName = (QName)this.cachedSerQNames.get(i);
|
||||
Object x = this.cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
Class sf = (Class)this.cachedSerFactories.get(i);
|
||||
Class df = (Class)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
} else if (x instanceof SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i);
|
||||
DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _call;
|
||||
} catch (Throwable var12) {
|
||||
throw new AxisFault("Failure trying to get the Call object", var12);
|
||||
}
|
||||
}
|
||||
|
||||
public SendResult sendMessage(int boxId, Message message, int[] channels, boolean usesSignature, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{new Integer(boxId), message, channels, new Boolean(usesSignature), plannedTime, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (SendResult)_resp;
|
||||
} catch (Exception var10) {
|
||||
return (SendResult)JavaUtils.convert(_resp, SendResult.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var11) {
|
||||
if (var11.detail != null) {
|
||||
if (var11.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var11.detail;
|
||||
}
|
||||
|
||||
if (var11.detail instanceof MessageException) {
|
||||
throw (MessageException)var11.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String addAttachment(String messageId, Attachment attachment, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "addAttachment"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, attachment, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (String)_resp;
|
||||
} catch (Exception var7) {
|
||||
return (String)JavaUtils.convert(_resp, String.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
if (var8.detail != null) {
|
||||
if (var8.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var8.detail;
|
||||
}
|
||||
|
||||
if (var8.detail instanceof MessageException) {
|
||||
throw (MessageException)var8.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean deleteAttachment(String messageId, String attachmentId, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[2]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "deleteAttachment"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, attachmentId, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (Boolean)_resp;
|
||||
} catch (Exception var7) {
|
||||
return (Boolean)JavaUtils.convert(_resp, Boolean.TYPE);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
if (var8.detail != null) {
|
||||
if (var8.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var8.detail;
|
||||
}
|
||||
|
||||
if (var8.detail instanceof MessageException) {
|
||||
throw (MessageException)var8.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String createMessage(int boxId, Message message, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[3]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "createMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{new Integer(boxId), message, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (String)_resp;
|
||||
} catch (Exception var7) {
|
||||
return (String)JavaUtils.convert(_resp, String.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
if (var8.detail != null) {
|
||||
if (var8.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var8.detail;
|
||||
}
|
||||
|
||||
if (var8.detail instanceof MessageException) {
|
||||
throw (MessageException)var8.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean deleteMessage(String messageId, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[4]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "deleteMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (Boolean)_resp;
|
||||
} catch (Exception var6) {
|
||||
return (Boolean)JavaUtils.convert(_resp, Boolean.TYPE);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var7) {
|
||||
if (var7.detail != null) {
|
||||
if (var7.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var7.detail;
|
||||
}
|
||||
|
||||
if (var7.detail instanceof MessageException) {
|
||||
throw (MessageException)var7.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public SendResult sendSavedMessage(String messageId, int[] channels, boolean usesSignature, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[5]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendSavedMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, channels, new Boolean(usesSignature), plannedTime, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (SendResult)_resp;
|
||||
} catch (Exception var9) {
|
||||
return (SendResult)JavaUtils.convert(_resp, SendResult.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var10) {
|
||||
if (var10.detail != null) {
|
||||
if (var10.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var10.detail;
|
||||
}
|
||||
|
||||
if (var10.detail instanceof MessageException) {
|
||||
throw (MessageException)var10.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public SendResult sendIndivMessage(int boxId, Message message, int[] channels, boolean usesSignature, int solution, String datasrc, String idvidualParams, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[6]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendIndivMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{new Integer(boxId), message, channels, new Boolean(usesSignature), new Integer(solution), datasrc, idvidualParams, plannedTime, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (SendResult)_resp;
|
||||
} catch (Exception var13) {
|
||||
return (SendResult)JavaUtils.convert(_resp, SendResult.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var14) {
|
||||
if (var14.detail != null) {
|
||||
if (var14.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var14.detail;
|
||||
}
|
||||
|
||||
if (var14.detail instanceof MessageException) {
|
||||
throw (MessageException)var14.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public SendResult sendIndivSavedMessage(String messageId, int[] channels, boolean usesSignature, int solution, String datasrc, String idvidualParams, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[7]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendIndivSavedMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, channels, new Boolean(usesSignature), new Integer(solution), datasrc, idvidualParams, plannedTime, serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (SendResult)_resp;
|
||||
} catch (Exception var12) {
|
||||
return (SendResult)JavaUtils.convert(_resp, SendResult.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var13) {
|
||||
if (var13.detail != null) {
|
||||
if (var13.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var13.detail;
|
||||
}
|
||||
|
||||
if (var13.detail instanceof MessageException) {
|
||||
throw (MessageException)var13.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var13;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getMessageDeliverCount(String messageId, int channel, String serviceToken) throws RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[8]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getMessageDeliverCount"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (Integer)_resp;
|
||||
} catch (Exception var7) {
|
||||
return (Integer)JavaUtils.convert(_resp, Integer.TYPE);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ChannelDeliverState[] getMessageDelivers(String messageId, int channel, int beginIndex, int count, String serviceToken) throws RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[9]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getMessageDelivers"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), new Integer(beginIndex), new Integer(count), serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (ChannelDeliverState[])((ChannelDeliverState[])_resp);
|
||||
} catch (Exception var9) {
|
||||
return (ChannelDeliverState[])((ChannelDeliverState[])JavaUtils.convert(_resp, ChannelDeliverState[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var10) {
|
||||
throw var10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getChannelMessageDetailCount(String messageId, int channel, String serviceToken) throws RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[10]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getChannelMessageDetailCount"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (Integer)_resp;
|
||||
} catch (Exception var7) {
|
||||
return (Integer)JavaUtils.convert(_resp, Integer.TYPE);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ChannelMessageDetail[] getChannelMessageDetails(String messageId, int channel, int beginIndex, int count, String serviceToken) throws RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[11]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getChannelMessageDetails"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), new Integer(beginIndex), new Integer(count), serviceToken});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (ChannelMessageDetail[])((ChannelMessageDetail[])_resp);
|
||||
} catch (Exception var9) {
|
||||
return (ChannelMessageDetail[])((ChannelMessageDetail[])JavaUtils.convert(_resp, ChannelMessageDetail[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var10) {
|
||||
throw var10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
_initOperationDesc1();
|
||||
_initOperationDesc2();
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.Calendar;
|
||||
|
||||
public interface UcpWebServ_PortType extends Remote {
|
||||
SendResult sendMessage(int var1, Message var2, int[] var3, boolean var4, Calendar var5, String var6) throws RemoteException, MessageException;
|
||||
|
||||
String addAttachment(String var1, Attachment var2, String var3) throws RemoteException, MessageException;
|
||||
|
||||
boolean deleteAttachment(String var1, String var2, String var3) throws RemoteException, MessageException;
|
||||
|
||||
String createMessage(int var1, Message var2, String var3) throws RemoteException, MessageException;
|
||||
|
||||
boolean deleteMessage(String var1, String var2) throws RemoteException, MessageException;
|
||||
|
||||
SendResult sendSavedMessage(String var1, int[] var2, boolean var3, Calendar var4, String var5) throws RemoteException, MessageException;
|
||||
|
||||
SendResult sendIndivMessage(int var1, Message var2, int[] var3, boolean var4, int var5, String var6, String var7, Calendar var8, String var9) throws RemoteException, MessageException;
|
||||
|
||||
SendResult sendIndivSavedMessage(String var1, int[] var2, boolean var3, int var4, String var5, String var6, Calendar var7, String var8) throws RemoteException, MessageException;
|
||||
|
||||
int getMessageDeliverCount(String var1, int var2, String var3) throws RemoteException;
|
||||
|
||||
ChannelDeliverState[] getMessageDelivers(String var1, int var2, int var3, int var4, String var5) throws RemoteException;
|
||||
|
||||
int getChannelMessageDetailCount(String var1, int var2, String var3) throws RemoteException;
|
||||
|
||||
ChannelMessageDetail[] getChannelMessageDetails(String var1, int var2, int var3, int var4, String var5) throws RemoteException;
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.URL;
|
||||
|
||||
public interface UcpWebServ_Service extends Service {
|
||||
String getUcpWebServPortAddress();
|
||||
|
||||
UcpWebServ_PortType getUcpWebServPort() throws ServiceException;
|
||||
|
||||
UcpWebServ_PortType getUcpWebServPort(URL var1) throws ServiceException;
|
||||
}
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.EngineConfiguration;
|
||||
import org.apache.axis.client.Service;
|
||||
import org.apache.axis.client.Stub;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.rmi.Remote;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class UcpWebServ_ServiceLocator extends Service implements UcpWebServ_Service {
|
||||
private String UcpWebServPort_address = "http://172.18.10.32:8181/UcpWebServ";
|
||||
private String UcpWebServPortWSDDServiceName = "UcpWebServPort";
|
||||
private HashSet ports = null;
|
||||
|
||||
public UcpWebServ_ServiceLocator() {
|
||||
}
|
||||
|
||||
public UcpWebServ_ServiceLocator(EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public UcpWebServ_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
public String getUcpWebServPortAddress() {
|
||||
return this.UcpWebServPort_address;
|
||||
}
|
||||
|
||||
public String getUcpWebServPortWSDDServiceName() {
|
||||
return this.UcpWebServPortWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setUcpWebServPortWSDDServiceName(String name) {
|
||||
this.UcpWebServPortWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public UcpWebServ_PortType getUcpWebServPort() throws ServiceException {
|
||||
URL endpoint;
|
||||
try {
|
||||
endpoint = new URL(this.UcpWebServPort_address);
|
||||
} catch (MalformedURLException var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
return this.getUcpWebServPort(endpoint);
|
||||
}
|
||||
|
||||
public UcpWebServ_PortType getUcpWebServPort(URL portAddress) throws ServiceException {
|
||||
try {
|
||||
UcpWebServPortBindingStub _stub = new UcpWebServPortBindingStub(portAddress, this);
|
||||
_stub.setPortName(this.getUcpWebServPortWSDDServiceName());
|
||||
return _stub;
|
||||
} catch (AxisFault var3) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setUcpWebServPortEndpointAddress(String address) {
|
||||
this.UcpWebServPort_address = address;
|
||||
}
|
||||
|
||||
public Remote getPort(Class serviceEndpointInterface) throws ServiceException {
|
||||
try {
|
||||
if (UcpWebServ_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
UcpWebServPortBindingStub _stub = new UcpWebServPortBindingStub(new URL(this.UcpWebServPort_address), this);
|
||||
_stub.setPortName(this.getUcpWebServPortWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
} catch (Throwable var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException {
|
||||
if (portName == null) {
|
||||
return this.getPort(serviceEndpointInterface);
|
||||
} else {
|
||||
String inputPortName = portName.getLocalPart();
|
||||
if ("UcpWebServPort".equals(inputPortName)) {
|
||||
return this.getUcpWebServPort();
|
||||
} else {
|
||||
Remote _stub = this.getPort(serviceEndpointInterface);
|
||||
((Stub)_stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public QName getServiceName() {
|
||||
return new QName("http://serv.ucp.sudytech.com/", "UcpWebServ");
|
||||
}
|
||||
|
||||
public Iterator getPorts() {
|
||||
if (this.ports == null) {
|
||||
this.ports = new HashSet();
|
||||
this.ports.add(new QName("http://serv.ucp.sudytech.com/", "UcpWebServPort"));
|
||||
}
|
||||
|
||||
return this.ports.iterator();
|
||||
}
|
||||
|
||||
public void setEndpointAddress(String portName, String address) throws ServiceException {
|
||||
if ("UcpWebServPort".equals(portName)) {
|
||||
this.setUcpWebServPortEndpointAddress(address);
|
||||
} else {
|
||||
throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
public void setEndpointAddress(QName portName, String address) throws ServiceException {
|
||||
this.setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
}
|
||||
@@ -1,208 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.serv.client;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class WrongAddress implements Serializable {
|
||||
private Address address;
|
||||
private String errorInfo;
|
||||
private int errorType;
|
||||
private Channel[] forbiddenChannels;
|
||||
private Address[] subAddresses;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(WrongAddress.class, true);
|
||||
|
||||
public WrongAddress() {
|
||||
}
|
||||
|
||||
public WrongAddress(Address address, String errorInfo, int errorType, Channel[] forbiddenChannels, Address[] subAddresses) {
|
||||
this.address = address;
|
||||
this.errorInfo = errorInfo;
|
||||
this.errorType = errorType;
|
||||
this.forbiddenChannels = forbiddenChannels;
|
||||
this.subAddresses = subAddresses;
|
||||
}
|
||||
|
||||
public Address getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(Address address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getErrorInfo() {
|
||||
return this.errorInfo;
|
||||
}
|
||||
|
||||
public void setErrorInfo(String errorInfo) {
|
||||
this.errorInfo = errorInfo;
|
||||
}
|
||||
|
||||
public int getErrorType() {
|
||||
return this.errorType;
|
||||
}
|
||||
|
||||
public void setErrorType(int errorType) {
|
||||
this.errorType = errorType;
|
||||
}
|
||||
|
||||
public Channel[] getForbiddenChannels() {
|
||||
return this.forbiddenChannels;
|
||||
}
|
||||
|
||||
public void setForbiddenChannels(Channel[] forbiddenChannels) {
|
||||
this.forbiddenChannels = forbiddenChannels;
|
||||
}
|
||||
|
||||
public Channel getForbiddenChannels(int i) {
|
||||
return this.forbiddenChannels[i];
|
||||
}
|
||||
|
||||
public void setForbiddenChannels(int i, Channel _value) {
|
||||
this.forbiddenChannels[i] = _value;
|
||||
}
|
||||
|
||||
public Address[] getSubAddresses() {
|
||||
return this.subAddresses;
|
||||
}
|
||||
|
||||
public void setSubAddresses(Address[] subAddresses) {
|
||||
this.subAddresses = subAddresses;
|
||||
}
|
||||
|
||||
public Address getSubAddresses(int i) {
|
||||
return this.subAddresses[i];
|
||||
}
|
||||
|
||||
public void setSubAddresses(int i, Address _value) {
|
||||
this.subAddresses[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof WrongAddress)) {
|
||||
return false;
|
||||
} else {
|
||||
WrongAddress other = (WrongAddress)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && this.errorType == other.getErrorType() && (this.forbiddenChannels == null && other.getForbiddenChannels() == null || this.forbiddenChannels != null && Arrays.equals(this.forbiddenChannels, other.getForbiddenChannels())) && (this.subAddresses == null && other.getSubAddresses() == null || this.subAddresses != null && Arrays.equals(this.subAddresses, other.getSubAddresses()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddress() != null) {
|
||||
_hashCode += this.getAddress().hashCode();
|
||||
}
|
||||
|
||||
if (this.getErrorInfo() != null) {
|
||||
_hashCode += this.getErrorInfo().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getErrorType();
|
||||
int i;
|
||||
Object obj;
|
||||
if (this.getForbiddenChannels() != null) {
|
||||
for(i = 0; i < Array.getLength(this.getForbiddenChannels()); ++i) {
|
||||
obj = Array.get(this.getForbiddenChannels(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.getSubAddresses() != null) {
|
||||
for(i = 0; i < Array.getLength(this.getSubAddresses()); ++i) {
|
||||
obj = Array.get(this.getSubAddresses(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "wrongAddress"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("address");
|
||||
elemField.setXmlName(new QName("", "address"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorInfo");
|
||||
elemField.setXmlName(new QName("", "errorInfo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorType");
|
||||
elemField.setXmlName(new QName("", "errorType"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("forbiddenChannels");
|
||||
elemField.setXmlName(new QName("", "forbiddenChannels"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channel"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("subAddresses");
|
||||
elemField.setXmlName(new QName("", "subAddresses"));
|
||||
elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessage;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessageService_PortType;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessageService_Service;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessageService_ServiceLocator;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class MessageService {
|
||||
private String url;
|
||||
|
||||
public MessageService(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public UcpMessageService_PortType loadMessageServiceClient() throws Exception {
|
||||
UcpMessageService_Service service = new UcpMessageService_ServiceLocator();
|
||||
return service.getUcpMessageServicePort(new URL(this.url));
|
||||
}
|
||||
|
||||
public int findUnreadMessageCount(String loginName) throws Exception {
|
||||
return this.loadMessageServiceClient().findUnreadMessageCount(loginName);
|
||||
}
|
||||
|
||||
public UcpMessage[] findUnreadMessages(String loginName) throws Exception {
|
||||
return this.loadMessageServiceClient().findUnreadMessages(loginName, -1, -1);
|
||||
}
|
||||
|
||||
public UcpMessage[] findUnreadMessages(String loginName, int beginIndex, int count) throws Exception {
|
||||
return this.loadMessageServiceClient().findUnreadMessages(loginName, beginIndex, count);
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.SmsService_PortType;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.SmsService_Service;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.SmsService_ServiceLocator;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class SmsMessageSender {
|
||||
private String url;
|
||||
|
||||
public SmsMessageSender(String path, String url) {
|
||||
this.url = url;
|
||||
System.setProperty("javax.net.ssl.keyStore", path);
|
||||
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
|
||||
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
|
||||
}
|
||||
|
||||
private SmsService_PortType loadSmsClient() throws Exception {
|
||||
SmsService_Service service = new SmsService_ServiceLocator();
|
||||
return service.getSmsServicePort(new URL(this.url));
|
||||
}
|
||||
|
||||
public SendResult send(String context, String[] phones) throws Exception {
|
||||
SmsService_PortType client = this.loadSmsClient();
|
||||
return client.sendSmsMessage(context, phones);
|
||||
}
|
||||
|
||||
public DeliverState[] findSmsMessageDelivers(String messageId) throws Exception {
|
||||
SmsService_PortType client = this.loadSmsClient();
|
||||
return client.findSmsMessageDelivers(messageId);
|
||||
}
|
||||
|
||||
public MessageState[] findSmsMessageStates(String messageId) throws Exception {
|
||||
SmsService_PortType client = this.loadSmsClient();
|
||||
return client.findSmsMessageStates(messageId);
|
||||
}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws;
|
||||
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one.SmsService1_PortType;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one.SmsService1_Service;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one.SmsService1_ServiceLocator;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class SmsMessageSender1 {
|
||||
private String url;
|
||||
private String username;
|
||||
private String password;
|
||||
|
||||
public SmsMessageSender1(String url, String username, String password) {
|
||||
this.url = url;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
private SmsService1_PortType loadSmsClient() throws Exception {
|
||||
SmsService1_Service service = new SmsService1_ServiceLocator();
|
||||
return service.getSmsService1Port(new URL(this.url));
|
||||
}
|
||||
|
||||
public SendResult send(String context, String[] phones) throws Exception {
|
||||
SmsService1_PortType client = this.loadSmsClient();
|
||||
return client.sendSmsMessage(context, phones, this.username, this.password);
|
||||
}
|
||||
|
||||
public DeliverState[] findSmsMessageDelivers(String messageId) throws Exception {
|
||||
SmsService1_PortType client = this.loadSmsClient();
|
||||
return client.findSmsMessageDelivers(messageId, this.username, this.password);
|
||||
}
|
||||
|
||||
public MessageState[] findSmsMessageStates(String messageId) throws Exception {
|
||||
SmsService1_PortType client = this.loadSmsClient();
|
||||
return client.findSmsMessageStates(messageId, this.username, this.password);
|
||||
}
|
||||
}
|
||||
-350
@@ -1,350 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.*;
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.NoEndPointException;
|
||||
import org.apache.axis.client.Call;
|
||||
import org.apache.axis.client.Stub;
|
||||
import org.apache.axis.constants.Style;
|
||||
import org.apache.axis.constants.Use;
|
||||
import org.apache.axis.description.FaultDesc;
|
||||
import org.apache.axis.description.OperationDesc;
|
||||
import org.apache.axis.description.ParameterDesc;
|
||||
import org.apache.axis.encoding.DeserializerFactory;
|
||||
import org.apache.axis.encoding.ser.*;
|
||||
import org.apache.axis.soap.SOAPConstants;
|
||||
import org.apache.axis.utils.JavaUtils;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.encoding.SerializerFactory;
|
||||
import java.net.URL;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
|
||||
public class SmsServicePortBindingStub extends Stub implements SmsService_PortType {
|
||||
private Vector cachedSerClasses;
|
||||
private Vector cachedSerQNames;
|
||||
private Vector cachedSerFactories;
|
||||
private Vector cachedDeserFactories;
|
||||
static OperationDesc[] _operations = new OperationDesc[3];
|
||||
|
||||
private static void _initOperationDesc1() {
|
||||
OperationDesc oper = new OperationDesc();
|
||||
oper.setName("findSmsMessageDelivers");
|
||||
ParameterDesc param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "deliverState"));
|
||||
oper.setReturnClass(DeliverState[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[0] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("sendSmsMessage");
|
||||
param = new ParameterDesc(new QName("", "content"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "addresses"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "sendResult"));
|
||||
oper.setReturnClass(SendResult.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[1] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("findSmsMessageStates");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "messageState"));
|
||||
oper.setReturnClass(MessageState[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[2] = oper;
|
||||
}
|
||||
|
||||
public SmsServicePortBindingStub() throws AxisFault {
|
||||
this((Service)null);
|
||||
}
|
||||
|
||||
public SmsServicePortBindingStub(URL endpointURL, Service service) throws AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public SmsServicePortBindingStub(Service service) throws AxisFault {
|
||||
this.cachedSerClasses = new Vector();
|
||||
this.cachedSerQNames = new Vector();
|
||||
this.cachedSerFactories = new Vector();
|
||||
this.cachedDeserFactories = new Vector();
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
Class beansf = BeanSerializerFactory.class;
|
||||
Class beandf = BeanDeserializerFactory.class;
|
||||
Class enumsf = EnumSerializerFactory.class;
|
||||
Class enumdf = EnumDeserializerFactory.class;
|
||||
Class arraysf = ArraySerializerFactory.class;
|
||||
Class arraydf = ArrayDeserializerFactory.class;
|
||||
Class simplesf = SimpleSerializerFactory.class;
|
||||
Class simpledf = SimpleDeserializerFactory.class;
|
||||
Class simplelistsf = SimpleListSerializerFactory.class;
|
||||
Class simplelistdf = SimpleListDeserializerFactory.class;
|
||||
QName qName = new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry");
|
||||
this.cachedSerQNames.add(qName);
|
||||
Class cls = MessageStatePropertiesEntry.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageStateProperties.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "deliverState");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = DeliverState.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "MessageException");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageException.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "messageState");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageState.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "sendResult");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = SendResult.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = WrongAddress.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
}
|
||||
|
||||
protected Call createCall() throws RemoteException {
|
||||
try {
|
||||
Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
|
||||
Enumeration keys = super.cachedProperties.keys();
|
||||
|
||||
while(keys.hasMoreElements()) {
|
||||
String key = (String)keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
|
||||
synchronized(this) {
|
||||
if (this.firstCall()) {
|
||||
_call.setEncodingStyle((String)null);
|
||||
|
||||
for(int i = 0; i < this.cachedSerFactories.size(); ++i) {
|
||||
Class cls = (Class)this.cachedSerClasses.get(i);
|
||||
QName qName = (QName)this.cachedSerQNames.get(i);
|
||||
Object x = this.cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
Class sf = (Class)this.cachedSerFactories.get(i);
|
||||
Class df = (Class)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
} else if (x instanceof SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i);
|
||||
DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _call;
|
||||
} catch (Throwable var12) {
|
||||
throw new AxisFault("Failure trying to get the Call object", var12);
|
||||
}
|
||||
}
|
||||
|
||||
public DeliverState[] findSmsMessageDelivers(String messageId) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageDelivers"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (DeliverState[])((DeliverState[])_resp);
|
||||
} catch (Exception var5) {
|
||||
return (DeliverState[])((DeliverState[])JavaUtils.convert(_resp, DeliverState[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var6) {
|
||||
if (var6.detail != null) {
|
||||
if (var6.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var6.detail;
|
||||
}
|
||||
|
||||
if (var6.detail instanceof MessageException) {
|
||||
throw (MessageException)var6.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public SendResult sendSmsMessage(String content, String[] addresses) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "sendSmsMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{content, addresses});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (SendResult)_resp;
|
||||
} catch (Exception var6) {
|
||||
return (SendResult)JavaUtils.convert(_resp, SendResult.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var7) {
|
||||
if (var7.detail != null) {
|
||||
if (var7.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var7.detail;
|
||||
}
|
||||
|
||||
if (var7.detail instanceof MessageException) {
|
||||
throw (MessageException)var7.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public MessageState[] findSmsMessageStates(String messageId) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[2]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageStates"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (MessageState[])((MessageState[])_resp);
|
||||
} catch (Exception var5) {
|
||||
return (MessageState[])((MessageState[])JavaUtils.convert(_resp, MessageState[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var6) {
|
||||
if (var6.detail != null) {
|
||||
if (var6.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var6.detail;
|
||||
}
|
||||
|
||||
if (var6.detail instanceof MessageException) {
|
||||
throw (MessageException)var6.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
_initOperationDesc1();
|
||||
}
|
||||
}
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageException;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
|
||||
public interface SmsService_PortType extends Remote {
|
||||
DeliverState[] findSmsMessageDelivers(String var1) throws RemoteException, MessageException;
|
||||
|
||||
SendResult sendSmsMessage(String var1, String[] var2) throws RemoteException, MessageException;
|
||||
|
||||
MessageState[] findSmsMessageStates(String var1) throws RemoteException, MessageException;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client;
|
||||
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.URL;
|
||||
|
||||
public interface SmsService_Service extends Service {
|
||||
String getSmsServicePortAddress();
|
||||
|
||||
SmsService_PortType getSmsServicePort() throws ServiceException;
|
||||
|
||||
SmsService_PortType getSmsServicePort(URL var1) throws ServiceException;
|
||||
}
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.EngineConfiguration;
|
||||
import org.apache.axis.client.Service;
|
||||
import org.apache.axis.client.Stub;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.rmi.Remote;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class SmsService_ServiceLocator extends Service implements SmsService_Service {
|
||||
private String SmsServicePort_address = "http://172.18.10.32:8181/SmsService";
|
||||
private String SmsServicePortWSDDServiceName = "SmsServicePort";
|
||||
private HashSet ports = null;
|
||||
|
||||
public SmsService_ServiceLocator() {
|
||||
}
|
||||
|
||||
public SmsService_ServiceLocator(EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public SmsService_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
public String getSmsServicePortAddress() {
|
||||
return this.SmsServicePort_address;
|
||||
}
|
||||
|
||||
public String getSmsServicePortWSDDServiceName() {
|
||||
return this.SmsServicePortWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setSmsServicePortWSDDServiceName(String name) {
|
||||
this.SmsServicePortWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public SmsService_PortType getSmsServicePort() throws ServiceException {
|
||||
URL endpoint;
|
||||
try {
|
||||
endpoint = new URL(this.SmsServicePort_address);
|
||||
} catch (MalformedURLException var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
return this.getSmsServicePort(endpoint);
|
||||
}
|
||||
|
||||
public SmsService_PortType getSmsServicePort(URL portAddress) throws ServiceException {
|
||||
try {
|
||||
SmsServicePortBindingStub _stub = new SmsServicePortBindingStub(portAddress, this);
|
||||
_stub.setPortName(this.getSmsServicePortWSDDServiceName());
|
||||
return _stub;
|
||||
} catch (AxisFault var3) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setSmsServicePortEndpointAddress(String address) {
|
||||
this.SmsServicePort_address = address;
|
||||
}
|
||||
|
||||
public Remote getPort(Class serviceEndpointInterface) throws ServiceException {
|
||||
try {
|
||||
if (SmsService_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
SmsServicePortBindingStub _stub = new SmsServicePortBindingStub(new URL(this.SmsServicePort_address), this);
|
||||
_stub.setPortName(this.getSmsServicePortWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
} catch (Throwable var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException {
|
||||
if (portName == null) {
|
||||
return this.getPort(serviceEndpointInterface);
|
||||
} else {
|
||||
String inputPortName = portName.getLocalPart();
|
||||
if ("SmsServicePort".equals(inputPortName)) {
|
||||
return this.getSmsServicePort();
|
||||
} else {
|
||||
Remote _stub = this.getPort(serviceEndpointInterface);
|
||||
((Stub)_stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public QName getServiceName() {
|
||||
return new QName("http://api.ws.ucp.sudytech.com/", "SmsService");
|
||||
}
|
||||
|
||||
public Iterator getPorts() {
|
||||
if (this.ports == null) {
|
||||
this.ports = new HashSet();
|
||||
this.ports.add(new QName("http://api.ws.ucp.sudytech.com/", "SmsServicePort"));
|
||||
}
|
||||
|
||||
return this.ports.iterator();
|
||||
}
|
||||
|
||||
public void setEndpointAddress(String portName, String address) throws ServiceException {
|
||||
if ("SmsServicePort".equals(portName)) {
|
||||
this.setSmsServicePortEndpointAddress(address);
|
||||
} else {
|
||||
throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
public void setEndpointAddress(QName portName, String address) throws ServiceException {
|
||||
this.setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
}
|
||||
@@ -1,217 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class UcpMessage implements Serializable {
|
||||
private String content;
|
||||
private String createTime;
|
||||
private String id;
|
||||
private String[] properties;
|
||||
private String sender;
|
||||
private String subject;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(UcpMessage.class, true);
|
||||
|
||||
public UcpMessage() {
|
||||
}
|
||||
|
||||
public UcpMessage(String content, String createTime, String id, String[] properties, String sender, String subject) {
|
||||
this.content = content;
|
||||
this.createTime = createTime;
|
||||
this.id = id;
|
||||
this.properties = properties;
|
||||
this.sender = sender;
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String[] getProperties() {
|
||||
return this.properties;
|
||||
}
|
||||
|
||||
public void setProperties(String[] properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public String getProperties(int i) {
|
||||
return this.properties[i];
|
||||
}
|
||||
|
||||
public void setProperties(int i, String _value) {
|
||||
this.properties[i] = _value;
|
||||
}
|
||||
|
||||
public String getSender() {
|
||||
return this.sender;
|
||||
}
|
||||
|
||||
public void setSender(String sender) {
|
||||
this.sender = sender;
|
||||
}
|
||||
|
||||
public String getSubject() {
|
||||
return this.subject;
|
||||
}
|
||||
|
||||
public void setSubject(String subject) {
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof UcpMessage)) {
|
||||
return false;
|
||||
} else {
|
||||
UcpMessage other = (UcpMessage)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.content == null && other.getContent() == null || this.content != null && this.content.equals(other.getContent())) && (this.createTime == null && other.getCreateTime() == null || this.createTime != null && this.createTime.equals(other.getCreateTime())) && (this.id == null && other.getId() == null || this.id != null && this.id.equals(other.getId())) && (this.properties == null && other.getProperties() == null || this.properties != null && Arrays.equals(this.properties, other.getProperties())) && (this.sender == null && other.getSender() == null || this.sender != null && this.sender.equals(other.getSender())) && (this.subject == null && other.getSubject() == null || this.subject != null && this.subject.equals(other.getSubject()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getContent() != null) {
|
||||
_hashCode += this.getContent().hashCode();
|
||||
}
|
||||
|
||||
if (this.getCreateTime() != null) {
|
||||
_hashCode += this.getCreateTime().hashCode();
|
||||
}
|
||||
|
||||
if (this.getId() != null) {
|
||||
_hashCode += this.getId().hashCode();
|
||||
}
|
||||
|
||||
if (this.getProperties() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getProperties()); ++i) {
|
||||
Object obj = Array.get(this.getProperties(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.getSender() != null) {
|
||||
_hashCode += this.getSender().hashCode();
|
||||
}
|
||||
|
||||
if (this.getSubject() != null) {
|
||||
_hashCode += this.getSubject().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "ucpMessage"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("content");
|
||||
elemField.setXmlName(new QName("", "content"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("createTime");
|
||||
elemField.setXmlName(new QName("", "createTime"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("id");
|
||||
elemField.setXmlName(new QName("", "id"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("properties");
|
||||
elemField.setXmlName(new QName("", "properties"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sender");
|
||||
elemField.setXmlName(new QName("", "sender"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("subject");
|
||||
elemField.setXmlName(new QName("", "subject"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-236
@@ -1,236 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.NoEndPointException;
|
||||
import org.apache.axis.client.Call;
|
||||
import org.apache.axis.client.Stub;
|
||||
import org.apache.axis.constants.Style;
|
||||
import org.apache.axis.constants.Use;
|
||||
import org.apache.axis.description.OperationDesc;
|
||||
import org.apache.axis.description.ParameterDesc;
|
||||
import org.apache.axis.encoding.DeserializerFactory;
|
||||
import org.apache.axis.encoding.ser.*;
|
||||
import org.apache.axis.soap.SOAPConstants;
|
||||
import org.apache.axis.utils.JavaUtils;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.encoding.SerializerFactory;
|
||||
import java.net.URL;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
|
||||
public class UcpMessageServicePortBindingStub extends Stub implements UcpMessageService_PortType {
|
||||
private Vector cachedSerClasses;
|
||||
private Vector cachedSerQNames;
|
||||
private Vector cachedSerFactories;
|
||||
private Vector cachedDeserFactories;
|
||||
static OperationDesc[] _operations = new OperationDesc[2];
|
||||
|
||||
private static void _initOperationDesc1() {
|
||||
OperationDesc oper = new OperationDesc();
|
||||
oper.setName("findUnreadMessageCount");
|
||||
ParameterDesc param = new ParameterDesc(new QName("", "arg0"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
oper.setReturnClass(Integer.TYPE);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
_operations[0] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("findUnreadMessages");
|
||||
param = new ParameterDesc(new QName("", "arg0"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "arg1"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "arg2"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "ucpMessage"));
|
||||
oper.setReturnClass(UcpMessage[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
_operations[1] = oper;
|
||||
}
|
||||
|
||||
public UcpMessageServicePortBindingStub() throws AxisFault {
|
||||
this((Service)null);
|
||||
}
|
||||
|
||||
public UcpMessageServicePortBindingStub(URL endpointURL, Service service) throws AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public UcpMessageServicePortBindingStub(Service service) throws AxisFault {
|
||||
this.cachedSerClasses = new Vector();
|
||||
this.cachedSerQNames = new Vector();
|
||||
this.cachedSerFactories = new Vector();
|
||||
this.cachedDeserFactories = new Vector();
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
Class beansf = BeanSerializerFactory.class;
|
||||
Class beandf = BeanDeserializerFactory.class;
|
||||
Class enumsf = EnumSerializerFactory.class;
|
||||
Class enumdf = EnumDeserializerFactory.class;
|
||||
Class arraysf = ArraySerializerFactory.class;
|
||||
Class arraydf = ArrayDeserializerFactory.class;
|
||||
Class simplesf = SimpleSerializerFactory.class;
|
||||
Class simpledf = SimpleDeserializerFactory.class;
|
||||
Class simplelistsf = SimpleListSerializerFactory.class;
|
||||
Class simplelistdf = SimpleListDeserializerFactory.class;
|
||||
QName qName = new QName("http://api.ws.ucp.sudytech.com/", "ucpMessage");
|
||||
this.cachedSerQNames.add(qName);
|
||||
Class cls = UcpMessage.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
}
|
||||
|
||||
protected Call createCall() throws RemoteException {
|
||||
try {
|
||||
Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
|
||||
Enumeration keys = super.cachedProperties.keys();
|
||||
|
||||
while(keys.hasMoreElements()) {
|
||||
String key = (String)keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
|
||||
synchronized(this) {
|
||||
if (this.firstCall()) {
|
||||
_call.setEncodingStyle((String)null);
|
||||
|
||||
for(int i = 0; i < this.cachedSerFactories.size(); ++i) {
|
||||
Class cls = (Class)this.cachedSerClasses.get(i);
|
||||
QName qName = (QName)this.cachedSerQNames.get(i);
|
||||
Object x = this.cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
Class sf = (Class)this.cachedSerFactories.get(i);
|
||||
Class df = (Class)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
} else if (x instanceof SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i);
|
||||
DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _call;
|
||||
} catch (Throwable var12) {
|
||||
throw new AxisFault("Failure trying to get the Call object", var12);
|
||||
}
|
||||
}
|
||||
|
||||
public int findUnreadMessageCount(String arg0) throws RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findUnreadMessageCount"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{arg0});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (Integer)_resp;
|
||||
} catch (Exception var5) {
|
||||
return (Integer)JavaUtils.convert(_resp, Integer.TYPE);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var6) {
|
||||
throw var6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public UcpMessage[] findUnreadMessages(String arg0, int arg1, int arg2) throws RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findUnreadMessages"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{arg0, new Integer(arg1), new Integer(arg2)});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (UcpMessage[])((UcpMessage[])_resp);
|
||||
} catch (Exception var7) {
|
||||
return (UcpMessage[])((UcpMessage[])JavaUtils.convert(_resp, UcpMessage[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
_initOperationDesc1();
|
||||
}
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
|
||||
public interface UcpMessageService_PortType extends Remote {
|
||||
int findUnreadMessageCount(String var1) throws RemoteException;
|
||||
|
||||
UcpMessage[] findUnreadMessages(String var1, int var2, int var3) throws RemoteException;
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg;
|
||||
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.URL;
|
||||
|
||||
public interface UcpMessageService_Service extends Service {
|
||||
String getUcpMessageServicePortAddress();
|
||||
|
||||
UcpMessageService_PortType getUcpMessageServicePort() throws ServiceException;
|
||||
|
||||
UcpMessageService_PortType getUcpMessageServicePort(URL var1) throws ServiceException;
|
||||
}
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.EngineConfiguration;
|
||||
import org.apache.axis.client.Service;
|
||||
import org.apache.axis.client.Stub;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.rmi.Remote;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class UcpMessageService_ServiceLocator extends Service implements UcpMessageService_Service {
|
||||
private String UcpMessageServicePort_address = "http://172.18.10.141:83/UcpMessageService";
|
||||
private String UcpMessageServicePortWSDDServiceName = "UcpMessageServicePort";
|
||||
private HashSet ports = null;
|
||||
|
||||
public UcpMessageService_ServiceLocator() {
|
||||
}
|
||||
|
||||
public UcpMessageService_ServiceLocator(EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public UcpMessageService_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
public String getUcpMessageServicePortAddress() {
|
||||
return this.UcpMessageServicePort_address;
|
||||
}
|
||||
|
||||
public String getUcpMessageServicePortWSDDServiceName() {
|
||||
return this.UcpMessageServicePortWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setUcpMessageServicePortWSDDServiceName(String name) {
|
||||
this.UcpMessageServicePortWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public UcpMessageService_PortType getUcpMessageServicePort() throws ServiceException {
|
||||
URL endpoint;
|
||||
try {
|
||||
endpoint = new URL(this.UcpMessageServicePort_address);
|
||||
} catch (MalformedURLException var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
return this.getUcpMessageServicePort(endpoint);
|
||||
}
|
||||
|
||||
public UcpMessageService_PortType getUcpMessageServicePort(URL portAddress) throws ServiceException {
|
||||
try {
|
||||
UcpMessageServicePortBindingStub _stub = new UcpMessageServicePortBindingStub(portAddress, this);
|
||||
_stub.setPortName(this.getUcpMessageServicePortWSDDServiceName());
|
||||
return _stub;
|
||||
} catch (AxisFault var3) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setUcpMessageServicePortEndpointAddress(String address) {
|
||||
this.UcpMessageServicePort_address = address;
|
||||
}
|
||||
|
||||
public Remote getPort(Class serviceEndpointInterface) throws ServiceException {
|
||||
try {
|
||||
if (UcpMessageService_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
UcpMessageServicePortBindingStub _stub = new UcpMessageServicePortBindingStub(new URL(this.UcpMessageServicePort_address), this);
|
||||
_stub.setPortName(this.getUcpMessageServicePortWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
} catch (Throwable var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException {
|
||||
if (portName == null) {
|
||||
return this.getPort(serviceEndpointInterface);
|
||||
} else {
|
||||
String inputPortName = portName.getLocalPart();
|
||||
if ("UcpMessageServicePort".equals(inputPortName)) {
|
||||
return this.getUcpMessageServicePort();
|
||||
} else {
|
||||
Remote _stub = this.getPort(serviceEndpointInterface);
|
||||
((Stub)_stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public QName getServiceName() {
|
||||
return new QName("http://api.ws.ucp.sudytech.com/", "UcpMessageService");
|
||||
}
|
||||
|
||||
public Iterator getPorts() {
|
||||
if (this.ports == null) {
|
||||
this.ports = new HashSet();
|
||||
this.ports.add(new QName("http://api.ws.ucp.sudytech.com/", "UcpMessageServicePort"));
|
||||
}
|
||||
|
||||
return this.ports.iterator();
|
||||
}
|
||||
|
||||
public void setEndpointAddress(String portName, String address) throws ServiceException {
|
||||
if ("UcpMessageServicePort".equals(portName)) {
|
||||
this.setUcpMessageServicePortEndpointAddress(address);
|
||||
} else {
|
||||
throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
public void setEndpointAddress(QName portName, String address) throws ServiceException {
|
||||
this.setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
}
|
||||
-362
@@ -1,362 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.*;
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.NoEndPointException;
|
||||
import org.apache.axis.client.Call;
|
||||
import org.apache.axis.client.Stub;
|
||||
import org.apache.axis.constants.Style;
|
||||
import org.apache.axis.constants.Use;
|
||||
import org.apache.axis.description.FaultDesc;
|
||||
import org.apache.axis.description.OperationDesc;
|
||||
import org.apache.axis.description.ParameterDesc;
|
||||
import org.apache.axis.encoding.DeserializerFactory;
|
||||
import org.apache.axis.encoding.ser.*;
|
||||
import org.apache.axis.soap.SOAPConstants;
|
||||
import org.apache.axis.utils.JavaUtils;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.encoding.SerializerFactory;
|
||||
import java.net.URL;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
|
||||
public class SmsService1PortBindingStub extends Stub implements SmsService1_PortType {
|
||||
private Vector cachedSerClasses;
|
||||
private Vector cachedSerQNames;
|
||||
private Vector cachedSerFactories;
|
||||
private Vector cachedDeserFactories;
|
||||
static OperationDesc[] _operations = new OperationDesc[3];
|
||||
|
||||
private static void _initOperationDesc1() {
|
||||
OperationDesc oper = new OperationDesc();
|
||||
oper.setName("findSmsMessageDelivers");
|
||||
ParameterDesc param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "username"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "password"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "deliverState"));
|
||||
oper.setReturnClass(DeliverState[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[0] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("sendSmsMessage");
|
||||
param = new ParameterDesc(new QName("", "content"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "addresses"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "username"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "password"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "sendResult"));
|
||||
oper.setReturnClass(SendResult.class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[1] = oper;
|
||||
oper = new OperationDesc();
|
||||
oper.setName("findSmsMessageStates");
|
||||
param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "username"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new ParameterDesc(new QName("", "password"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "messageState"));
|
||||
oper.setReturnClass(MessageState[].class);
|
||||
oper.setReturnQName(new QName("", "return"));
|
||||
oper.setStyle(Style.WRAPPED);
|
||||
oper.setUse(Use.LITERAL);
|
||||
oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true));
|
||||
_operations[2] = oper;
|
||||
}
|
||||
|
||||
public SmsService1PortBindingStub() throws AxisFault {
|
||||
this((Service)null);
|
||||
}
|
||||
|
||||
public SmsService1PortBindingStub(URL endpointURL, Service service) throws AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public SmsService1PortBindingStub(Service service) throws AxisFault {
|
||||
this.cachedSerClasses = new Vector();
|
||||
this.cachedSerQNames = new Vector();
|
||||
this.cachedSerFactories = new Vector();
|
||||
this.cachedDeserFactories = new Vector();
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
Class beansf = BeanSerializerFactory.class;
|
||||
Class beandf = BeanDeserializerFactory.class;
|
||||
Class enumsf = EnumSerializerFactory.class;
|
||||
Class enumdf = EnumDeserializerFactory.class;
|
||||
Class arraysf = ArraySerializerFactory.class;
|
||||
Class arraydf = ArrayDeserializerFactory.class;
|
||||
Class simplesf = SimpleSerializerFactory.class;
|
||||
Class simpledf = SimpleDeserializerFactory.class;
|
||||
Class simplelistsf = SimpleListSerializerFactory.class;
|
||||
Class simplelistdf = SimpleListDeserializerFactory.class;
|
||||
QName qName = new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry");
|
||||
this.cachedSerQNames.add(qName);
|
||||
Class cls = MessageStatePropertiesEntry.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageStateProperties.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "deliverState");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = DeliverState.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "MessageException");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageException.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "messageState");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = MessageState.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "sendResult");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = SendResult.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
qName = new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress");
|
||||
this.cachedSerQNames.add(qName);
|
||||
cls = WrongAddress.class;
|
||||
this.cachedSerClasses.add(cls);
|
||||
this.cachedSerFactories.add(beansf);
|
||||
this.cachedDeserFactories.add(beandf);
|
||||
}
|
||||
|
||||
protected Call createCall() throws RemoteException {
|
||||
try {
|
||||
Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
|
||||
Enumeration keys = super.cachedProperties.keys();
|
||||
|
||||
while(keys.hasMoreElements()) {
|
||||
String key = (String)keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
|
||||
synchronized(this) {
|
||||
if (this.firstCall()) {
|
||||
_call.setEncodingStyle((String)null);
|
||||
|
||||
for(int i = 0; i < this.cachedSerFactories.size(); ++i) {
|
||||
Class cls = (Class)this.cachedSerClasses.get(i);
|
||||
QName qName = (QName)this.cachedSerQNames.get(i);
|
||||
Object x = this.cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
Class sf = (Class)this.cachedSerFactories.get(i);
|
||||
Class df = (Class)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
} else if (x instanceof SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i);
|
||||
DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _call;
|
||||
} catch (Throwable var12) {
|
||||
throw new AxisFault("Failure trying to get the Call object", var12);
|
||||
}
|
||||
}
|
||||
|
||||
public DeliverState[] findSmsMessageDelivers(String messageId, String username, String password) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageDelivers"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, username, password});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (DeliverState[])((DeliverState[])_resp);
|
||||
} catch (Exception var7) {
|
||||
return (DeliverState[])((DeliverState[])JavaUtils.convert(_resp, DeliverState[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
if (var8.detail != null) {
|
||||
if (var8.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var8.detail;
|
||||
}
|
||||
|
||||
if (var8.detail instanceof MessageException) {
|
||||
throw (MessageException)var8.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public SendResult sendSmsMessage(String content, String[] addresses, String username, String password) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "sendSmsMessage"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{content, addresses, username, password});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (SendResult)_resp;
|
||||
} catch (Exception var8) {
|
||||
return (SendResult)JavaUtils.convert(_resp, SendResult.class);
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var9) {
|
||||
if (var9.detail != null) {
|
||||
if (var9.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var9.detail;
|
||||
}
|
||||
|
||||
if (var9.detail instanceof MessageException) {
|
||||
throw (MessageException)var9.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public MessageState[] findSmsMessageStates(String messageId, String username, String password) throws RemoteException, MessageException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new NoEndPointException();
|
||||
} else {
|
||||
Call _call = this.createCall();
|
||||
_call.setOperation(_operations[2]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("");
|
||||
_call.setEncodingStyle((String)null);
|
||||
_call.setProperty("sendXsiTypes", Boolean.FALSE);
|
||||
_call.setProperty("sendMultiRefs", Boolean.FALSE);
|
||||
_call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageStates"));
|
||||
this.setRequestHeaders(_call);
|
||||
this.setAttachments(_call);
|
||||
|
||||
try {
|
||||
Object _resp = _call.invoke(new Object[]{messageId, username, password});
|
||||
if (_resp instanceof RemoteException) {
|
||||
throw (RemoteException)_resp;
|
||||
} else {
|
||||
this.extractAttachments(_call);
|
||||
|
||||
try {
|
||||
return (MessageState[])((MessageState[])_resp);
|
||||
} catch (Exception var7) {
|
||||
return (MessageState[])((MessageState[])JavaUtils.convert(_resp, MessageState[].class));
|
||||
}
|
||||
}
|
||||
} catch (AxisFault var8) {
|
||||
if (var8.detail != null) {
|
||||
if (var8.detail instanceof RemoteException) {
|
||||
throw (RemoteException)var8.detail;
|
||||
}
|
||||
|
||||
if (var8.detail instanceof MessageException) {
|
||||
throw (MessageException)var8.detail;
|
||||
}
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
_initOperationDesc1();
|
||||
}
|
||||
}
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one;
|
||||
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageException;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
|
||||
public interface SmsService1_PortType extends Remote {
|
||||
DeliverState[] findSmsMessageDelivers(String var1, String var2, String var3) throws RemoteException, MessageException;
|
||||
|
||||
SendResult sendSmsMessage(String var1, String[] var2, String var3, String var4) throws RemoteException, MessageException;
|
||||
|
||||
MessageState[] findSmsMessageStates(String var1, String var2, String var3) throws RemoteException, MessageException;
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one;
|
||||
|
||||
import javax.xml.rpc.Service;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.URL;
|
||||
|
||||
public interface SmsService1_Service extends Service {
|
||||
String getSmsService1PortAddress();
|
||||
|
||||
SmsService1_PortType getSmsService1Port() throws ServiceException;
|
||||
|
||||
SmsService1_PortType getSmsService1Port(URL var1) throws ServiceException;
|
||||
}
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.EngineConfiguration;
|
||||
import org.apache.axis.client.Service;
|
||||
import org.apache.axis.client.Stub;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.rpc.ServiceException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.rmi.Remote;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class SmsService1_ServiceLocator extends Service implements SmsService1_Service {
|
||||
private String SmsService1Port_address = "http://172.18.10.32:8181/SmsService1";
|
||||
private String SmsService1PortWSDDServiceName = "SmsService1Port";
|
||||
private HashSet ports = null;
|
||||
|
||||
public SmsService1_ServiceLocator() {
|
||||
}
|
||||
|
||||
public SmsService1_ServiceLocator(EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public SmsService1_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
public String getSmsService1PortAddress() {
|
||||
return this.SmsService1Port_address;
|
||||
}
|
||||
|
||||
public String getSmsService1PortWSDDServiceName() {
|
||||
return this.SmsService1PortWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setSmsService1PortWSDDServiceName(String name) {
|
||||
this.SmsService1PortWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public SmsService1_PortType getSmsService1Port() throws ServiceException {
|
||||
URL endpoint;
|
||||
try {
|
||||
endpoint = new URL(this.SmsService1Port_address);
|
||||
} catch (MalformedURLException var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
return this.getSmsService1Port(endpoint);
|
||||
}
|
||||
|
||||
public SmsService1_PortType getSmsService1Port(URL portAddress) throws ServiceException {
|
||||
try {
|
||||
SmsService1PortBindingStub _stub = new SmsService1PortBindingStub(portAddress, this);
|
||||
_stub.setPortName(this.getSmsService1PortWSDDServiceName());
|
||||
return _stub;
|
||||
} catch (AxisFault var3) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setSmsService1PortEndpointAddress(String address) {
|
||||
this.SmsService1Port_address = address;
|
||||
}
|
||||
|
||||
public Remote getPort(Class serviceEndpointInterface) throws ServiceException {
|
||||
try {
|
||||
if (SmsService1_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
SmsService1PortBindingStub _stub = new SmsService1PortBindingStub(new URL(this.SmsService1Port_address), this);
|
||||
_stub.setPortName(this.getSmsService1PortWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
} catch (Throwable var3) {
|
||||
throw new ServiceException(var3);
|
||||
}
|
||||
|
||||
throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException {
|
||||
if (portName == null) {
|
||||
return this.getPort(serviceEndpointInterface);
|
||||
} else {
|
||||
String inputPortName = portName.getLocalPart();
|
||||
if ("SmsService1Port".equals(inputPortName)) {
|
||||
return this.getSmsService1Port();
|
||||
} else {
|
||||
Remote _stub = this.getPort(serviceEndpointInterface);
|
||||
((Stub)_stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public QName getServiceName() {
|
||||
return new QName("http://api.ws.ucp.sudytech.com/", "SmsService1");
|
||||
}
|
||||
|
||||
public Iterator getPorts() {
|
||||
if (this.ports == null) {
|
||||
this.ports = new HashSet();
|
||||
this.ports.add(new QName("http://api.ws.ucp.sudytech.com/", "SmsService1Port"));
|
||||
}
|
||||
|
||||
return this.ports.iterator();
|
||||
}
|
||||
|
||||
public void setEndpointAddress(String portName, String address) throws ServiceException {
|
||||
if ("SmsService1Port".equals(portName)) {
|
||||
this.setSmsService1PortEndpointAddress(address);
|
||||
} else {
|
||||
throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
public void setEndpointAddress(QName portName, String address) throws ServiceException {
|
||||
this.setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class DeliverState implements Serializable {
|
||||
private String address;
|
||||
private String errorInfo;
|
||||
private Calendar sendTime;
|
||||
private int state;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(DeliverState.class, true);
|
||||
|
||||
public DeliverState() {
|
||||
}
|
||||
|
||||
public DeliverState(String address, String errorInfo, Calendar sendTime, int state) {
|
||||
this.address = address;
|
||||
this.errorInfo = errorInfo;
|
||||
this.sendTime = sendTime;
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getErrorInfo() {
|
||||
return this.errorInfo;
|
||||
}
|
||||
|
||||
public void setErrorInfo(String errorInfo) {
|
||||
this.errorInfo = errorInfo;
|
||||
}
|
||||
|
||||
public Calendar getSendTime() {
|
||||
return this.sendTime;
|
||||
}
|
||||
|
||||
public void setSendTime(Calendar sendTime) {
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof DeliverState)) {
|
||||
return false;
|
||||
} else {
|
||||
DeliverState other = (DeliverState)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && this.state == other.getState();
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddress() != null) {
|
||||
_hashCode += this.getAddress().hashCode();
|
||||
}
|
||||
|
||||
if (this.getErrorInfo() != null) {
|
||||
_hashCode += this.getErrorInfo().hashCode();
|
||||
}
|
||||
|
||||
if (this.getSendTime() != null) {
|
||||
_hashCode += this.getSendTime().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getState();
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "deliverState"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("address");
|
||||
elemField.setXmlName(new QName("", "address"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorInfo");
|
||||
elemField.setXmlName(new QName("", "errorInfo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sendTime");
|
||||
elemField.setXmlName(new QName("", "sendTime"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("state");
|
||||
elemField.setXmlName(new QName("", "state"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,104 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.AxisFault;
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.SerializationContext;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
import org.xml.sax.Attributes;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class MessageException extends AxisFault implements Serializable {
|
||||
private String message1;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessageException.class, true);
|
||||
|
||||
public MessageException() {
|
||||
}
|
||||
|
||||
public MessageException(String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
public String getMessage1() {
|
||||
return this.message1;
|
||||
}
|
||||
|
||||
public void setMessage1(String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessageException)) {
|
||||
return false;
|
||||
} else {
|
||||
MessageException other = (MessageException)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.message1 == null && other.getMessage1() == null || this.message1 != null && this.message1.equals(other.getMessage1());
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getMessage1() != null) {
|
||||
_hashCode += this.getMessage1().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public void writeDetails(QName qname, SerializationContext context) throws IOException {
|
||||
context.serialize(qname, (Attributes)null, this);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("message1");
|
||||
elemField.setXmlName(new QName("", "message"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,214 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class MessageState implements Serializable {
|
||||
private String address;
|
||||
private String errorInfo;
|
||||
private MessageStateProperties properties;
|
||||
private String replyContent;
|
||||
private int replyCount;
|
||||
private Calendar sendTime;
|
||||
private int state;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessageState.class, true);
|
||||
|
||||
public MessageState() {
|
||||
}
|
||||
|
||||
public MessageState(String address, String errorInfo, MessageStateProperties properties, String replyContent, int replyCount, Calendar sendTime, int state) {
|
||||
this.address = address;
|
||||
this.errorInfo = errorInfo;
|
||||
this.properties = properties;
|
||||
this.replyContent = replyContent;
|
||||
this.replyCount = replyCount;
|
||||
this.sendTime = sendTime;
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getErrorInfo() {
|
||||
return this.errorInfo;
|
||||
}
|
||||
|
||||
public void setErrorInfo(String errorInfo) {
|
||||
this.errorInfo = errorInfo;
|
||||
}
|
||||
|
||||
public MessageStateProperties getProperties() {
|
||||
return this.properties;
|
||||
}
|
||||
|
||||
public void setProperties(MessageStateProperties properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public String getReplyContent() {
|
||||
return this.replyContent;
|
||||
}
|
||||
|
||||
public void setReplyContent(String replyContent) {
|
||||
this.replyContent = replyContent;
|
||||
}
|
||||
|
||||
public int getReplyCount() {
|
||||
return this.replyCount;
|
||||
}
|
||||
|
||||
public void setReplyCount(int replyCount) {
|
||||
this.replyCount = replyCount;
|
||||
}
|
||||
|
||||
public Calendar getSendTime() {
|
||||
return this.sendTime;
|
||||
}
|
||||
|
||||
public void setSendTime(Calendar sendTime) {
|
||||
this.sendTime = sendTime;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessageState)) {
|
||||
return false;
|
||||
} else {
|
||||
MessageState other = (MessageState)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && (this.properties == null && other.getProperties() == null || this.properties != null && this.properties.equals(other.getProperties())) && (this.replyContent == null && other.getReplyContent() == null || this.replyContent != null && this.replyContent.equals(other.getReplyContent())) && this.replyCount == other.getReplyCount() && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && this.state == other.getState();
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddress() != null) {
|
||||
_hashCode += this.getAddress().hashCode();
|
||||
}
|
||||
|
||||
if (this.getErrorInfo() != null) {
|
||||
_hashCode += this.getErrorInfo().hashCode();
|
||||
}
|
||||
|
||||
if (this.getProperties() != null) {
|
||||
_hashCode += this.getProperties().hashCode();
|
||||
}
|
||||
|
||||
if (this.getReplyContent() != null) {
|
||||
_hashCode += this.getReplyContent().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getReplyCount();
|
||||
if (this.getSendTime() != null) {
|
||||
_hashCode += this.getSendTime().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += this.getState();
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "messageState"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("address");
|
||||
elemField.setXmlName(new QName("", "address"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorInfo");
|
||||
elemField.setXmlName(new QName("", "errorInfo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("properties");
|
||||
elemField.setXmlName(new QName("", "properties"));
|
||||
elemField.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("replyContent");
|
||||
elemField.setXmlName(new QName("", "replyContent"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("replyCount");
|
||||
elemField.setXmlName(new QName("", "replyCount"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("sendTime");
|
||||
elemField.setXmlName(new QName("", "sendTime"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("state");
|
||||
elemField.setXmlName(new QName("", "state"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-112
@@ -1,112 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MessageStateProperties implements Serializable {
|
||||
private MessageStatePropertiesEntry[] entry;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessageStateProperties.class, true);
|
||||
|
||||
public MessageStateProperties() {
|
||||
}
|
||||
|
||||
public MessageStateProperties(MessageStatePropertiesEntry[] entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public MessageStatePropertiesEntry[] getEntry() {
|
||||
return this.entry;
|
||||
}
|
||||
|
||||
public void setEntry(MessageStatePropertiesEntry[] entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public MessageStatePropertiesEntry getEntry(int i) {
|
||||
return this.entry[i];
|
||||
}
|
||||
|
||||
public void setEntry(int i, MessageStatePropertiesEntry _value) {
|
||||
this.entry[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessageStateProperties)) {
|
||||
return false;
|
||||
} else {
|
||||
MessageStateProperties other = (MessageStateProperties)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = this.entry == null && other.getEntry() == null || this.entry != null && Arrays.equals(this.entry, other.getEntry());
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getEntry() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getEntry()); ++i) {
|
||||
Object obj = Array.get(this.getEntry(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("entry");
|
||||
elemField.setXmlName(new QName("", "entry"));
|
||||
elemField.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
-117
@@ -1,117 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class MessageStatePropertiesEntry implements Serializable {
|
||||
private String key;
|
||||
private String value;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(MessageStatePropertiesEntry.class, true);
|
||||
|
||||
public MessageStatePropertiesEntry() {
|
||||
}
|
||||
|
||||
public MessageStatePropertiesEntry(String key, String value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof MessageStatePropertiesEntry)) {
|
||||
return false;
|
||||
} else {
|
||||
MessageStatePropertiesEntry other = (MessageStatePropertiesEntry)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.key == null && other.getKey() == null || this.key != null && this.key.equals(other.getKey())) && (this.value == null && other.getValue() == null || this.value != null && this.value.equals(other.getValue()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getKey() != null) {
|
||||
_hashCode += this.getKey().hashCode();
|
||||
}
|
||||
|
||||
if (this.getValue() != null) {
|
||||
_hashCode += this.getValue().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("key");
|
||||
elemField.setXmlName(new QName("", "key"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("value");
|
||||
elemField.setXmlName(new QName("", "value"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,150 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class SendResult implements Serializable {
|
||||
private String messageId;
|
||||
private boolean success;
|
||||
private WrongAddress[] wrongAddresses;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(SendResult.class, true);
|
||||
|
||||
public SendResult() {
|
||||
}
|
||||
|
||||
public SendResult(String messageId, boolean success, WrongAddress[] wrongAddresses) {
|
||||
this.messageId = messageId;
|
||||
this.success = success;
|
||||
this.wrongAddresses = wrongAddresses;
|
||||
}
|
||||
|
||||
public String getMessageId() {
|
||||
return this.messageId;
|
||||
}
|
||||
|
||||
public void setMessageId(String messageId) {
|
||||
this.messageId = messageId;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return this.success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public WrongAddress[] getWrongAddresses() {
|
||||
return this.wrongAddresses;
|
||||
}
|
||||
|
||||
public void setWrongAddresses(WrongAddress[] wrongAddresses) {
|
||||
this.wrongAddresses = wrongAddresses;
|
||||
}
|
||||
|
||||
public WrongAddress getWrongAddresses(int i) {
|
||||
return this.wrongAddresses[i];
|
||||
}
|
||||
|
||||
public void setWrongAddresses(int i, WrongAddress _value) {
|
||||
this.wrongAddresses[i] = _value;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof SendResult)) {
|
||||
return false;
|
||||
} else {
|
||||
SendResult other = (SendResult)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.messageId == null && other.getMessageId() == null || this.messageId != null && this.messageId.equals(other.getMessageId())) && this.success == other.isSuccess() && (this.wrongAddresses == null && other.getWrongAddresses() == null || this.wrongAddresses != null && Arrays.equals(this.wrongAddresses, other.getWrongAddresses()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getMessageId() != null) {
|
||||
_hashCode += this.getMessageId().hashCode();
|
||||
}
|
||||
|
||||
_hashCode += (this.isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (this.getWrongAddresses() != null) {
|
||||
for(int i = 0; i < Array.getLength(this.getWrongAddresses()); ++i) {
|
||||
Object obj = Array.get(this.getWrongAddresses(), i);
|
||||
if (obj != null && !obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "sendResult"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("messageId");
|
||||
elemField.setXmlName(new QName("", "messageId"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("success");
|
||||
elemField.setXmlName(new QName("", "success"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("wrongAddresses");
|
||||
elemField.setXmlName(new QName("", "wrongAddresses"));
|
||||
elemField.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,117 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.om;
|
||||
|
||||
import org.apache.axis.description.ElementDesc;
|
||||
import org.apache.axis.description.TypeDesc;
|
||||
import org.apache.axis.encoding.Deserializer;
|
||||
import org.apache.axis.encoding.Serializer;
|
||||
import org.apache.axis.encoding.ser.BeanDeserializer;
|
||||
import org.apache.axis.encoding.ser.BeanSerializer;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class WrongAddress implements Serializable {
|
||||
private String address;
|
||||
private String errorInfo;
|
||||
private Object __equalsCalc = null;
|
||||
private boolean __hashCodeCalc = false;
|
||||
private static TypeDesc typeDesc = new TypeDesc(WrongAddress.class, true);
|
||||
|
||||
public WrongAddress() {
|
||||
}
|
||||
|
||||
public WrongAddress(String address, String errorInfo) {
|
||||
this.address = address;
|
||||
this.errorInfo = errorInfo;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getErrorInfo() {
|
||||
return this.errorInfo;
|
||||
}
|
||||
|
||||
public void setErrorInfo(String errorInfo) {
|
||||
this.errorInfo = errorInfo;
|
||||
}
|
||||
|
||||
public synchronized boolean equals(Object obj) {
|
||||
if (!(obj instanceof WrongAddress)) {
|
||||
return false;
|
||||
} else {
|
||||
WrongAddress other = (WrongAddress)obj;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
} else if (this == obj) {
|
||||
return true;
|
||||
} else if (this.__equalsCalc != null) {
|
||||
return this.__equalsCalc == obj;
|
||||
} else {
|
||||
this.__equalsCalc = obj;
|
||||
boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo()));
|
||||
this.__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized int hashCode() {
|
||||
if (this.__hashCodeCalc) {
|
||||
return 0;
|
||||
} else {
|
||||
this.__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (this.getAddress() != null) {
|
||||
_hashCode += this.getAddress().hashCode();
|
||||
}
|
||||
|
||||
if (this.getErrorInfo() != null) {
|
||||
_hashCode += this.getErrorInfo().hashCode();
|
||||
}
|
||||
|
||||
this.__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanSerializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) {
|
||||
return new BeanDeserializer(_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress"));
|
||||
ElementDesc elemField = new ElementDesc();
|
||||
elemField.setFieldName("address");
|
||||
elemField.setXmlName(new QName("", "address"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new ElementDesc();
|
||||
elemField.setFieldName("errorInfo");
|
||||
elemField.setXmlName(new QName("", "errorInfo"));
|
||||
elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
}
|
||||
@@ -1,117 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.util;
|
||||
|
||||
import cn.hutool.json.JSONArray;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.Address;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.Message;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.MessageProperties;
|
||||
import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.MessagePropertiesEntry;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MessageBuilder {
|
||||
private String _subject = "待办消息";
|
||||
private String _content = "消息测试,您的oa有一条待办提醒,需要处理!";
|
||||
private String _indivSubject = "待办提醒";
|
||||
private String _indivContent = "${message}${name}";
|
||||
private String _smsSignature = "东南大学";
|
||||
|
||||
public MessageBuilder() {
|
||||
}
|
||||
|
||||
public MessageBuilder(String smsSignature) {
|
||||
this._smsSignature = smsSignature;
|
||||
}
|
||||
|
||||
public MessageBuilder(String subject, String content) {
|
||||
this._subject = subject;
|
||||
this._content = content;
|
||||
this._indivSubject = subject;
|
||||
this._indivContent = content;
|
||||
}
|
||||
|
||||
public Message buildMessage(Address[] address, boolean isLinkUrl) throws Exception {
|
||||
Message message = new Message();
|
||||
message.setTo(address);
|
||||
message.setSubject(this._subject);
|
||||
message.setContent(this._content);
|
||||
message.setMsgType(isLinkUrl ? 1 : 0);
|
||||
MessagePropertiesEntry signature = this.buildProperty("smsSignature", this._smsSignature);
|
||||
MessagePropertiesEntry imLinkUrl = this.buildProperty("im_linkUrl", "http://www.baidu.com");
|
||||
MessagePropertiesEntry[] entrys = isLinkUrl ? new MessagePropertiesEntry[]{signature, imLinkUrl} : new MessagePropertiesEntry[]{signature};
|
||||
message.setProperties(new MessageProperties(entrys));
|
||||
return message;
|
||||
}
|
||||
|
||||
public Message buildIndivMessage(boolean isLinkUrl) throws Exception {
|
||||
Message message = new Message();
|
||||
message.setSubject(this._indivSubject);
|
||||
message.setContent(this._indivContent);
|
||||
message.setMsgType(isLinkUrl ? 1 : 0);
|
||||
MessagePropertiesEntry signature = this.buildProperty("smsSignature", "东华大学");
|
||||
MessagePropertiesEntry imLinkUrl = this.buildProperty("im_linkUrl", "http://www.baidu.com");
|
||||
MessagePropertiesEntry[] entrys = isLinkUrl ? new MessagePropertiesEntry[]{signature, imLinkUrl} : new MessagePropertiesEntry[]{signature};
|
||||
message.setProperties(new MessageProperties(entrys));
|
||||
return message;
|
||||
}
|
||||
|
||||
public Address[] loadAddesses(String filePath, int count) throws Exception {
|
||||
List<Address> addressList = new ArrayList();
|
||||
FileReader fr = new FileReader(filePath);
|
||||
BufferedReader br = new BufferedReader(fr);
|
||||
int begin = 0;
|
||||
|
||||
String line;
|
||||
while((line = br.readLine()) != null && begin < count) {
|
||||
if (line != null && line.length() != 0) {
|
||||
++begin;
|
||||
addressList.add(new Address("(" + line + ")", "uc_ux"));
|
||||
}
|
||||
}
|
||||
|
||||
br.close();
|
||||
fr.close();
|
||||
return (Address[])addressList.toArray(new Address[addressList.size()]);
|
||||
}
|
||||
|
||||
public String loadIndivAddesses(String filePath, int count) throws Exception {
|
||||
JSONArray data = new JSONArray();
|
||||
JSONArray jsonHead = new JSONArray();
|
||||
jsonHead.add("type");
|
||||
jsonHead.add("address");
|
||||
jsonHead.add("message");
|
||||
jsonHead.add("name");
|
||||
data.add(jsonHead);
|
||||
FileReader fr = new FileReader(filePath);
|
||||
BufferedReader br = new BufferedReader(fr);
|
||||
int begin = 0;
|
||||
|
||||
String line;
|
||||
while((line = br.readLine()) != null && begin < count) {
|
||||
if (line != null && line.length() != 0) {
|
||||
++begin;
|
||||
JSONArray jsonData = new JSONArray();
|
||||
jsonData.add("uc_ux");
|
||||
jsonData.add("(" + line + ")");
|
||||
jsonData.add("个性化消息测试,您的oa有一条待办提醒,需要处理!");
|
||||
jsonData.add(String.valueOf(begin));
|
||||
data.add(jsonData);
|
||||
}
|
||||
}
|
||||
|
||||
br.close();
|
||||
fr.close();
|
||||
return data.toString();
|
||||
}
|
||||
|
||||
public MessagePropertiesEntry buildProperty(String key, String value) {
|
||||
return new MessagePropertiesEntry(key, value);
|
||||
}
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.budwk.app.base.sms.impl.njupt.ucp.ws.util;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
|
||||
import java.security.MessageDigest;
|
||||
import java.util.*;
|
||||
|
||||
public class TokenBuilder {
|
||||
private String _appId;
|
||||
private String _privateKey;
|
||||
|
||||
public TokenBuilder(String appId, String privateKey) {
|
||||
this._appId = appId;
|
||||
this._privateKey = privateKey;
|
||||
}
|
||||
|
||||
public String buildToken() throws Exception {
|
||||
String timestamp = String.valueOf(System.currentTimeMillis());
|
||||
String nonce = String.valueOf((new Random()).nextInt(10000));
|
||||
JSONObject jsonObj = new JSONObject();
|
||||
jsonObj.put("authType", "sign1");
|
||||
jsonObj.put("appId", this._appId);
|
||||
jsonObj.put("timestamp", timestamp);
|
||||
jsonObj.put("nonce", nonce);
|
||||
jsonObj.put("signature", this.buildSignature(this._privateKey, timestamp, this._appId, nonce));
|
||||
return jsonObj.toString();
|
||||
}
|
||||
|
||||
private String buildSignature(String securyKey, String timestamp, String appId, String nonce) throws Exception {
|
||||
List<String> sParamList = new ArrayList();
|
||||
sParamList.add(securyKey);
|
||||
sParamList.add(timestamp);
|
||||
sParamList.add(nonce);
|
||||
sParamList.add(appId);
|
||||
Collections.sort(sParamList, new Comparator<String>() {
|
||||
public int compare(String o1, String o2) {
|
||||
return o1.compareTo(o2);
|
||||
}
|
||||
});
|
||||
StringBuilder signature = new StringBuilder();
|
||||
Iterator i$ = sParamList.iterator();
|
||||
|
||||
while(i$.hasNext()) {
|
||||
String sParam = (String)i$.next();
|
||||
signature.append(sParam);
|
||||
}
|
||||
|
||||
MessageDigest md = MessageDigest.getInstance("SHA-1");
|
||||
md.update(signature.toString().getBytes());
|
||||
return this.toHex(md.digest());
|
||||
}
|
||||
|
||||
private String toHex(byte[] buffer) {
|
||||
StringBuilder sb = new StringBuilder(buffer.length * 2);
|
||||
|
||||
for(int i = 0; i < buffer.length; ++i) {
|
||||
sb.append(Character.forDigit((buffer[i] & 240) >> 4, 16));
|
||||
sb.append(Character.forDigit(buffer[i] & 15, 16));
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.budwk.app.flow.handler;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.constant.RoleConstant;
|
||||
import com.budwk.app.base.exception.BaseException;
|
||||
import com.budwk.app.flow.engine.AssignmentHandler;
|
||||
import com.budwk.app.flow.engine.core.Execution;
|
||||
import com.budwk.app.flow.engine.core.ServiceContext;
|
||||
import com.budwk.app.flow.engine.model.TaskModel;
|
||||
import com.budwk.app.sys.models.Sys_role;
|
||||
import com.budwk.app.sys.models.Sys_user_role;
|
||||
import com.budwk.app.sys.services.SysRoleService;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.Dao;
|
||||
import org.nutz.lang.Lang;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @version 1.0
|
||||
* @Author FKY
|
||||
* @name:FlowQualificationReviewGroupByArgsAssignmentHandler
|
||||
* @Date 2025/12/9 10:21
|
||||
* @注释 获取代表资格审查组成员
|
||||
*/
|
||||
public class FlowQualificationReviewGroupByArgsAssignmentHandler implements AssignmentHandler {
|
||||
|
||||
@Override
|
||||
public List<String> assign(TaskModel model, Execution execution) {
|
||||
String sessionId = execution.getArgs().getStr("sessionId");
|
||||
|
||||
if (StrUtil.isBlank(sessionId)) {
|
||||
throw new BaseException("参数 sessionId 不能为空");
|
||||
}
|
||||
|
||||
SysRoleService sysRoleService = ServiceContext.find(SysRoleService.class);
|
||||
Sys_role role = sysRoleService.getByCode(RoleConstant.TEACHER_CONGRESS_DELEGATION_QUALIFICATION);
|
||||
|
||||
List<Sys_user_role> roles = ServiceContext.find(Dao.class).query(
|
||||
Sys_user_role.class,
|
||||
Cnd.where(Sys_user_role::getRoleId, "=", role.getId())
|
||||
.and(Sys_user_role::getTcSessionId, "=", sessionId)
|
||||
);
|
||||
|
||||
if (Lang.isEmpty(roles)) {
|
||||
throw new RuntimeException("未获取到当前届次的代表资格审查小组,无法流转到下一步,请联系校工会进行设置。");
|
||||
}
|
||||
return roles.stream().map(Sys_user_role::getUserId).toList();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "获取代表资格审查组成员(通用版本,根据args中的sessionId)";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
return AssignmentHandler.super.getOrder();
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ public class SysDataUserPullController {
|
||||
}
|
||||
cnd.desc(Sys_user_source::getPullTime);
|
||||
sql.setCondition(cnd);
|
||||
Pagination pagination = sysUserPullService.listPage(pageForm.getPageNumber(), pageForm.getPageSize(), sql);
|
||||
Pagination pagination = sysUserPullService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql);
|
||||
return Result.success(pagination);
|
||||
}
|
||||
|
||||
|
||||
@@ -291,6 +291,7 @@ public class SysUnionController {
|
||||
LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id AND t.taskState = 10
|
||||
LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id
|
||||
$condition
|
||||
$constructionSql
|
||||
""");
|
||||
|
||||
Cnd cnd = Cnd.where("role.`code`", "in", branchUnionRoleCodes);
|
||||
@@ -302,7 +303,9 @@ public class SysUnionController {
|
||||
case "roleName" -> cnd.where().andLike("role.`name`", pageForm.getSearchKeyword());
|
||||
}
|
||||
}
|
||||
cnd.and(new Static("1=1 order by field(role.code," + branchUnionRoleCodes.stream().map(code -> "'" + code + "'").collect(Collectors.joining(",")) + ")"));
|
||||
sql.setVar("constructionSql",
|
||||
new Static(" group by info.id order by field(role.code," + branchUnionRoleCodes.stream().map(code -> "'" + code + "'").collect(Collectors.joining(",")) + ")")
|
||||
);
|
||||
sql.setCondition(cnd);
|
||||
List<NutMap> list = sysUserService.listMap(sql);
|
||||
return Result.success(list);
|
||||
@@ -453,7 +456,7 @@ public class SysUnionController {
|
||||
@ApiOperation("按关键字查询分工会下的人员")
|
||||
@Ok("json:{ignoreNull:true}")
|
||||
@SaCheckPermission("sys.manager.union")
|
||||
public Result listUserSelect(@Valid String unionId, @Valid String keyWord) {
|
||||
public Result listUnion(@Valid String unionId, @Valid String keyWord) {
|
||||
Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user $condition");
|
||||
Cnd cnd = Cnd.NEW();
|
||||
cnd.and(View_user::getUnionId, "=", unionId);
|
||||
|
||||
@@ -47,6 +47,7 @@ public class Sys_user extends BaseModel implements Serializable {
|
||||
|
||||
@Column
|
||||
@Comment("性别")
|
||||
@DataCenterColumn(name = "性别", key = "xbm")
|
||||
@ColDefine(type = ColType.VARCHAR, width = 10)
|
||||
private String sex;
|
||||
|
||||
|
||||
@@ -108,6 +108,6 @@ public class SysDataUnitPullServiceImpl extends BaseServiceImpl<Sys_unit> implem
|
||||
}
|
||||
log.info("本次拉取单位数据,新增{}条,更新{}条", insertList.size(), updateList.size());
|
||||
dao().insert(insertList);
|
||||
dao().update(updateList);
|
||||
dao().updateIgnoreNull(updateList);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,15 +189,18 @@ public class SysDataUserAllUpdateServiceImpl implements SysDataUserUpdateService
|
||||
Sys_user u = new Sys_user();
|
||||
BeanUtils.copyProperties(source, u);
|
||||
|
||||
// 先不处理会员
|
||||
u.setMember(null);
|
||||
|
||||
if (user == null) {
|
||||
// 新增用户,初始化数据
|
||||
String salt = R.UU32();
|
||||
u.setSalt(salt);
|
||||
u.setPassword(PwdUtil.getPassword(PwdUtil.generate(12), salt));
|
||||
|
||||
if (u.getMember()) {
|
||||
addMemberUserIds.add(u.getId());
|
||||
}
|
||||
// if (u.getMember()) {
|
||||
// addMemberUserIds.add(u.getId());
|
||||
// }
|
||||
needInitUserList.add(u);
|
||||
} else {
|
||||
// 修改现有用户
|
||||
@@ -206,11 +209,11 @@ public class SysDataUserAllUpdateServiceImpl implements SysDataUserUpdateService
|
||||
// 更新会员状态
|
||||
boolean currentIsMember = user.getMember() != null && user.getMember();
|
||||
|
||||
if (!currentIsMember) {
|
||||
addMemberUserIds.add(user.getId());
|
||||
} else{
|
||||
removeMemberUserIds.add(user.getId());
|
||||
}
|
||||
// if (!currentIsMember) {
|
||||
// addMemberUserIds.add(user.getId());
|
||||
// } else{
|
||||
// removeMemberUserIds.add(user.getId());
|
||||
// }
|
||||
|
||||
needDoUpdateList.add(u);
|
||||
}
|
||||
|
||||
+1
-2
@@ -261,10 +261,9 @@ public class ActivityBasicScopeController {
|
||||
COLUMN_COMMENT
|
||||
FROM INFORMATION_SCHEMA.COLUMNS
|
||||
WHERE TABLE_NAME = 'sys_user'
|
||||
AND TABLE_SCHEMA = 'budwk_v5_mini'
|
||||
AND TABLE_SCHEMA = 'zhgh_ncu'
|
||||
""");
|
||||
List<NutMap> sqlDataList = activityBasicScopeService.listMap(sql);
|
||||
// sqlDataList.forEach(v -> v.put("DATA_TYPE", new String((byte[]) v.get("DATA_TYPE"))));
|
||||
sqlDataList.forEach(v -> v.put("DATA_TYPE", v.getString("DATA_TYPE")));
|
||||
return Result.success(sqlDataList);
|
||||
} catch (Exception e) {
|
||||
|
||||
+1
-2
@@ -97,9 +97,8 @@ public class FundMemberQueryController {
|
||||
@SaCheckPermission("fundMember.query")
|
||||
@Ok("void")
|
||||
@ApiOperation("导出登记汇总Excel")
|
||||
public void exportExcel(Integer year, String unionId, HttpServletResponse response) {
|
||||
public void exportExcel(String unionId, HttpServletResponse response) {
|
||||
Cnd cnd = Cnd.NEW();
|
||||
cnd.and("YEAR(submitTime)", "=", year);
|
||||
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
||||
cnd.and("unionId", "=", SecurityUtil.getUnionId());
|
||||
} else {
|
||||
|
||||
+2
@@ -126,6 +126,8 @@ public class HealthCheckupSingleController {
|
||||
add(new ExcelExportEntity("部门", "unitName", 20));
|
||||
// add(new ExcelExportEntity("部门编码", "unitCode", 20));
|
||||
add(new ExcelExportEntity("医院", "subjectName", 20));
|
||||
add(new ExcelExportEntity("套餐金额", "packageAmount", 20));
|
||||
add(new ExcelExportEntity("结算金额", "settlementAmount", 20));
|
||||
add(new ExcelExportEntity("邮寄地址", "receiveAddress", 50));
|
||||
}};
|
||||
|
||||
|
||||
+6
@@ -3,6 +3,7 @@ package com.budwk.app.zhgh.democratic.proposal.controller.senior;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.annotation.SLog;
|
||||
import com.budwk.app.base.constant.RoleConstant;
|
||||
import com.budwk.app.base.page.Pagination;
|
||||
import com.budwk.app.base.result.Result;
|
||||
import com.budwk.app.flow.constant.FlowConst;
|
||||
@@ -10,6 +11,8 @@ import com.budwk.app.flow.engine.FlowEngine;
|
||||
import com.budwk.app.flow.entity.ProcessTask;
|
||||
import com.budwk.app.flow.enums.ProcessTaskStateEnum;
|
||||
import com.budwk.app.flow.vo.ProcessTaskVO;
|
||||
import com.budwk.app.web.commons.auth.utils.AuthUtil;
|
||||
import com.budwk.app.web.commons.auth.utils.SecurityUtil;
|
||||
import com.budwk.app.zhgh.democratic.proposal.param.ProposalQueryComprehensiveParam;
|
||||
import com.budwk.app.zhgh.democratic.proposal.service.common.ProposalCommonService;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -91,6 +94,9 @@ public class ProposalSeniorFeedBackController {
|
||||
""");
|
||||
Cnd cnd = Cnd.NEW();
|
||||
ProposalQueryComprehensiveParam.buildSearch(cnd, pageForm);
|
||||
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name())) {
|
||||
cnd.and("info.createUserId", "=", SecurityUtil.getUserId());
|
||||
}
|
||||
// cnd.and("latestFeedBack.id","is not",null);
|
||||
cnd.groupBy("info.id");
|
||||
sql.setCondition(cnd);
|
||||
|
||||
+26
-10
@@ -331,7 +331,9 @@ public class TeacherCongressDelegatePushController {
|
||||
// 已上报专任教师人数
|
||||
int ordinaryTeacher = (int) writeList.stream().filter(v -> v.getBoolean("ordinaryTeacher")).count();
|
||||
// 已上报45岁以下代表
|
||||
int under45 = (int) writeList.stream().filter(v -> Convert.toInt(v.getInt("age"), 0) <= 45).count();
|
||||
// int under45 = (int) writeList.stream().filter(v -> Convert.toInt(v.getInt("age"), 0) <= 45).count();
|
||||
//已上报聘用制人员
|
||||
int employ = (int) writeList.stream().filter(v -> v.getBoolean("employ")).count();
|
||||
|
||||
StringBuffer tips = new StringBuffer();
|
||||
|
||||
@@ -357,8 +359,12 @@ public class TeacherCongressDelegatePushController {
|
||||
tips.append("女教师代表数不满足分配名额数!");
|
||||
}
|
||||
|
||||
if (under45 < allocation.getLess45Num()) {
|
||||
tips.append("45岁以下教师代表数不满足分配名额数!");
|
||||
// if (under45 < allocation.getLess45Num()) {
|
||||
// tips.append("45岁以下教师代表数不满足分配名额数!");
|
||||
// }
|
||||
|
||||
if (employ < allocation.getEmployNum()) {
|
||||
tips.append("聘用制代表数不满足分配名额数!");
|
||||
}
|
||||
|
||||
if (StrUtil.isNotBlank(tips)) {
|
||||
@@ -475,6 +481,8 @@ public class TeacherCongressDelegatePushController {
|
||||
long schoolLeader = writeList.stream().filter(v -> v.getBoolean("schoolLeader")).count();
|
||||
// 中层领导数
|
||||
long middleLevelLeader = writeList.stream().filter(v -> v.getBoolean("middleLevelLeader")).count();
|
||||
// 聘用制
|
||||
int employ = (int) writeList.stream().filter(v -> v.getBoolean("employ")).count();
|
||||
|
||||
HashMap<String, Object> hashMap = new HashMap<>();
|
||||
|
||||
@@ -517,7 +525,7 @@ public class TeacherCongressDelegatePushController {
|
||||
workerMap.put("current", worker);
|
||||
workerMap.put("target", allocation.getWorkerNum());
|
||||
workerMap.put("progress", allocation.getWorkerNum() != 0 ? (double) worker / allocation.getWorkerNum() : 0.0);
|
||||
workerMap.put("remaining", allocation.getWorkerNum() - cadre);
|
||||
workerMap.put("remaining", allocation.getWorkerNum() - worker);
|
||||
hashMap.put("worker", workerMap);
|
||||
|
||||
HashMap<String, Object> ordinaryTeaMap = new HashMap<>();
|
||||
@@ -527,12 +535,20 @@ public class TeacherCongressDelegatePushController {
|
||||
ordinaryTeaMap.put("remaining", allocation.getOrdinaryTeaNum() - ordinaryTeacher);
|
||||
hashMap.put("ordinaryTeacher", ordinaryTeaMap);
|
||||
|
||||
HashMap<String, Object> under45Map = new HashMap<>();
|
||||
under45Map.put("current", under45);
|
||||
under45Map.put("target", allocation.getLess45Num());
|
||||
under45Map.put("progress", allocation.getLess45Num() != 0 ? (double) under45 / allocation.getLess45Num() : 0.0);
|
||||
under45Map.put("remaining", allocation.getLess45Num() - under45);
|
||||
hashMap.put("under45", under45Map);
|
||||
// HashMap<String, Object> under45Map = new HashMap<>();
|
||||
// under45Map.put("current", under45);
|
||||
// under45Map.put("target", allocation.getLess45Num());
|
||||
// under45Map.put("progress", allocation.getLess45Num() != 0 ? (double) under45 / allocation.getLess45Num() : 0.0);
|
||||
// under45Map.put("remaining", allocation.getLess45Num() - under45);
|
||||
// hashMap.put("under45", under45Map);
|
||||
|
||||
// 聘用制
|
||||
HashMap<String, Object> employMap = new HashMap<>();
|
||||
employMap.put("current", employ);
|
||||
employMap.put("target", allocation.getEmployNum());
|
||||
employMap.put("progress", allocation.getEmployNum() != 0 ? (double) employ / allocation.getEmployNum() : 0.0);
|
||||
employMap.put("remaining", allocation.getEmployNum() - employ);
|
||||
hashMap.put("employ", employMap);
|
||||
|
||||
/* HashMap<String, Object> ethnicMinorityMap = new HashMap<>();
|
||||
ethnicMinorityMap.put("current", (int) ethnicMinority);
|
||||
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
package com.budwk.app.zhgh.democratic.teachercongress.delegate.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.constant.RoleConstant;
|
||||
import com.budwk.app.base.page.Pagination;
|
||||
import com.budwk.app.base.param.PageForm;
|
||||
import com.budwk.app.base.result.Result;
|
||||
import com.budwk.app.base.service.BaseService;
|
||||
import com.budwk.app.base.utils.PageUtil;
|
||||
import com.budwk.app.flow.engine.FlowEngine;
|
||||
import com.budwk.app.flow.enums.ProcessTaskStateEnum;
|
||||
import com.budwk.app.flow.service.FlowCommonService;
|
||||
import com.budwk.app.web.commons.auth.utils.AuthUtil;
|
||||
import com.budwk.app.web.commons.auth.utils.SecurityUtil;
|
||||
import com.budwk.app.zhgh.democratic.teachercongress.delegate.service.TeacherCongressDelegatePushService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.Dao;
|
||||
import org.nutz.dao.Sqls;
|
||||
import org.nutz.dao.sql.Sql;
|
||||
import org.nutz.dao.util.cri.SqlExpressionGroup;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
import org.nutz.lang.util.NutMap;
|
||||
import org.nutz.mvc.annotation.At;
|
||||
import org.nutz.mvc.annotation.Ok;
|
||||
import org.nutz.mvc.annotation.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zhf
|
||||
* @date 2025/11/22 11:07
|
||||
* @description 党委书记审核
|
||||
*/
|
||||
@IocBean
|
||||
@At("/platform/teacherCongress/delegate/push/dwSjAudit")
|
||||
@Ok("json:full")
|
||||
@Slf4j
|
||||
@Api(value = "/platform/teacherCongress/delegate/push/dwSjAudit", tags = "党委书记审核")
|
||||
public class TeacherCongressDelegatePushDwSjAuditController {
|
||||
|
||||
|
||||
@Inject
|
||||
private Dao dao;
|
||||
|
||||
@Inject
|
||||
private BaseService baseService;
|
||||
|
||||
@Inject
|
||||
private FlowCommonService flowCommonService;
|
||||
|
||||
@Inject
|
||||
private FlowEngine flowEngine;
|
||||
|
||||
@Inject
|
||||
private TeacherCongressDelegatePushService teacherCongressDelegatePushService;
|
||||
|
||||
@At("")
|
||||
@Ok("beetl:/platform/zhgh/democratic/teachercongress/delegate/push/dwSjAudit.html")
|
||||
@SaCheckPermission("tc.delegate.push.dwSjAudit")
|
||||
public void index() {
|
||||
}
|
||||
|
||||
|
||||
@At
|
||||
@ApiOperation("分页查询")
|
||||
@SaCheckPermission("tc.delegate.push.dwSjAudit")
|
||||
public Result pageData(PageForm pageForm,
|
||||
@Param(value = "sessionId") String sessionId,
|
||||
@Param(value = "unionId") String unionId,
|
||||
@Param(value = "approval") Boolean approval,
|
||||
@Param(value = "isFormalOrAttendance") String isFormalOrAttendance) {
|
||||
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
info.*,
|
||||
ins.id AS instanceId,
|
||||
ins.businessNo,
|
||||
ins.state instanceState,
|
||||
ins.variable instanceVariable,
|
||||
ins.processDefineId instanceProcessDefineId,
|
||||
t.id taskId,
|
||||
t.taskName AS taskKey,
|
||||
t.displayName taskName,
|
||||
t.taskType,
|
||||
t.performType taskPerformType,
|
||||
t.taskState,
|
||||
t.finishTime,
|
||||
t.taskParentId,
|
||||
t.variable taskVariable,
|
||||
IFNULL(GROUP_CONCAT(DISTINCT nt.displayName),'结束') curTaskName,
|
||||
IF(rt.id IS NOT NULL, 1, 0) AS canRevoke
|
||||
FROM
|
||||
wf_process_task t
|
||||
LEFT JOIN wf_process_instance ins ON ins.id = t.processInstanceId
|
||||
LEFT JOIN teacher_congress_delegate_push info ON info.id = ins.businessNo
|
||||
LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id
|
||||
LEFT JOIN wf_process_task nt ON nt.processInstanceId = ins.id AND nt.taskState = 10
|
||||
LEFT JOIN wf_process_task rt ON rt.processInstanceId = ins.id AND rt.taskParentId = t.id AND rt.taskState = 10
|
||||
$condition
|
||||
""");
|
||||
Cnd cnd = Cnd.NEW();
|
||||
cnd.and("t.taskName", "=", "tcDelegatePushDwSj");
|
||||
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name())) {
|
||||
cnd.and("ta.actorId", "in", List.of(SecurityUtil.getUserId()));
|
||||
}
|
||||
if (!"全部".equals(isFormalOrAttendance)) {
|
||||
cnd.and("info.representativeType", "=", isFormalOrAttendance);
|
||||
}
|
||||
cnd.andEX("info.sessionId", "=", sessionId);
|
||||
cnd.andEX("info.unionId", "=", unionId);
|
||||
if (approval) {
|
||||
cnd.and("t.taskState", "in", List.of(ProcessTaskStateEnum.FINISHED.getCode(), ProcessTaskStateEnum.WITHDRAW.getCode(), ProcessTaskStateEnum.INTERRUPT.getCode()));
|
||||
} else {
|
||||
cnd.and("t.taskState", "=", ProcessTaskStateEnum.DOING.getCode());
|
||||
}
|
||||
|
||||
if (StrUtil.isNotBlank(pageForm.getSearchKeyword())) {
|
||||
SqlExpressionGroup group = new SqlExpressionGroup();
|
||||
group.orLike("info.userName", pageForm.getSearchKeyword());
|
||||
group.orLike("info.loginName", pageForm.getSearchKeyword());
|
||||
cnd.and(group);
|
||||
}
|
||||
|
||||
cnd.groupBy("t.id");
|
||||
if (StrUtil.isAllBlank(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) {
|
||||
cnd.desc("t.createdAt");
|
||||
} else {
|
||||
cnd.orderBy(pageForm.getPageOrderName(), PageUtil.getOrder(pageForm.getPageOrderBy()));
|
||||
}
|
||||
sql.setCondition(cnd);
|
||||
Pagination<NutMap> pageVO = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql);
|
||||
return Result.success(pageVO);
|
||||
}
|
||||
|
||||
@At
|
||||
@ApiOperation("党委书记提交")
|
||||
@SaCheckPermission("tc.delegate.push.dwSjAudit")
|
||||
public Result batchSubmit(String sessionId) {
|
||||
|
||||
String str = teacherCongressDelegatePushService.batchSubmitWhere(sessionId, null);
|
||||
if (StrUtil.isNotBlank(str)) {
|
||||
return Result.error(str);
|
||||
}
|
||||
teacherCongressDelegatePushService.batchSubmit("", sessionId);
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+10
-3
@@ -19,6 +19,7 @@ import com.budwk.app.base.utils.PageUtil;
|
||||
import com.budwk.app.flow.enums.ProcessTaskStateEnum;
|
||||
import com.budwk.app.flow.service.FlowCommonService;
|
||||
import com.budwk.app.sys.models.Sys_role;
|
||||
import com.budwk.app.sys.models.Sys_user;
|
||||
import com.budwk.app.sys.models.Sys_user_role;
|
||||
import com.budwk.app.sys.views.View_user;
|
||||
import com.budwk.app.zhgh.democratic.teachercongress.delegate.models.TeacherCongressDelegatePush;
|
||||
@@ -29,6 +30,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.nutz.aop.interceptor.ioc.TransAop;
|
||||
import org.nutz.dao.Chain;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.Sqls;
|
||||
import org.nutz.dao.sql.Sql;
|
||||
@@ -233,8 +235,8 @@ public class TeacherCongressDelegatePushZgAuditController {
|
||||
.and(Teacher_congress_delegation_union::getSessionId, "=", delegatePush.getSessionId()));
|
||||
|
||||
if (ObjectUtil.isNotEmpty(delegation_unit)) {
|
||||
delegate.setDelegationId(delegation_unit.getId());
|
||||
userRole.setTcDelegationId(delegation_unit.getId());
|
||||
delegate.setDelegationId(delegation_unit.getDelegationId());
|
||||
userRole.setTcDelegationId(delegation_unit.getDelegationId());
|
||||
} else {
|
||||
return Result.error(user.getUnitName() + "没有设置到代表团,请先在代表团管理里设置。");
|
||||
}
|
||||
@@ -246,7 +248,6 @@ public class TeacherCongressDelegatePushZgAuditController {
|
||||
if ("列席代表".equals(delegatePush.getRepresentativeType())) {
|
||||
Sys_role sys_role = baseService.dao().fetch(Sys_role.class, Cnd.where(Sys_role::getCode, "=", RoleConstant.TEACHER_CONGRESS_DELEGATE_ATTENDANCE.name()));
|
||||
delegate.setRoleId(sys_role.getId());
|
||||
delegate.setRoleId(sys_role.getId());
|
||||
userRole.setRoleId(sys_role.getId());
|
||||
}
|
||||
userRole.setUserId(user.getId());
|
||||
@@ -254,6 +255,12 @@ public class TeacherCongressDelegatePushZgAuditController {
|
||||
baseService.dao().insert(delegate);
|
||||
baseService.dao().insert(userRole);
|
||||
|
||||
// 去改改用户表的手机号
|
||||
baseService.dao().update(
|
||||
Sys_user.class,
|
||||
Chain.make("mobile", delegatePush.getMobile()),
|
||||
Cnd.where(Sys_user::getId, "=", user.getId())
|
||||
);
|
||||
}
|
||||
Dict args = Json.fromJson(Dict.class, param);
|
||||
flowCommonService.executeTask(args);
|
||||
|
||||
+71
-64
@@ -13,6 +13,7 @@ import com.deepoove.poi.config.Configure;
|
||||
import com.deepoove.poi.plugin.table.LoopRowTableRenderPolicy;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.Dao;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
@@ -29,6 +30,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@IocBean
|
||||
@At("/platform/zhgh/democratic/teacherCongress/delegate/transition")
|
||||
@Api(tags = "教代会代表换届变动信息")
|
||||
@@ -50,72 +52,77 @@ public class TeacherCongressDelegateTransitionController {
|
||||
@At
|
||||
@SaCheckPermission("tc.delegate.transition")
|
||||
public Result pageData(String sessionId) {
|
||||
// 当前届次
|
||||
Teacher_congress_session session = dao.fetch(Teacher_congress_session.class, sessionId);
|
||||
// 上一届次
|
||||
Teacher_congress_session lastSession = dao.fetch(Teacher_congress_session.class, Cnd.where(Teacher_congress_session::getStartDate, "<", session.getStartDate()).desc(Teacher_congress_session::getStartDate));
|
||||
// 当前届次代表团
|
||||
List<Teacher_congress_delegation> delegations = dao.query(Teacher_congress_delegation.class, Cnd.where(Teacher_congress_delegation::getSessionId, "=", sessionId).asc(Teacher_congress_delegation::getCode));
|
||||
try {
|
||||
// 当前届次
|
||||
Teacher_congress_session session = dao.fetch(Teacher_congress_session.class, sessionId);
|
||||
// 上一届次
|
||||
Teacher_congress_session lastSession = dao.fetch(Teacher_congress_session.class, Cnd.where(Teacher_congress_session::getStartDate, "<", session.getStartDate()).desc(Teacher_congress_session::getStartDate));
|
||||
// 当前届次代表团
|
||||
List<Teacher_congress_delegation> delegations = dao.query(Teacher_congress_delegation.class, Cnd.where(Teacher_congress_delegation::getSessionId, "=", sessionId).asc(Teacher_congress_delegation::getCode));
|
||||
|
||||
// 当前届次代表
|
||||
List<Teacher_congress_delegate> delegates = dao.query(Teacher_congress_delegate.class, Cnd.where(Teacher_congress_delegate::getSessionId, "=", sessionId));
|
||||
dao.fetchLinks(delegates, "delegation");
|
||||
// 上一届次代表
|
||||
List<Teacher_congress_delegate> lastDelegates;
|
||||
if (lastSession != null) {
|
||||
lastDelegates = dao.query(Teacher_congress_delegate.class, Cnd.where(Teacher_congress_delegate::getSessionId, "=", lastSession.getId()));
|
||||
dao.fetchLinks(lastDelegates, "delegation");
|
||||
} else {
|
||||
lastDelegates = new ArrayList<>();
|
||||
// 当前届次代表
|
||||
List<Teacher_congress_delegate> delegates = dao.query(Teacher_congress_delegate.class, Cnd.where(Teacher_congress_delegate::getSessionId, "=", sessionId));
|
||||
dao.fetchLinks(delegates, "delegation");
|
||||
// 上一届次代表
|
||||
List<Teacher_congress_delegate> lastDelegates;
|
||||
if (lastSession != null) {
|
||||
lastDelegates = dao.query(Teacher_congress_delegate.class, Cnd.where(Teacher_congress_delegate::getSessionId, "=", lastSession.getId()));
|
||||
dao.fetchLinks(lastDelegates, "delegation");
|
||||
} else {
|
||||
lastDelegates = new ArrayList<>();
|
||||
}
|
||||
|
||||
// 代表数据
|
||||
List<NutMap> delegateFull = delegates.stream().map(delegate -> {
|
||||
NutMap delegateMap = NutMap.NEW();
|
||||
delegateMap.put("userId", delegate.getUserId());
|
||||
delegateMap.put("userName", delegate.getUserName());
|
||||
|
||||
// 本届次代表团信息
|
||||
delegateMap.put("delegationId", delegate.getDelegationId());
|
||||
delegateMap.put("delegationName", delegate.getDelegation().getName());
|
||||
delegateMap.put("delegationCode", delegate.getDelegation().getCode());
|
||||
|
||||
// 上一届次代表团信息
|
||||
lastDelegates.stream().filter(lastDelegate -> lastDelegate.getUserId().equals(delegate.getUserId())).findFirst().ifPresentOrElse(lastDelegate -> {
|
||||
delegateMap.put("lastDelegationId", lastDelegate.getDelegationId());
|
||||
delegateMap.put("lastDelegationName", lastDelegate.getDelegation().getName());
|
||||
delegateMap.put("lastDelegationCode", lastDelegate.getDelegation().getCode());
|
||||
}, () -> {
|
||||
delegateMap.put("lastDelegationId", "");
|
||||
delegateMap.put("lastDelegationName", "");
|
||||
delegateMap.put("lastDelegationCode", "");
|
||||
});
|
||||
|
||||
return delegateMap;
|
||||
}).toList();
|
||||
|
||||
|
||||
List<NutMap> list = delegations.stream().map(delegation -> {
|
||||
NutMap map = NutMap.NEW();
|
||||
map.put("id", delegation.getId());
|
||||
map.put("name", delegation.getName());
|
||||
map.put("code", delegation.getCode());
|
||||
// 上一届次人数
|
||||
map.put("lastCount", delegateFull.stream().filter(delegate -> delegate.getString("lastDelegationCode").equals(delegation.getCode())).count());
|
||||
// 增补代表数 (上一届次不是代表 但是本届次是代表)
|
||||
map.put("addCount", delegateFull.stream().filter(delegate -> StrUtil.isBlank(delegate.getString("lastDelegationCode")) && delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
// 转入代表数 (上一届次是代表 但是在别的代表团)
|
||||
map.put("transferCount", delegateFull.stream().filter(delegate -> StrUtil.isNotBlank(delegate.getString("lastDelegationCode")) && !delegate.getString("lastDelegationCode").equals(delegation.getCode()) && delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
// 转出代表数 (上一届次在本团 本届次转出去了)
|
||||
map.put("transferOutCount", delegateFull.stream().filter(delegate -> delegate.getString("lastDelegationCode").equals(delegation.getCode()) && StrUtil.isNotBlank(delegate.getString("delegationCode")) && !delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
// 减少代表数 (上一届次是代表 本届次不是代表)
|
||||
map.put("reduceCount", delegateFull.stream().filter(delegate -> delegate.getString("lastDelegationCode").equals(delegation.getCode()) && StrUtil.isBlank(delegate.getString("delegationCode"))).count());
|
||||
// 当前代表数
|
||||
map.put("currentCount", delegateFull.stream().filter(delegate -> delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
return map;
|
||||
}).toList();
|
||||
|
||||
return Result.success(list);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage());
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
// 代表数据
|
||||
List<NutMap> delegateFull = delegates.stream().map(delegate -> {
|
||||
NutMap delegateMap = NutMap.NEW();
|
||||
delegateMap.put("userId", delegate.getUserId());
|
||||
delegateMap.put("userName", delegate.getUserName());
|
||||
|
||||
// 本届次代表团信息
|
||||
delegateMap.put("delegationId", delegate.getDelegationId());
|
||||
delegateMap.put("delegationName", delegate.getDelegation().getName());
|
||||
delegateMap.put("delegationCode", delegate.getDelegation().getCode());
|
||||
|
||||
// 上一届次代表团信息
|
||||
lastDelegates.stream().filter(lastDelegate -> lastDelegate.getUserId().equals(delegate.getUserId())).findFirst().ifPresentOrElse(lastDelegate -> {
|
||||
delegateMap.put("lastDelegationId", lastDelegate.getDelegationId());
|
||||
delegateMap.put("lastDelegationName", lastDelegate.getDelegation().getName());
|
||||
delegateMap.put("lastDelegationCode", lastDelegate.getDelegation().getCode());
|
||||
}, () -> {
|
||||
delegateMap.put("lastDelegationId", "");
|
||||
delegateMap.put("lastDelegationName", "");
|
||||
delegateMap.put("lastDelegationCode", "");
|
||||
});
|
||||
|
||||
return delegateMap;
|
||||
}).toList();
|
||||
|
||||
|
||||
List<NutMap> list = delegations.stream().map(delegation -> {
|
||||
NutMap map = NutMap.NEW();
|
||||
map.put("id", delegation.getId());
|
||||
map.put("name", delegation.getName());
|
||||
map.put("code", delegation.getCode());
|
||||
// 上一届次人数
|
||||
map.put("lastCount", delegateFull.stream().filter(delegate -> delegate.getString("lastDelegationCode").equals(delegation.getCode())).count());
|
||||
// 增补代表数 (上一届次不是代表 但是本届次是代表)
|
||||
map.put("addCount", delegateFull.stream().filter(delegate -> StrUtil.isBlank(delegate.getString("lastDelegationCode")) && delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
// 转入代表数 (上一届次是代表 但是在别的代表团)
|
||||
map.put("transferCount", delegateFull.stream().filter(delegate -> StrUtil.isNotBlank(delegate.getString("lastDelegationCode")) && !delegate.getString("lastDelegationCode").equals(delegation.getCode()) && delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
// 转出代表数 (上一届次在本团 本届次转出去了)
|
||||
map.put("transferOutCount", delegateFull.stream().filter(delegate -> delegate.getString("lastDelegationCode").equals(delegation.getCode()) && StrUtil.isNotBlank(delegate.getString("delegationCode")) && !delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
// 减少代表数 (上一届次是代表 本届次不是代表)
|
||||
map.put("reduceCount", delegateFull.stream().filter(delegate -> delegate.getString("lastDelegationCode").equals(delegation.getCode()) && StrUtil.isBlank(delegate.getString("delegationCode"))).count());
|
||||
// 当前代表数
|
||||
map.put("currentCount", delegateFull.stream().filter(delegate -> delegate.getString("delegationCode").equals(delegation.getCode())).count());
|
||||
return map;
|
||||
}).toList();
|
||||
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+6
@@ -135,6 +135,12 @@ public class TeacherCongressDelegatePush extends BaseModel {
|
||||
@Default("0")
|
||||
private Boolean middleLevelLeader;
|
||||
|
||||
@Column
|
||||
@Comment("是否聘用制")
|
||||
@ColDefine(type = ColType.BOOLEAN)
|
||||
@Default("0")
|
||||
private Boolean employ;
|
||||
|
||||
@Column
|
||||
@Comment("年龄")
|
||||
@ColDefine(type = ColType.INT)
|
||||
|
||||
+5
@@ -7,4 +7,9 @@ public interface TeacherCongressDelegatePushService extends BaseService<TeacherC
|
||||
|
||||
void batchSubmit(String[] ids, String sessionId);
|
||||
|
||||
|
||||
void batchSubmit(String unionId ,String sessionId);
|
||||
|
||||
|
||||
String batchSubmitWhere(String sessionId,String unionId);
|
||||
}
|
||||
|
||||
+172
@@ -1,15 +1,21 @@
|
||||
package com.budwk.app.zhgh.democratic.teachercongress.delegate.service;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.lang.Dict;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.service.impl.BaseServiceImpl;
|
||||
import com.budwk.app.flow.constant.FlowConst;
|
||||
import com.budwk.app.flow.enums.ProcessInstanceStateEnum;
|
||||
import com.budwk.app.flow.enums.ProcessSubmitTypeEnum;
|
||||
import com.budwk.app.flow.service.FlowCommonService;
|
||||
import com.budwk.app.web.commons.auth.utils.SecurityUtil;
|
||||
import com.budwk.app.zhgh.democratic.teachercongress.delegate.models.TeacherCongressDelegatePush;
|
||||
import com.budwk.app.zhgh.democratic.teachercongress.prepare.models.Teacher_congress_quota_allocation;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.Dao;
|
||||
import org.nutz.dao.Sqls;
|
||||
import org.nutz.dao.sql.Sql;
|
||||
import org.nutz.dao.util.cri.SqlExpressionGroup;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
import org.nutz.lang.util.NutMap;
|
||||
@@ -71,4 +77,170 @@ public class TeacherCongressDelegatePushServiceImpl extends BaseServiceImpl<Teac
|
||||
flowCommonService.executeTask(dict);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void batchSubmit(String unionId, String sessionId) {
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
info.*,
|
||||
ins.id AS instanceId,
|
||||
ins.businessNo,
|
||||
ins.state instanceState,
|
||||
ins.variable instanceVariable,
|
||||
ins.processDefineId instanceProcessDefineId,
|
||||
t.id taskId,
|
||||
t.taskName AS taskKey,
|
||||
t.displayName taskName,
|
||||
t.taskType,
|
||||
t.performType taskPerformType,
|
||||
t.taskState,
|
||||
t.finishTime,
|
||||
t.taskParentId,
|
||||
t.variable taskVariable,
|
||||
IF((SELECT taskName FROM wf_process_task tt WHERE tt.id = t.taskParentId) = 'startTask', 1, 0) canRevoke,
|
||||
(select MAX(id) from wf_process_task where processInstanceId = ins.id and taskName = 'startTask') AS startTaskId
|
||||
FROM
|
||||
teacher_congress_delegate_push info
|
||||
LEFT JOIN `wf_process_instance` ins ON ins.businessNo = info.id
|
||||
LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id AND t.taskState = 10
|
||||
$condition
|
||||
""");
|
||||
Cnd cnd = Cnd.NEW();
|
||||
cnd.and("t.taskName", "=", "tcDelegatePushUnionFzr");
|
||||
cnd.and("info.pushUnionId", "=", unionId);
|
||||
sql.setCondition(cnd);
|
||||
List<NutMap> delegatePushList = listMap(sql);
|
||||
|
||||
delegatePushList.forEach(push -> {
|
||||
Dict dict = Dict.create();
|
||||
dict.set(FlowConst.PROCESS_TASK_ID_KEY, push.getString("taskId"));
|
||||
dict.set(FlowConst.SUBMIT_TYPE, ProcessSubmitTypeEnum.AGREE.getCode());
|
||||
dict.set(FlowConst.EXT_ENABLE_OPERATOR, true);
|
||||
flowCommonService.executeTask(dict);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String batchSubmitWhere(String sessionId, String unionId) {
|
||||
if (StrUtil.isBlank(sessionId)) {
|
||||
return "参数错误!";
|
||||
}
|
||||
|
||||
if (StrUtil.isBlank(unionId)) {
|
||||
unionId = SecurityUtil.getUnionId();
|
||||
}
|
||||
|
||||
Teacher_congress_quota_allocation allocation = dao().fetch(Teacher_congress_quota_allocation.class,
|
||||
Cnd.where(Teacher_congress_quota_allocation::getSessionId, "=", sessionId)
|
||||
.and(Teacher_congress_quota_allocation::getUnionId, "=", unionId));
|
||||
|
||||
|
||||
if (allocation == null) {
|
||||
return "请先设置名额分配";
|
||||
}
|
||||
if (allocation.getAllocationNum() == 0) {
|
||||
return "请先设置名额分配";
|
||||
}
|
||||
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
info.*,
|
||||
ins.id AS instanceId,
|
||||
ins.businessNo,
|
||||
ins.state instanceState,
|
||||
ins.variable instanceVariable,
|
||||
ins.processDefineId instanceProcessDefineId,
|
||||
t.id taskId,
|
||||
t.taskName AS taskKey,
|
||||
t.displayName taskName,
|
||||
t.taskType,
|
||||
t.performType taskPerformType,
|
||||
t.taskState,
|
||||
t.finishTime,
|
||||
t.taskParentId,
|
||||
t.variable taskVariable
|
||||
FROM
|
||||
teacher_congress_delegate_push info
|
||||
LEFT JOIN `wf_process_instance` ins ON ins.businessNo = info.id
|
||||
LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id
|
||||
AND t.taskState = 10
|
||||
LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id
|
||||
$condition
|
||||
""");
|
||||
Cnd cnd = Cnd.NEW();
|
||||
cnd.andEX("info.sessionId", "=", sessionId);
|
||||
cnd.andEX("info.pushUnionId", "=", unionId);
|
||||
cnd.andEX("info.schoolLeader", "!=", 1);
|
||||
SqlExpressionGroup group = new SqlExpressionGroup();
|
||||
group.or("t.taskName", "=", "tcDelegatePushUnionFzr");
|
||||
group.or("t.taskName", "is", null);
|
||||
cnd.and(group);
|
||||
cnd.and("ins.state", "!=", ProcessInstanceStateEnum.REJECT.getCode());
|
||||
cnd.groupBy("info.id");
|
||||
sql.setCondition(cnd);
|
||||
List<NutMap> writeList = listMap(sql);
|
||||
|
||||
|
||||
// 已上报总人数
|
||||
int total = writeList.size();
|
||||
// 已上报女代表人数
|
||||
int female = (int) writeList.stream().filter(v -> List.of("女", "女性").contains(v.getString("sex"))).count();
|
||||
// 已上报高级职称人数
|
||||
int seniorTeacher = (int) writeList.stream().filter(v -> v.getBoolean("seniorTeacher")).count();
|
||||
//已上报中级职称及以下代表数
|
||||
int intermediateBelow = (int) writeList.stream().filter(v -> v.getBoolean("intermediateBelow")).count();
|
||||
//已上报干部代表数
|
||||
int cadre = (int) writeList.stream().filter(v -> v.getBoolean("cadre")).count();
|
||||
//已上报工人代表数
|
||||
int worker = (int) writeList.stream().filter(v -> v.getBoolean("worker")).count();
|
||||
// 已上报专任教师人数
|
||||
int ordinaryTeacher = (int) writeList.stream().filter(v -> v.getBoolean("ordinaryTeacher")).count();
|
||||
// 已上报45岁以下代表
|
||||
// int under45 = (int) writeList.stream().filter(v -> Convert.toInt(v.getInt("age"), 0) <= 45).count();
|
||||
// 聘用值代表
|
||||
int employ = (int) writeList.stream().filter(v -> v.getBoolean("employ")).count();
|
||||
|
||||
StringBuffer tips = new StringBuffer();
|
||||
|
||||
if (total > allocation.getAllocationNum()) {
|
||||
tips.append("上报总人数超出分配名额!");
|
||||
}
|
||||
if (total < allocation.getAllocationNum()) {
|
||||
tips.append("上报总人数不满足分配名额!");
|
||||
}
|
||||
|
||||
if (seniorTeacher < allocation.getSeniorTeaNum()) {
|
||||
tips.append("高级职称专任教师数不满足分配名额数!");
|
||||
}
|
||||
if (intermediateBelow < allocation.getIntermediateBelowNum()) {
|
||||
tips.append("中级职称及以下代表数不满足分配名额数!");
|
||||
}
|
||||
|
||||
if (cadre < allocation.getCadreNum()) {
|
||||
tips.append("干部代表数不满足分配名额数!");
|
||||
}
|
||||
|
||||
if (worker < allocation.getWorkerNum()) {
|
||||
tips.append("工人代表数不满足分配名额数!");
|
||||
}
|
||||
if (female < allocation.getFemaleNum()) {
|
||||
tips.append("女教师代表数不满足分配名额数!");
|
||||
}
|
||||
|
||||
// if (under45 < allocation.getLess45Num()) {
|
||||
// tips.append("45岁以下教师代表数不满足分配名额数!");
|
||||
// }
|
||||
|
||||
if (employ < allocation.getEmployNum()) {
|
||||
tips.append("聘用制代表数不满足分配名额数!");
|
||||
}
|
||||
|
||||
|
||||
if (StrUtil.isNotBlank(tips)) {
|
||||
return tips.toString();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
+17
@@ -82,6 +82,23 @@ public class TeacherCongressInstitutionUserServiceImpl extends BaseServiceImpl<T
|
||||
}
|
||||
}
|
||||
|
||||
// 🔄 设置教代会代表资格审查小组
|
||||
if (institution.getCode().contains("TEACHER_CONGRESS_INSTITUTION_QUALIFICATION_LEADERSHIP_GROUP")) {
|
||||
Sys_role sysRole = sysRoleService.getByCode(RoleConstant.TEACHER_CONGRESS_DELEGATION_QUALIFICATION);
|
||||
int existsRole = dao().count(Sys_user_role.class, Cnd.where(Sys_user_role::getUserId, "=", userId)
|
||||
.and(Sys_user_role::getTcSessionId, "=", sessionId)
|
||||
.and(Sys_user_role::getRoleId, "=", sysRole.getId())
|
||||
);
|
||||
if (existsRole == 0) {
|
||||
Sys_user_role insertSysUserRole = new Sys_user_role();
|
||||
insertSysUserRole.setRoleId(sysRole.getId());
|
||||
insertSysUserRole.setUserId(userId);
|
||||
insertSysUserRole.setTcSessionId(sessionId);
|
||||
dao().insert(insertSysUserRole);
|
||||
sysRoleService.clearCache();
|
||||
sysUserService.clearCache();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+6
@@ -2,10 +2,13 @@ package com.budwk.app.zhgh.democratic.teachercongress.meetings.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.budwk.app.base.constant.RoleConstant;
|
||||
import com.budwk.app.base.page.Pagination;
|
||||
import com.budwk.app.base.param.PageForm;
|
||||
import com.budwk.app.base.result.Result;
|
||||
import com.budwk.app.base.service.BaseService;
|
||||
import com.budwk.app.web.commons.auth.utils.AuthUtil;
|
||||
import com.budwk.app.web.commons.auth.utils.SecurityUtil;
|
||||
import com.budwk.app.zhgh.democratic.teachercongress.meetings.models.Teacher_congress_meeting;
|
||||
import org.nutz.aop.interceptor.ioc.TransAop;
|
||||
import org.nutz.dao.Cnd;
|
||||
@@ -52,6 +55,9 @@ public class TeacherCongressMeetingController {
|
||||
if (StrUtil.isNotBlank(pageForm.getSearchKeyword())) {
|
||||
cnd.where().andLike("name", pageForm.getSearchKeyword());
|
||||
}
|
||||
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
||||
cnd.and("userId", "=", SecurityUtil.getUserId());
|
||||
}
|
||||
sql.setCondition(cnd);
|
||||
Pagination pagination = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql);
|
||||
return Result.success(pagination);
|
||||
|
||||
+3
-1
@@ -63,6 +63,7 @@ public class TeacherCongressQuotaAllocationController {
|
||||
tcqa.workerNum,
|
||||
tcqa.femaleNum,
|
||||
tcqa.less45Num,
|
||||
tcqa.employNum,
|
||||
COALESCE(u_count, 0) AS memberCount,
|
||||
COALESCE(db_count, 0) AS dbCount
|
||||
FROM
|
||||
@@ -102,7 +103,8 @@ public class TeacherCongressQuotaAllocationController {
|
||||
t2.cadreNum,
|
||||
t2.workerNum,
|
||||
t2.femaleNum,
|
||||
t2.less45Num
|
||||
t2.less45Num,
|
||||
t2.employNum
|
||||
FROM
|
||||
`sys_union` un
|
||||
LEFT JOIN (SELECT unionId, COUNT(id) AS u_count FROM vw_user WHERE member = 1 GROUP BY unionId) u ON u.unionId = un.id
|
||||
|
||||
+5
-1
@@ -89,6 +89,10 @@ public class Teacher_congress_quota_allocation extends BaseModel {
|
||||
@Default("0")
|
||||
private Integer less45Num;
|
||||
|
||||
|
||||
@Column
|
||||
@Comment("聘用制代表数")
|
||||
@ColDefine(type = ColType.INT, width = 4)
|
||||
@Default("0")
|
||||
private Integer employNum;
|
||||
|
||||
}
|
||||
|
||||
+5
-2
@@ -7,6 +7,7 @@ import cn.hutool.core.convert.NumberChineseFormatter;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.lang.Dict;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HtmlUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.budwk.app.base.annotation.SLog;
|
||||
import com.budwk.app.base.page.Pagination;
|
||||
@@ -126,8 +127,10 @@ public class MutualInsuranceMineController {
|
||||
MutualInsuranceUserInfo info = dao.fetch(MutualInsuranceUserInfo.class, id);
|
||||
Map<String, Object> docData = BeanUtil.beanToMap(info);
|
||||
|
||||
String dangerEvent = sysOfficeTemplateUtil.convertRichTextToDocText(info.getDangerEvent());
|
||||
dangerEvent = dangerEvent.trim().replaceAll("^<p>", "").replaceAll("</p>$", "");
|
||||
String dangerEvent = "";
|
||||
if (StrUtil.isNotBlank(info.getDangerEvent())) {
|
||||
dangerEvent = HtmlUtil.cleanHtmlTag(sysOfficeTemplateUtil.convertRichTextToDocText(info.getDangerEvent()));
|
||||
}
|
||||
docData.put("dangerEvent", dangerEvent);
|
||||
docData.put("isRenewal", info.getIsRenewal() ? " √" : "×");
|
||||
docData.put("guaranteedStartTime", DateUtil.format(info.getGuaranteedStartTime(), "yyyy-MM-dd"));
|
||||
|
||||
Reference in New Issue
Block a user