diff --git a/src/main/java/com/budwk/app/base/sms/impl/jshvc/SmsJshvcServiceImpl.java b/src/main/java/com/budwk/app/base/sms/impl/jshvc/SmsJshvcServiceImpl.java new file mode 100644 index 0000000..a93f3ba --- /dev/null +++ b/src/main/java/com/budwk/app/base/sms/impl/jshvc/SmsJshvcServiceImpl.java @@ -0,0 +1,149 @@ +package com.budwk.app.base.sms.impl.jshvc; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.crypto.digest.DigestUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpResponse; +import com.budwk.app.base.sms.SmsService; +import lombok.extern.slf4j.Slf4j; +import org.nutz.integration.jedis.RedisService; +import org.nutz.ioc.loader.annotation.Inject; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.json.Json; +import org.nutz.lang.Lang; +import org.nutz.lang.util.NutMap; + +import java.util.List; +import java.util.Map; + +/** + * @ClassName SmsJshvcServiceImpl + * @Author JyuHsin + * @Date 2025/11/26 19:32 + * @Version 1.0 + * @Description TODO + */ +@Slf4j +@IocBean +public class SmsJshvcServiceImpl implements SmsService { + + private static final String APPID = "1430576717768122368"; + private static final String APP_SECRET = "19A0ACB03FBQHL4R4XQD"; + private static final String TOKEN_URL = "/token/gateway/accessToken"; + private static final String MSG_URL = "/mp/restful/v2/message/send"; + private static final String REDIS_KEY_MSG_ACCESS_TOKEN = "msg:token:"; + + @Inject + private RedisService redisService; + + @Override + public void send(String loginName, String content) { + send(loginName, "智慧工会", content); + } + + @Override + public void send(String loginName, String title, String content) { + send(loginName, "智慧工会", content, null); + } + + @Override + public void send(String loginName, String title, String content, String link) { + Map paramMap = Map.of("userId", loginName); + doSend(title, content, List.of(paramMap), link); + } + + @Override + public void massSend(List loginNames, String title, String content, String link) { + List> receivers = loginNames.stream() + .map(name -> Map.of("userId", name)) + .toList(); + doSend(title, content, receivers, link); + } + + /** + * sign: 请求签名:(accessToken + 第一个receivers 的userID )的32位小写的MD5加密值,其中如果相应部分没有则忽略 + * msgType: 0: 普通消息(默认) 1: 必读消息 2: 验证码(为验证码时消息一定不入收件箱) + * expiredTime: 当msgType 为1必读消息 ,该字段为必填字段 格式:yyyy-MM-dd HH:mm:ss + * sendType: 1.只发送PC门户 2.只发送移动校园 3.邮件 4.短信 5.微信企业号 6.钉钉企业内部应用工作通知 7.微信服务号 8.welink + * wxSendType: 当发送类型为5时此字段才会生效:text(文本消息)、textcard(文本卡片)、nes(图文卡片,如果图文,则qyWeChatImgUrl必填)、button(按钮卡片详见示例),不传默认为text + * receiverType: 1:用户 2:用户组 3:部门,默认为1 + * + * @param title + * @param content + * @param receivers + */ + private void doSend(String title, String content, List> receivers, String link) { + + if (Lang.isEmpty(receivers)) { + log.error("send fail by receivers is null"); + return; + } + + // 获取token + String accessToken = buildAccessToken(); + // 获取第一个接收人的userID + String firstUserId = receivers.get(0).get("userId"); + // md5小写加密生成签名 + String sign = DigestUtil.md5Hex(accessToken + firstUserId); + + NutMap paramsMap = new NutMap(); + paramsMap.put("sign", sign); + paramsMap.put("msgType", "0"); + paramsMap.put("subject", title); + paramsMap.put("content", content); + paramsMap.put("sendType", "5"); + paramsMap.put("receivers", receivers); + if (StrUtil.isBlank(link)) { + paramsMap.put("wxSendType", "text"); + } else { + paramsMap.put("wxSendType", "textcard"); + paramsMap.put("mobileUrl", link); + // 这是图文卡片,后面用到再对接吧 + // paramsMap.put("qyWeChatImgUrl", ""); + } + + log.debug("send params: {}", Json.toJson(paramsMap)); + + HttpRequest request = HttpRequest.post(MSG_URL) + .header("appId", APPID) + .header("accessToken", accessToken) + .body(Json.toJson(paramsMap)); + + try { + HttpResponse response = request.execute(); + log.info("send response body: {}", response.body()); + + NutMap bodyMap = Json.fromJson(NutMap.class, response.body()); + if (bodyMap.getInt("status") == 200) { + log.info("send success code: {}, msg: {}", bodyMap.getInt("status"), bodyMap.getString("msg")); + } else { + log.error("send error code: {}, msg: {}", bodyMap.getInt("status"), bodyMap.getString("msg")); + } + } catch (Exception e) { + log.error("Failed to send: {}", e.getMessage(), e); + } + } + + private String buildAccessToken() { + String token = redisService.get(REDIS_KEY_MSG_ACCESS_TOKEN); + if (StrUtil.isNotBlank(token)) { + return token; + } + HttpRequest request = HttpRequest.get(TOKEN_URL); + request.header("appId", APPID); + request.header("appSecret", APP_SECRET); + + HttpResponse response = request.execute(); + + log.info("accessToken response: {}", Json.toJson(response.body())); + + NutMap bodyMap = Json.fromJson(NutMap.class, response.body()); + if (bodyMap.getInt("errcode") == 0) { + log.info("accessToken status: {}", bodyMap.getInt("errorcode")); + return bodyMap.getString("data"); + } else { + log.error("accessToken status: {}", bodyMap.getInt("errorcode")); + } + return ""; + } +} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java deleted file mode 100644 index f826df4..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java +++ /dev/null @@ -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 loginNames, String title, String content, String link) { -// List
sms = loginNames.stream().map(loginName -> new Address(loginName, "sms")).toList(); - List
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); - } - - -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java deleted file mode 100644 index fe493fa..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java +++ /dev/null @@ -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)); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java deleted file mode 100644 index f4ca773..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java deleted file mode 100644 index 0530085..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java deleted file mode 100644 index 32335be..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java deleted file mode 100644 index c0419ab..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java deleted file mode 100644 index 80e5bd5..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java deleted file mode 100644 index 9f34d87..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java deleted file mode 100644 index a9a7522..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java deleted file mode 100644 index f00497b..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java deleted file mode 100644 index b547520..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java deleted file mode 100644 index e2aab06..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java deleted file mode 100644 index 7b34a02..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java deleted file mode 100644 index be04d73..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java deleted file mode 100644 index a5e7fec..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java deleted file mode 100644 index b37ec73..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java +++ /dev/null @@ -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(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java deleted file mode 100644 index 3c9c0e3..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java deleted file mode 100644 index 8cf0fc2..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java deleted file mode 100644 index 8cda203..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java deleted file mode 100644 index 372d9f3..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java deleted file mode 100644 index f22bd68..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java deleted file mode 100644 index ec48f93..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java deleted file mode 100644 index 3dfbfda..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java deleted file mode 100644 index 53e692a..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java +++ /dev/null @@ -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(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java deleted file mode 100644 index 4d867f0..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java deleted file mode 100644 index fad577e..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java deleted file mode 100644 index 8f5a09c..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java deleted file mode 100644 index 2b0534e..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java deleted file mode 100644 index 26da6e2..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java +++ /dev/null @@ -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(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java deleted file mode 100644 index 54856c6..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java deleted file mode 100644 index 50f58bb..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java deleted file mode 100644 index e62427f..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java deleted file mode 100644 index b673a60..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java +++ /dev/null @@ -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(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java deleted file mode 100644 index 2027ed3..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java deleted file mode 100644 index 8517e19..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java +++ /dev/null @@ -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; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java deleted file mode 100644 index 1493dbc..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java deleted file mode 100644 index 4e23f70..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java deleted file mode 100644 index d1528cf..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java deleted file mode 100644 index 93f35e5..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java deleted file mode 100644 index fd62bb7..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java deleted file mode 100644 index 46ce4a7..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java deleted file mode 100644 index d76b106..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java deleted file mode 100644 index b463457..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java +++ /dev/null @@ -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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java deleted file mode 100644 index 918cc38..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java +++ /dev/null @@ -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
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); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java deleted file mode 100644 index 196bf81..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java +++ /dev/null @@ -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 sParamList = new ArrayList(); - sParamList.add(securyKey); - sParamList.add(timestamp); - sParamList.add(nonce); - sParamList.add(appId); - Collections.sort(sParamList, new Comparator() { - 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(); - } -} diff --git a/src/main/java/com/budwk/app/flow/controller/FlowDesignController.java b/src/main/java/com/budwk/app/flow/controller/FlowDesignController.java index e7c26a9..d0814f1 100644 --- a/src/main/java/com/budwk/app/flow/controller/FlowDesignController.java +++ b/src/main/java/com/budwk/app/flow/controller/FlowDesignController.java @@ -41,190 +41,193 @@ import java.util.*; @Slf4j public class FlowDesignController { - @Inject - private SysUserService sysUserService; - @Inject - private ProcessDesignService processDesignService; - @Inject - private Dao dao; + @Inject + private SysUserService sysUserService; + @Inject + private ProcessDesignService processDesignService; + @Inject + private Dao dao; - // 获取所有任务参与者处理类 - public static final List ASSIGMENT_HANDLER_LIST; - // 获取所有候选用户处理类 - public static final List CANDIDATE_HANDLER_LIST; + // 获取所有任务参与者处理类 + public static final List ASSIGMENT_HANDLER_LIST; + // 获取所有候选用户处理类 + public static final List CANDIDATE_HANDLER_LIST; - static { - Set> classes = ClassScanner.scanPackageBySuper("com.budwk.app", AssignmentHandler.class); - ArrayList list = new ArrayList<>(classes.size()); - for (Class aClass : classes) { - try { - AssignmentHandler handler = (AssignmentHandler) ReflectUtil.newInstance(aClass); - JSONObject jsonObject = new JSONObject(); - jsonObject.set("value", handler.getClass().getName()); - jsonObject.set("order", handler.getOrder()); - jsonObject.set("name", handler.getMessage()); - list.add(jsonObject); - } catch (Exception e) { - log.error("初始化AssignmentHandler失败: {}", aClass.getName()); - } - } - // 排序 按order - list.sort(Comparator.comparingInt(o -> o.getInt("order"))); - ASSIGMENT_HANDLER_LIST = Collections.unmodifiableList(list); - } + static { + Set> classes = ClassScanner.scanPackageBySuper("com.budwk.app", AssignmentHandler.class); + ArrayList list = new ArrayList<>(classes.size()); + for (Class aClass : classes) { + try { + AssignmentHandler handler = (AssignmentHandler) ReflectUtil.newInstance(aClass); + JSONObject jsonObject = new JSONObject(); + jsonObject.set("value", handler.getClass().getName()); + jsonObject.set("order", handler.getOrder()); + jsonObject.set("name", handler.getMessage()); + list.add(jsonObject); + } catch (Exception e) { + log.error("初始化AssignmentHandler失败: {}", aClass.getName()); + } + } + // 排序 按order + list.sort(Comparator.comparingInt(o -> o.getInt("order"))); + ASSIGMENT_HANDLER_LIST = Collections.unmodifiableList(list); + } - static { - Set> classes = ClassScanner.scanPackageBySuper("com.budwk.app", CandidateHandler.class); - ArrayList list = new ArrayList<>(classes.size()); - for (Class aClass : classes) { - try { - CandidateHandler handler = (CandidateHandler) ReflectUtil.newInstance(aClass); - JSONObject jsonObject = new JSONObject(); - jsonObject.set("value", handler.getClass().getName()); - jsonObject.set("order", handler.getOrder()); - jsonObject.set("name", handler.getMessage()); - list.add(jsonObject); - } catch (Exception e) { - log.error("初始化CandidateHandler失败: {}", aClass.getName()); - } - } - // 排序 按order - list.sort(Comparator.comparingInt(o -> o.getInt("order"))); - CANDIDATE_HANDLER_LIST = Collections.unmodifiableList(list); - } + static { + Set> classes = ClassScanner.scanPackageBySuper("com.budwk.app", CandidateHandler.class); + ArrayList list = new ArrayList<>(classes.size()); + for (Class aClass : classes) { + try { + CandidateHandler handler = (CandidateHandler) ReflectUtil.newInstance(aClass); + JSONObject jsonObject = new JSONObject(); + jsonObject.set("value", handler.getClass().getName()); + jsonObject.set("order", handler.getOrder()); + jsonObject.set("name", handler.getMessage()); + list.add(jsonObject); + } catch (Exception e) { + log.error("初始化CandidateHandler失败: {}", aClass.getName()); + } + } + // 排序 按order + list.sort(Comparator.comparingInt(o -> o.getInt("order"))); + CANDIDATE_HANDLER_LIST = Collections.unmodifiableList(list); + } - @At("") - @Ok("beetl:/platform/flow/design/index.html") + @At("") + @Ok("beetl:/platform/flow/design/index.html") @SaCheckPermission("flow.design") - public void index() { - } + public void index() { + } - @At - @Ok("beetl:/platform/flow/design/designer.html") - @SaCheckLogin - public void designer(HttpServletRequest request) { - request.setAttribute("id", request.getParameter("id")); - } + @At + @Ok("beetl:/platform/flow/design/designer.html") + @SaCheckLogin + public void designer(HttpServletRequest request) { + request.setAttribute("id", request.getParameter("id")); + } - @At - @ApiOperation("获取流程设计分页列表") + @At + @ApiOperation("获取流程设计分页列表") @SaCheckPermission("flow.design") - public Result pageData(PageForm pageForm, String displayName, String name, String category, Boolean deployed) { - Cnd cnd = Cnd.NEW(); + public Result pageData(PageForm pageForm, String displayName, String name, String category, Boolean deployed) { + Cnd cnd = Cnd.NEW(); cnd.and(Cnd.likeEX(ProcessDesign::getDisplayName, displayName)); cnd.and(Cnd.likeEX(ProcessDesign::getName, name)); cnd.andEX(ProcessDesign::getCategory, "=", category); cnd.andEX(ProcessDesign::getIsDeployed, "=", deployed); - Pagination pagination = processDesignService.listPage(pageForm.getPageNumber(), pageForm.getPageSize(), cnd); - return Result.success(pagination); - } + Pagination pagination = processDesignService.listPage(pageForm.getPageNumber(), pageForm.getPageSize(), cnd); + return Result.success(pagination); + } - @At - @ApiOperation("保存流程设计") + @At + @ApiOperation("保存流程设计") @SaCheckPermission("flow.design") - public Result insert(@Param("design") ProcessDesign processDesign) { - JSONObject jsonObject = new JSONObject(); - jsonObject.set("name", processDesign.getName()); - jsonObject.set("displayName", processDesign.getDisplayName()); - jsonObject.set("category", processDesign.getCategory()); - jsonObject.set("instanceUrl", processDesign.getInstanceUrl()); - jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl()); - jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl()); - jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl()); - jsonObject.set("icon", processDesign.getIcon()); - jsonObject.set("description", processDesign.getDescription()); - processDesign.setContent(jsonObject); - dao.insert(processDesign); - return Result.success(); - } + public Result insert(@Param("design") ProcessDesign processDesign) { + JSONObject jsonObject = new JSONObject(); + jsonObject.set("name", processDesign.getName()); + jsonObject.set("displayName", processDesign.getDisplayName()); + jsonObject.set("category", processDesign.getCategory()); + jsonObject.set("instanceUrl", processDesign.getInstanceUrl()); + jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl()); + jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl()); + jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl()); + jsonObject.set("icon", processDesign.getIcon()); + jsonObject.set("picIcon", processDesign.getPicIcon()); + jsonObject.set("description", processDesign.getDescription()); + processDesign.setContent(jsonObject); + dao.insert(processDesign); + return Result.success(); + } - @At - @ApiOperation("修改流程设计") + @At + @ApiOperation("修改流程设计") @SaCheckPermission("flow.design") - public Result update(@Param("design") ProcessDesign processDesign) { - JSONObject jsonObject = processDesign.getContent(); - jsonObject.set("name", processDesign.getName()); - jsonObject.set("displayName", processDesign.getDisplayName()); - jsonObject.set("category", processDesign.getCategory()); - jsonObject.set("instanceUrl", processDesign.getInstanceUrl()); - jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl()); - jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl()); - jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl()); - jsonObject.set("icon", processDesign.getIcon()); - jsonObject.set("description", processDesign.getDescription()); - processDesign.setContent(jsonObject); - processDesignService.update(processDesign); - return Result.success(); - } + public Result update(@Param("design") ProcessDesign processDesign) { + JSONObject jsonObject = processDesign.getContent(); + jsonObject.set("name", processDesign.getName()); + jsonObject.set("displayName", processDesign.getDisplayName()); + jsonObject.set("category", processDesign.getCategory()); + jsonObject.set("instanceUrl", processDesign.getInstanceUrl()); + jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl()); + jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl()); + jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl()); + jsonObject.set("icon", processDesign.getIcon()); + jsonObject.set("picIcon", processDesign.getPicIcon()); + jsonObject.set("description", processDesign.getDescription()); + processDesign.setContent(jsonObject); + processDesignService.update(processDesign); + return Result.success(); + } - @At - @ApiOperation("修改流程设计") + @At + @ApiOperation("修改流程设计") @SaCheckPermission("flow.design") - public Result updateContent(@Param("design") ProcessDesign processDesign) { - JSONObject jsonObject = processDesign.getContent(); - jsonObject.set("name", processDesign.getName()); - jsonObject.set("displayName", processDesign.getDisplayName()); - jsonObject.set("category", processDesign.getCategory()); - jsonObject.set("instanceUrl", processDesign.getInstanceUrl()); - jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl()); - jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl()); - jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl()); - jsonObject.set("icon", processDesign.getIcon()); - jsonObject.set("description", processDesign.getDescription()); - processDesign.setContent(jsonObject); - processDesignService.update(processDesign); - return Result.success(); - } + public Result updateContent(@Param("design") ProcessDesign processDesign) { + JSONObject jsonObject = processDesign.getContent(); + jsonObject.set("name", processDesign.getName()); + jsonObject.set("displayName", processDesign.getDisplayName()); + jsonObject.set("category", processDesign.getCategory()); + jsonObject.set("instanceUrl", processDesign.getInstanceUrl()); + jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl()); + jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl()); + jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl()); + jsonObject.set("icon", processDesign.getIcon()); + jsonObject.set("picIcon", processDesign.getPicIcon()); + jsonObject.set("description", processDesign.getDescription()); + processDesign.setContent(jsonObject); + processDesignService.update(processDesign); + return Result.success(); + } - @At - @ApiOperation("删除流程设计") + @At + @ApiOperation("删除流程设计") @SaCheckPermission("flow.design") - public Result delete(@Param("id") Long id) { - dao.delete(ProcessDesign.class, id); - return Result.success(); - } + public Result delete(@Param("id") Long id) { + dao.delete(ProcessDesign.class, id); + return Result.success(); + } - @At - @SaCheckLogin - @ApiOperation("流程设计详情") - public Result detail(@Param("id") Long id) { - ProcessDesign design = dao.fetch(ProcessDesign.class, id); - return Result.success(design); - } + @At + @SaCheckLogin + @ApiOperation("流程设计详情") + public Result detail(@Param("id") Long id) { + ProcessDesign design = dao.fetch(ProcessDesign.class, id); + return Result.success(design); + } - @At - @ApiOperation("发布流程设计") - @Aop(TransAop.READ_COMMITTED) + @At + @ApiOperation("发布流程设计") + @Aop(TransAop.READ_COMMITTED) @SaCheckPermission("flow.design") - public Result deploy(@Param("id") Long id) { - processDesignService.deploy(id); - return Result.success(); - } + public Result deploy(@Param("id") Long id) { + processDesignService.deploy(id); + return Result.success(); + } - @At - @SaCheckLogin - @ApiOperation("获取流程设计任务参与者处理类") - public Result assigmentHandlerClass() { - return Result.success(ASSIGMENT_HANDLER_LIST); - } + @At + @SaCheckLogin + @ApiOperation("获取流程设计任务参与者处理类") + public Result assigmentHandlerClass() { + return Result.success(ASSIGMENT_HANDLER_LIST); + } - @At - @SaCheckLogin - @ApiOperation("获取流程设计任务参与者处理类") - public Result candidateHandlerClass() { - return Result.success(CANDIDATE_HANDLER_LIST); - } + @At + @SaCheckLogin + @ApiOperation("获取流程设计任务参与者处理类") + public Result candidateHandlerClass() { + return Result.success(CANDIDATE_HANDLER_LIST); + } - @At - @SaCheckLogin - @ApiOperation("获取流程设计任务参与者分页数据") - public Result assigneePage(Integer pageNumber, Integer pageSize, String searchKeyword, @Param("userIds") String[] userIds) { - Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user $condition"); - Cnd cnd = Cnd.NEW(); + @At + @SaCheckLogin + @ApiOperation("获取流程设计任务参与者分页数据") + public Result assigneePage(Integer pageNumber, Integer pageSize, String searchKeyword, @Param("userIds") String[] userIds) { + Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user $condition"); + Cnd cnd = Cnd.NEW(); if(StrUtil.isNotBlank(searchKeyword)) { SqlExpressionGroup group = new SqlExpressionGroup(); group.orLike("username", searchKeyword); @@ -233,17 +236,17 @@ public class FlowDesignController { } sql.setCondition(cnd); // cnd.andEX("id", "in", userIds); - Pagination pagination = sysUserService.listPageMap(pageNumber, pageSize, sql); - return Result.success(pagination); - } + Pagination pagination = sysUserService.listPageMap(pageNumber, pageSize, sql); + return Result.success(pagination); + } - @At - @SaCheckLogin - @ApiOperation("获取流程设计任务参与者分页数据回显") - public Result assigneeEcho(@Param("userIds") String[] userIds) { - Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user where id in (@userIds)"); - sql.setParam("userIds", userIds); - List list = sysUserService.listMap(sql); - return Result.success(list); - } + @At + @SaCheckLogin + @ApiOperation("获取流程设计任务参与者分页数据回显") + public Result assigneeEcho(@Param("userIds") String[] userIds) { + Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user where id in (@userIds)"); + sql.setParam("userIds", userIds); + List list = sysUserService.listMap(sql); + return Result.success(list); + } } diff --git a/src/main/java/com/budwk/app/flow/entity/ProcessCategory.java b/src/main/java/com/budwk/app/flow/entity/ProcessCategory.java index 974e3bb..d334adc 100644 --- a/src/main/java/com/budwk/app/flow/entity/ProcessCategory.java +++ b/src/main/java/com/budwk/app/flow/entity/ProcessCategory.java @@ -12,20 +12,25 @@ import org.nutz.dao.interceptor.annotation.PrevInsert; @Comment("流程分类") public class ProcessCategory extends BaseModel { - @Name - @Comment("ID") - @PrevInsert(uu32 = true) - @ColDefine(type = ColType.VARCHAR, width = 32) - private String id; + @Name + @Comment("ID") + @PrevInsert(uu32 = true) + @ColDefine(type = ColType.VARCHAR, width = 32) + private String id; - @Comment("名称") - @Column - @ColDefine(type = ColType.VARCHAR, width = 10) - private String name; + @Comment("名称") + @Column + @ColDefine(type = ColType.VARCHAR, width = 10) + private String name; - @Comment("图标") - @Column - @ColDefine(type = ColType.VARCHAR, width = 255) - private String icon; + @Comment("图片图标") + @Column + @ColDefine(type = ColType.VARCHAR, width = 255) + private String picIcon; + + @Comment("图标") + @Column + @ColDefine(type = ColType.VARCHAR, width = 255) + private String icon; } diff --git a/src/main/java/com/budwk/app/flow/entity/ProcessDesign.java b/src/main/java/com/budwk/app/flow/entity/ProcessDesign.java index 90f4cf4..065c04b 100644 --- a/src/main/java/com/budwk/app/flow/entity/ProcessDesign.java +++ b/src/main/java/com/budwk/app/flow/entity/ProcessDesign.java @@ -20,62 +20,66 @@ import org.nutz.dao.entity.annotation.*; @Comment("流程设计") public class ProcessDesign extends BaseModel { - @Comment("主键") - @Id - private Long id; + @Comment("主键") + @Id + private Long id; - @Comment("唯一编码") - @Column - private String name; + @Comment("唯一编码") + @Column + private String name; - @Comment("显示名称") - @Column - private String displayName; + @Comment("显示名称") + @Column + private String displayName; - @Comment("流程分类") - @Column - private String type; + @Comment("流程分类") + @Column + private String type; - @Comment("流程分类") - @Column - private String category; + @Comment("流程分类") + @Column + private String category; - @Comment("电脑端发起地址") - @Column - private String instanceUrl; + @Comment("电脑端发起地址") + @Column + private String instanceUrl; - @Comment("手机端发起地址") - @Column - private String h5InstanceUrl; + @Comment("手机端发起地址") + @Column + private String h5InstanceUrl; - @Comment("电脑端发起地址") - @Column - private String instanceViewUrl; + @Comment("电脑端发起地址") + @Column + private String instanceViewUrl; - @Comment("手机端发起地址") - @Column - private String h5InstanceViewUrl; + @Comment("手机端发起地址") + @Column + private String h5InstanceViewUrl; - @Comment("图标") - @Column - private String icon; + @Comment("图片图标") + @Column + private String picIcon; - @Comment("是否已部署") - @Column - private Integer isDeployed; + @Comment("图标") + @Column + private String icon; - @Comment("备注") - @Column - private String remark; + @Comment("是否已部署") + @Column + private Integer isDeployed; - @Comment("流程描述") - @Column - @ColDefine(type = ColType.TEXT) - private String description; + @Comment("备注") + @Column + private String remark; - @Comment("流程定义") - @Column - @ColDefine(type = ColType.MYSQL_JSON) - private JSONObject content; + @Comment("流程描述") + @Column + @ColDefine(type = ColType.TEXT) + private String description; + + @Comment("流程定义") + @Column + @ColDefine(type = ColType.MYSQL_JSON) + private JSONObject content; } diff --git a/src/main/java/com/budwk/app/sys/controller/v4/SysV4AppsController.java b/src/main/java/com/budwk/app/sys/controller/v4/SysV4AppsController.java index 15fb6eb..9a8ba24 100644 --- a/src/main/java/com/budwk/app/sys/controller/v4/SysV4AppsController.java +++ b/src/main/java/com/budwk/app/sys/controller/v4/SysV4AppsController.java @@ -35,36 +35,37 @@ import java.util.Map; @Api(value = "应用中心接口", tags = "应用中心接口") public class SysV4AppsController { - @Inject - private Dao dao; - @Inject - private SysMenuService sysMenuService; - @Inject - private SysUserService sysUserService; + @Inject + private Dao dao; + @Inject + private SysMenuService sysMenuService; + @Inject + private SysUserService sysUserService; - @At("/categories") - @Ok("json") - @SaCheckLogin - @ApiOperation("获取应用分类") - public Result categories(@Param(value = "platform", df = "PC") String platform) { - List list = dao.query(Sys_module.class, Cnd.where(Sys_module::getPlatform, "=", platform).asc(Sys_module::getSortNum)); - List> categories = list.stream().map(module -> { - Map category = new HashMap<>(); - category.put("id", module.getId()); - category.put("name", module.getName()); - category.put("icon", module.getFaIcon()); - return category; - }).toList(); - return Result.success("获取应用分类成功").addData(categories); - } + @At("/categories") + @Ok("json") + @SaCheckLogin + @ApiOperation("获取应用分类") + public Result categories(@Param(value = "platform", df = "PC") String platform) { + List list = dao.query(Sys_module.class, Cnd.where(Sys_module::getPlatform, "=", platform).asc(Sys_module::getSortNum)); + List> categories = list.stream().map(module -> { + Map category = new HashMap<>(); + category.put("id", module.getId()); + category.put("name", module.getName()); + category.put("icon", module.getFaIcon()); + category.put("picIcon", module.getIcon()); + return category; + }).toList(); + return Result.success("获取应用分类成功").addData(categories); + } - @At("/list") - @Ok("json:full") - @SaCheckLogin - @ApiOperation("获取应用列表") - public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, @Param(value = "platform", df = "PC") String platform, HttpServletRequest req) { - List menus = sysUserService.getMenus(SecurityUtil.getUserId()); - Sql sql = Sqls.create(""" + @At("/list") + @Ok("json:full") + @SaCheckLogin + @ApiOperation("获取应用列表") + public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, @Param(value = "platform", df = "PC") String platform, HttpServletRequest req) { + List menus = sysUserService.getMenus(SecurityUtil.getUserId()); + Sql sql = Sqls.create(""" SELECT m.id, m.`name`, @@ -83,28 +84,28 @@ public class SysV4AppsController { LEFT JOIN sys_module sm ON sm.id = m.moduleId $condition """); - Cnd cnd = Cnd.NEW(); - cnd.and("m.platform", "=", platform); - cnd.and("m.disabled", "=", false); - cnd.and(Cnd.exps("m.parentId", "is", null).or("m.parentId", "=", "")); - cnd.and("m.id","in", menus.stream().map(Sys_menu::getId).toArray()); - cnd.andEX("m.moduleId", "=", categoryId); - cnd.asc("m.location"); - if (StrUtil.isNotBlank(keyword)) { - cnd.where().andLike("m.name", keyword); - } - cnd.andEX("m.initialPinyinName", "=", letter); - sql.setCondition(cnd); - sql.setParam("userId", SecurityUtil.getUserId()); - List list = sysMenuService.listMap(sql); - return Result.success(list); - } + Cnd cnd = Cnd.NEW(); + cnd.and("m.platform", "=", platform); + cnd.and("m.disabled", "=", false); + cnd.and(Cnd.exps("m.parentId", "is", null).or("m.parentId", "=", "")); + cnd.and("m.id","in", menus.stream().map(Sys_menu::getId).toArray()); + cnd.andEX("m.moduleId", "=", categoryId); + cnd.asc("m.location"); + if (StrUtil.isNotBlank(keyword)) { + cnd.where().andLike("m.name", keyword); + } + cnd.andEX("m.initialPinyinName", "=", letter); + sql.setCondition(cnd); + sql.setParam("userId", SecurityUtil.getUserId()); + List list = sysMenuService.listMap(sql); + return Result.success(list); + } - @At("/recommended") - @Ok("json") - @SaCheckLogin - @ApiOperation("获取推荐应用") - public Result recommended(HttpServletRequest req) { + @At("/recommended") + @Ok("json") + @SaCheckLogin + @ApiOperation("获取推荐应用") + public Result recommended(HttpServletRequest req) { // // 这里简单地返回前6个应用作为推荐应用 // int recommendCount = Math.min(6, APPS.size()); // List> recommendedApps = new ArrayList<>(); @@ -129,15 +130,15 @@ public class SysV4AppsController { // data.put("pageSize", recommendedApps.size()); // data.put("totalPage", 1); - return Result.success("获取推荐应用成功"); - } + return Result.success("获取推荐应用成功"); + } - @At("/favorite") - @Ok("json:full") - @SaCheckLogin - @ApiOperation("获取收藏的应用") - public Result favorite(HttpServletRequest req) { - Sql sql = Sqls.create(""" + @At("/favorite") + @Ok("json:full") + @SaCheckLogin + @ApiOperation("获取收藏的应用") + public Result favorite(HttpServletRequest req) { + Sql sql = Sqls.create(""" SELECT m.id, m.`name`, @@ -160,39 +161,39 @@ public class SysV4AppsController { ORDER BY m.location ASC; """); - sql.setParam("userId", SecurityUtil.getUserId()); - List list = sysMenuService.listMap(sql); - return Result.success(list); - } + sql.setParam("userId", SecurityUtil.getUserId()); + List list = sysMenuService.listMap(sql); + return Result.success(list); + } - @At("/addFavorite") - @Ok("json") - @SaCheckLogin - @ApiOperation("添加收藏") - @Aop(TransAop.READ_COMMITTED) - public Result addFavorite(@Param("appId") String appId, HttpServletRequest req) { - if (Strings.isBlank(appId)) { - return Result.error("应用ID不能为空"); - } + @At("/addFavorite") + @Ok("json") + @SaCheckLogin + @ApiOperation("添加收藏") + @Aop(TransAop.READ_COMMITTED) + public Result addFavorite(@Param("appId") String appId, HttpServletRequest req) { + if (Strings.isBlank(appId)) { + return Result.error("应用ID不能为空"); + } - dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId())); + dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId())); - Sys_user_favorite_app app = new Sys_user_favorite_app(); - app.setAppId(appId); - app.setUserId(SecurityUtil.getUserId()); - dao.insert(app); - return Result.success("收藏成功"); - } + Sys_user_favorite_app app = new Sys_user_favorite_app(); + app.setAppId(appId); + app.setUserId(SecurityUtil.getUserId()); + dao.insert(app); + return Result.success("收藏成功"); + } - @At("/removeFavorite") - @Ok("json") - @SaCheckLogin - @ApiOperation("取消收藏") - public Result removeFavorite(@Param("appId") String appId, HttpServletRequest req) { - if (Strings.isBlank(appId)) { - return Result.error("应用ID不能为空"); - } - dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId())); - return Result.success("取消收藏成功"); - } + @At("/removeFavorite") + @Ok("json") + @SaCheckLogin + @ApiOperation("取消收藏") + public Result removeFavorite(@Param("appId") String appId, HttpServletRequest req) { + if (Strings.isBlank(appId)) { + return Result.error("应用ID不能为空"); + } + dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId())); + return Result.success("取消收藏成功"); + } } diff --git a/src/main/java/com/budwk/app/sys/controller/v4/SysV4ServController.java b/src/main/java/com/budwk/app/sys/controller/v4/SysV4ServController.java index 49e5027..e12928e 100644 --- a/src/main/java/com/budwk/app/sys/controller/v4/SysV4ServController.java +++ b/src/main/java/com/budwk/app/sys/controller/v4/SysV4ServController.java @@ -26,27 +26,27 @@ import java.util.List; @Api(value = "服务中心接口", tags = "服务中心接口") public class SysV4ServController { - @Inject - private Dao dao; - @Inject - private SysMenuService sysMenuService; + @Inject + private Dao dao; + @Inject + private SysMenuService sysMenuService; - @At("/categories") - @Ok("json") - @SaCheckLogin - @ApiOperation("获取分类") - public Result categories() { - List list = dao.query(ProcessCategory.class, Cnd.NEW()); - return Result.success(list); - } + @At("/categories") + @Ok("json") + @SaCheckLogin + @ApiOperation("获取分类") + public Result categories() { + List list = dao.query(ProcessCategory.class, Cnd.NEW()); + return Result.success(list); + } - @At("/list") - @Ok("json:full") - @SaCheckLogin - @ApiOperation("获取应用列表") - public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, HttpServletRequest req) { - Sql sql = Sqls.create(""" - SELECT t.* + @At("/list") + @Ok("json:full") + @SaCheckLogin + @ApiOperation("获取应用列表") + public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, HttpServletRequest req) { + Sql sql = Sqls.create(""" + SELECT t.*,(select picIcon from wf_process_design where name = t.name) as picIcon FROM wf_process_define t INNER JOIN ( SELECT name, MAX(id) AS max_id @@ -55,15 +55,15 @@ public class SysV4ServController { ) sub ON t.name = sub.name AND t.id = sub.max_id $condition """); - Cnd cnd = Cnd.NEW(); - if (StrUtil.isNotBlank(keyword)) { - cnd.where().andLike("t.disPlayName", keyword); - } - cnd.andEX("t.category", "=", categoryId); - sql.setCondition(cnd); - List list = sysMenuService.listMap(sql); - return Result.success(list); - } + Cnd cnd = Cnd.NEW(); + if (StrUtil.isNotBlank(keyword)) { + cnd.where().andLike("t.disPlayName", keyword); + } + cnd.andEX("t.category", "=", categoryId); + sql.setCondition(cnd); + List list = sysMenuService.listMap(sql); + return Result.success(list); + } } diff --git a/src/main/resources/static/assets/platform/img/home/family.png b/src/main/resources/static/assets/platform/img/home/family.png new file mode 100644 index 0000000..993cc8a Binary files /dev/null and b/src/main/resources/static/assets/platform/img/home/family.png differ diff --git a/src/main/resources/views/layouts/v4/apps.html b/src/main/resources/views/layouts/v4/apps.html index e655687..75a6f6a 100644 --- a/src/main/resources/views/layouts/v4/apps.html +++ b/src/main/resources/views/layouts/v4/apps.html @@ -159,7 +159,7 @@ layout("/layouts/v4/baseLayout.html"){ align-items: center; padding: 15px; position: relative; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } .app-card:hover { @@ -334,12 +334,13 @@ layout("/layouts/v4/baseLayout.html"){
- + + {{ category.name }}
@@ -355,29 +356,31 @@ layout("/layouts/v4/baseLayout.html"){ - - - - - - - - - - - - - - + + + + + + + + + + + + + +
- - - + + + +
{{ app.name }}
@@ -385,9 +388,9 @@ layout("/layouts/v4/baseLayout.html"){
{{ app.status }}
@@ -505,8 +508,8 @@ layout("/layouts/v4/baseLayout.html"){ this.activeCategory === "all" ? "" : this.activeCategory === "favorites" || this.activeCategory === "recommended" - ? this.activeCategory - : this.activeCategory, + ? this.activeCategory + : this.activeCategory, letter: this.activeAlphabet, keyword: this.searchKeyword } diff --git a/src/main/resources/views/layouts/v4/home/entry.js b/src/main/resources/views/layouts/v4/home/entry.js index 942c076..dcd011c 100644 --- a/src/main/resources/views/layouts/v4/home/entry.js +++ b/src/main/resources/views/layouts/v4/home/entry.js @@ -20,17 +20,13 @@ const entry = {
-
{{ item.name }}
-
-
📅
-

暂无数据

-
@@ -129,7 +125,6 @@ const entry = { margin-top: 5px; display: flex; gap: 20px; - margin-bottom: 20px; border-bottom: 2px solid #e8e8e8; padding-bottom: 10px; } @@ -173,12 +168,12 @@ const entry = { justify-items: center; /* 子项内容居中(图标和文字) */ justify-content: start; /* 整体网格靠左对齐,避免居中 */ - gap: 12px; - padding: 12px; + gap: 4px; + padding: 12px 4px; background: #fff; overflow-x: hidden; - height: calc(350px - 74px); + max-height: calc(350px - 74px); overflow-y: auto; } @@ -187,11 +182,11 @@ const entry = { display: flex; flex-direction: column; align-items: center; - padding: 12px; border-radius: 8px; background: #fff; width: 100%; max-width: 100%; + padding: 6px; transition: transform 0.2s ease, box-shadow 0.2s ease; } @@ -248,32 +243,5 @@ const entry = { gap: 12px; } } - - .no-entry-placeholder { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 40px 20px; - color: #94a3b8; - text-align: center; - } - - .no-entry-placeholder .icon { - font-size: 48px; - margin-bottom: 12px; - opacity: 0.6; - } - - .no-entry-placeholder p { - margin: 4px 0 0; - font-size: 16px; - font-weight: 500; - } - - .no-entry-placeholder .subtext { - font-size: 13px; - opacity: 0.8; - } ` }; diff --git a/src/main/resources/views/layouts/v4/home/index.html b/src/main/resources/views/layouts/v4/home/index.html index 7f00da0..48bfd7d 100644 --- a/src/main/resources/views/layouts/v4/home/index.html +++ b/src/main/resources/views/layouts/v4/home/index.html @@ -17,7 +17,7 @@ layout("/layouts/v4/baseLayout.html"){ .section-banner .banner-img img { width: 100%; height: 100%; - object-fit: cover; + /*object-fit: cover;*/ } .section-wrapper { diff --git a/src/main/resources/views/layouts/v4/home/stats.js b/src/main/resources/views/layouts/v4/home/stats.js index d4efb43..56a54d6 100644 --- a/src/main/resources/views/layouts/v4/home/stats.js +++ b/src/main/resources/views/layouts/v4/home/stats.js @@ -1,13 +1,16 @@ const stats = { template: /*language=HTML*/ `
+
+ +
@@ -20,10 +23,10 @@ const stats = {
@@ -36,10 +39,10 @@ const stats = {
@@ -52,10 +55,10 @@ const stats = {
@@ -110,23 +113,25 @@ const stats = { style: /*language=CSS*/ ` /* 右侧统计区域 */ .stats-section { - position: absolute; - bottom: 24px; - right: 24px; /*background: white;*/ color: #333; padding: 20px; border-radius: 12px; - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); z-index: 10; - width: 680px; + width: 80%; + display: flex; + justify-content: space-between; + align-items: center; + margin: -130px auto 0; /*border: 1px solid #e8e8e8;*/ } .stats-grid { display: grid; - grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(2, 1fr); gap: 16px; + width: 32%; + margin-left: 20px; } .stat-item { @@ -140,13 +145,15 @@ const stats = { cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.08); + width: 100%; + height: 90px; } .stat-icon { - font-size: 20px; - width: 36px; - height: 36px; + font-size: 30px; + width: 50px; + height: 50px; background: #e6f7ff; color: #1890ff; border-radius: 50%; @@ -178,6 +185,7 @@ const stats = { .stat-content { display: flex; flex-direction: column; + margin-left: 10px; } .stat-label { @@ -192,5 +200,14 @@ const stats = { font-weight: bold; margin-top: 2px; } + + .stats-family { + width: 68%; + } + + .stats-family img { + height: 190px !important; + border-radius: 30px; + } ` }; diff --git a/src/main/resources/views/layouts/v4/serv.html b/src/main/resources/views/layouts/v4/serv.html index 7769c81..4c25a93 100644 --- a/src/main/resources/views/layouts/v4/serv.html +++ b/src/main/resources/views/layouts/v4/serv.html @@ -334,7 +334,8 @@ layout("/layouts/v4/baseLayout.html"){ :class="['apps-sidebar-item', activeCategory === category.id ? 'active' : '']" @click="changeCategory(category.id)" > - + + {{ category.name }}
@@ -350,29 +351,29 @@ layout("/layouts/v4/baseLayout.html"){
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + +
- +
diff --git a/src/main/resources/views/platform/flow/category/index.html b/src/main/resources/views/platform/flow/category/index.html index c3f5d20..ffdbf01 100644 --- a/src/main/resources/views/platform/flow/category/index.html +++ b/src/main/resources/views/platform/flow/category/index.html @@ -43,6 +43,15 @@ layout("/layouts/platform.html"){ :rules="{ required: true, message: '请输入类型名称', trigger: 'blur' }"> + + + diff --git a/src/main/resources/views/platform/flow/design/index.html b/src/main/resources/views/platform/flow/design/index.html index ee88633..04789ed 100644 --- a/src/main/resources/views/platform/flow/design/index.html +++ b/src/main/resources/views/platform/flow/design/index.html @@ -101,6 +101,15 @@ layout("/layouts/platform.html"){ + + + diff --git a/src/main/resources/views/platform/zhghh5/sys/home/apps.js b/src/main/resources/views/platform/zhghh5/sys/home/apps.js index 0a35367..a441b1b 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/apps.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/apps.js @@ -23,8 +23,10 @@ const apps = { @click="onClickNav(index)" > @@ -46,7 +48,7 @@ const apps = { @touchmove="onTouchMove">
- +
@@ -57,7 +59,7 @@ const apps = {
- +
@@ -75,7 +77,8 @@ const apps = { class="grid-item" @click="navigateToMenu(menu)" > -
+ +
{{ menu.name }}
@@ -407,11 +410,11 @@ const apps = { .app-grid { display: grid; /* 改为自适应列数:每格最小 80px,自动换行 */ - grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); justify-items: center; /* 子项内容居中(图标和文字) */ justify-content: start; /* 整体网格靠左对齐,避免居中 */ - + gap: 12px; padding: 12px; background: #fff; @@ -442,25 +445,25 @@ const apps = { } .app-grid-icon { - width: 64px; - height: 64px; - max-width: 64px; - max-height: 64px; - border-radius: 12px; - background: #f2f3f5; + width: 45px; + height: 45px; + max-width: 45px; + max-height: 45px; + /*border-radius: 12px; + background: #f2f3f5;*/ display: flex; align-items: center; justify-content: center; margin-bottom: 6px; overflow: hidden; - border: 2px solid transparent; + /*border: 2px solid transparent;*/ transition: all 0.2s ease; } .app-grid-name { width: 100%; - font-size: 12px; + font-size: 14px; color: #323233; text-align: center; overflow: hidden; @@ -540,6 +543,17 @@ const apps = { color: #fff; } + /deep/ .grid-img { + width: 48px; + height: 48px; + border-radius: 12px; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 12px; + color: #fff; + } + /deep/ .grid-name { font-size: 14px; font-weight: 500; @@ -576,6 +590,6 @@ const apps = { font-size: 16px; color: #c8c9cc; } - + ` } diff --git a/src/test/java/com/budwk/app/JugTest.java b/src/test/java/com/budwk/app/JugTest.java index f331f95..a2a6dad 100644 --- a/src/test/java/com/budwk/app/JugTest.java +++ b/src/test/java/com/budwk/app/JugTest.java @@ -14,6 +14,7 @@ import cn.hutool.http.HttpUtil; import cn.hutool.json.JSONArray; import cn.hutool.json.JSONObject; import cn.hutool.json.JSONUtil; +import com.budwk.app.base.sms.SmsService; import com.budwk.app.base.utils.ManyAddOrRenewUtil; import com.budwk.app.base.utils.PwdUtil; import com.budwk.app.sys.models.*; @@ -66,151 +67,19 @@ public class JugTest { @Inject private SysDictService sysDictService; - @Inject private SysUserService sysUserService; - @Inject private SysUnitService sysUnitService; - @Inject private Dao dao; + @Inject + private SmsService smsService; - @Test - public void t0001() { - String s = """ - {"@odata.context":"$metadata#DS0005_1926887238437818371","value":[{"机构编码":"006","机构名称":"教务处(教育教学发展与评估中心合署)[创新创业教育办公室(中心)挂靠](下设现代教育技术中心)/现代教育技术中心","机构类别":"4","隶属机构":"100085","是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"100001","机构名称":"党委办公室(保密办公室合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100006","机构名称":"党委组织部(党校合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100010","机构名称":"机关与直属单位党委","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100014","机构名称":"党委宣传部","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100021","机构名称":"党委统战部(社会主义学院合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100025","机构名称":"纪委","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100029","机构名称":"校长办公室[法律事务中心(信访办公室合署)挂靠]","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100036","机构名称":"研究生院(党委研究生工作部合署)(下设招生办公室、学位办公室、培养办公室、教育管理与就业办公室、综合办公室)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100044","机构名称":"学科建设处(“双一流”建设办公室合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100047","机构名称":"科学技术研究院(应用研究院合署)(下设军工办公室)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100056","机构名称":"人文社会科学研究院","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100060","机构名称":"人力资源处(党委教师工作部合署)(下设人才服务与管理办公室)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100068","机构名称":"国际合作与交流处(港澳台事务办公室合署)(下设留学生管理办公室、孔子学院办公室)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100075","机构名称":"学生工作处(党委学生工作部、人民武装部合署)(下设心理健康教育中心)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100085","机构名称":"教务处(教育教学发展与评估中心合署)[创新创业教育办公室(中心)挂靠](下设现代教育技术中心)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100093","机构名称":"财务处(下设财务结算中心)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100100","机构名称":"审计处","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100106","机构名称":"保卫处(党委保卫部合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100112","机构名称":"后勤管理处(下设公用后勤服务保障中心)(校医院挂靠)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100148","机构名称":"基建处","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100158","机构名称":"发展规划处(党委发展规划部合署)(下设校地合作办公室)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100161","机构名称":"资产管理处(采购中心挂靠)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100167","机构名称":"信息化建设管理处(下设网络与信息中心)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100178","机构名称":"离退休工作处(离退休党工委合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100183","机构名称":"继续教育学院","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100188","机构名称":"工会","机构类别":"11","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"群团组织","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100192","机构名称":"团委","机构类别":"11","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"群团组织","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100193","机构名称":"美育中心","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100199","机构名称":"发展委员会(下设董事会及基金会工作办公室、校友工作办公室)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100203","机构名称":"档案馆","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100204","机构名称":"博物馆","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100205","机构名称":"灵岩融创区建设管理委员会办公室","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100218","机构名称":"图书馆","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100234","机构名称":"图书馆(出版社有限责任公司)","机构类别":"6","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"附属单位","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100251","机构名称":"实验室与设备管理处(分析测试中心合署)","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100268","机构名称":"国际文化教育学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100276","机构名称":"文学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100286","机构名称":"学报编辑部(《中国美术教育》编辑部挂靠)","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100296","机构名称":"外国语学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100324","机构名称":"历史文博学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100347","机构名称":"商学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100364","机构名称":"法学院(下设中国法治现代化研究院)","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100387","机构名称":"教育科学学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100401","机构名称":"心理学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100423","机构名称":"公共管理学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100439","机构名称":"新闻与传播学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100458","机构名称":"音乐学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100472","机构名称":"美术学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100492","机构名称":"体育科学学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100511","机构名称":"计算机与电子信息学院 人工智能学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100546","机构名称":"物理科学与技术学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100564","机构名称":"化学与材料科学学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100587","机构名称":"地理科学学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100605","机构名称":"生命科学学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100631","机构名称":"电气与自动化工程学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100646","机构名称":"能源与机械工程学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100658","机构名称":"金陵女子学院 社会学院 会计学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100678","机构名称":"强化培养学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100684","机构名称":"中北学院","机构类别":"6","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"附属单位","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100700","机构名称":"泰州学院","机构类别":"6","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"附属单位","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100744","机构名称":"附属实验学校","机构类别":"6","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"附属单位","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100749","机构名称":"数学科学学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100777","机构名称":"后勤管理处(资产经营有限责任公司)","机构类别":"6","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"附属单位","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100782","机构名称":"教师教育学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100788","机构名称":"校领导","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100791","机构名称":"博士后流动站","机构类别":"13","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"历史遗留机构","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100800","机构名称":"环境学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100801","机构名称":"马克思主义学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100802","机构名称":"海洋科学与工程学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100803","机构名称":"食品与制药工程学院","机构类别":"1","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"教学院系","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100804","机构名称":"随园校区办公室","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100805","机构名称":"紫金校区办公室","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100806","机构名称":"基础教育合作处","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100807","机构名称":"南京师范大学培训中心(江苏省高校师资培训中心合署)","机构类别":"10","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"直属单位(教辅机构)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"100808","机构名称":"教务处(教育教学发展与评估中心合署)[创新创业教育办公室(中心)挂靠](下设现代教育技术中心)/教务处","机构类别":"4","隶属机构":"100085","是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"100809","机构名称":"科学技术研究院(应用研究院合署)(下设军工办公室)/科学技术研究院","机构类别":"4","隶属机构":"100047","是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"100810","机构名称":"科学技术研究院(应用研究院合署)(下设军工办公室)/军工办公室","机构类别":"4","隶属机构":"100047","是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"100900","机构名称":"党委巡察工作办公室","机构类别":"4","隶属机构":null,"是否撤销_name":"否","是否撤销":"0","机构类别_name":"党务部门(含团委、工会)","更新时间":"2025-05-26T06:40:43.011Z"},{"机构编码":"101","机构名称":"入校后统一分配/辅导员","机构类别":null,"隶属机构":"100","是否撤销_name":"否","是否撤销":"0","机构类别_name":null,"更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"139801","机构名称":"后勤管理处(下设公用后勤服务保障中心)(校医院挂靠)/公用后勤服务保障中心","机构类别":null,"隶属机构":"100112","是否撤销_name":"否","是否撤销":"0","机构类别_name":null,"更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"139802","机构名称":"后勤管理处(下设公用后勤服务保障中心)(校医院挂靠)/后勤管理处","机构类别":null,"隶属机构":"100112","是否撤销_name":"否","是否撤销":"0","机构类别_name":null,"更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"139803","机构名称":"后勤管理处(下设公用后勤服务保障中心)(校医院挂靠)/校医院","机构类别":null,"隶属机构":"100112","是否撤销_name":"否","是否撤销":"0","机构类别_name":null,"更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"139804","机构名称":"法学院(下设中国法治现代化研究院)/法学院","机构类别":null,"隶属机构":"100364","是否撤销_name":"否","是否撤销":"0","机构类别_name":null,"更新时间":"2024-11-20T02:56:28.187Z"},{"机构编码":"139805","机构名称":"法学院(下设中国法治现代化研究院)/中国法治现代化研究院","机构类别":null,"隶属机构":"100364","是否撤销_name":"否","是否撤销":"0","机构类别_name":null,"更新时间":"2024-11-20T02:56:28.187Z"}]} - """; - - JSONObject entries = JSONUtil.parseObj(s); - JSONArray value = entries.getJSONArray("value"); - - List units = value.stream().map(item -> { - JSONObject jsonObject = (JSONObject) item; - Sys_unit sysUnit = new Sys_unit(); - sysUnit.setId(jsonObject.getStr("机构编码")); - sysUnit.setName(jsonObject.getStr("机构名称")); - sysUnit.setUnitcode(jsonObject.getStr("机构编码")); - sysUnit.setParentId(StrUtil.blankToDefault(jsonObject.getStr("隶属机构"), "1")); - return sysUnit; - }).toList(); - - dao.fastInsert(units); - } - - @Test - public void t003() { - String s = """ - "党政_副处调", - 专任教师, - 管理_免职, - 校办企业, - 党政_科员, - 专业技术人员, - 教辅_实验教学, - 管理_团委书记, - 管理_办事员, - 管理_学生辅导员, - 管理_院党委副书记, - 管理_本科生教务员, - 党政_正科职, - 党政_正处职, - 无, - 党政_副处职, - 党政_副厅职, - 管理_副院长, - 管理_科研秘书, - 管理_研究生教务员, - 工勤人员, - 管理_院党委书记, - 管理_专职组织员、人事秘书, - 教辅_工勤人员, - 党政_正处调, - 教辅_实验设备维护, - 管理_科研辅助人员, - 管理_办公室主任, - 教辅_图书资料员, - 党政_副科职, - 党政_秘书, - 管理_成教生教务员, - 管理_其他正科职, - 管理_正处调, - 管理_副处调, - 管理_管理, - 教辅_其他人员, - 管理_学科秘书, - 管理_机构秘书, - 党政_副省职, - 管理_院长, - 党政_正厅职, - 管理_科研副院长; - """; - String[] split = s.split(","); - - String parentId = "c78bb5c7bc264b928307508357dea4f0"; - - for (String string : split) { - Sys_dict dict = new Sys_dict(); - dict.setCode(string.trim()); - dict.setName(string.trim()); - dict.setHasChildren(false); - dict.setDisabled(false); - sysDictService.save(dict, parentId); - } - - - } - - @Test - public void t004() { - String appId = "1926887238437818370"; - String secret = "32df31fcf4fc43f9a647ee1f47134f36"; - - List allUsers = new ArrayList<>(); - int skip = 0; - int totalCount = 0; - boolean firstRequest = true; - - do { - long ts = System.currentTimeMillis(); - String sign = Base64.encode(DigestUtil.md5Hex(appId + secret + ts, CharsetUtil.CHARSET_UTF_8)); - - HttpRequest httpRequest = HttpUtil.createPost("https://sjzcpt.nnu.edu.cn/cdsp/data-api/v2/DS0040"); - httpRequest.header("Content-Type", "application/json"); - httpRequest.header("appId", appId); - httpRequest.header("timestamp", String.valueOf(ts)); - httpRequest.header("sign", sign); - - HashMap reqBody = new HashMap<>(); - reqBody.put("$count", true); - reqBody.put("$skip", skip); - reqBody.put("$top", 1000); - - httpRequest.body(JSONUtil.toJsonStr(reqBody)); - String resBody = httpRequest.execute().body(); - - JSONObject entries = JSONUtil.parseObj(resBody); - - if (firstRequest) { - totalCount = entries.getInt("@odata.count", 0); - firstRequest = false; - } - - JSONArray value = entries.getJSONArray("value"); - - if (!value.isEmpty()) { - List list = value.stream().map(item -> (JSONObject) item).toList(); - allUsers.addAll(list); - skip += list.size(); - } else { - break; - } - - } while (skip < totalCount); - - Files.write(new File("C:\\Users\\administrator\\Desktop\\博士后.txt"),allUsers); - System.out.println(allUsers.size()); - } + @Test + public void sendMsg() { + smsService.send("20182040", "这是一条由智慧工会系统发出的测试消息。"); + } @Test public void userPwd(){ @@ -223,53 +92,6 @@ public class JugTest { dao.update(users,"password|salt"); } - @Inject - private ManyAddOrRenewUtil manyAddOrRenewUtil; - - @Test - public void test11111(){ -// File file = new File("C:\\temp\\response.json"); -// -// JSONObject entries = JSONUtil.parseObj(FileUtil.readUtf8String(file)); -// -// JSONArray records = entries.getJSONArray("records"); -// List list = records.stream().map(item -> (JSONObject) item).toList(); -// -// // 工号集合 -// List loginNameList = list.stream().map(v -> v.getStr("rydm")).toList(); -//// Sql sql = Sqls.create("update sys_user set member = 1, welfareMember = 1 where loginname in (@loginNameList)") -//// .setParam("loginNameList", loginNameList); -//// dao.execute(sql); -// -// Sql sql = Sqls.create("select id from sys_user where loginname in (@loginNameList)").setParam("loginNameList", loginNameList); -// sql.setCallback(Sqls.callback.strList()); -// dao.execute(sql); -// List userIds = sql.getList(String.class); -// -// List roleList = userIds.stream().map(v -> { -// Sys_user_role userRole = new Sys_user_role(); -// userRole.setUserId(v); -// userRole.setRoleId("6d603b652abee584ba6274dc1fcee3bb"); -// return userRole; -// }).toList(); -// -// dao.clear(Sys_user_role.class, Cnd.where("userId", "in", userIds)); -// dao.insert(roleList); - - -// Sql sql = Sqls.create("select id from sys_user group by id"); -// sql.setCallback(Sqls.callback.strList()); -// dao.execute(sql); -// List userIds = sql.getList(String.class);1 -// List roleList = userIds.stream().map(v -> { -// Sys_user_role userRole = new Sys_user_role(); -// userRole.setUserId(v); -// userRole.setRoleId("65195ad8f52c4d7d8864624e583b801b"); -// return userRole; -// }).toList(); -// dao.insert(roleList); - } - @Inject private SysClubUserServiceImpl clubUserService; @Test diff --git a/src/test/java/com/budwk/app/Test.java b/src/test/java/com/budwk/app/Test.java index 01b42e9..4342ea8 100644 --- a/src/test/java/com/budwk/app/Test.java +++ b/src/test/java/com/budwk/app/Test.java @@ -1,47 +1,8 @@ package com.budwk.app; - -import cn.hutool.core.codec.Base64; -import cn.hutool.core.util.CharsetUtil; -import cn.hutool.crypto.digest.DigestUtil; -import cn.hutool.http.HttpRequest; -import cn.hutool.http.HttpUtil; -import cn.hutool.json.JSONArray; -import cn.hutool.json.JSONObject; -import cn.hutool.json.JSONUtil; -import com.budwk.app.base.sms.impl.njupt.SmsNjuptServiceImpl; - -import java.nio.charset.StandardCharsets; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.List; - public class Test { public static void main(String[] args) { - String appId = "1926887238437818370"; - String secret = "32df31fcf4fc43f9a647ee1f47134f36"; - long ts = System.currentTimeMillis(); - - String sign = Base64.encode(DigestUtil.md5Hex(appId + secret + ts, CharsetUtil.CHARSET_UTF_8)); - - HttpRequest httpRequest = HttpUtil.createPost("https://sjzcpt.nnu.edu.cn/cdsp/data-api/v2/DS0005"); - httpRequest.header("Content-Type", "application/json"); - httpRequest.header("appId", appId); - httpRequest.header("timestamp", String.valueOf(ts)); - httpRequest.header("sign", sign); - httpRequest.body("{}"); - String body = httpRequest.execute().body(); - System.out.println(body); - -// JSONObject entries = JSONUtil.parseObj(body); -// JSONArray value = entries.getJSONArray("value"); -// -// for (Object o : value) { -// JSONObject jsonObject = (JSONObject) o; -// } - - }