text stringlengths 3 1.18M |
|---|
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.script.ScriptDAO;
import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.model.ScriptModel;
import com.wulinbus.model.ScriptOwnModel;
... |
package com.wulinbus.service.impl;
import java.io.IOException;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import com.fancy.common.results.Results;
import com.fancy.common.utils.FileUtil;
import com.fancy.common.utils.retry.RetryUtil;
import com.fa... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.user.RechargeOrderDao;
import com.wulinbus.model.RechargeOrderModel;
import com.wulinbus.service.RechargeOrderService;
@Service
public class ... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.render.RenderDao;
import com.wulinbus.model.RenderProviderModel;
import com.wulinbus.service.RenderService;
@Service
public class RenderServi... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import com.fancy.common.utils.DateUtil;
import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.model.ScriptModel;
import com.wulinbus.model.ScriptOwnModel;
import com.wulinbus.model.UserModel;
import com.wu... |
package com.wulinbus.service.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import com.fancy.common.utils.JsonBinder;
import com.wulinbus.dao.cache... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.script.RemitOrderDao;
import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.service.RemitOrderService;
@Service
public class Remit... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.user.UserCashLogDAO;
import com.wulinbus.model.UserCashLogModel;
import com.wulinbus.service.UserCashLogService;
import com.wulinbus.service.U... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.creative.CreativeOrderDAO;
import com.wulinbus.model.CreativeOrderModel;
import com.wulinbus.service.CreativeOrderService;
@Service
public cl... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.render.RenderBannerDao;
import com.wulinbus.model.RenderBannerModel;
import com.wulinbus.service.RenderBannerService;
@Service
public class R... |
package com.wulinbus.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wulinbus.dao.script.ScriptBannerDAO;
import com.wulinbus.model.ScriptBannerModel;
import com.wulinbus.service.ScriptBannerService;
@Service
public class S... |
package com.wulinbus.service;
import java.util.List;
import com.wulinbus.model.RenderBannerModel;
public interface RenderBannerService {
public RenderBannerModel getOne();
public List<RenderBannerModel> getAllRenderBanner();
public Integer delete(Integer rbid);
public void insert(RenderBannerMode... |
package com.wulinbus.service;
import org.springframework.web.multipart.MultipartFile;
import com.fancy.common.results.Results;
/**
* 文件存储Service 采用又拍CDN加速,故本地存储的同时,Copy一份到又拍云存储上, <br>
* 并同时生成适合各个客户端分辨率的图片。
*
*/
public interface FileStoreService {
/**
* 保存图片URL到文件,异常重试3次
*
* @param url
... |
package com.wulinbus.service;
import java.util.List;
import com.wulinbus.model.RemitOrderModel;
public interface RemitOrderService {
public RemitOrderModel getRemitOrderModelBySid(Integer sid);
public void insertRemitOrder(RemitOrderModel remitOrder);
public List<RemitOrderModel> getRemitOrderList(St... |
package com.wulinbus.service;
import java.util.List;
import com.wulinbus.model.CreativeOrderModel;
public interface CreativeOrderService {
public CreativeOrderModel getById(Integer order_id);
public CreativeOrderModel getByNum(String order_num);
public CreativeOrderModel getByUid(Integer cid,Inte... |
package com.wulinbus.service;
import java.util.List;
import com.wulinbus.model.RenderProviderModel;
public interface RenderService {
public List<RenderProviderModel> getRenderProviderList(String keyword,Integer start, Integer pageSize);
public Integer RenderProviderCount(String keyword);
public voi... |
package com.wulinbus.service;
/**
* 任务Service
*
*/
public interface TaskScriptService {
/**
* 任务实例
*
* @throws Throwable
*/
public void execute() throws Throwable;
}
|
package com.wulinbus.service;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.model.ScriptModel;
import com.wulinbus.model.ScriptOwnModel;
public interface ScriptService {
public void addScript(ScriptModel scriptModel);
... |
package com.wulinbus.service;
import java.util.List;
import com.wulinbus.model.UserCashLogModel;
public interface UserCashLogService {
public UserCashLogModel getById(Integer lid);
public List<UserCashLogModel> getList(Integer start, Integer count);
public Integer getListCount();
public List... |
package com.wulinbus.service;
import java.util.List;
import com.wulinbus.model.RechargeOrderModel;
public interface RechargeOrderService {
public void insert(RechargeOrderModel order);
public RechargeOrderModel getByNum(String order_num);
public void updateByOrderNum(RechargeOrderModel order);
... |
package com.wulinbus.dao.render;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.RenderBannerModel;
public interface RenderBannerDao {
public RenderBannerModel getOne();
public List<RenderBannerModel> getAllRenderBanner();
public Integer delete(@Param("... |
package com.wulinbus.dao.render;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.RenderProviderModel;
public interface RenderDao {
public List<RenderProviderModel> getRenderProviderList(@Param("keyword") String keyword,@Param("start") Integer start,@Param("page... |
package com.wulinbus.dao.user;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.UserCashLogModel;
public interface UserCashLogDAO {
public UserCashLogModel getById(@Param("lid")Integer lid);
public List<UserCashLogModel> getList(@Param("start")Integer sta... |
package com.wulinbus.dao.user;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.RechargeOrderModel;
public interface RechargeOrderDao {
public void insert(RechargeOrderModel order);
public RechargeOrderModel getByNum(@Param("order_num") String order_num);
... |
package com.wulinbus.dao.user;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.UserModel;
public interface UserDAO {
public void addPerUser(UserModel userModel);
public void addCompUser(UserModel userModel);
public void delete(UserM... |
package com.wulinbus.dao.creative;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.CreativeLikeFlagModel;
import com.wulinbus.model.CreativeModel;
public interface CreativeDAO {
public List<CreativeModel> findCreativeByTitle(@Param("search")String search);
... |
package com.wulinbus.dao.creative;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.CreativeOrderModel;
public interface CreativeOrderDAO {
public CreativeOrderModel getById(@Param("order_id")Integer order_id);
public CreativeOrderModel getByNum(@Param("... |
package com.wulinbus.dao.script;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.ScriptBannerModel;
public interface ScriptBannerDAO {
public ScriptBannerModel getById(@Param("bid")Integer bid);
public ScriptBannerModel getOne();
public List<ScriptB... |
package com.wulinbus.dao.script;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.RemitOrderModel;
public interface RemitOrderDao {
public RemitOrderModel getRemitOrderModelBySid(@Param("sid") Integer sid);
public void insertRemitOrder(RemitOrderModel remitO... |
package com.wulinbus.dao.script;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.model.ScriptModel;
import com.wulinbus.model.ScriptOwnModel;
public interface ScriptDAO {
public void addScript(ScriptModel scriptModel);
... |
package com.wulinbus.dao.creative_helper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wulinbus.model.CreativeHelperModel;
public interface CreativeHelperDao {
public List<CreativeHelperModel> getCreativeHelperList(@Param("keyword") String keyword,@Param("start") Integer... |
package com.wulinbus.utils;
/**
* 将汉字转换为拼音
* @author Champion.Wong
*
*/
public class Trans2PinYin {
private static int[] pyvalue = new int[] { -20319, -20317, -20304, -20295,
-20292, -20283, -20265, -20257, -20242, -20230, -20051, -20036,
-20032, -20026, -20002, -19990, -19986, -19982, -19976, -19... |
package com.wulinbus.utils;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import com.fancy.common.utils.FileUtil;
import com.fancy.common.utils.StringUtil;
public class iii {
public static int count = 0;
// public static void forEachFile(String parentName, String dirpat... |
package com.wulinbus.utils;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.jasig.cas.client.authentication.AttributePrincipal;
import com.fancy.common.utils.StringUtil;
public class CasUtil {
public static String getUid(HttpServletRequest request){
String uid = "";... |
package com.wulinbus.utils;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AuthCheck {
} |
package com.wulinbus.utils;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 权限等级注释类<br>
* 在需要权限控制的方法上AdminAuthCheck 就是表示需要登录验证的
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(Elem... |
package com.wulinbus.utils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
package com.wulinbus.interceptor;
import java.lang.reflect.Method;
import java.util.Map;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.jasig.cas.client.authentication.Attribute... |
package com.fancy.pay.alipay.sign;
import java.io.UnsupportedEncodingException;
import java.security.SignatureException;
import org.apache.commons.codec.digest.DigestUtils;
/**
* 功能:支付宝MD5签名处理核心文件,不需要修改
* 版本:3.3
* 修改日期:2012-08-17
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
* 该代码仅供学习... |
package com.fancy.pay.alipay.util.httpClient;
import org.apache.commons.httpclient.HttpException;
import java.io.IOException;
import java.net.UnknownHostException;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpConnectionManager;
import org.apache.commons.httpclient.... |
package com.fancy.pay.alipay.util.httpClient;
import com.fancy.pay.alipay.config.AlipayConfig;
import org.apache.commons.httpclient.Header;
import java.io.UnsupportedEncodingException;
/* *
*类名:HttpResponse
*功能:Http返回对象的封装
*详细:封装Http返回信息
*版本:3.3
*日期:2011-08-17
*说明:
*以下代码只是为了方便商户测试而提供的样例代码,商户可以根据... |
package com.fancy.pay.alipay.util.httpClient;
import org.apache.commons.httpclient.NameValuePair;
/* *
*类名:HttpRequest
*功能:Http请求对象的封装
*详细:封装Http请求
*版本:3.3
*日期:2011-08-17
*说明:
*以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
*/
public class HttpRequest {... |
/*
* Alipay.com Inc.
* Copyright (c) 2004-2005 All Rights Reserved.
*/
package com.fancy.pay.alipay.util.httpClient;
/* *
*类名:HttpResultType
*功能:表示Http返回的结果字符方式
*详细:表示Http返回的结果字符方式
*版本:3.3
*日期:2012-08-17
*说明:
*以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*该代码仅供学习和研究支付宝接口使用,只是提供一个参... |
package com.fancy.pay.alipay.util;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.httpclient.NameValuePair;
import org.dom4j.Document;
import org.dom4j.DocumentExcepti... |
package com.fancy.pay.alipay.util;
import java.util.Date;
import java.util.Random;
import java.text.SimpleDateFormat;
import java.text.DateFormat;
/* *
*类名:UtilDate
*功能:自定义订单类
*详细:工具类,可以用作获取系统日期、订单编号等
*版本:3.3
*日期:2012-08-17
*说明:
*以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*该代码仅... |
package com.fancy.pay.alipay.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.codec.digest.DigestUtils;
import org.apach... |
package com.fancy.pay.alipay.util;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Map;
import com.fancy.pay.alipay.config.AlipayConfig;
import com.fancy.pay.alipay.sign.MD5;
/* *
*类名:AlipayNotify
*功能:支付宝通知处理类
... |
package com.fancy.pay.alipay.config;
/* *
*类名:AlipayConfig
*功能:基础配置类
*详细:设置帐户有关信息及返回路径
*版本:3.3
*日期:2012-08-10
*说明:
*以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
*提示:如何获取安全校验码和合作身份者ID
*1.用您的签约支付宝账号登录支付宝网站(www.alipay.com)
*2.点击“商家服务”(https://b.alipay.c... |
package com.fancy.common.constant;
/**
* 处理结果Code常量文件
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public interface ResponseConstants {
/**
* 请求正常处理完毕
*/
public static final int SC_OK = 200;
/**
* 请求参数存在错误
*/
public static final i... |
package com.fancy.common.constant;
import java.util.HashMap;
import java.util.Map;
/**
*
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class LBSConstants {
/** BUMP最大允许阻塞的线程 **/
public final static int BUMP_THREAD_MAX_SIZE = 50;
/** ... |
package com.fancy.common.constant.i18n;
/**
* 权限模块国际化code
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nMarketing implements BaseI18n {
REQUIRED_KEYWORD("marketing.required.keyword"),
REQUIRED_AREA("marketing.required.area"),
... |
package com.fancy.common.constant.i18n;
/**
* 网站体检国际化code
*
* @author wlei 2013-4-16上午11:09:59
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nSite implements BaseI18n {
/**
* url参数不能为空
*/
REQUIRED_ACCOUNT("site.required.url"),
;
private final String messageCode... |
package com.fancy.common.constant.i18n;
/**
* 用户模块国际化code
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nUser implements BaseI18n {
/**
* 用户帐户已经存在
*/
ACCOUNT_REPEAT("user.account.repeat"),
/**
* 账户不能为空
*/
ACCOUNT_REQ... |
package com.fancy.common.constant.i18n;
/**
* 国际化code接口<br>
* 所有的国际化code枚举类都应该继承此接口,切记切记,土豆会感谢你的
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public interface BaseI18n {
/**
* 获取国际化code
*
* @return
*/
public String getMessageCode();
... |
package com.fancy.common.constant.i18n;
/**
* 后台管理模块国际化code
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nAdwords implements BaseI18n {
/**
* 您的帐号未绑定Google Adwords帐号
*/
ACCOUNT_NOT_BINDING("adwords.account.not_binding"),
;
... |
package com.fancy.common.constant.i18n;
/**
* 订阅模块国际化code
*
* @author wlei 2013-4-16上午11:09:59
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nSubscribe implements BaseI18n {
/**
* url参数不能为空
*/
REQUIRED_ID("subscribe.required.id"),
;
private final String message... |
package com.fancy.common.constant.i18n;
/**
* 权限模块国际化code
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nAuth implements BaseI18n {
/**
* 验证Token非法,请登录
*/
TOKEN_ILLEGAL("auth.token.illegal"),
/**
* 验证Token不能为空,请登录
*/
... |
package com.fancy.common.constant.i18n;
/**
* 共用模块国际化code
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nCommon implements BaseI18n {
/**
* 地域ID必需
*/
AREA_ID_REQUIRED("common.area_id.required"),
;
private final String me... |
package com.fancy.common.constant.i18n;
/**
* 趋势分析国际化
*
* @author wlei 2013-4-16上午11:09:59
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nTrend implements BaseI18n {
REQUIRED_PRODUCT("trend.required.product"),
REQUIRED_AREA("trend.required.area"),
REQUIRED_CATEGORY("t... |
package com.fancy.common.constant.i18n;
/**
* 后台管理模块国际化code
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum I18nAdmin implements BaseI18n {
/**
* 帐户不存在
*/
ACCOUNT_NOT_EXIST("admin.account.not_exist"),
/**
* 账户密码不正确
*/
PAS... |
package com.fancy.common;
import java.util.Map;
import org.springframework.ui.Model;
import org.springframework.web.servlet.ModelAndView;
import com.fancy.common.constant.ResponseConstants;
/**
* 设置返回数据结构
*
*/
public class DataPipe {
/**
* 返回结构meta key
*/
private static final String CON... |
package com.fancy.common;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar... |
package com.fancy.common;
/**
* 设备平台(0:web,1:ios,2:Android,3:wp,4:BB10)
*
* @author xinfeng.hu 2013-3-15下午7:33:33
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public enum DeviceTypeEnum {
/**
* 浏览器平台
*/
WEB(0),
/**
* IOS平台
*/
IOS(1),
/**
* Android平台
*/
ANDROID(2),
... |
package com.fancy.common.annotation;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* 注释数据源名称,主键及排序字段与方式
*
* @author xinfeng.hu 2013-4-9下午10:08:23
* @versi... |
package com.fancy.common.annotation;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* 注释数据源字段的名称,及格式化方式
*
* @author xinfeng.hu 2013-4-9下午09:53:13
* @versi... |
package com.fancy.common.exception;
import java.util.Locale;
import com.fancy.common.constant.ResponseConstants;
import com.fancy.common.constant.i18n.BaseI18n;
/**
* 缓存异常类
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class CacheException e... |
package com.fancy.common.exception;
import java.util.Locale;
import com.fancy.common.constant.ResponseConstants;
import com.fancy.common.constant.i18n.BaseI18n;
/**
* 参数错误。特指从请求方显式传入的参数错误,如参数缺失、参数格式不正确、不在取值范围等。
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先... |
package com.fancy.common.exception;
import java.util.Locale;
import com.fancy.common.constant.ResponseConstants;
import com.fancy.common.constant.i18n.BaseI18n;
/**
* 参数错误。特指从请求方显式传入的参数错误,如参数缺失、参数格式不正确、不在取值范围等。
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先... |
package com.fancy.common.exception;
import java.util.Locale;
import com.fancy.common.constant.ResponseConstants;
import com.fancy.common.constant.i18n.BaseI18n;
import com.fancy.common.utils.SpringUtil;
/**
* 异常基类
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司... |
package com.fancy.common;
import java.io.Serializable;
/**
* 权限信息
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class AuthToken implements Serializable {
/**
* 序列化版本号
*/
private static final long serialVersionUID = 531539716540860190... |
package com.fancy.common.spi.proxy;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
/**
* 代理认证类
*
* @author wlei 2013-4-13下午2:51:01
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class DefaultProxyAuthenticator extends Authenticator {
private String user;
... |
package com.fancy.common.spi.proxy;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URI;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.c... |
package com.fancy.common;
import java.util.Locale;
import org.apache.commons.lang.StringUtils;
/**
* 登录信息以及多国语言
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class LoginContext {
/**
* 用户登录信息
*/
private static final ThreadLocal<Au... |
package com.fancy.common.utils;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.... |
package com.fancy.common.utils;
import java.util.Locale;
import javax.servlet.ServletContext;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition;
import org.springframework.beans.fact... |
package com.fancy.common.utils;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import org.apache.commons.lang.time.DurationFormatUtils;
/**
... |
package com.fancy.common.utils.http;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.http.HttpEntity;
import org.apache... |
package com.fancy.common.utils.http;
import java.io.IOException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
... |
package com.fancy.common.utils;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Ca... |
package com.fancy.common.utils.lbs;
import com.fancy.common.constant.LBSConstants;
/**
* 计数器--控制当前BUMP阻塞的线程数
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class LBSCounter {
private static int value = 0;
public static synchronized int ge... |
package com.fancy.common.utils.lbs;
/**
* LBS计算两点距离
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class LBSDistance {
// 地球半径。单位:米。
private static double EARTH_RADIUS = 6371004;
private double sin(double a) {
return Math.sin(a);
}
... |
package com.fancy.common.utils;
import static org.codehaus.jackson.map.DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import org.apache.commons.lang.StringUtils;
import org.codehaus.jackson.JsonParser;
im... |
package com.fancy.common.utils;
import java.util.Locale;
import org.springframework.util.Assert;
public class LocaleUtil {
/**
* 获取语言
*
* @param language
* @return
*/
public static Locale getLocale(final String language) {
Assert.notNull(language, "language can not be null");
return... |
package com.fancy.common.utils.retry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.Assert;
/**
* 异常重试工具类
*
* @author xinfeng.hu 2013-3-28下午9:09:50
* @version 1.0.0
* @param <T>
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class RetryUtil {
/**
* 日志记... |
package com.fancy.common.utils;
import org.apache.commons.lang.StringUtils;
import com.fancy.common.exception.DataErrorException;
/**
* URL静态资源公共类.
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public final class URIs {
// 空间名
//private static... |
package com.fancy.common.utils;
import java.io.UnsupportedEncodingException;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 将汉字转化为全拼
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
... |
package com.fancy.common.utils;
import java.math.BigDecimal;
/**
* 格式化帮助类
*
* @author wlei 2013-4-24下午4:28:57
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class FormatUtil {
/**
* 格式化成小数点后两位
*
* @param price
* @return
*/
public static Double formatDouble(double pri... |
package com.fancy.common.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
imp... |
package com.fancy.common.utils;
import java.io.FileInputStream;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 获取配置信息类
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public final class Config {
priva... |
package com.fancy.common.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingExcepti... |
package com.fancy.common.security;
import java.security.Key;
import java.security.Security;
import javax.crypto.Cipher;
/**
* DES加密
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class DES {
private static String strDefaultKey = "be@ngt4_... |
/*
* Created on 2003-11-26
*
* Alibaba.com Inc.
* Copyright (c) 1999-2002 All Rights Reserved.
*/
package com.fancy.common.security;
import java.io.ByteArrayOutputStream;
import java.util.Random;
import javax.servlet.http.HttpServletRequest;
/**
* base64加密
*
* @author xinfeng.hu 2013-3-13... |
package com.fancy.common.security;
import org.apache.commons.codec.digest.DigestUtils;
/**
* MD5加密
*
* @author xinfeng.hu 2013-3-13下午12:15:34
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class MD5 {
private final static char[] hexDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8... |
package com.fancy.common;
/**
* 上传图片类型
*
*/
public enum StoreFileTypeEnum {
TEMPLATE(500, "template"),
/**
* 内容图片类型
*/
UPLOAD(600, "upload"),
//Ckfinder
FILES(700, "file"),
IMAGES(800, "image"),
FLASH(900, "flash"),
MEDIA(1400, "media"),
/**
* 临时目录
*/
TEMP(... |
package com.fancy.common.results;
import java.io.Serializable;
/**
* 结果基类
*
* @author xinfeng.hu 2013-3-19下午2:29:15
* @version 1.0.0
* @category 杭州广桥网络技术有限公司(商业先知)
*/
public class Results<T> implements Serializable {
/**
* 序列化版本号
*/
private static final long serialVersionUID = -858883161... |
package org.tju.ebs.domain.service;
public interface IBaseService {
}
|
package org.tju.ebs.domain.service;
import java.util.Map;
public interface ISysCountryService extends IBaseService {
public static final String SERVICE_NAME = "ISysCountryService";
public Map<String, Object> getSysCountryList(int pageNo, int pageSize);
public Map<String, Object> getSysCountryListByFilter(int pag... |
package org.tju.ebs.domain.service.impl;
import java.util.Map;
import org.tju.ebs.domain.manager.SysCountryManager;
import org.tju.ebs.domain.service.ISysCountryService;
public class SysCountryServiceImpl implements ISysCountryService {
private SysCountryManager sysCountryMgr;
public Map<String, Object> getSysCo... |
package org.tju.ebs.domain.service.impl;
import java.util.List;
import org.tju.ebs.bean.SysMenu;
import org.tju.ebs.bean.SysObject;
import org.tju.ebs.bean.SysObjectProperty;
import org.tju.ebs.bean.SysParam;
import org.tju.ebs.domain.manager.SysMenuManager;
import org.tju.ebs.domain.manager.SysObjectManager;
import ... |
package org.tju.ebs.domain.service;
import java.util.List;
import org.tju.ebs.bean.SysMenu;
public interface ISysMenuService extends IBaseService {
public static final String SERVICE_NAME = "ISysMenuService";
public List<SysMenu> getSysMemuList(String userId);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.