code
stringlengths
3
1.18M
language
stringclasses
1 value
package com.legendshop.business.helper; import com.legendshop.util.Arith; public class AlipayAccount { private String account; private Double money; private int type; public String getAccountInfo(Double totalCash, String memo) { StringBuffer sb = new StringBuffer(); ...
Java
package com.legendshop.business.helper; import com.legendshop.event.TaskItem; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class TaskThread extends Thread { private static Logger log = LoggerFactory.getLogger(TaskThread.class); public TaskItem item; public TaskThrea...
Java
package com.legendshop.business.helper; import com.legendshop.util.AppUtils; import java.util.List; public class AlipayAccountHelper { private List<AlipayAccount> alipayAccounts; public String getAccountInfo(String totalCash, String memo) { String result = ""; Double total; ...
Java
package com.legendshop.business.helper; import com.legendshop.command.framework.State; import com.legendshop.core.exception.InternalException; import com.legendshop.core.helper.Checker; import com.legendshop.model.UserMessages; import javax.servlet.http.HttpServletRequest; public class InstallChecker implemen...
Java
package com.legendshop.business.helper; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.security.core.Authentication; import org.springframework.security.web.authentic...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; public enum ShopTypeEnum implements IntegerEnum { PERSONAL(Integer.valueOf(0)), BUSINESS(Integer.valueOf(1)); private Integer num; public Integer value() { return this.num; } ...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.StringEnum; public enum SubStatusEnum implements StringEnum { ORDER_CAPTURE("CA"), ORDER_DEL("DE"), PRICE_CHANGE("PC"), CREDIT_SCORE("CS"), DEBIT_SCORE("DS"), ORDER_OVER_TIME("OT"), CHANGE_ST...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.StringEnum; public enum RoleEnum implements StringEnum { ROLE_SUPERVISOR("1"), ROLE_ADMIN("2"), ROLE_USER("3"); private final String value; private RoleEnum(String value) { this.value = va...
Java
package com.legendshop.business.common; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; import org.displaytag.export.excel.ExcelHssfView; public class Simp...
Java
package com.legendshop.business.common.download; import com.legendshop.command.framework.State; import com.legendshop.command.framework.StateImpl; import com.legendshop.core.ContextServiceLocator; import com.legendshop.core.UserManager; import com.legendshop.core.constant.FunctionEnum; import com.legendshop.cor...
Java
package com.legendshop.business.common.download; import java.io.File; import java.io.FileInputStream; import java.net.URLEncoder; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; public class DownloadFileUtil { private static Downlo...
Java
package com.legendshop.business.common.download; public abstract interface DownLoadCallBack { public abstract void afterDownload(Object paramObject); public abstract boolean checkCanDownload(String paramString1, String paramString2); public abstract boolean isUserOrderProduct(Long...
Java
package com.legendshop.business.common; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; import org.displaytag.export.CsvView; public class SimpleChineseCsv...
Java
package com.legendshop.business.common; import java.util.List; import net.sf.json.JSONObject; import com.legendshop.model.dynamic.Item; import com.legendshop.model.dynamic.Model; import com.legendshop.model.dynamic.ModelType; import com.legendshop.util.AppUtils; public class DynamicPropertiesHelper { ...
Java
package com.legendshop.business.common; import com.legendshop.model.dynamic.Item; import com.legendshop.model.dynamic.Model; public class SimpleDynamicPropertiesHelper extends DynamicPropertiesHelper { public StringBuffer generateSelect(Model model, StringBuffer sb) { sb.append(model.getId()).appen...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; public enum ProductStatusEnum implements IntegerEnum { PROD_ONLINE(Integer.valueOf(1)), PROD_OFFLINE(Integer.valueOf(0)); private Integer num; public Integer value() { return this.nu...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; public enum NewsCategoryStatusEnum implements IntegerEnum { NEWS_OFF(Integer.valueOf(2)), NEWS_NEWS(Integer.valueOf(1)), NEWS_TOP(Integer.valueOf(0)), NEWS_SORT(Integer.valueOf(3)), NEWS_BOTTO...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.StringEnum; public enum ProductTypeEnum implements StringEnum { PRODUCT("P"), GROUP("G"), SECOND_HAND("S"), DISCOUNT("D"); private String value; public String value() { return this....
Java
package com.legendshop.business.common; import com.legendshop.core.helper.FunctionUtil; import com.legendshop.model.entity.Basket; import com.legendshop.model.entity.Product; import com.legendshop.model.entity.ShopDetail; import com.legendshop.search.LuceneIndexer; import com.legendshop.search.SearchEntity; im...
Java
package com.legendshop.business.common; import com.lowagie.text.BadElementException; import com.lowagie.text.Cell; import com.lowagie.text.Chunk; import com.lowagie.text.Document; import com.lowagie.text.Font; import com.lowagie.text.FontFactory; import com.lowagie.text.HeaderFooter; import com....
Java
package com.legendshop.business.common; import java.io.Serializable; import java.util.Date; public class SubForm implements Serializable { private static final long serialVersionUID = -6924455471052900466L; private Double total; private Long payType; private String ...
Java
package com.legendshop.business.common.page; import com.legendshop.core.constant.PageDefinition; import com.legendshop.core.constant.PagePathCalculator; import javax.servlet.http.HttpServletRequest; public enum FowardPage implements PageDefinition { VARIABLE(""), INDEX_QUERY("/index"), ADV_LI...
Java
package com.legendshop.business.common.page; import com.legendshop.core.constant.PageDefinition; import com.legendshop.core.constant.PagePathCalculator; import javax.servlet.http.HttpServletRequest; public enum FrontPage implements PageDefinition { VARIABLE(""), ERROR_PAGE("/common/error"), I...
Java
package com.legendshop.business.common.page; import com.legendshop.core.constant.PageDefinition; import com.legendshop.core.constant.PagePathCalculator; import javax.servlet.http.HttpServletRequest; public enum TilesPage implements PageDefinition { VARIABLE(""), NO_LOGIN("loginhint."), AFTER_...
Java
package com.legendshop.business.common.page; import com.legendshop.core.constant.PageDefinition; import com.legendshop.core.constant.PagePathCalculator; import javax.servlet.http.HttpServletRequest; public enum RedirectPage implements PageDefinition { VARIABLE(""); private final String value; ...
Java
package com.legendshop.business.common.page; import com.legendshop.core.constant.PageDefinition; import com.legendshop.core.constant.PagePathCalculator; import javax.servlet.http.HttpServletRequest; public enum BackPage implements PageDefinition { VARIABLE(""), BACK_ERROR_PAGE("/common/error"), ...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.StringEnum; public enum VisitTypeEnum implements StringEnum { INDEX("0"), HW("1"); private final String value; private VisitTypeEnum(String value) { this.value = value; } public S...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; public enum CommentTypeEnum implements IntegerEnum { COMMENT_UN_READ(Integer.valueOf(0)), COMMENT_READED(Integer.valueOf(1)), COMMONTALK(Integer.valueOf(2)); private Integer num; publi...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; import java.io.PrintStream; public enum OrderStatusEnum implements IntegerEnum { UNPAY(Integer.valueOf(1)), PADYED(Integer.valueOf(2)), CONSIGNMENT(Integer.valueOf(3)), SUCCESS(Integer.valueOf(4)), ...
Java
package com.legendshop.business.common.fck; import com.legendshop.core.UserManager; import com.legendshop.core.constant.ParameterEnum; import com.legendshop.core.exception.PermissionException; import com.legendshop.core.helper.FileProcessor; import com.legendshop.core.helper.PropertiesUtil; import java.io.IOExc...
Java
package com.legendshop.business.common.fck; import com.legendshop.core.exception.PermissionException; import com.legendshop.core.helper.PropertiesUtil; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import net.fckeditor.requestcycle.impl.ServerRootPathBuilder; public clas...
Java
package com.legendshop.business.common.fck; import javax.servlet.http.HttpServletRequest; import net.fckeditor.requestcycle.UserAction; public class EnabledUserAction implements UserAction { public boolean isCreateFolderEnabled(HttpServletRequest request) { return true; } public boo...
Java
package com.legendshop.business.common; public abstract interface CacheKeys { public static final String ADVERTISEMENTDAO_GETADVERTISEMENT = "AdvertisementDao_getAdvertisement"; public static final String EXTERNALLINKDAO_GETEXTERNALLINKORDERBYBS = "ExternalLinkDao_getExternalLinkOrderbybs"; pub...
Java
package com.legendshop.business.common; import com.legendshop.core.AttributeKeys; public class Constants implements AttributeKeys { public static final String BASKET_KEY = "BASKET_KEY"; public static final String BASKET_COUNT = "BASKET_COUNT"; public static final String PRODU...
Java
package com.legendshop.business.common; import com.legendshop.core.AttributeKeys; import com.legendshop.core.ContextServiceLocator; import com.legendshop.core.StartupService; import com.legendshop.core.helper.PropertiesUtil; import com.legendshop.core.helper.RealPathUtil; import com.legendshop.util.AppUtils; i...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; public enum MyLeagueEnum implements IntegerEnum { ONGOING(Integer.valueOf(0)), AGREE(Integer.valueOf(1)), DENY(Integer.valueOf(2)), NONE(Integer.valueOf(3)), DONE(Integer.valueOf(4)), T...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; public enum ShopStatusEnum implements IntegerEnum { ONLINE(Integer.valueOf(1)), AGREE(Integer.valueOf(1)), OFFLINE(Integer.valueOf(0)), AUDITING(Integer.valueOf(-1)), REJECT(Integer.valueOf(-2...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.StringEnum; import java.io.PrintStream; public enum RegisterEnum implements StringEnum { REGISTER_SUCCESS("reg.success.actived"), REGISTER_NO_USER_FOUND("user.isNotExist"), REGISTER_CODE_NOT_MATCH("error.image.validati...
Java
package com.legendshop.business.common; import com.legendshop.core.constant.IntegerEnum; import com.legendshop.model.entity.PayType; public enum PayTypeEnum implements IntegerEnum { ALI_DIRECT_PAY(Integer.valueOf(1)), ALI_PAY(Integer.valueOf(2)), PAY_AT_GOODS_ARRIVED(Integer.valueOf(3)); ...
Java
package com.legendshop.core.tag; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.SimpleTagSupport; import com.legendshop.core...
Java
package com.legendshop.core.tag; import java.io.IOException; import java.net.URLEncoder; import javax.servlet.jsp.JspException; import org.apache.commons.lang.StringUtils; import com.legendshop.core.AttributeKeys; public class URLTag extends LegendShopTag { public static final String URL_ENCODE = "...
Java
package com.legendshop.core.tag; import java.io.IOException; public class TemplateResourceTag extends LegendShopTag { private String _$1; public void doTag() throws IOException { //TODO 为啥会多加了 128 // String str = 128 + request().getContextPath() + this._$1; String str = request().g...
Java
package com.legendshop.core.tag; import com.legendshop.core.helper.ResourceBundleHelper; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Locale; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.DynamicAttributes; import org.springframework....
Java
package com.legendshop.core.tag; import javax.servlet.jsp.tagext.TagSupport; import com.legendshop.core.helper.PropertiesUtil; public class SettingsTag extends TagSupport { private static final long serialVersionUID = -8943927608529578818L; private String _$1; public int doStartTag(...
Java
package org.springframework.web.servlet.mvc.annotation; import com.legendshop.central.license.LicenseEnum; import com.legendshop.core.exception.PermissionException; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.serv...
Java
package com.legendshop.central.install; import com.legendshop.core.ContextServiceLocator; import com.legendshop.core.StartupService; import com.legendshop.core.constant.ConfigPropertiesEnum; import com.legendshop.core.datasource.RefreshableDataSource; import com.legendshop.core.exception.InternalException; impo...
Java
package com.legendshop.central.install; import java.io.PrintStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class DBManager { Logger _$6...
Java
package com.legendshop.central.install; public class PropertiesException extends RuntimeException { public PropertiesException(String paramString) { super(paramString); } }
Java
package com.legendshop.central.install; public class DBException extends RuntimeException { }
Java
package com.legendshop.central.install; public class DbInfo { private Integer _$2; private String _$1; public Integer getResult() { return this._$2; } public void setResult(Integer paramInteger) { this._$2 = paramInteger; } public String getDesc() { return this._$1...
Java
package com.legendshop.central.install; import java.sql.Connection; import java.sql.DatabaseMetaData; import javax.servlet.http.HttpServletRequest; public class TestDB { private Integer _$3 = Integer.valueOf(0); private Integer _$2 = Integer.valueOf(1); private Integer _$1 = Integer.valueOf(2); p...
Java
package com.legendshop.central.install; import javax.servlet.http.HttpServletRequest; public abstract interface Setup { public abstract void startSetup(HttpServletRequest paramHttpServletRequest); }
Java
package com.legendshop.central; import com.legendshop.central.license.BusinessModeEnum; import com.legendshop.central.license.HealthCheckImpl; import com.legendshop.core.constant.ConfigPropertiesEnum; import com.legendshop.core.helper.PropertiesUtil; import com.legendshop.core.page.PagerUtil; import javax.servl...
Java
package com.legendshop.central.event; import com.legendshop.central.license.LicenseEnum; import com.legendshop.central.license.LicenseHelper; import com.legendshop.event.EventContext; import com.legendshop.event.processor.BaseProcessor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.Htt...
Java
package com.legendshop.central.event; import com.legendshop.central.license.LSResponse; import com.legendshop.central.license.LicenseEnum; import com.legendshop.central.license.LicenseHelper; import com.legendshop.event.EventContext; import com.legendshop.event.processor.BaseProcessor; import javax.servlet.Serv...
Java
package com.legendshop.central.event; import com.legendshop.central.dao.CentralDao; import com.legendshop.central.license.LSResponse; import com.legendshop.central.license.LicenseEnum; import com.legendshop.core.constant.ParameterEnum; import com.legendshop.core.helper.PropertiesUtil; import com.legendshop.even...
Java
package com.legendshop.central.event; import com.legendshop.central.license.LSResponse; import com.legendshop.central.license.LicenseEnum; import com.legendshop.event.EventContext; import com.legendshop.event.processor.BaseProcessor; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequ...
Java
package com.legendshop.central.license; import java.io.Serializable; public class LSRequest extends DtoEntity implements Serializable { private static final long serialVersionUID = -2573903794153845729L; private String _$9; private String _$8; private String _$7; private String _$6; private ...
Java
package com.legendshop.central.license; public class DtoEntity { private String _$1; public String getAction() { return this._$1; } public void setAction(String paramString) { this._$1 = paramString; } }
Java
package com.legendshop.central.license; import com.legendshop.core.constant.ConfigPropertiesEnum; import com.legendshop.core.helper.PropertiesUtil; import com.legendshop.util.AppUtils; import com.legendshop.util.TimerUtil; import com.legendshop.util.converter.ByteConverter; import com.legendshop.util.des.DES2; ...
Java
package com.legendshop.central.license; import javax.servlet.ServletContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HealthCheckImpl implements HealthCheck { protected Logger log = LoggerFactory.getLogger(HealthCheckImpl.class); private int _$3 = 10800000; private fina...
Java
package com.legendshop.central.license; import com.legendshop.core.constant.StringEnum; public enum LicenseWarnMessage implements StringEnum { EXPIRED_WARNING(",请购买商业版权"), EXPIRED_ERROR(",已经过期,请购买商业版权"), SYSTEM_ERROR(",系统错误,请确认是否安装成功"); private final String _$2; private LicenseWarnMessage(String param...
Java
package com.legendshop.central.license; import com.legendshop.core.exception.PermissionException; import java.io.IOException; import java.io.PrintStream; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.HttpMethod; import ...
Java
package com.legendshop.central.license; import com.legendshop.core.constant.StringEnum; public enum BusinessModeEnum implements StringEnum { B2C("单用户"), C2C("多用户"); private final String _$2; private BusinessModeEnum(String paramString) { this._$2 = paramString; } public String value() { return...
Java
package com.legendshop.central.license; import java.io.Serializable; public class LSResponse extends DtoEntity implements Serializable { private static final long serialVersionUID = 5411216601389890098L; private String _$8; private String _$7; private String _$6; private String _$5; private ...
Java
package com.legendshop.central.license; import com.legendshop.core.constant.StringEnum; public enum LicenseEnum implements StringEnum { B2C_ALWAYS("单用户终身正式版"), C2C_ALWAYS("多用户终身正式版"), B2C_YEAR("单用户年度正式版"), C2C_YEAR("多用户年度正式版"), FREE("免费版"), EXPIRED("免费版"), UNKNOWN("未知版本"), UN_AUTH("未授权系统"); priv...
Java
package com.legendshop.central.license; public abstract interface HealthCheck extends Runnable { public abstract String check(); }
Java
package com.legendshop.central.dao.impl; import com.legendshop.central.dao.CentralDao; import com.legendshop.core.dao.impl.BaseDaoImpl; public class CentralDaoImpl extends BaseDaoImpl implements CentralDao { public Long getMaxShopDetail() { return (Long)findUniqueBy("select count(*) from ShopDetai...
Java
package com.legendshop.central.dao; public abstract interface CentralDao { public abstract Long getMaxShopDetail(); }
Java
package com.legendshop.central; import com.legendshop.core.plugins.Plugin; import com.legendshop.core.plugins.PluginConfig; import javax.servlet.ServletContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CentralPlugin implements Plugin { private final Logger _$2 = LoggerFacto...
Java
package com.legendshop.util; import java.io.IOException; import java.util.Enumeration; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import jav...
Java
package com.legendshop.util; import java.io.File; public class FileTimeWrapper implements Comparable<Object> { private File file; public FileTimeWrapper(File file) { this.file = file; } public int compareTo(Object obj) { if (obj instanceof FileTimeWrapper) { ...
Java
package com.legendshop.util; import java.sql.Timestamp; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.List; public class DateUtil { public stat...
Java
package com.legendshop.util.xml; import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.io.StringReader; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.dom4j.Document; import o...
Java
package com.legendshop.util.xml; public class ConfigException extends Exception { private static final long serialVersionUID = 2878865248118400325L; public ConfigException() { } public ConfigException(String paramString) { super(paramString); } public ConfigEx...
Java
package com.legendshop.util; import java.io.PrintStream; import java.text.DateFormat; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import org.apache.log4j.Logger; public class TimerUtil { privat...
Java
package com.legendshop.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.Serializable; import java.text.NumberFormat; import java.text.ParseException; import java.text.SimpleDateFormat; impor...
Java
package com.legendshop.util; import org.apache.commons.beanutils.Converter; public final class StringConverter implements Converter { public Object convert(Class paramClass, Object paramObject) { if ((paramObject == null) || ("".equals(paramObject.toString()))) return null; ret...
Java
package com.legendshop.util.sql; import com.legendshop.util.AppUtils; import java.util.HashMap; public class ParamsMap extends HashMap<String, String> { private static final long serialVersionUID = -7720526189745315572L; public void addParams(String paramString1, String paramString2) { i...
Java
package com.legendshop.util.sql; public class ObjectSignature { protected String objClassName; protected String methodName = null; public ObjectSignature(String paramString) { this.objClassName = paramString; } public String getObjectClassName() { return this.ob...
Java
package com.legendshop.util.sql; import java.util.HashMap; import java.util.Map; import org.apache.log4j.Logger; import org.apache.oro.text.regex.MalformedPatternException; import org.apache.oro.text.regex.MatchResult; import org.apache.oro.text.regex.Pattern; import org.apache.oro.text.regex.PatternMatcherI...
Java
package com.legendshop.util.sql; import java.io.File; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.log4j.Logger; import com.legendshop.util.xml.Configure; public class CodeIte...
Java
package com.legendshop.util.sql; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.apache.log4j.Logger; import org.springframework.core.io.ClassPathResource; import...
Java
package com.legendshop.util; import java.io.PrintStream; import java.math.BigDecimal; public class Arith { private static final int _$1 = 10; public static double add(double paramDouble1, double paramDouble2) { BigDecimal localBigDecimal1 = new BigDecimal( Double.toString(pa...
Java
package com.legendshop.util; import java.io.File; import java.io.FileInputStream; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; public class DownloadFileUtil { private static DownloadFileUtil _$2; private static Logger ...
Java
package com.legendshop.util; import java.io.IOException; import java.io.OutputStream; import java.security.MessageDigest; import java.text.StringCharacterIterator; import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; import org.apache.commons.lang.StringUtils; import org.apache...
Java
package com.legendshop.util; import java.io.PrintStream; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.util.Vector; import org.htmlparser.Attribute; import org.htmlparser.Node; import org.htmlparser.Tag; import org.htmlparser.lexer.Lexer; import org.htmlparser.nodes....
Java
package com.legendshop.util; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class CookieUtil { private final HttpServletRequest _$3; private final HttpServletResponse _$2; private final int _$1...
Java
package com.legendshop.util; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Properties; import java.util.Set; import org.apache.log4j.Logger; ...
Java
package com.legendshop.util; public abstract interface FileConfig { public static final String ConfigFile = "config/common.properties"; public static final String ConfigFileRealPath = "WEB-INF/classes/config/common.properties"; public static final String FckeditorFile = "fckedito...
Java
package com.legendshop.util; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.math.BigDecimal; import java.text.DateFormat; import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java...
Java
package com.legendshop.util; import org.springframework.security.authentication.encoding.Md5PasswordEncoder; public class MD5Util { static final int _$21 = 7; static final int _$20 = 12; static final int _$19 = 17; static final int _$18 = 22; static final int _$17 = 5; ...
Java
package com.legendshop.util.des; import com.legendshop.util.converter.ByteConverter; import com.sun.crypto.provider.SunJCE; import java.io.IOException; import java.io.PrintStream; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.Security; import jav...
Java
package com.legendshop.util.uid; import java.io.PrintStream; import java.net.InetAddress; public class UUIDGenerator { private static final int _$3; private static short _$2; private static final int _$1; protected static short getHiTime() { return (short) (int) (System.cur...
Java
package com.legendshop.util.uid; public class UID { private static long _$4 = System.currentTimeMillis(); private static short _$3 = -32768; private static Object _$2 = new Object(); private static long _$1 = 1000L; public static String getUID() { long l = 0L; in...
Java
package com.legendshop.util.uid; import java.util.Random; public class RandomNumber { private final int _$4; private final int _$3; private final int[] _$2; Random _$1 = new Random(); public RandomNumber(int paramInt1, int paramInt2) { this._$4 = paramInt1;...
Java
package com.legendshop.util.uid; import java.io.Serializable; import java.util.Properties; import org.hibernate.Hibernate; import org.hibernate.dialect.Dialect; import org.hibernate.engine.SessionImplementor; import org.hibernate.id.AbstractUUIDGenerator; import org.hibernate.id.Configurable; import org.hib...
Java
package com.legendshop.util.converter; import java.io.ByteArrayOutputStream; import java.util.Date; import com.legendshop.util.TimerUtil; import com.legendshop.util.des.DES2; public class ByteConverter { private static String _$1 = "0123456789ABCDEF"; public static String stringToHexString(St...
Java
package com.legendshop.util.converter; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.MissingResourceException; import org.apache.log4j.Logger; public class ConvertDateUtil { priv...
Java
package com.legendshop.util.converter; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.beanutils.ConversionException; import org.apache.commons.lang.StringUtils; public class TimestampConverter extends DateConverter { public static final St...
Java