pioneer
2 years ago
commit
3fde0f37c3
31 changed files with 4722 additions and 0 deletions
@ -0,0 +1,6 @@
|
||||
# open-JSD-10086 |
||||
|
||||
JSD-10086 OA单点集成\ |
||||
免责说明:该源码为第三方爱好者提供,不保证源码和方案的可靠性,也不提供任何形式的源码教学指导和协助!\ |
||||
仅作为开发者学习参考使用!禁止用于任何商业用途!\ |
||||
为保护开发者隐私,开发者信息已隐去!若原开发者希望公开自己的信息,可联系【pioneer】处理。 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><plugin> |
||||
<id>com.eco.plugin.xx.bjxdsso_EK</id> |
||||
<name><![CDATA[单点登录]]></name> |
||||
<active>yes</active> |
||||
<version>1.0.1</version> |
||||
<env-version>10.0</env-version> |
||||
<jartime>2018-07-31</jartime> |
||||
<vendor>fr.open</vendor> |
||||
<description><![CDATA[单点登录]]></description> |
||||
<change-notes><![CDATA[ |
||||
]]></change-notes> |
||||
<main-package>com.eco.plugin.xx.bjxdsso</main-package> |
||||
<!-- <lifecycle-monitor class="com.eco.plugin.xx..config.InitializeMonitor"/>--> |
||||
|
||||
<extra-decision> |
||||
<GlobalRequestFilterProvider class="com.eco.plugin.xx.bjxdsso.filter.SSOFilter"/> |
||||
</extra-decision> |
||||
|
||||
<function-recorder class="com.eco.plugin.xx.bjxdsso.filter.SSOFilter"/> |
||||
|
||||
|
||||
</plugin> |
@ -0,0 +1,21 @@
|
||||
package com.eco.plugin.xx.bjxdsso.config; |
||||
|
||||
import com.fr.plugin.context.PluginContext; |
||||
import com.fr.plugin.observer.inner.AbstractPluginLifecycleMonitor; |
||||
|
||||
/** |
||||
* @author xx |
||||
* @version 10.0 |
||||
* Created by xx on 2021-12-03 |
||||
*/ |
||||
public class InitializeMonitor extends AbstractPluginLifecycleMonitor { |
||||
@Override |
||||
public void afterRun(PluginContext pluginContext) { |
||||
PluginSimpleConfig.getInstance(); |
||||
} |
||||
|
||||
@Override |
||||
public void beforeStop(PluginContext pluginContext) { |
||||
|
||||
} |
||||
} |
@ -0,0 +1,112 @@
|
||||
package com.eco.plugin.xx.bjxdsso.config; |
||||
|
||||
import com.fr.config.*; |
||||
import com.fr.config.holder.Conf; |
||||
import com.fr.config.holder.factory.Holders; |
||||
import com.fr.intelli.record.Focus; |
||||
import com.fr.intelli.record.Original; |
||||
import com.fr.record.analyzer.EnableMetrics; |
||||
|
||||
@Visualization(category = "单点登录配置") |
||||
@EnableMetrics |
||||
public class PluginSimpleConfig extends DefaultConfiguration { |
||||
|
||||
private static volatile PluginSimpleConfig config = null; |
||||
|
||||
@Focus(id="com.eco.plugin.xx.idmsso.config", text = "单点登录配置", source = Original.PLUGIN) |
||||
public static PluginSimpleConfig getInstance() { |
||||
if (config == null) { |
||||
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class); |
||||
} |
||||
return config; |
||||
} |
||||
|
||||
@Identifier(value = "clientId", name = "应用id", description = "应用id", status = Status.SHOW) |
||||
private Conf<String> clientId = Holders.simple(""); |
||||
|
||||
@Identifier(value = "secret", name = "密钥", description = "密钥", status = Status.SHOW) |
||||
private Conf<String> secret = Holders.simple(""); |
||||
|
||||
@Identifier(value = "index", name = "帆软首页", description = "帆软首页", status = Status.SHOW) |
||||
private Conf<String> index = Holders.simple("http://localhost:8075/webroot/decision"); |
||||
|
||||
@Identifier(value = "authUrl", name = "获取授权码接口", description = "获取授权码接口", status = Status.SHOW) |
||||
private Conf<String> authUrl = Holders.simple(""); |
||||
|
||||
@Identifier(value = "tokenUrl", name = "获取token接口", description = "获取token接口", status = Status.SHOW) |
||||
private Conf<String> tokenUrl = Holders.simple(""); |
||||
|
||||
@Identifier(value = "userUrl", name = "获取用户信息接口", description = "获取用户信息接口", status = Status.SHOW) |
||||
private Conf<String> userUrl = Holders.simple(""); |
||||
|
||||
@Identifier(value = "logoutUrl", name = "登出接口", description = "登出接口", status = Status.SHOW) |
||||
private Conf<String> logoutUrl = Holders.simple(""); |
||||
|
||||
public String getClientId() { |
||||
return clientId.get(); |
||||
} |
||||
|
||||
public void setClientId(String url) { |
||||
this.clientId.set(url); |
||||
} |
||||
|
||||
public String getSecret() { |
||||
return secret.get(); |
||||
} |
||||
|
||||
public void setSecret(String url) { |
||||
this.secret.set(url); |
||||
} |
||||
|
||||
public String getAuthUrl() { |
||||
return authUrl.get(); |
||||
} |
||||
|
||||
public void setAuthUrl(String url) { |
||||
this.authUrl.set(url); |
||||
} |
||||
|
||||
public String getTokenUrl() { |
||||
return tokenUrl.get(); |
||||
} |
||||
|
||||
public void setTokenUrl(String url) { |
||||
this.tokenUrl.set(url); |
||||
} |
||||
|
||||
public String getUserUrl() { |
||||
return userUrl.get(); |
||||
} |
||||
|
||||
public void setUserUrl(String url) { |
||||
this.userUrl.set(url); |
||||
} |
||||
|
||||
public String getLogoutUrl() { |
||||
return logoutUrl.get(); |
||||
} |
||||
|
||||
public void setLogoutUrl(String url) { |
||||
this.logoutUrl.set(url); |
||||
} |
||||
|
||||
public String getIndex() { |
||||
return index.get(); |
||||
} |
||||
|
||||
public void setIndex(String url) { |
||||
this.index.set(url); |
||||
} |
||||
|
||||
@Override |
||||
public Object clone() throws CloneNotSupportedException { |
||||
PluginSimpleConfig cloned = (PluginSimpleConfig) super.clone(); |
||||
// cloned.text = (Conf<String>) text.clone();
|
||||
// cloned.count = (Conf<Integer>) count.clone();
|
||||
// cloned.price = (Conf<Double>) price.clone();
|
||||
// cloned.time = (Conf<Long>) time.clone();
|
||||
// cloned.student = (Conf<Boolean>) student.clone();
|
||||
return cloned; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,120 @@
|
||||
package com.eco.plugin.xx.bjxdsso.filter; |
||||
|
||||
import com.eco.plugin.xx.bjxdsso.config.PluginSimpleConfig; |
||||
import com.eco.plugin.xx.bjxdsso.utils.FRUtils; |
||||
import com.eco.plugin.xx.bjxdsso.utils.ResponseUtils; |
||||
import com.eco.plugin.xx.bjxdsso.utils.Utils; |
||||
import com.eco.plugin.xx.bjxdsso.webservice.ssov.ISSOValidate; |
||||
import com.eco.plugin.xx.bjxdsso.webservice.ssov.ISSOValidateService; |
||||
import com.eco.plugin.xx.bjxdsso.webservice.ssov.ISSOValidateServiceLocator; |
||||
import com.fr.decision.fun.GlobalRequestFilterProvider; |
||||
import com.fr.decision.fun.impl.AbstractGlobalRequestFilterProvider; |
||||
import com.fr.json.JSONObject; |
||||
import com.fr.plugin.context.PluginContexts; |
||||
import com.fr.plugin.transform.FunctionRecorder; |
||||
import com.fr.record.analyzer.EnableMetrics; |
||||
import com.fr.stable.fun.Authorize; |
||||
import org.jetbrains.annotations.NotNull; |
||||
|
||||
import javax.servlet.FilterChain; |
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.io.IOException; |
||||
|
||||
@EnableMetrics |
||||
@Authorize(callSignKey = "com.eco.plugin.xx.bjxdsso") |
||||
@FunctionRecorder |
||||
public class SSOFilter extends AbstractGlobalRequestFilterProvider { |
||||
@Override |
||||
public String filterName() { |
||||
return "bjxdssoFilter"; |
||||
} |
||||
|
||||
@Override |
||||
public String[] urlPatterns() { |
||||
return new String[]{"/*"}; |
||||
} |
||||
|
||||
@Override |
||||
public void doFilter(HttpServletRequest req, HttpServletResponse res, FilterChain chain ){ |
||||
|
||||
if(PluginContexts.currentContext().isAvailable()){ |
||||
PluginSimpleConfig psc = PluginSimpleConfig.getInstance(); |
||||
String HKMCENC_ID = req.getParameter("HKMCENC_ID"); |
||||
String COMPANYCODE = req.getParameter("COMPANYCODE"); |
||||
String Encode = req.getParameter("Encode"); |
||||
|
||||
//参数为空则放行
|
||||
if(Utils.isNullStr(HKMCENC_ID) && Utils.isNullStr(COMPANYCODE) && Utils.isNullStr(Encode)){ |
||||
release(req,res,chain); |
||||
return ; |
||||
} |
||||
|
||||
if(Utils.isNullStr(HKMCENC_ID) || Utils.isNullStr(COMPANYCODE) || Utils.isNullStr(Encode)){ |
||||
ResponseUtils.failedResponse(res,"参数不全,请补全后重新访问"); |
||||
return ; |
||||
} |
||||
|
||||
String url = Utils.getRedirectUrl(req,"HKMCENC_ID"); |
||||
|
||||
String username = null; |
||||
try { |
||||
username = getUserId(HKMCENC_ID,COMPANYCODE,Encode); |
||||
} catch (Exception e) { |
||||
try { |
||||
res.sendRedirect(url); |
||||
} catch (IOException ex) { |
||||
FRUtils.FRLogInfo("跳转登录页异常!"); |
||||
} |
||||
} |
||||
|
||||
//登录
|
||||
FRUtils.login(req,res,username,url); |
||||
} |
||||
|
||||
release(req,res,chain); |
||||
} |
||||
|
||||
//放行拦截器
|
||||
private void release(HttpServletRequest req, HttpServletResponse res, FilterChain chain) { |
||||
try{ |
||||
chain.doFilter(req,res); |
||||
}catch (Exception e){ |
||||
FRUtils.FRLogInfo("拦截失败"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 可选实现的多个filter排序(执行顺序)的方法 |
||||
* @param other |
||||
* @return 0 相等,大于0是自身优先 小于0 是other优先 |
||||
*/ |
||||
@Override |
||||
public int compareTo(@NotNull GlobalRequestFilterProvider other ){ |
||||
return super.compareTo(other); |
||||
} |
||||
|
||||
/** |
||||
* 获取用户名 |
||||
* @param HKMCENC_ID |
||||
* @param COMPANYCODE |
||||
* @param Encode |
||||
* @return |
||||
* @throws Exception |
||||
*/ |
||||
private static String getUserId(String HKMCENC_ID,String COMPANYCODE,String Encode) throws Exception { |
||||
ISSOValidateService servie = new ISSOValidateServiceLocator(); |
||||
ISSOValidate imp = servie.getISSOValidatePort(); |
||||
String retBack = imp.validate(HKMCENC_ID, COMPANYCODE, Encode); |
||||
FRUtils.FRLogInfo("retBack:"+retBack); |
||||
JSONObject json = new JSONObject(retBack); |
||||
|
||||
if(1 == json.getInt("status")){ |
||||
throw new Exception(); |
||||
} |
||||
|
||||
String userid = json.getString("userId"); |
||||
return userid; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,332 @@
|
||||
package com.eco.plugin.xx.bjxdsso.utils; |
||||
|
||||
import com.fr.base.ServerConfig; |
||||
import com.fr.base.TableData; |
||||
import com.fr.base.TemplateUtils; |
||||
import com.fr.decision.authority.AuthorityContext; |
||||
import com.fr.decision.authority.base.constant.type.operation.ManualOperationType; |
||||
import com.fr.decision.authority.data.User; |
||||
import com.fr.decision.base.util.UUIDUtil; |
||||
import com.fr.decision.privilege.encrpt.PasswordValidator; |
||||
import com.fr.decision.webservice.bean.authentication.OriginUrlResponseBean; |
||||
import com.fr.decision.webservice.interceptor.handler.ReportTemplateRequestChecker; |
||||
import com.fr.decision.webservice.login.LogInOutResultInfo; |
||||
import com.fr.decision.webservice.utils.DecisionServiceConstants; |
||||
import com.fr.decision.webservice.utils.DecisionStatusService; |
||||
import com.fr.decision.webservice.utils.UserSourceFactory; |
||||
import com.fr.decision.webservice.v10.login.LoginService; |
||||
import com.fr.decision.webservice.v10.login.event.LogInOutEvent; |
||||
import com.fr.decision.webservice.v10.user.UserService; |
||||
import com.fr.event.EventDispatcher; |
||||
import com.fr.file.TableDataConfig; |
||||
import com.fr.general.data.DataModel; |
||||
import com.fr.log.FineLoggerFactory; |
||||
import com.fr.script.Calculator; |
||||
import com.fr.stable.StringUtils; |
||||
import com.fr.stable.query.QueryFactory; |
||||
import com.fr.stable.query.restriction.RestrictionFactory; |
||||
import com.fr.third.springframework.web.method.HandlerMethod; |
||||
import com.fr.web.controller.ReportRequestService; |
||||
import com.fr.web.utils.WebUtils; |
||||
|
||||
import javax.servlet.http.Cookie; |
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import javax.servlet.http.HttpSession; |
||||
import java.io.IOException; |
||||
import java.util.List; |
||||
|
||||
public class FRUtils { |
||||
/** |
||||
* 判断用户是否存在 |
||||
* @param userName |
||||
* @return |
||||
*/ |
||||
public static boolean isUserExist(String userName){ |
||||
if (StringUtils.isEmpty(userName)) { |
||||
return false; |
||||
} else { |
||||
try { |
||||
List userList = AuthorityContext.getInstance().getUserController().find(QueryFactory.create().addRestriction(RestrictionFactory.eq("userName", userName))); |
||||
return userList != null && !userList.isEmpty(); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().error(e.getMessage()); |
||||
return false; |
||||
} |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 判断是否登录FR |
||||
* @param req |
||||
* @return |
||||
*/ |
||||
public static boolean isLogin(HttpServletRequest req){ |
||||
return LoginService.getInstance().isLogged(req); |
||||
} |
||||
|
||||
/** |
||||
* 帆软登录 |
||||
* @param httpServletRequest |
||||
* @param httpServletResponse |
||||
* @param userName |
||||
* @param url |
||||
*/ |
||||
public static void login(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse,String userName,String url){ |
||||
|
||||
FineLoggerFactory.getLogger().info("FRLOG:用户名:"+userName); |
||||
FineLoggerFactory.getLogger().info("FRLOG:跳转链接:"+url); |
||||
|
||||
|
||||
//判断用户名是否为空
|
||||
if(!Utils.isNullStr(userName)){ |
||||
if(isUserExist(userName)){ |
||||
String FRToken = ""; |
||||
|
||||
try { |
||||
//HttpSession session = httpServletRequest.getSession(true);
|
||||
|
||||
FRToken = LoginService.getInstance().login(httpServletRequest, httpServletResponse, userName); |
||||
|
||||
//httpServletRequest.setAttribute(DecisionServiceConstants.FINE_AUTH_TOKEN_NAME,FRToken);
|
||||
|
||||
//session.setAttribute(DecisionServiceConstants.FINE_AUTH_TOKEN_NAME, FRToken);
|
||||
EventDispatcher.fire(LogInOutEvent.LOGIN,new LogInOutResultInfo(httpServletRequest,httpServletResponse,userName,true)); |
||||
FineLoggerFactory.getLogger().info("FRLOG:登陆成功!"); |
||||
|
||||
if(!Utils.isNullStr(url)){ |
||||
httpServletResponse.sendRedirect(url); |
||||
} |
||||
} catch (Exception e) { |
||||
ResponseUtils.failedResponse(httpServletResponse,"登录异常,请联系管理员!"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:登录异常,请联系管理员!"); |
||||
FineLoggerFactory.getLogger().info("FRLOGException:"+e.getMessage()); |
||||
} |
||||
}else{ |
||||
ResponseUtils.failedResponse(httpServletResponse,"用户在报表系统中不存在!"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:用户在报表系统中不存在!"); |
||||
} |
||||
}else{ |
||||
ResponseUtils.failedResponse(httpServletResponse,"用户名不能为空!"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:用户名不能为空!"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 帆软登录 |
||||
* @param httpServletRequest |
||||
* @param httpServletResponse |
||||
* @param token |
||||
* @param url |
||||
*/ |
||||
public static void loginByToken(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse,String token,String url){ |
||||
|
||||
FineLoggerFactory.getLogger().info("FRLOG:token:"+token); |
||||
FineLoggerFactory.getLogger().info("FRLOG:跳转链接:"+url); |
||||
|
||||
|
||||
//判断用户名是否为空
|
||||
if(!Utils.isNullStr(token)){ |
||||
writeToken2Cookie(httpServletResponse,token,-1); |
||||
|
||||
HttpSession session = httpServletRequest.getSession(true); |
||||
|
||||
httpServletRequest.setAttribute(DecisionServiceConstants.FINE_AUTH_TOKEN_NAME,token); |
||||
|
||||
session.setAttribute(DecisionServiceConstants.FINE_AUTH_TOKEN_NAME, token); |
||||
|
||||
if(!Utils.isNullStr(url)){ |
||||
try { |
||||
httpServletResponse.sendRedirect(url); |
||||
} catch (IOException e) { |
||||
ResponseUtils.failedResponse(httpServletResponse,"跳转异常!"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:跳转异常!"); |
||||
} |
||||
} |
||||
}else{ |
||||
ResponseUtils.failedResponse(httpServletResponse,"token不能为空!"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:token不能为空!"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 获取token |
||||
* @param httpServletRequest |
||||
* @param httpServletResponse |
||||
* @param username |
||||
* @return |
||||
*/ |
||||
public static String getToken(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse,String username){ |
||||
String token = ""; |
||||
try { |
||||
token = LoginService.getInstance().login(httpServletRequest, httpServletResponse, username); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:获取token失败"+e.getMessage()); |
||||
} |
||||
|
||||
return token; |
||||
} |
||||
|
||||
private static void writeToken2Cookie(HttpServletResponse req, String token, int num) { |
||||
try { |
||||
if (StringUtils.isNotEmpty(token)) { |
||||
Cookie cookie = new Cookie("fine_auth_token", token); |
||||
long maxAge = num == -2 ? 1209600000L : (long)num; |
||||
cookie.setMaxAge((int)maxAge); |
||||
cookie.setPath(ServerConfig.getInstance().getCookiePath()); |
||||
req.addCookie(cookie); |
||||
Cookie rememberCookie = new Cookie("fine_remember_login", String.valueOf(num == -2 ? -2 : -1)); |
||||
rememberCookie.setMaxAge((int)maxAge); |
||||
rememberCookie.setPath(ServerConfig.getInstance().getCookiePath()); |
||||
req.addCookie(rememberCookie); |
||||
} else { |
||||
FineLoggerFactory.getLogger().error("empty token cannot save."); |
||||
} |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
||||
} |
||||
|
||||
} |
||||
|
||||
/** |
||||
* 后台登出 |
||||
* @param httpServletRequest |
||||
* @param httpServletResponse |
||||
*/ |
||||
public static void logoutByToken(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse,String token) |
||||
{ |
||||
httpServletRequest.setAttribute("fine_auth_token",token); |
||||
logout(httpServletRequest,httpServletResponse); |
||||
} |
||||
|
||||
/** |
||||
* |
||||
* @param httpServletRequest |
||||
* @param httpServletResponse |
||||
*/ |
||||
public static void logout(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse) |
||||
{ |
||||
if(!isLogin(httpServletRequest)){ |
||||
return ; |
||||
} |
||||
|
||||
try { |
||||
LoginService.getInstance().logout(httpServletRequest,httpServletResponse); |
||||
} catch (Exception e) { |
||||
ResponseUtils.failedResponse(httpServletResponse,"登出异常,请联系管理员!"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:登出异常,请联系管理员!"); |
||||
FineLoggerFactory.getLogger().info("FRLOGException:"+e.getMessage()); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 打印FR日志 |
||||
* @param message |
||||
*/ |
||||
public static void FRLogInfo(String message){ |
||||
FineLoggerFactory.getLogger().info("FRLOG:"+message); |
||||
} |
||||
|
||||
/** |
||||
* 打印FR日志-error |
||||
* @param message |
||||
*/ |
||||
public static void FRLogError(String message){ |
||||
FineLoggerFactory.getLogger().error("FRLOG:"+message); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 根据用户名获取用户信息 |
||||
* @param userName |
||||
* @return |
||||
*/ |
||||
public static User getFRUserByUserName(String userName){ |
||||
try { |
||||
return UserService.getInstance().getUserByUserName(userName); |
||||
} catch (Exception e) { |
||||
FRLogInfo("获取用户信息异常:"+e.getMessage()); |
||||
} |
||||
|
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* 解密FR密码 |
||||
* @param password |
||||
* @return |
||||
*/ |
||||
// public static String decryptFRPsd(String password){
|
||||
// FRLogInfo("解密密码:"+password);
|
||||
// return TransmissionTool.decrypt(password);
|
||||
// }
|
||||
|
||||
/** |
||||
* 根据明文密码生成数据库中的密码,用户密码校验用 |
||||
* @return |
||||
*/ |
||||
public static String getDBPsd(String username,String password){ |
||||
PasswordValidator pv = UserSourceFactory.getInstance().getUserSource(ManualOperationType.KEY).getPasswordValidator(); |
||||
String uuid = UUIDUtil.generate(); |
||||
|
||||
return pv.encode(username, password, uuid); |
||||
} |
||||
|
||||
/** |
||||
* 获取带参数的访问链接 |
||||
* @return |
||||
*/ |
||||
public static String getAllUrl(HttpServletRequest httpServletRequest){ |
||||
return WebUtils.getOriginalURL(httpServletRequest); |
||||
} |
||||
|
||||
/** |
||||
* 根据originKey获取源链接 |
||||
* @param req |
||||
* @return |
||||
* @throws Exception |
||||
*/ |
||||
public static String getOriginUrl(HttpServletRequest req) throws Exception { |
||||
String origin = req.getParameter("origin"); |
||||
if (StringUtils.isNotEmpty(origin)) { |
||||
OriginUrlResponseBean originUrlResponseBean = (OriginUrlResponseBean) DecisionStatusService.originUrlStatusService().get(origin); |
||||
DecisionStatusService.originUrlStatusService().delete(origin); |
||||
if (originUrlResponseBean != null) { |
||||
return originUrlResponseBean.getOriginUrl(); |
||||
} |
||||
} |
||||
|
||||
return new OriginUrlResponseBean(TemplateUtils.render("${fineServletURL}")).getOriginUrl(); |
||||
} |
||||
|
||||
/** |
||||
* 判断是否开启模板认证 |
||||
* @param |
||||
* @return |
||||
* @throws Exception |
||||
*/ |
||||
public static boolean isTempAuth(HttpServletRequest req,HttpServletResponse res) throws Exception { |
||||
ReportTemplateRequestChecker checker = new ReportTemplateRequestChecker(); |
||||
HandlerMethod hm = new HandlerMethod(new ReportRequestService(),ReportRequestService.class.getMethod("preview", HttpServletRequest.class, HttpServletResponse.class, String.class)); |
||||
return checker.checkRequest(req,res,hm); |
||||
} |
||||
|
||||
/** |
||||
* 获取数据集数据 |
||||
* @param serverDataSetName |
||||
* @return |
||||
*/ |
||||
public static DataModel getTableData(String serverDataSetName){ |
||||
TableData userInfo = TableDataConfig.getInstance().getTableData(serverDataSetName); |
||||
DataModel userInfoDM = userInfo.createDataModel(Calculator.createCalculator()); |
||||
// userInfoDM.getRowCount();
|
||||
// userInfoDM.getColumnIndex();
|
||||
// userInfoDM.getValueAt()
|
||||
return userInfoDM; |
||||
} |
||||
|
||||
public static String getIndex(HttpServletRequest req){ |
||||
String url = req.getScheme()+"://"+req.getServerName()+":"+String.valueOf(req.getServerPort())+req.getRequestURI(); |
||||
return url; |
||||
} |
||||
} |
@ -0,0 +1,262 @@
|
||||
package com.eco.plugin.xx.bjxdsso.utils; |
||||
|
||||
import com.fr.log.FineLoggerFactory; |
||||
import com.fr.third.org.apache.http.HttpEntity; |
||||
import com.fr.third.org.apache.http.HttpResponse; |
||||
import com.fr.third.org.apache.http.HttpStatus; |
||||
import com.fr.third.org.apache.http.NameValuePair; |
||||
import com.fr.third.org.apache.http.client.CookieStore; |
||||
import com.fr.third.org.apache.http.client.entity.UrlEncodedFormEntity; |
||||
import com.fr.third.org.apache.http.client.methods.HttpGet; |
||||
import com.fr.third.org.apache.http.client.methods.HttpPost; |
||||
import com.fr.third.org.apache.http.conn.ssl.NoopHostnameVerifier; |
||||
import com.fr.third.org.apache.http.entity.StringEntity; |
||||
import com.fr.third.org.apache.http.impl.client.BasicCookieStore; |
||||
import com.fr.third.org.apache.http.impl.client.CloseableHttpClient; |
||||
import com.fr.third.org.apache.http.impl.client.HttpClients; |
||||
import com.fr.third.org.apache.http.impl.cookie.BasicClientCookie; |
||||
import com.fr.third.org.apache.http.message.BasicNameValuePair; |
||||
import com.fr.third.org.apache.http.ssl.SSLContexts; |
||||
import com.fr.third.org.apache.http.ssl.TrustStrategy; |
||||
import com.fr.third.org.apache.http.util.EntityUtils; |
||||
|
||||
import javax.net.ssl.SSLContext; |
||||
import javax.servlet.http.Cookie; |
||||
import java.io.UnsupportedEncodingException; |
||||
import java.security.cert.CertificateException; |
||||
import java.security.cert.X509Certificate; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import java.util.Set; |
||||
|
||||
public class HttpUtils { |
||||
|
||||
/** |
||||
* httpGet请求 |
||||
* @param url |
||||
* @return |
||||
*/ |
||||
public static String httpGet(String url,Cookie[] cookies,Map<String,String> header){ |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpUtils.get--url:"+url); |
||||
|
||||
//创建httpClient
|
||||
CloseableHttpClient httpclient = createHttpClient(cookies); |
||||
|
||||
HttpGet getMethod = new HttpGet(url); |
||||
|
||||
if(header != null && header.size() > 0){ |
||||
Set<String> keySet = header.keySet(); |
||||
|
||||
for(String key : keySet){ |
||||
getMethod.setHeader(key,header.get(key)); |
||||
} |
||||
} |
||||
|
||||
try { |
||||
HttpResponse response = httpclient.execute(getMethod); |
||||
int status =response.getStatusLine().getStatusCode(); |
||||
HttpEntity entity = response.getEntity(); |
||||
String returnResult = EntityUtils.toString(entity, "utf-8"); |
||||
|
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpUtils.get--status:"+status); |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpUtils.get--returnResult:"+returnResult); |
||||
|
||||
httpclient.close(); |
||||
|
||||
if (status == HttpStatus.SC_OK) { |
||||
return returnResult; |
||||
} |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpUtils.get--exception:"+e.getMessage()); |
||||
} |
||||
|
||||
try { |
||||
httpclient.close(); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:http关闭异常:"+e.getMessage()); |
||||
} |
||||
|
||||
return ""; |
||||
} |
||||
|
||||
/** |
||||
* HttpPost请求 |
||||
* @param postMethod |
||||
* @return |
||||
*/ |
||||
private static String HttpPost(HttpPost postMethod){ |
||||
CloseableHttpClient httpclient = createHttpClient(null); |
||||
|
||||
try { |
||||
HttpResponse response = httpclient.execute(postMethod); |
||||
int status = response.getStatusLine().getStatusCode(); |
||||
HttpEntity entity = response.getEntity(); |
||||
String returnResult = EntityUtils.toString(entity, "utf-8"); |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPost:status:"+status); |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPost:returnResult:"+returnResult); |
||||
httpclient.close(); |
||||
|
||||
if (status == HttpStatus.SC_OK) { |
||||
return returnResult; |
||||
} |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPost:exception:"+e.getMessage()); |
||||
} |
||||
|
||||
try { |
||||
httpclient.close(); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:http关闭异常:"+e.getMessage()); |
||||
} |
||||
|
||||
return ""; |
||||
} |
||||
|
||||
public static String HttpPostXML(String url, String xmlParam){ |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPostXML:url:"+url); |
||||
|
||||
HttpPost postMethod = new HttpPost(url); |
||||
|
||||
postMethod.setHeader("Content-type", "text/html"); |
||||
HttpEntity entity = null; |
||||
try { |
||||
entity = new StringEntity(xmlParam); |
||||
} catch (UnsupportedEncodingException e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPostXML:参数异常:"+e.getMessage()); |
||||
return ""; |
||||
} |
||||
|
||||
postMethod.setEntity(entity); |
||||
|
||||
return HttpPost(postMethod); |
||||
} |
||||
|
||||
public static String HttpPostText(String url, String xmlParam){ |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPostText:url:"+url); |
||||
|
||||
HttpPost postMethod = new HttpPost(url); |
||||
|
||||
postMethod.setHeader("Content-type", "text/plain"); |
||||
HttpEntity entity = null; |
||||
try { |
||||
entity = new StringEntity(xmlParam); |
||||
} catch (UnsupportedEncodingException e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPostText:参数异常:"+e.getMessage()); |
||||
return ""; |
||||
} |
||||
|
||||
postMethod.setEntity(entity); |
||||
|
||||
return HttpPost(postMethod); |
||||
} |
||||
|
||||
public static String HttpPostJson(String url, String param,Map<String,String> header){ |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPostJSON:url:"+url); |
||||
|
||||
HttpPost postMethod = new HttpPost(url); |
||||
|
||||
postMethod.setHeader("Content-Type","application/json"); |
||||
|
||||
if(header != null && header.size() > 0){ |
||||
Set<String> keySet = header.keySet(); |
||||
|
||||
for(String key : keySet){ |
||||
postMethod.setHeader(key,header.get(key)); |
||||
} |
||||
} |
||||
|
||||
if(!Utils.isNullStr(param)){ |
||||
HttpEntity entity = null; |
||||
try { |
||||
entity = new StringEntity(param); |
||||
} catch (UnsupportedEncodingException e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpPostJSON:参数异常:"+e.getMessage()); |
||||
return ""; |
||||
} |
||||
|
||||
postMethod.setEntity(entity); |
||||
} |
||||
|
||||
return HttpPost(postMethod); |
||||
} |
||||
|
||||
public static String HttpPostWWWForm(String url, Map<String,String> header,Map<String,String> param){ |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpWWWForm:url:"+url); |
||||
|
||||
HttpPost postMethod = new HttpPost(url); |
||||
|
||||
if(header != null && header.size() > 0){ |
||||
Set<String> keySet = header.keySet(); |
||||
|
||||
for(String key : keySet){ |
||||
postMethod.setHeader(key,header.get(key)); |
||||
} |
||||
} |
||||
|
||||
if(param != null && param.size() > 0){ |
||||
List<NameValuePair> params = new ArrayList<NameValuePair>(param.size()); |
||||
|
||||
for(Map.Entry<String,String> map : param.entrySet()){ |
||||
params.add(new BasicNameValuePair(map.getKey(), map.getValue())); |
||||
} |
||||
|
||||
try { |
||||
postMethod.setEntity(new UrlEncodedFormEntity(params, "UTF-8")); |
||||
} catch (UnsupportedEncodingException e) { |
||||
FineLoggerFactory.getLogger().info("FRLOG:HttpWWWForm:异常:"+e.getMessage()); |
||||
return ""; |
||||
} |
||||
} |
||||
|
||||
return HttpPost(postMethod); |
||||
} |
||||
|
||||
private static CloseableHttpClient createHttpClient(Cookie[] cookies){ |
||||
|
||||
SSLContext sslContext = null; |
||||
try { |
||||
sslContext = SSLContexts.custom().loadTrustMaterial(null, new TrustStrategy() { |
||||
@Override |
||||
public boolean isTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException { |
||||
return true; |
||||
} |
||||
}).build(); |
||||
} catch (Exception e) { |
||||
FRUtils.FRLogInfo("exception:"+e.getMessage()); |
||||
} |
||||
|
||||
CloseableHttpClient httpclient = null; |
||||
|
||||
if(cookies != null && cookies.length > 0){ |
||||
CookieStore cookieStore = cookieToCookieStore(cookies); |
||||
|
||||
httpclient = HttpClients.custom().setSslcontext(sslContext). |
||||
setSSLHostnameVerifier(new NoopHostnameVerifier()).setDefaultCookieStore(cookieStore).build(); |
||||
} |
||||
else{ |
||||
httpclient = HttpClients.custom().setSslcontext(sslContext). |
||||
setSSLHostnameVerifier(new NoopHostnameVerifier()).build(); |
||||
} |
||||
|
||||
return httpclient; |
||||
} |
||||
|
||||
/** |
||||
* cookies转cookieStore |
||||
* @param cookies |
||||
* @return |
||||
*/ |
||||
public static CookieStore cookieToCookieStore(Cookie[] cookies){ |
||||
CookieStore cookieStore = new BasicCookieStore(); |
||||
|
||||
if(cookies != null && cookies.length>0){ |
||||
for(Cookie cookie : cookies){ |
||||
BasicClientCookie cookie1 = new BasicClientCookie(cookie.getName(), cookie.getValue()); |
||||
cookieStore.addCookie(cookie1); |
||||
} |
||||
} |
||||
|
||||
return cookieStore; |
||||
} |
||||
} |
@ -0,0 +1,108 @@
|
||||
package com.eco.plugin.xx.bjxdsso.utils; |
||||
|
||||
import com.fr.json.JSONObject; |
||||
import com.fr.log.FineLoggerFactory; |
||||
import com.fr.web.utils.WebUtils; |
||||
|
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.io.PrintWriter; |
||||
|
||||
public class ResponseUtils { |
||||
private static final int SUCCESS = 200; |
||||
private static final int FAILED = -1; |
||||
|
||||
public static void successResponse(HttpServletResponse res, String body) { |
||||
response(res, body, SUCCESS); |
||||
} |
||||
|
||||
public static void failedResponse(HttpServletResponse res, String body) { |
||||
response(res, body, FAILED); |
||||
} |
||||
|
||||
private static void response(HttpServletResponse res, String body, int code) { |
||||
JSONObject object = new JSONObject(); |
||||
PrintWriter pw; |
||||
try { |
||||
object.put("code", code); |
||||
object.put("data", body); |
||||
pw = WebUtils.createPrintWriter(res); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info(e.getMessage()); |
||||
return; |
||||
} |
||||
res.setContentType("application/json;charset=utf-8"); |
||||
String result = object.toString(); |
||||
pw.println(result); |
||||
pw.flush(); |
||||
pw.close(); |
||||
} |
||||
|
||||
public static void response(HttpServletResponse res,JSONObject json){ |
||||
PrintWriter pw; |
||||
try { |
||||
pw = WebUtils.createPrintWriter(res); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info(e.getMessage()); |
||||
return; |
||||
} |
||||
res.setContentType("application/json;charset=utf-8"); |
||||
String result = json.toString(); |
||||
pw.println(result); |
||||
pw.flush(); |
||||
pw.close(); |
||||
} |
||||
|
||||
public static void responseText(HttpServletResponse res,String text){ |
||||
PrintWriter pw; |
||||
try { |
||||
pw = WebUtils.createPrintWriter(res); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info(e.getMessage()); |
||||
return; |
||||
} |
||||
res.setContentType("text/html;charset=utf-8"); |
||||
pw.println(text); |
||||
pw.flush(); |
||||
pw.close(); |
||||
} |
||||
|
||||
public static void responseXml(HttpServletResponse res,String xml){ |
||||
PrintWriter pw; |
||||
try { |
||||
pw = WebUtils.createPrintWriter(res); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info(e.getMessage()); |
||||
return; |
||||
} |
||||
res.setContentType("text/xml;charset=utf-8"); |
||||
pw.println(xml); |
||||
pw.flush(); |
||||
pw.close(); |
||||
} |
||||
|
||||
public static void setCSRFHeader(HttpServletResponse httpServletResponse){ |
||||
httpServletResponse.setHeader("Access-Control-Allow-Origin", "*"); |
||||
httpServletResponse.setHeader("Access-Control-Allow-Methods", "POST,GET,OPTIONS,DELETE,HEAD,PUT,PATCH"); |
||||
httpServletResponse.setHeader("Access-Control-Max-Age", "36000"); |
||||
httpServletResponse.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept,Authorization,authorization"); |
||||
} |
||||
|
||||
public static void responseJsonp(HttpServletRequest req, HttpServletResponse res, JSONObject json){ |
||||
PrintWriter pw; |
||||
try { |
||||
pw = WebUtils.createPrintWriter(res); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().info(e.getMessage()); |
||||
return; |
||||
} |
||||
res.setContentType("text/javascript;charset=utf-8;charset=utf-8"); |
||||
String result = json.toString(); |
||||
|
||||
String jsonp=req.getParameter("callback"); |
||||
|
||||
pw.println(jsonp+"("+result+")"); |
||||
pw.flush(); |
||||
pw.close(); |
||||
} |
||||
} |
@ -0,0 +1,328 @@
|
||||
package com.eco.plugin.xx.bjxdsso.utils; |
||||
|
||||
import com.fr.base.TemplateUtils; |
||||
import com.fr.data.NetworkHelper; |
||||
import com.fr.decision.webservice.v10.user.UserService; |
||||
import com.fr.io.utils.ResourceIOUtils; |
||||
import com.fr.json.JSONObject; |
||||
import com.fr.stable.CodeUtils; |
||||
import com.fr.stable.StringUtils; |
||||
import com.fr.third.org.apache.commons.codec.digest.DigestUtils; |
||||
import com.fr.web.utils.WebUtils; |
||||
import javax.servlet.http.Cookie; |
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.io.BufferedReader; |
||||
import java.io.InputStream; |
||||
import java.net.URLEncoder; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import java.util.UUID; |
||||
import java.util.regex.Matcher; |
||||
import java.util.regex.Pattern; |
||||
|
||||
public class Utils { |
||||
|
||||
/** |
||||
* 判断字符串是否为空 |
||||
* @param str |
||||
* @return true 空字符串 false 非空字符串 |
||||
*/ |
||||
public static boolean isNullStr(String str){ |
||||
return !(str != null && !str.isEmpty() && !"null".equals(str)); |
||||
} |
||||
|
||||
/** |
||||
* 判断字符串是否非空 |
||||
* @param str |
||||
* @return |
||||
*/ |
||||
public static boolean isNotNullStr(String str){ |
||||
return !isNullStr(str); |
||||
} |
||||
|
||||
/** |
||||
* MD5加密 |
||||
* @param str |
||||
* @return |
||||
*/ |
||||
public static String getMd5Str(String str) |
||||
{ |
||||
return DigestUtils.md5Hex(str); |
||||
} |
||||
|
||||
/** |
||||
* 帆软shaEncode加密 |
||||
*/ |
||||
|
||||
public static String shaEncode(String str){ |
||||
return CodeUtils.sha256Encode(str); |
||||
} |
||||
|
||||
/** |
||||
* 获取uuid |
||||
*/ |
||||
public static String uuid(){ |
||||
return UUID.randomUUID().toString(); |
||||
} |
||||
|
||||
/** |
||||
* 替换空字符串 |
||||
* @param str |
||||
* @param replace |
||||
* @return |
||||
*/ |
||||
public static String replaceNullStr(String str,String replace){ |
||||
if(isNullStr(str)){ |
||||
return replace; |
||||
} |
||||
|
||||
return str; |
||||
} |
||||
|
||||
/** |
||||
* 获取请求体 |
||||
* @param req |
||||
* @return |
||||
*/ |
||||
public static JSONObject getRequestBody(HttpServletRequest req){ |
||||
StringBuffer sb = new StringBuffer(); |
||||
String line = null; |
||||
try { |
||||
BufferedReader reader = req.getReader(); |
||||
while ((line = reader.readLine()) != null) |
||||
sb.append(line); |
||||
} catch (Exception e) { |
||||
FRUtils.FRLogInfo("getRequestBody:exception:"+e.getMessage()); |
||||
} |
||||
//将空格和换行符替换掉避免使用反序列化工具解析对象时失败
|
||||
String jsonString = sb.toString().replaceAll("\\s","").replaceAll("\n",""); |
||||
FRUtils.FRLogInfo("reqBody:"+jsonString); |
||||
JSONObject json = new JSONObject(jsonString); |
||||
|
||||
return json; |
||||
} |
||||
|
||||
/** |
||||
* 获取ip |
||||
* @return |
||||
*/ |
||||
public static String getIp(HttpServletRequest req){ |
||||
String realIp = req.getHeader("X-Real-IP"); |
||||
String fw = req.getHeader("X-Forwarded-For"); |
||||
if (StringUtils.isNotEmpty(fw) && !"unKnown".equalsIgnoreCase(fw)) { |
||||
int para3 = fw.indexOf(","); |
||||
return para3 != -1 ? fw.substring(0, para3) : fw; |
||||
} else { |
||||
fw = realIp; |
||||
if (StringUtils.isNotEmpty(realIp) && !"unKnown".equalsIgnoreCase(realIp)) { |
||||
return realIp; |
||||
} else { |
||||
if (StringUtils.isBlank(realIp) || "unknown".equalsIgnoreCase(realIp)) { |
||||
fw = req.getHeader("Proxy-Client-IP"); |
||||
} |
||||
|
||||
if (StringUtils.isBlank(fw) || "unknown".equalsIgnoreCase(fw)) { |
||||
fw = req.getHeader("WL-Proxy-Client-IP"); |
||||
} |
||||
|
||||
if (StringUtils.isBlank(fw) || "unknown".equalsIgnoreCase(fw)) { |
||||
fw = req.getHeader("HTTP_CLIENT_IP"); |
||||
} |
||||
|
||||
if (StringUtils.isBlank(fw) || "unknown".equalsIgnoreCase(fw)) { |
||||
fw = req.getHeader("HTTP_X_FORWARDED_FOR"); |
||||
} |
||||
|
||||
if (StringUtils.isBlank(fw) || "unknown".equalsIgnoreCase(fw)) { |
||||
fw = req.getRemoteAddr(); |
||||
} |
||||
|
||||
return fw; |
||||
} |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 根据key获取cookie |
||||
* @param req |
||||
* @return |
||||
*/ |
||||
public static String getCookieByKey(HttpServletRequest req,String key){ |
||||
Cookie[] cookies = req.getCookies(); |
||||
String cookie = ""; |
||||
|
||||
if(cookies == null || cookies.length <=0){ |
||||
return ""; |
||||
} |
||||
|
||||
for(int i = 0; i < cookies.length; i++) { |
||||
Cookie item = cookies[i]; |
||||
if (item.getName().equalsIgnoreCase(key)) { |
||||
cookie = item.getValue(); |
||||
} |
||||
} |
||||
|
||||
FRUtils.FRLogInfo("cookie:"+cookie); |
||||
|
||||
return cookie; |
||||
} |
||||
|
||||
/** |
||||
* 判断是否是手机端的链接 |
||||
* @param req |
||||
* @return |
||||
*/ |
||||
public static boolean isMobile(HttpServletRequest req) { |
||||
String[] mobileArray = {"iPhone", "iPad", "android", "windows phone", "xiaomi"}; |
||||
String userAgent = req.getHeader("user-agent"); |
||||
if (userAgent != null && userAgent.toUpperCase().contains("MOBILE")) { |
||||
for(String mobile : mobileArray) { |
||||
if(userAgent.toUpperCase().contains(mobile.toUpperCase())) { |
||||
return true; |
||||
} |
||||
} |
||||
} |
||||
return NetworkHelper.getDevice(req).isMobile(); |
||||
} |
||||
|
||||
/** |
||||
* 只编码中文 |
||||
* @param url |
||||
* @return |
||||
*/ |
||||
public static String encodeCH(String url ){ |
||||
Matcher matcher = Pattern.compile("[\\u4e00-\\u9fa5]").matcher(url); |
||||
|
||||
while(matcher.find()){ |
||||
String chn = matcher.group(); |
||||
url = url.replaceAll(chn, URLEncoder.encode(chn)); |
||||
} |
||||
|
||||
return url; |
||||
} |
||||
|
||||
/** |
||||
* 获取web-inf文件夹下的文件 |
||||
* filename /resources/ip4enc.properties |
||||
*/ |
||||
public static InputStream getResourcesFile(String filename){ |
||||
return ResourceIOUtils.read(filename); |
||||
} |
||||
|
||||
/** |
||||
* |
||||
* @param res |
||||
* @param path /com/fr/plugin/loginAuth/html/getMac.html |
||||
* @param parameterMap |
||||
*/ |
||||
public static void toErrorPage(HttpServletResponse res,String path,Map<String, String> parameterMap){ |
||||
if(parameterMap == null){ |
||||
parameterMap = new HashMap<String, String>(); |
||||
} |
||||
|
||||
try { |
||||
String macPage = TemplateUtils.renderTemplate(path, parameterMap); |
||||
WebUtils.printAsString(res, macPage); |
||||
}catch (Exception e){ |
||||
FRUtils.FRLogError("跳转页面异常"); |
||||
} |
||||
|
||||
} |
||||
|
||||
/** |
||||
* 判断是否是管理员 |
||||
* @param username |
||||
* @return |
||||
*/ |
||||
public static boolean isAdmin(String username) throws Exception{ |
||||
return UserService.getInstance().isAdmin(UserService.getInstance().getUserByUserName(username).getId()); |
||||
} |
||||
|
||||
/** |
||||
* 去掉浏览器中的参数 |
||||
* @param url |
||||
* @param param |
||||
* @return |
||||
*/ |
||||
public static String removeParam(String url,String param){ |
||||
if(!url.contains("?"+param) && !url.contains("&"+param)){ |
||||
return url; |
||||
} |
||||
|
||||
return url.substring(0,url.indexOf(url.contains("?"+param) ? "?"+param : "&"+param)); |
||||
} |
||||
|
||||
/** |
||||
* 获取跳转链接 |
||||
* @param req |
||||
* @param param |
||||
* @return |
||||
*/ |
||||
public static String getRedirectUrl(HttpServletRequest req,String param){ |
||||
String url = FRUtils.getAllUrl(req); |
||||
|
||||
if(isNotNullStr(param)){ |
||||
url = removeParam(url,param); |
||||
} |
||||
|
||||
url = encodeCH(url); |
||||
|
||||
return url; |
||||
} |
||||
|
||||
/** |
||||
* 去除空格换行 |
||||
* @param str |
||||
* @return |
||||
*/ |
||||
public static String trim(String str){ |
||||
return str.trim().replaceAll("\n","").replaceAll("\r",""); |
||||
} |
||||
|
||||
/** |
||||
* list 转化为指定字符分割的字符串 |
||||
* @param list |
||||
* @param list |
||||
* @return |
||||
*/ |
||||
public static String listToStr(List<String> list, String split){ |
||||
String result = ""; |
||||
|
||||
if(list == null || list.size() <= 0){ |
||||
return result; |
||||
} |
||||
|
||||
for(String str : list){ |
||||
result+=","+str; |
||||
} |
||||
|
||||
result = result.substring(1); |
||||
|
||||
return result; |
||||
} |
||||
|
||||
/** |
||||
* array 转化为指定字符分割的字符串 |
||||
* @param list |
||||
* @param list |
||||
* @return |
||||
*/ |
||||
public static String arrayToStr(String[] list, String split){ |
||||
String result = ""; |
||||
|
||||
if(list == null ||list.length <= 0){ |
||||
return result; |
||||
} |
||||
|
||||
for(int i=0;i<list.length;i++){ |
||||
String str = list[i]; |
||||
result+=","+str; |
||||
} |
||||
|
||||
result = result.substring(1); |
||||
|
||||
return result; |
||||
} |
||||
} |
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
/** |
||||
* ISSOValidate.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.ssov; |
||||
|
||||
public interface ISSOValidate extends java.rmi.Remote { |
||||
public String validate(String arg0, String arg1, String arg2) throws java.rmi.RemoteException; |
||||
} |
@ -0,0 +1,16 @@
|
||||
/** |
||||
* ISSOValidateService.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.ssov; |
||||
|
||||
public interface ISSOValidateService extends javax.xml.rpc.Service { |
||||
public String getISSOValidatePortAddress(); |
||||
|
||||
public ISSOValidate getISSOValidatePort() throws javax.xml.rpc.ServiceException; |
||||
|
||||
public ISSOValidate getISSOValidatePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; |
||||
} |
@ -0,0 +1,142 @@
|
||||
/** |
||||
* ISSOValidateServiceLocator.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.ssov; |
||||
|
||||
public class ISSOValidateServiceLocator extends org.apache.axis.client.Service implements ISSOValidateService { |
||||
|
||||
public ISSOValidateServiceLocator() { |
||||
} |
||||
|
||||
|
||||
public ISSOValidateServiceLocator(org.apache.axis.EngineConfiguration config) { |
||||
super(config); |
||||
} |
||||
|
||||
public ISSOValidateServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { |
||||
super(wsdlLoc, sName); |
||||
} |
||||
|
||||
// Use to get a proxy class for ISSOValidatePort
|
||||
//private java.lang.String ISSOValidatePort_address = "http://10.125.214.134/ekp/sys/webservice/SSOValidate";
|
||||
private String ISSOValidatePort_address = "https://xx/sys/webservice/SSOValidate?wsdl"; |
||||
public String getISSOValidatePortAddress() { |
||||
return ISSOValidatePort_address; |
||||
} |
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private String ISSOValidatePortWSDDServiceName = "ISSOValidatePort"; |
||||
|
||||
public String getISSOValidatePortWSDDServiceName() { |
||||
return ISSOValidatePortWSDDServiceName; |
||||
} |
||||
|
||||
public void setISSOValidatePortWSDDServiceName(String name) { |
||||
ISSOValidatePortWSDDServiceName = name; |
||||
} |
||||
|
||||
public ISSOValidate getISSOValidatePort() throws javax.xml.rpc.ServiceException { |
||||
java.net.URL endpoint; |
||||
try { |
||||
endpoint = new java.net.URL(ISSOValidatePort_address); |
||||
} |
||||
catch (java.net.MalformedURLException e) { |
||||
throw new javax.xml.rpc.ServiceException(e); |
||||
} |
||||
return getISSOValidatePort(endpoint); |
||||
} |
||||
|
||||
public ISSOValidate getISSOValidatePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { |
||||
try { |
||||
ISSOValidateServiceSoapBindingStub _stub = new ISSOValidateServiceSoapBindingStub(portAddress, this); |
||||
_stub.setPortName(getISSOValidatePortWSDDServiceName()); |
||||
return (ISSOValidate)_stub; |
||||
} |
||||
catch (org.apache.axis.AxisFault e) { |
||||
return null; |
||||
} |
||||
} |
||||
|
||||
public void setISSOValidatePortEndpointAddress(String address) { |
||||
ISSOValidatePort_address = address; |
||||
} |
||||
|
||||
/** |
||||
* For the given interface, get the stub implementation. |
||||
* If this service has no port for the given interface, |
||||
* then ServiceException is thrown. |
||||
*/ |
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { |
||||
try { |
||||
if (ISSOValidate.class.isAssignableFrom(serviceEndpointInterface)) { |
||||
ISSOValidateServiceSoapBindingStub _stub = new ISSOValidateServiceSoapBindingStub(new java.net.URL(ISSOValidatePort_address), this); |
||||
_stub.setPortName(getISSOValidatePortWSDDServiceName()); |
||||
return (java.rmi.Remote)_stub; |
||||
} |
||||
} |
||||
catch (Throwable t) { |
||||
throw new javax.xml.rpc.ServiceException(t); |
||||
} |
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); |
||||
} |
||||
|
||||
/** |
||||
* For the given interface, get the stub implementation. |
||||
* If this service has no port for the given interface, |
||||
* then ServiceException is thrown. |
||||
*/ |
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { |
||||
if (portName == null) { |
||||
return getPort(serviceEndpointInterface); |
||||
} |
||||
String inputPortName = portName.getLocalPart(); |
||||
if ("ISSOValidatePort".equals(inputPortName)) { |
||||
return getISSOValidatePort(); |
||||
} |
||||
else { |
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface); |
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName); |
||||
return _stub; |
||||
} |
||||
} |
||||
|
||||
public javax.xml.namespace.QName getServiceName() { |
||||
return new javax.xml.namespace.QName("http://sso.kmss.landray.com/", "ISSOValidateService"); |
||||
} |
||||
|
||||
private java.util.HashSet ports = null; |
||||
|
||||
public java.util.Iterator getPorts() { |
||||
if (ports == null) { |
||||
ports = new java.util.HashSet(); |
||||
ports.add(new javax.xml.namespace.QName("http://sso.kmss.landray.com/", "ISSOValidatePort")); |
||||
} |
||||
return ports.iterator(); |
||||
} |
||||
|
||||
/** |
||||
* Set the endpoint address for the specified port name. |
||||
*/ |
||||
public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException { |
||||
|
||||
if ("ISSOValidatePort".equals(portName)) { |
||||
setISSOValidatePortEndpointAddress(address); |
||||
} |
||||
else |
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Set the endpoint address for the specified port name. |
||||
*/ |
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException { |
||||
setEndpointAddress(portName.getLocalPart(), address); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,131 @@
|
||||
/** |
||||
* ISSOValidateServiceSoapBindingStub.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.ssov; |
||||
|
||||
public class ISSOValidateServiceSoapBindingStub extends org.apache.axis.client.Stub implements ISSOValidate { |
||||
private java.util.Vector cachedSerClasses = new java.util.Vector(); |
||||
private java.util.Vector cachedSerQNames = new java.util.Vector(); |
||||
private java.util.Vector cachedSerFactories = new java.util.Vector(); |
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations; |
||||
|
||||
static { |
||||
_operations = new org.apache.axis.description.OperationDesc[1]; |
||||
_initOperationDesc1(); |
||||
} |
||||
|
||||
private static void _initOperationDesc1(){ |
||||
org.apache.axis.description.OperationDesc oper; |
||||
org.apache.axis.description.ParameterDesc param; |
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("validate"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg1"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg2"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
oper.setReturnClass(String.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
_operations[0] = oper; |
||||
|
||||
} |
||||
|
||||
public ISSOValidateServiceSoapBindingStub() throws org.apache.axis.AxisFault { |
||||
this(null); |
||||
} |
||||
|
||||
public ISSOValidateServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
||||
this(service); |
||||
super.cachedEndpoint = endpointURL; |
||||
} |
||||
|
||||
public ISSOValidateServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
||||
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"); |
||||
} |
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { |
||||
try { |
||||
org.apache.axis.client.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); |
||||
} |
||||
java.util.Enumeration keys = super.cachedProperties.keys(); |
||||
while (keys.hasMoreElements()) { |
||||
String key = (String) keys.nextElement(); |
||||
_call.setProperty(key, super.cachedProperties.get(key)); |
||||
} |
||||
return _call; |
||||
} |
||||
catch (Throwable _t) { |
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); |
||||
} |
||||
} |
||||
|
||||
public String validate(String arg0, String arg1, String arg2) throws java.rmi.RemoteException { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[0]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://sso.kmss.landray.com/", "validate")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0, arg1, arg2}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (String) _resp; |
||||
} catch (Exception _exception) { |
||||
return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,127 @@
|
||||
/** |
||||
* Exception.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class Exception extends org.apache.axis.AxisFault implements java.io.Serializable { |
||||
private String message1; |
||||
|
||||
public Exception() { |
||||
} |
||||
|
||||
public Exception( |
||||
String message1) { |
||||
this.message1 = message1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the message1 value for this Exception. |
||||
* |
||||
* @return message1 |
||||
*/ |
||||
public String getMessage1() { |
||||
return message1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the message1 value for this Exception. |
||||
* |
||||
* @param message1 |
||||
*/ |
||||
public void setMessage1(String message1) { |
||||
this.message1 = message1; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof Exception)) return false; |
||||
Exception other = (Exception) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.message1==null && other.getMessage1()==null) || |
||||
(this.message1!=null && |
||||
this.message1.equals(other.getMessage1()))); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getMessage1() != null) { |
||||
_hashCode += getMessage1().hashCode(); |
||||
} |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(Exception.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.sys.kmss.landray.com/", "Exception")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("message1"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "message")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Writes the exception data to the faultDetails |
||||
*/ |
||||
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException { |
||||
context.serialize(qname, null, this); |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
/** |
||||
* ISysNotifyTodoWebService.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public interface ISysNotifyTodoWebService extends java.rmi.Remote { |
||||
public NotifyTodoAppResult updateTodo(NotifyTodoUpdateContext arg0) throws java.rmi.RemoteException, Exception; |
||||
public NotifyTodoAppResult setTodoDone(NotifyTodoRemoveContext arg0) throws java.rmi.RemoteException, Exception; |
||||
public NotifyTodoAppResult getTodo(NotifyTodoGetContext arg0) throws java.rmi.RemoteException, Exception; |
||||
public NotifyTodoAppResult getTodoCount(NotifyTodoGetCountContext arg0) throws java.rmi.RemoteException, Exception; |
||||
public NotifyTodoAppResult deleteTodo(NotifyTodoRemoveContext arg0) throws java.rmi.RemoteException, Exception; |
||||
public NotifyTodoAppResult sendTodo(NotifyTodoSendContext arg0) throws java.rmi.RemoteException, Exception; |
||||
} |
@ -0,0 +1,16 @@
|
||||
/** |
||||
* ISysNotifyTodoWebServiceService.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public interface ISysNotifyTodoWebServiceService extends javax.xml.rpc.Service { |
||||
public String getISysNotifyTodoWebServicePortAddress(); |
||||
|
||||
public ISysNotifyTodoWebService getISysNotifyTodoWebServicePort() throws javax.xml.rpc.ServiceException; |
||||
|
||||
public ISysNotifyTodoWebService getISysNotifyTodoWebServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; |
||||
} |
@ -0,0 +1,142 @@
|
||||
/** |
||||
* ISysNotifyTodoWebServiceServiceLocator.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class ISysNotifyTodoWebServiceServiceLocator extends org.apache.axis.client.Service implements ISysNotifyTodoWebServiceService { |
||||
|
||||
public ISysNotifyTodoWebServiceServiceLocator() { |
||||
} |
||||
|
||||
|
||||
public ISysNotifyTodoWebServiceServiceLocator(org.apache.axis.EngineConfiguration config) { |
||||
super(config); |
||||
} |
||||
|
||||
public ISysNotifyTodoWebServiceServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { |
||||
super(wsdlLoc, sName); |
||||
} |
||||
|
||||
// Use to get a proxy class for ISysNotifyTodoWebServicePort
|
||||
|
||||
private String ISysNotifyTodoWebServicePort_address = "https://xx/sys/webservice/SSOValidate?wsdl"; |
||||
public String getISysNotifyTodoWebServicePortAddress() { |
||||
return ISysNotifyTodoWebServicePort_address; |
||||
} |
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private String ISysNotifyTodoWebServicePortWSDDServiceName = "ISysNotifyTodoWebServicePort"; |
||||
|
||||
public String getISysNotifyTodoWebServicePortWSDDServiceName() { |
||||
return ISysNotifyTodoWebServicePortWSDDServiceName; |
||||
} |
||||
|
||||
public void setISysNotifyTodoWebServicePortWSDDServiceName(String name) { |
||||
ISysNotifyTodoWebServicePortWSDDServiceName = name; |
||||
} |
||||
|
||||
public ISysNotifyTodoWebService getISysNotifyTodoWebServicePort() throws javax.xml.rpc.ServiceException { |
||||
java.net.URL endpoint; |
||||
try { |
||||
endpoint = new java.net.URL(ISysNotifyTodoWebServicePort_address); |
||||
} |
||||
catch (java.net.MalformedURLException e) { |
||||
throw new javax.xml.rpc.ServiceException(e); |
||||
} |
||||
return getISysNotifyTodoWebServicePort(endpoint); |
||||
} |
||||
|
||||
public ISysNotifyTodoWebService getISysNotifyTodoWebServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { |
||||
try { |
||||
ISysNotifyTodoWebServiceServiceSoapBindingStub _stub = new ISysNotifyTodoWebServiceServiceSoapBindingStub(portAddress, this); |
||||
_stub.setPortName(getISysNotifyTodoWebServicePortWSDDServiceName()); |
||||
return _stub; |
||||
} |
||||
catch (org.apache.axis.AxisFault e) { |
||||
return null; |
||||
} |
||||
} |
||||
|
||||
public void setISysNotifyTodoWebServicePortEndpointAddress(String address) { |
||||
ISysNotifyTodoWebServicePort_address = address; |
||||
} |
||||
|
||||
/** |
||||
* For the given interface, get the stub implementation. |
||||
* If this service has no port for the given interface, |
||||
* then ServiceException is thrown. |
||||
*/ |
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { |
||||
try { |
||||
if (ISysNotifyTodoWebService.class.isAssignableFrom(serviceEndpointInterface)) { |
||||
ISysNotifyTodoWebServiceServiceSoapBindingStub _stub = new ISysNotifyTodoWebServiceServiceSoapBindingStub(new java.net.URL(ISysNotifyTodoWebServicePort_address), this); |
||||
_stub.setPortName(getISysNotifyTodoWebServicePortWSDDServiceName()); |
||||
return _stub; |
||||
} |
||||
} |
||||
catch (Throwable t) { |
||||
throw new javax.xml.rpc.ServiceException(t); |
||||
} |
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); |
||||
} |
||||
|
||||
/** |
||||
* For the given interface, get the stub implementation. |
||||
* If this service has no port for the given interface, |
||||
* then ServiceException is thrown. |
||||
*/ |
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { |
||||
if (portName == null) { |
||||
return getPort(serviceEndpointInterface); |
||||
} |
||||
String inputPortName = portName.getLocalPart(); |
||||
if ("ISysNotifyTodoWebServicePort".equals(inputPortName)) { |
||||
return getISysNotifyTodoWebServicePort(); |
||||
} |
||||
else { |
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface); |
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName); |
||||
return _stub; |
||||
} |
||||
} |
||||
|
||||
public javax.xml.namespace.QName getServiceName() { |
||||
return new javax.xml.namespace.QName("http://webservice.notify.xx/", "ISysNotifyTodoWebServiceService"); |
||||
} |
||||
|
||||
private java.util.HashSet ports = null; |
||||
|
||||
public java.util.Iterator getPorts() { |
||||
if (ports == null) { |
||||
ports = new java.util.HashSet(); |
||||
ports.add(new javax.xml.namespace.QName("http://webservice.notify.xx/", "ISysNotifyTodoWebServicePort")); |
||||
} |
||||
return ports.iterator(); |
||||
} |
||||
|
||||
/** |
||||
* Set the endpoint address for the specified port name. |
||||
*/ |
||||
public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException { |
||||
|
||||
if ("ISysNotifyTodoWebServicePort".equals(portName)) { |
||||
setISysNotifyTodoWebServicePortEndpointAddress(address); |
||||
} |
||||
else |
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Set the endpoint address for the specified port name. |
||||
*/ |
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException { |
||||
setEndpointAddress(portName.getLocalPart(), address); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,532 @@
|
||||
/** |
||||
* ISysNotifyTodoWebServiceServiceSoapBindingStub.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class ISysNotifyTodoWebServiceServiceSoapBindingStub extends org.apache.axis.client.Stub implements ISysNotifyTodoWebService { |
||||
private java.util.Vector cachedSerClasses = new java.util.Vector(); |
||||
private java.util.Vector cachedSerQNames = new java.util.Vector(); |
||||
private java.util.Vector cachedSerFactories = new java.util.Vector(); |
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations; |
||||
|
||||
static { |
||||
_operations = new org.apache.axis.description.OperationDesc[6]; |
||||
_initOperationDesc1(); |
||||
} |
||||
|
||||
private static void _initOperationDesc1(){ |
||||
org.apache.axis.description.OperationDesc oper; |
||||
org.apache.axis.description.ParameterDesc param; |
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("updateTodo"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoUpdateContext"), NotifyTodoUpdateContext.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
oper.setReturnClass(NotifyTodoAppResult.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
oper.addFault(new org.apache.axis.description.FaultDesc( |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
"Exception", |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
true |
||||
)); |
||||
_operations[0] = oper; |
||||
|
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("setTodoDone"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoRemoveContext"), NotifyTodoRemoveContext.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
oper.setReturnClass(NotifyTodoAppResult.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
oper.addFault(new org.apache.axis.description.FaultDesc( |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
"Exception", |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
true |
||||
)); |
||||
_operations[1] = oper; |
||||
|
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("getTodo"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoGetContext"), NotifyTodoGetContext.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
oper.setReturnClass(NotifyTodoAppResult.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
oper.addFault(new org.apache.axis.description.FaultDesc( |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
"Exception", |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
true |
||||
)); |
||||
_operations[2] = oper; |
||||
|
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("getTodoCount"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoGetCountContext"), NotifyTodoGetCountContext.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
oper.setReturnClass(NotifyTodoAppResult.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
oper.addFault(new org.apache.axis.description.FaultDesc( |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
"Exception", |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
true |
||||
)); |
||||
_operations[3] = oper; |
||||
|
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("deleteTodo"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoRemoveContext"), NotifyTodoRemoveContext.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
oper.setReturnClass(NotifyTodoAppResult.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
oper.addFault(new org.apache.axis.description.FaultDesc( |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
"Exception", |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
true |
||||
)); |
||||
_operations[4] = oper; |
||||
|
||||
oper = new org.apache.axis.description.OperationDesc(); |
||||
oper.setName("sendTodo"); |
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoSendContext"), NotifyTodoSendContext.class, false, false); |
||||
param.setOmittable(true); |
||||
oper.addParameter(param); |
||||
oper.setReturnType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
oper.setReturnClass(NotifyTodoAppResult.class); |
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return")); |
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
||||
oper.addFault(new org.apache.axis.description.FaultDesc( |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
"Exception", |
||||
new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"), |
||||
true |
||||
)); |
||||
_operations[5] = oper; |
||||
|
||||
} |
||||
|
||||
public ISysNotifyTodoWebServiceServiceSoapBindingStub() throws org.apache.axis.AxisFault { |
||||
this(null); |
||||
} |
||||
|
||||
public ISysNotifyTodoWebServiceServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
||||
this(service); |
||||
super.cachedEndpoint = endpointURL; |
||||
} |
||||
|
||||
public ISysNotifyTodoWebServiceServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
||||
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 cls; |
||||
javax.xml.namespace.QName qName; |
||||
javax.xml.namespace.QName qName2; |
||||
Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; |
||||
Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; |
||||
Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; |
||||
Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; |
||||
Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; |
||||
Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; |
||||
Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; |
||||
Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; |
||||
Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class; |
||||
Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class; |
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "Exception"); |
||||
cachedSerQNames.add(qName); |
||||
cls = Exception.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult"); |
||||
cachedSerQNames.add(qName); |
||||
cls = NotifyTodoAppResult.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoGetContext"); |
||||
cachedSerQNames.add(qName); |
||||
cls = NotifyTodoGetContext.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoGetCountContext"); |
||||
cachedSerQNames.add(qName); |
||||
cls = NotifyTodoGetCountContext.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoRemoveContext"); |
||||
cachedSerQNames.add(qName); |
||||
cls = NotifyTodoRemoveContext.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoSendContext"); |
||||
cachedSerQNames.add(qName); |
||||
cls = NotifyTodoSendContext.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
qName = new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoUpdateContext"); |
||||
cachedSerQNames.add(qName); |
||||
cls = NotifyTodoUpdateContext.class; |
||||
cachedSerClasses.add(cls); |
||||
cachedSerFactories.add(beansf); |
||||
cachedDeserFactories.add(beandf); |
||||
|
||||
} |
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { |
||||
try { |
||||
org.apache.axis.client.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); |
||||
} |
||||
java.util.Enumeration keys = super.cachedProperties.keys(); |
||||
while (keys.hasMoreElements()) { |
||||
String key = (String) keys.nextElement(); |
||||
_call.setProperty(key, super.cachedProperties.get(key)); |
||||
} |
||||
// All the type mapping information is registered
|
||||
// when the first call is made.
|
||||
// The type mapping information is actually registered in
|
||||
// the TypeMappingRegistry of the service, which
|
||||
// is the reason why registration is only needed for the first call.
|
||||
synchronized (this) { |
||||
if (firstCall()) { |
||||
// must set encoding style before registering serializers
|
||||
_call.setEncodingStyle(null); |
||||
for (int i = 0; i < cachedSerFactories.size(); ++i) { |
||||
Class cls = (Class) cachedSerClasses.get(i); |
||||
javax.xml.namespace.QName qName = |
||||
(javax.xml.namespace.QName) cachedSerQNames.get(i); |
||||
Object x = cachedSerFactories.get(i); |
||||
if (x instanceof Class) { |
||||
Class sf = (Class) |
||||
cachedSerFactories.get(i); |
||||
Class df = (Class) |
||||
cachedDeserFactories.get(i); |
||||
_call.registerTypeMapping(cls, qName, sf, df, false); |
||||
} |
||||
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) { |
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) |
||||
cachedSerFactories.get(i); |
||||
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) |
||||
cachedDeserFactories.get(i); |
||||
_call.registerTypeMapping(cls, qName, sf, df, false); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
return _call; |
||||
} |
||||
catch (Throwable _t) { |
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); |
||||
} |
||||
} |
||||
|
||||
public NotifyTodoAppResult updateTodo(NotifyTodoUpdateContext arg0) throws java.rmi.RemoteException, Exception { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[0]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://webservice.notify.xx/", "updateTodo")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (NotifyTodoAppResult) _resp; |
||||
} catch (java.lang.Exception _exception) { |
||||
return (NotifyTodoAppResult) org.apache.axis.utils.JavaUtils.convert(_resp, NotifyTodoAppResult.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
if (axisFaultException.detail != null) { |
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException) axisFaultException.detail; |
||||
} |
||||
if (axisFaultException.detail instanceof Exception) { |
||||
throw (Exception) axisFaultException.detail; |
||||
} |
||||
} |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
public NotifyTodoAppResult setTodoDone(NotifyTodoRemoveContext arg0) throws java.rmi.RemoteException, Exception { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[1]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://webservice.notify.xx/", "setTodoDone")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (NotifyTodoAppResult) _resp; |
||||
} catch (java.lang.Exception _exception) { |
||||
return (NotifyTodoAppResult) org.apache.axis.utils.JavaUtils.convert(_resp, NotifyTodoAppResult.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
if (axisFaultException.detail != null) { |
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException) axisFaultException.detail; |
||||
} |
||||
if (axisFaultException.detail instanceof Exception) { |
||||
throw (Exception) axisFaultException.detail; |
||||
} |
||||
} |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
public NotifyTodoAppResult getTodo(NotifyTodoGetContext arg0) throws java.rmi.RemoteException, Exception { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[2]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://webservice.notify.xx/", "getTodo")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (NotifyTodoAppResult) _resp; |
||||
} catch (java.lang.Exception _exception) { |
||||
return (NotifyTodoAppResult) org.apache.axis.utils.JavaUtils.convert(_resp, NotifyTodoAppResult.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
if (axisFaultException.detail != null) { |
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException) axisFaultException.detail; |
||||
} |
||||
if (axisFaultException.detail instanceof Exception) { |
||||
throw (Exception) axisFaultException.detail; |
||||
} |
||||
} |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
public NotifyTodoAppResult getTodoCount(NotifyTodoGetCountContext arg0) throws java.rmi.RemoteException, Exception { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[3]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://webservice.notify.xx/", "getTodoCount")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (NotifyTodoAppResult) _resp; |
||||
} catch (java.lang.Exception _exception) { |
||||
return (NotifyTodoAppResult) org.apache.axis.utils.JavaUtils.convert(_resp, NotifyTodoAppResult.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
if (axisFaultException.detail != null) { |
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException) axisFaultException.detail; |
||||
} |
||||
if (axisFaultException.detail instanceof Exception) { |
||||
throw (Exception) axisFaultException.detail; |
||||
} |
||||
} |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
public NotifyTodoAppResult deleteTodo(NotifyTodoRemoveContext arg0) throws java.rmi.RemoteException, Exception { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[4]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://webservice.notify.xx/", "deleteTodo")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (NotifyTodoAppResult) _resp; |
||||
} catch (java.lang.Exception _exception) { |
||||
return (NotifyTodoAppResult) org.apache.axis.utils.JavaUtils.convert(_resp, NotifyTodoAppResult.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
if (axisFaultException.detail != null) { |
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException) axisFaultException.detail; |
||||
} |
||||
if (axisFaultException.detail instanceof Exception) { |
||||
throw (Exception) axisFaultException.detail; |
||||
} |
||||
} |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
public NotifyTodoAppResult sendTodo(NotifyTodoSendContext arg0) throws java.rmi.RemoteException, Exception { |
||||
if (super.cachedEndpoint == null) { |
||||
throw new org.apache.axis.NoEndPointException(); |
||||
} |
||||
org.apache.axis.client.Call _call = createCall(); |
||||
_call.setOperation(_operations[5]); |
||||
_call.setUseSOAPAction(true); |
||||
_call.setSOAPActionURI(""); |
||||
_call.setEncodingStyle(null); |
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
||||
_call.setOperationName(new javax.xml.namespace.QName("http://webservice.notify.xx/", "sendTodo")); |
||||
|
||||
setRequestHeaders(_call); |
||||
setAttachments(_call); |
||||
try { Object _resp = _call.invoke(new Object[] {arg0}); |
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException)_resp; |
||||
} |
||||
else { |
||||
extractAttachments(_call); |
||||
try { |
||||
return (NotifyTodoAppResult) _resp; |
||||
} catch (java.lang.Exception _exception) { |
||||
return (NotifyTodoAppResult) org.apache.axis.utils.JavaUtils.convert(_resp, NotifyTodoAppResult.class); |
||||
} |
||||
} |
||||
} catch (org.apache.axis.AxisFault axisFaultException) { |
||||
if (axisFaultException.detail != null) { |
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) { |
||||
throw (java.rmi.RemoteException) axisFaultException.detail; |
||||
} |
||||
if (axisFaultException.detail instanceof Exception) { |
||||
throw (Exception) axisFaultException.detail; |
||||
} |
||||
} |
||||
throw axisFaultException; |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,152 @@
|
||||
/** |
||||
* NotifyTodoAppResult.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class NotifyTodoAppResult implements java.io.Serializable { |
||||
private String message; |
||||
|
||||
private int returnState; |
||||
|
||||
public NotifyTodoAppResult() { |
||||
} |
||||
|
||||
public NotifyTodoAppResult( |
||||
String message, |
||||
int returnState) { |
||||
this.message = message; |
||||
this.returnState = returnState; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the message value for this NotifyTodoAppResult. |
||||
* |
||||
* @return message |
||||
*/ |
||||
public String getMessage() { |
||||
return message; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the message value for this NotifyTodoAppResult. |
||||
* |
||||
* @param message |
||||
*/ |
||||
public void setMessage(String message) { |
||||
this.message = message; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the returnState value for this NotifyTodoAppResult. |
||||
* |
||||
* @return returnState |
||||
*/ |
||||
public int getReturnState() { |
||||
return returnState; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the returnState value for this NotifyTodoAppResult. |
||||
* |
||||
* @param returnState |
||||
*/ |
||||
public void setReturnState(int returnState) { |
||||
this.returnState = returnState; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof NotifyTodoAppResult)) return false; |
||||
NotifyTodoAppResult other = (NotifyTodoAppResult) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.message==null && other.getMessage()==null) || |
||||
(this.message!=null && |
||||
this.message.equals(other.getMessage()))) && |
||||
this.returnState == other.getReturnState(); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getMessage() != null) { |
||||
_hashCode += getMessage().hashCode(); |
||||
} |
||||
_hashCode += getReturnState(); |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(NotifyTodoAppResult.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoAppResult")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("message"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "message")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("returnState"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "returnState")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,253 @@
|
||||
/** |
||||
* NotifyTodoGetContext.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class NotifyTodoGetContext implements java.io.Serializable { |
||||
private String otherCond; |
||||
|
||||
private int pageNo; |
||||
|
||||
private int rowSize; |
||||
|
||||
private String targets; |
||||
|
||||
private int type; |
||||
|
||||
public NotifyTodoGetContext() { |
||||
} |
||||
|
||||
public NotifyTodoGetContext( |
||||
String otherCond, |
||||
int pageNo, |
||||
int rowSize, |
||||
String targets, |
||||
int type) { |
||||
this.otherCond = otherCond; |
||||
this.pageNo = pageNo; |
||||
this.rowSize = rowSize; |
||||
this.targets = targets; |
||||
this.type = type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the otherCond value for this NotifyTodoGetContext. |
||||
* |
||||
* @return otherCond |
||||
*/ |
||||
public String getOtherCond() { |
||||
return otherCond; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the otherCond value for this NotifyTodoGetContext. |
||||
* |
||||
* @param otherCond |
||||
*/ |
||||
public void setOtherCond(String otherCond) { |
||||
this.otherCond = otherCond; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the pageNo value for this NotifyTodoGetContext. |
||||
* |
||||
* @return pageNo |
||||
*/ |
||||
public int getPageNo() { |
||||
return pageNo; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the pageNo value for this NotifyTodoGetContext. |
||||
* |
||||
* @param pageNo |
||||
*/ |
||||
public void setPageNo(int pageNo) { |
||||
this.pageNo = pageNo; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the rowSize value for this NotifyTodoGetContext. |
||||
* |
||||
* @return rowSize |
||||
*/ |
||||
public int getRowSize() { |
||||
return rowSize; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the rowSize value for this NotifyTodoGetContext. |
||||
* |
||||
* @param rowSize |
||||
*/ |
||||
public void setRowSize(int rowSize) { |
||||
this.rowSize = rowSize; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the targets value for this NotifyTodoGetContext. |
||||
* |
||||
* @return targets |
||||
*/ |
||||
public String getTargets() { |
||||
return targets; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the targets value for this NotifyTodoGetContext. |
||||
* |
||||
* @param targets |
||||
*/ |
||||
public void setTargets(String targets) { |
||||
this.targets = targets; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the type value for this NotifyTodoGetContext. |
||||
* |
||||
* @return type |
||||
*/ |
||||
public int getType() { |
||||
return type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the type value for this NotifyTodoGetContext. |
||||
* |
||||
* @param type |
||||
*/ |
||||
public void setType(int type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof NotifyTodoGetContext)) return false; |
||||
NotifyTodoGetContext other = (NotifyTodoGetContext) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.otherCond==null && other.getOtherCond()==null) || |
||||
(this.otherCond!=null && |
||||
this.otherCond.equals(other.getOtherCond()))) && |
||||
this.pageNo == other.getPageNo() && |
||||
this.rowSize == other.getRowSize() && |
||||
((this.targets==null && other.getTargets()==null) || |
||||
(this.targets!=null && |
||||
this.targets.equals(other.getTargets()))) && |
||||
this.type == other.getType(); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getOtherCond() != null) { |
||||
_hashCode += getOtherCond().hashCode(); |
||||
} |
||||
_hashCode += getPageNo(); |
||||
_hashCode += getRowSize(); |
||||
if (getTargets() != null) { |
||||
_hashCode += getTargets().hashCode(); |
||||
} |
||||
_hashCode += getType(); |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(NotifyTodoGetContext.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoGetContext")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("otherCond"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "otherCond")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("pageNo"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "pageNo")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("rowSize"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "rowSize")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("targets"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "targets")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("type"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "type")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,157 @@
|
||||
/** |
||||
* NotifyTodoGetCountContext.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class NotifyTodoGetCountContext implements java.io.Serializable { |
||||
private String target; |
||||
|
||||
private String types; |
||||
|
||||
public NotifyTodoGetCountContext() { |
||||
} |
||||
|
||||
public NotifyTodoGetCountContext( |
||||
String target, |
||||
String types) { |
||||
this.target = target; |
||||
this.types = types; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the target value for this NotifyTodoGetCountContext. |
||||
* |
||||
* @return target |
||||
*/ |
||||
public String getTarget() { |
||||
return target; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the target value for this NotifyTodoGetCountContext. |
||||
* |
||||
* @param target |
||||
*/ |
||||
public void setTarget(String target) { |
||||
this.target = target; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the types value for this NotifyTodoGetCountContext. |
||||
* |
||||
* @return types |
||||
*/ |
||||
public String getTypes() { |
||||
return types; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the types value for this NotifyTodoGetCountContext. |
||||
* |
||||
* @param types |
||||
*/ |
||||
public void setTypes(String types) { |
||||
this.types = types; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof NotifyTodoGetCountContext)) return false; |
||||
NotifyTodoGetCountContext other = (NotifyTodoGetCountContext) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.target==null && other.getTarget()==null) || |
||||
(this.target!=null && |
||||
this.target.equals(other.getTarget()))) && |
||||
((this.types==null && other.getTypes()==null) || |
||||
(this.types!=null && |
||||
this.types.equals(other.getTypes()))); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getTarget() != null) { |
||||
_hashCode += getTarget().hashCode(); |
||||
} |
||||
if (getTypes() != null) { |
||||
_hashCode += getTypes().hashCode(); |
||||
} |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(NotifyTodoGetCountContext.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoGetCountContext")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("target"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "target")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("types"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "types")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,443 @@
|
||||
/** |
||||
* NotifyTodoRemoveContext.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class NotifyTodoRemoveContext implements java.io.Serializable { |
||||
private String appName; |
||||
|
||||
private String key; |
||||
|
||||
private String modelId; |
||||
|
||||
private String modelName; |
||||
|
||||
private int optType; |
||||
|
||||
private String others; |
||||
|
||||
private String param1; |
||||
|
||||
private String param2; |
||||
|
||||
private String targets; |
||||
|
||||
private int type; |
||||
|
||||
public NotifyTodoRemoveContext() { |
||||
} |
||||
|
||||
public NotifyTodoRemoveContext( |
||||
String appName, |
||||
String key, |
||||
String modelId, |
||||
String modelName, |
||||
int optType, |
||||
String others, |
||||
String param1, |
||||
String param2, |
||||
String targets, |
||||
int type) { |
||||
this.appName = appName; |
||||
this.key = key; |
||||
this.modelId = modelId; |
||||
this.modelName = modelName; |
||||
this.optType = optType; |
||||
this.others = others; |
||||
this.param1 = param1; |
||||
this.param2 = param2; |
||||
this.targets = targets; |
||||
this.type = type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the appName value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return appName |
||||
*/ |
||||
public String getAppName() { |
||||
return appName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the appName value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param appName |
||||
*/ |
||||
public void setAppName(String appName) { |
||||
this.appName = appName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the key value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return key |
||||
*/ |
||||
public String getKey() { |
||||
return key; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the key value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param key |
||||
*/ |
||||
public void setKey(String key) { |
||||
this.key = key; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the modelId value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return modelId |
||||
*/ |
||||
public String getModelId() { |
||||
return modelId; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the modelId value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param modelId |
||||
*/ |
||||
public void setModelId(String modelId) { |
||||
this.modelId = modelId; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the modelName value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return modelName |
||||
*/ |
||||
public String getModelName() { |
||||
return modelName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the modelName value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param modelName |
||||
*/ |
||||
public void setModelName(String modelName) { |
||||
this.modelName = modelName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the optType value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return optType |
||||
*/ |
||||
public int getOptType() { |
||||
return optType; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the optType value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param optType |
||||
*/ |
||||
public void setOptType(int optType) { |
||||
this.optType = optType; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the others value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return others |
||||
*/ |
||||
public String getOthers() { |
||||
return others; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the others value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param others |
||||
*/ |
||||
public void setOthers(String others) { |
||||
this.others = others; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the param1 value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return param1 |
||||
*/ |
||||
public String getParam1() { |
||||
return param1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the param1 value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param param1 |
||||
*/ |
||||
public void setParam1(String param1) { |
||||
this.param1 = param1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the param2 value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return param2 |
||||
*/ |
||||
public String getParam2() { |
||||
return param2; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the param2 value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param param2 |
||||
*/ |
||||
public void setParam2(String param2) { |
||||
this.param2 = param2; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the targets value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return targets |
||||
*/ |
||||
public String getTargets() { |
||||
return targets; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the targets value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param targets |
||||
*/ |
||||
public void setTargets(String targets) { |
||||
this.targets = targets; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the type value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @return type |
||||
*/ |
||||
public int getType() { |
||||
return type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the type value for this NotifyTodoRemoveContext. |
||||
* |
||||
* @param type |
||||
*/ |
||||
public void setType(int type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof NotifyTodoRemoveContext)) return false; |
||||
NotifyTodoRemoveContext other = (NotifyTodoRemoveContext) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.appName==null && other.getAppName()==null) || |
||||
(this.appName!=null && |
||||
this.appName.equals(other.getAppName()))) && |
||||
((this.key==null && other.getKey()==null) || |
||||
(this.key!=null && |
||||
this.key.equals(other.getKey()))) && |
||||
((this.modelId==null && other.getModelId()==null) || |
||||
(this.modelId!=null && |
||||
this.modelId.equals(other.getModelId()))) && |
||||
((this.modelName==null && other.getModelName()==null) || |
||||
(this.modelName!=null && |
||||
this.modelName.equals(other.getModelName()))) && |
||||
this.optType == other.getOptType() && |
||||
((this.others==null && other.getOthers()==null) || |
||||
(this.others!=null && |
||||
this.others.equals(other.getOthers()))) && |
||||
((this.param1==null && other.getParam1()==null) || |
||||
(this.param1!=null && |
||||
this.param1.equals(other.getParam1()))) && |
||||
((this.param2==null && other.getParam2()==null) || |
||||
(this.param2!=null && |
||||
this.param2.equals(other.getParam2()))) && |
||||
((this.targets==null && other.getTargets()==null) || |
||||
(this.targets!=null && |
||||
this.targets.equals(other.getTargets()))) && |
||||
this.type == other.getType(); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getAppName() != null) { |
||||
_hashCode += getAppName().hashCode(); |
||||
} |
||||
if (getKey() != null) { |
||||
_hashCode += getKey().hashCode(); |
||||
} |
||||
if (getModelId() != null) { |
||||
_hashCode += getModelId().hashCode(); |
||||
} |
||||
if (getModelName() != null) { |
||||
_hashCode += getModelName().hashCode(); |
||||
} |
||||
_hashCode += getOptType(); |
||||
if (getOthers() != null) { |
||||
_hashCode += getOthers().hashCode(); |
||||
} |
||||
if (getParam1() != null) { |
||||
_hashCode += getParam1().hashCode(); |
||||
} |
||||
if (getParam2() != null) { |
||||
_hashCode += getParam2().hashCode(); |
||||
} |
||||
if (getTargets() != null) { |
||||
_hashCode += getTargets().hashCode(); |
||||
} |
||||
_hashCode += getType(); |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(NotifyTodoRemoveContext.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoRemoveContext")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("appName"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "appName")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("key"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "key")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("modelId"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "modelId")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("modelName"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "modelName")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("optType"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "optType")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("others"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "others")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("param1"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "param1")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("param2"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "param2")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("targets"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "targets")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("type"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "type")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,675 @@
|
||||
/** |
||||
* NotifyTodoSendContext.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class NotifyTodoSendContext implements java.io.Serializable { |
||||
private String appName; |
||||
|
||||
private String createTime; |
||||
|
||||
private String docCreator; |
||||
|
||||
private String extendContent; |
||||
|
||||
private String key; |
||||
|
||||
private String language; |
||||
|
||||
private Integer level; |
||||
|
||||
private String link; |
||||
|
||||
private String modelId; |
||||
|
||||
private String modelName; |
||||
|
||||
private String others; |
||||
|
||||
private String param1; |
||||
|
||||
private String param2; |
||||
|
||||
private String subject; |
||||
|
||||
private String targets; |
||||
|
||||
private Integer type; |
||||
|
||||
public NotifyTodoSendContext() { |
||||
} |
||||
|
||||
public NotifyTodoSendContext( |
||||
String appName, |
||||
String createTime, |
||||
String docCreator, |
||||
String extendContent, |
||||
String key, |
||||
String language, |
||||
Integer level, |
||||
String link, |
||||
String modelId, |
||||
String modelName, |
||||
String others, |
||||
String param1, |
||||
String param2, |
||||
String subject, |
||||
String targets, |
||||
Integer type) { |
||||
this.appName = appName; |
||||
this.createTime = createTime; |
||||
this.docCreator = docCreator; |
||||
this.extendContent = extendContent; |
||||
this.key = key; |
||||
this.language = language; |
||||
this.level = level; |
||||
this.link = link; |
||||
this.modelId = modelId; |
||||
this.modelName = modelName; |
||||
this.others = others; |
||||
this.param1 = param1; |
||||
this.param2 = param2; |
||||
this.subject = subject; |
||||
this.targets = targets; |
||||
this.type = type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the appName value for this NotifyTodoSendContext. |
||||
* |
||||
* @return appName |
||||
*/ |
||||
public String getAppName() { |
||||
return appName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the appName value for this NotifyTodoSendContext. |
||||
* |
||||
* @param appName |
||||
*/ |
||||
public void setAppName(String appName) { |
||||
this.appName = appName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the createTime value for this NotifyTodoSendContext. |
||||
* |
||||
* @return createTime |
||||
*/ |
||||
public String getCreateTime() { |
||||
return createTime; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the createTime value for this NotifyTodoSendContext. |
||||
* |
||||
* @param createTime |
||||
*/ |
||||
public void setCreateTime(String createTime) { |
||||
this.createTime = createTime; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the docCreator value for this NotifyTodoSendContext. |
||||
* |
||||
* @return docCreator |
||||
*/ |
||||
public String getDocCreator() { |
||||
return docCreator; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the docCreator value for this NotifyTodoSendContext. |
||||
* |
||||
* @param docCreator |
||||
*/ |
||||
public void setDocCreator(String docCreator) { |
||||
this.docCreator = docCreator; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the extendContent value for this NotifyTodoSendContext. |
||||
* |
||||
* @return extendContent |
||||
*/ |
||||
public String getExtendContent() { |
||||
return extendContent; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the extendContent value for this NotifyTodoSendContext. |
||||
* |
||||
* @param extendContent |
||||
*/ |
||||
public void setExtendContent(String extendContent) { |
||||
this.extendContent = extendContent; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the key value for this NotifyTodoSendContext. |
||||
* |
||||
* @return key |
||||
*/ |
||||
public String getKey() { |
||||
return key; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the key value for this NotifyTodoSendContext. |
||||
* |
||||
* @param key |
||||
*/ |
||||
public void setKey(String key) { |
||||
this.key = key; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the language value for this NotifyTodoSendContext. |
||||
* |
||||
* @return language |
||||
*/ |
||||
public String getLanguage() { |
||||
return language; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the language value for this NotifyTodoSendContext. |
||||
* |
||||
* @param language |
||||
*/ |
||||
public void setLanguage(String language) { |
||||
this.language = language; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the level value for this NotifyTodoSendContext. |
||||
* |
||||
* @return level |
||||
*/ |
||||
public Integer getLevel() { |
||||
return level; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the level value for this NotifyTodoSendContext. |
||||
* |
||||
* @param level |
||||
*/ |
||||
public void setLevel(Integer level) { |
||||
this.level = level; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the link value for this NotifyTodoSendContext. |
||||
* |
||||
* @return link |
||||
*/ |
||||
public String getLink() { |
||||
return link; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the link value for this NotifyTodoSendContext. |
||||
* |
||||
* @param link |
||||
*/ |
||||
public void setLink(String link) { |
||||
this.link = link; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the modelId value for this NotifyTodoSendContext. |
||||
* |
||||
* @return modelId |
||||
*/ |
||||
public String getModelId() { |
||||
return modelId; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the modelId value for this NotifyTodoSendContext. |
||||
* |
||||
* @param modelId |
||||
*/ |
||||
public void setModelId(String modelId) { |
||||
this.modelId = modelId; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the modelName value for this NotifyTodoSendContext. |
||||
* |
||||
* @return modelName |
||||
*/ |
||||
public String getModelName() { |
||||
return modelName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the modelName value for this NotifyTodoSendContext. |
||||
* |
||||
* @param modelName |
||||
*/ |
||||
public void setModelName(String modelName) { |
||||
this.modelName = modelName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the others value for this NotifyTodoSendContext. |
||||
* |
||||
* @return others |
||||
*/ |
||||
public String getOthers() { |
||||
return others; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the others value for this NotifyTodoSendContext. |
||||
* |
||||
* @param others |
||||
*/ |
||||
public void setOthers(String others) { |
||||
this.others = others; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the param1 value for this NotifyTodoSendContext. |
||||
* |
||||
* @return param1 |
||||
*/ |
||||
public String getParam1() { |
||||
return param1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the param1 value for this NotifyTodoSendContext. |
||||
* |
||||
* @param param1 |
||||
*/ |
||||
public void setParam1(String param1) { |
||||
this.param1 = param1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the param2 value for this NotifyTodoSendContext. |
||||
* |
||||
* @return param2 |
||||
*/ |
||||
public String getParam2() { |
||||
return param2; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the param2 value for this NotifyTodoSendContext. |
||||
* |
||||
* @param param2 |
||||
*/ |
||||
public void setParam2(String param2) { |
||||
this.param2 = param2; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the subject value for this NotifyTodoSendContext. |
||||
* |
||||
* @return subject |
||||
*/ |
||||
public String getSubject() { |
||||
return subject; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the subject value for this NotifyTodoSendContext. |
||||
* |
||||
* @param subject |
||||
*/ |
||||
public void setSubject(String subject) { |
||||
this.subject = subject; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the targets value for this NotifyTodoSendContext. |
||||
* |
||||
* @return targets |
||||
*/ |
||||
public String getTargets() { |
||||
return targets; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the targets value for this NotifyTodoSendContext. |
||||
* |
||||
* @param targets |
||||
*/ |
||||
public void setTargets(String targets) { |
||||
this.targets = targets; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the type value for this NotifyTodoSendContext. |
||||
* |
||||
* @return type |
||||
*/ |
||||
public Integer getType() { |
||||
return type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the type value for this NotifyTodoSendContext. |
||||
* |
||||
* @param type |
||||
*/ |
||||
public void setType(Integer type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof NotifyTodoSendContext)) return false; |
||||
NotifyTodoSendContext other = (NotifyTodoSendContext) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.appName==null && other.getAppName()==null) || |
||||
(this.appName!=null && |
||||
this.appName.equals(other.getAppName()))) && |
||||
((this.createTime==null && other.getCreateTime()==null) || |
||||
(this.createTime!=null && |
||||
this.createTime.equals(other.getCreateTime()))) && |
||||
((this.docCreator==null && other.getDocCreator()==null) || |
||||
(this.docCreator!=null && |
||||
this.docCreator.equals(other.getDocCreator()))) && |
||||
((this.extendContent==null && other.getExtendContent()==null) || |
||||
(this.extendContent!=null && |
||||
this.extendContent.equals(other.getExtendContent()))) && |
||||
((this.key==null && other.getKey()==null) || |
||||
(this.key!=null && |
||||
this.key.equals(other.getKey()))) && |
||||
((this.language==null && other.getLanguage()==null) || |
||||
(this.language!=null && |
||||
this.language.equals(other.getLanguage()))) && |
||||
((this.level==null && other.getLevel()==null) || |
||||
(this.level!=null && |
||||
this.level.equals(other.getLevel()))) && |
||||
((this.link==null && other.getLink()==null) || |
||||
(this.link!=null && |
||||
this.link.equals(other.getLink()))) && |
||||
((this.modelId==null && other.getModelId()==null) || |
||||
(this.modelId!=null && |
||||
this.modelId.equals(other.getModelId()))) && |
||||
((this.modelName==null && other.getModelName()==null) || |
||||
(this.modelName!=null && |
||||
this.modelName.equals(other.getModelName()))) && |
||||
((this.others==null && other.getOthers()==null) || |
||||
(this.others!=null && |
||||
this.others.equals(other.getOthers()))) && |
||||
((this.param1==null && other.getParam1()==null) || |
||||
(this.param1!=null && |
||||
this.param1.equals(other.getParam1()))) && |
||||
((this.param2==null && other.getParam2()==null) || |
||||
(this.param2!=null && |
||||
this.param2.equals(other.getParam2()))) && |
||||
((this.subject==null && other.getSubject()==null) || |
||||
(this.subject!=null && |
||||
this.subject.equals(other.getSubject()))) && |
||||
((this.targets==null && other.getTargets()==null) || |
||||
(this.targets!=null && |
||||
this.targets.equals(other.getTargets()))) && |
||||
((this.type==null && other.getType()==null) || |
||||
(this.type!=null && |
||||
this.type.equals(other.getType()))); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getAppName() != null) { |
||||
_hashCode += getAppName().hashCode(); |
||||
} |
||||
if (getCreateTime() != null) { |
||||
_hashCode += getCreateTime().hashCode(); |
||||
} |
||||
if (getDocCreator() != null) { |
||||
_hashCode += getDocCreator().hashCode(); |
||||
} |
||||
if (getExtendContent() != null) { |
||||
_hashCode += getExtendContent().hashCode(); |
||||
} |
||||
if (getKey() != null) { |
||||
_hashCode += getKey().hashCode(); |
||||
} |
||||
if (getLanguage() != null) { |
||||
_hashCode += getLanguage().hashCode(); |
||||
} |
||||
if (getLevel() != null) { |
||||
_hashCode += getLevel().hashCode(); |
||||
} |
||||
if (getLink() != null) { |
||||
_hashCode += getLink().hashCode(); |
||||
} |
||||
if (getModelId() != null) { |
||||
_hashCode += getModelId().hashCode(); |
||||
} |
||||
if (getModelName() != null) { |
||||
_hashCode += getModelName().hashCode(); |
||||
} |
||||
if (getOthers() != null) { |
||||
_hashCode += getOthers().hashCode(); |
||||
} |
||||
if (getParam1() != null) { |
||||
_hashCode += getParam1().hashCode(); |
||||
} |
||||
if (getParam2() != null) { |
||||
_hashCode += getParam2().hashCode(); |
||||
} |
||||
if (getSubject() != null) { |
||||
_hashCode += getSubject().hashCode(); |
||||
} |
||||
if (getTargets() != null) { |
||||
_hashCode += getTargets().hashCode(); |
||||
} |
||||
if (getType() != null) { |
||||
_hashCode += getType().hashCode(); |
||||
} |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(NotifyTodoSendContext.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoSendContext")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("appName"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "appName")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("createTime"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "createTime")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("docCreator"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "docCreator")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("extendContent"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "extendContent")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("key"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "key")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("language"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "language")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("level"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "level")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("link"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "link")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("modelId"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "modelId")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("modelName"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "modelName")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("others"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "others")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("param1"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "param1")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("param2"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "param2")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("subject"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "subject")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("targets"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "targets")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("type"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "type")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,596 @@
|
||||
/** |
||||
* NotifyTodoUpdateContext.java |
||||
* |
||||
* This file was auto-generated from WSDL |
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
||||
*/ |
||||
|
||||
package com.eco.plugin.xx.bjxdsso.webservice.task; |
||||
|
||||
public class NotifyTodoUpdateContext implements java.io.Serializable { |
||||
private String appName; |
||||
|
||||
private String createTime; |
||||
|
||||
private String docCreator; |
||||
|
||||
private String extendContent; |
||||
|
||||
private String key; |
||||
|
||||
private Integer level; |
||||
|
||||
private String link; |
||||
|
||||
private String modelId; |
||||
|
||||
private String modelName; |
||||
|
||||
private String others; |
||||
|
||||
private String param1; |
||||
|
||||
private String param2; |
||||
|
||||
private String subject; |
||||
|
||||
private int type; |
||||
|
||||
public NotifyTodoUpdateContext() { |
||||
} |
||||
|
||||
public NotifyTodoUpdateContext( |
||||
String appName, |
||||
String createTime, |
||||
String docCreator, |
||||
String extendContent, |
||||
String key, |
||||
Integer level, |
||||
String link, |
||||
String modelId, |
||||
String modelName, |
||||
String others, |
||||
String param1, |
||||
String param2, |
||||
String subject, |
||||
int type) { |
||||
this.appName = appName; |
||||
this.createTime = createTime; |
||||
this.docCreator = docCreator; |
||||
this.extendContent = extendContent; |
||||
this.key = key; |
||||
this.level = level; |
||||
this.link = link; |
||||
this.modelId = modelId; |
||||
this.modelName = modelName; |
||||
this.others = others; |
||||
this.param1 = param1; |
||||
this.param2 = param2; |
||||
this.subject = subject; |
||||
this.type = type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the appName value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return appName |
||||
*/ |
||||
public String getAppName() { |
||||
return appName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the appName value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param appName |
||||
*/ |
||||
public void setAppName(String appName) { |
||||
this.appName = appName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the createTime value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return createTime |
||||
*/ |
||||
public String getCreateTime() { |
||||
return createTime; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the createTime value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param createTime |
||||
*/ |
||||
public void setCreateTime(String createTime) { |
||||
this.createTime = createTime; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the docCreator value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return docCreator |
||||
*/ |
||||
public String getDocCreator() { |
||||
return docCreator; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the docCreator value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param docCreator |
||||
*/ |
||||
public void setDocCreator(String docCreator) { |
||||
this.docCreator = docCreator; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the extendContent value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return extendContent |
||||
*/ |
||||
public String getExtendContent() { |
||||
return extendContent; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the extendContent value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param extendContent |
||||
*/ |
||||
public void setExtendContent(String extendContent) { |
||||
this.extendContent = extendContent; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the key value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return key |
||||
*/ |
||||
public String getKey() { |
||||
return key; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the key value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param key |
||||
*/ |
||||
public void setKey(String key) { |
||||
this.key = key; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the level value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return level |
||||
*/ |
||||
public Integer getLevel() { |
||||
return level; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the level value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param level |
||||
*/ |
||||
public void setLevel(Integer level) { |
||||
this.level = level; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the link value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return link |
||||
*/ |
||||
public String getLink() { |
||||
return link; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the link value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param link |
||||
*/ |
||||
public void setLink(String link) { |
||||
this.link = link; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the modelId value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return modelId |
||||
*/ |
||||
public String getModelId() { |
||||
return modelId; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the modelId value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param modelId |
||||
*/ |
||||
public void setModelId(String modelId) { |
||||
this.modelId = modelId; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the modelName value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return modelName |
||||
*/ |
||||
public String getModelName() { |
||||
return modelName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the modelName value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param modelName |
||||
*/ |
||||
public void setModelName(String modelName) { |
||||
this.modelName = modelName; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the others value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return others |
||||
*/ |
||||
public String getOthers() { |
||||
return others; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the others value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param others |
||||
*/ |
||||
public void setOthers(String others) { |
||||
this.others = others; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the param1 value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return param1 |
||||
*/ |
||||
public String getParam1() { |
||||
return param1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the param1 value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param param1 |
||||
*/ |
||||
public void setParam1(String param1) { |
||||
this.param1 = param1; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the param2 value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return param2 |
||||
*/ |
||||
public String getParam2() { |
||||
return param2; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the param2 value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param param2 |
||||
*/ |
||||
public void setParam2(String param2) { |
||||
this.param2 = param2; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the subject value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return subject |
||||
*/ |
||||
public String getSubject() { |
||||
return subject; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the subject value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param subject |
||||
*/ |
||||
public void setSubject(String subject) { |
||||
this.subject = subject; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Gets the type value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @return type |
||||
*/ |
||||
public int getType() { |
||||
return type; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Sets the type value for this NotifyTodoUpdateContext. |
||||
* |
||||
* @param type |
||||
*/ |
||||
public void setType(int type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
private Object __equalsCalc = null; |
||||
public synchronized boolean equals(Object obj) { |
||||
if (!(obj instanceof NotifyTodoUpdateContext)) return false; |
||||
NotifyTodoUpdateContext other = (NotifyTodoUpdateContext) obj; |
||||
if (obj == null) return false; |
||||
if (this == obj) return true; |
||||
if (__equalsCalc != null) { |
||||
return (__equalsCalc == obj); |
||||
} |
||||
__equalsCalc = obj; |
||||
boolean _equals; |
||||
_equals = true && |
||||
((this.appName==null && other.getAppName()==null) || |
||||
(this.appName!=null && |
||||
this.appName.equals(other.getAppName()))) && |
||||
((this.createTime==null && other.getCreateTime()==null) || |
||||
(this.createTime!=null && |
||||
this.createTime.equals(other.getCreateTime()))) && |
||||
((this.docCreator==null && other.getDocCreator()==null) || |
||||
(this.docCreator!=null && |
||||
this.docCreator.equals(other.getDocCreator()))) && |
||||
((this.extendContent==null && other.getExtendContent()==null) || |
||||
(this.extendContent!=null && |
||||
this.extendContent.equals(other.getExtendContent()))) && |
||||
((this.key==null && other.getKey()==null) || |
||||
(this.key!=null && |
||||
this.key.equals(other.getKey()))) && |
||||
((this.level==null && other.getLevel()==null) || |
||||
(this.level!=null && |
||||
this.level.equals(other.getLevel()))) && |
||||
((this.link==null && other.getLink()==null) || |
||||
(this.link!=null && |
||||
this.link.equals(other.getLink()))) && |
||||
((this.modelId==null && other.getModelId()==null) || |
||||
(this.modelId!=null && |
||||
this.modelId.equals(other.getModelId()))) && |
||||
((this.modelName==null && other.getModelName()==null) || |
||||
(this.modelName!=null && |
||||
this.modelName.equals(other.getModelName()))) && |
||||
((this.others==null && other.getOthers()==null) || |
||||
(this.others!=null && |
||||
this.others.equals(other.getOthers()))) && |
||||
((this.param1==null && other.getParam1()==null) || |
||||
(this.param1!=null && |
||||
this.param1.equals(other.getParam1()))) && |
||||
((this.param2==null && other.getParam2()==null) || |
||||
(this.param2!=null && |
||||
this.param2.equals(other.getParam2()))) && |
||||
((this.subject==null && other.getSubject()==null) || |
||||
(this.subject!=null && |
||||
this.subject.equals(other.getSubject()))) && |
||||
this.type == other.getType(); |
||||
__equalsCalc = null; |
||||
return _equals; |
||||
} |
||||
|
||||
private boolean __hashCodeCalc = false; |
||||
public synchronized int hashCode() { |
||||
if (__hashCodeCalc) { |
||||
return 0; |
||||
} |
||||
__hashCodeCalc = true; |
||||
int _hashCode = 1; |
||||
if (getAppName() != null) { |
||||
_hashCode += getAppName().hashCode(); |
||||
} |
||||
if (getCreateTime() != null) { |
||||
_hashCode += getCreateTime().hashCode(); |
||||
} |
||||
if (getDocCreator() != null) { |
||||
_hashCode += getDocCreator().hashCode(); |
||||
} |
||||
if (getExtendContent() != null) { |
||||
_hashCode += getExtendContent().hashCode(); |
||||
} |
||||
if (getKey() != null) { |
||||
_hashCode += getKey().hashCode(); |
||||
} |
||||
if (getLevel() != null) { |
||||
_hashCode += getLevel().hashCode(); |
||||
} |
||||
if (getLink() != null) { |
||||
_hashCode += getLink().hashCode(); |
||||
} |
||||
if (getModelId() != null) { |
||||
_hashCode += getModelId().hashCode(); |
||||
} |
||||
if (getModelName() != null) { |
||||
_hashCode += getModelName().hashCode(); |
||||
} |
||||
if (getOthers() != null) { |
||||
_hashCode += getOthers().hashCode(); |
||||
} |
||||
if (getParam1() != null) { |
||||
_hashCode += getParam1().hashCode(); |
||||
} |
||||
if (getParam2() != null) { |
||||
_hashCode += getParam2().hashCode(); |
||||
} |
||||
if (getSubject() != null) { |
||||
_hashCode += getSubject().hashCode(); |
||||
} |
||||
_hashCode += getType(); |
||||
__hashCodeCalc = false; |
||||
return _hashCode; |
||||
} |
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc = |
||||
new org.apache.axis.description.TypeDesc(NotifyTodoUpdateContext.class, true); |
||||
|
||||
static { |
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.notify.xx/", "notifyTodoUpdateContext")); |
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("appName"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "appName")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("createTime"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "createTime")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("docCreator"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "docCreator")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("extendContent"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "extendContent")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("key"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "key")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("level"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "level")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("link"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "link")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("modelId"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "modelId")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("modelName"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "modelName")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("others"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "others")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("param1"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "param1")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("param2"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "param2")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("subject"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "subject")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
||||
elemField.setMinOccurs(0); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
elemField = new org.apache.axis.description.ElementDesc(); |
||||
elemField.setFieldName("type"); |
||||
elemField.setXmlName(new javax.xml.namespace.QName("", "type")); |
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); |
||||
elemField.setNillable(false); |
||||
typeDesc.addFieldDesc(elemField); |
||||
} |
||||
|
||||
/** |
||||
* Return type metadata object |
||||
*/ |
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
||||
return typeDesc; |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Serializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Serializer getSerializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanSerializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
/** |
||||
* Get Custom Deserializer |
||||
*/ |
||||
public static org.apache.axis.encoding.Deserializer getDeserializer( |
||||
String mechType, |
||||
Class _javaType, |
||||
javax.xml.namespace.QName _xmlType) { |
||||
return |
||||
new org.apache.axis.encoding.ser.BeanDeserializer( |
||||
_javaType, _xmlType, typeDesc); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue