Browse Source

新版本

o2oa 7 years ago
parent
commit
d172ac4fc7
100 changed files with 0 additions and 3166 deletions
  1. 0 3
      officialserver/w_o2website_assemble_control/META-INF/MANIFEST.MF
  2. 0 0
      officialserver/w_o2website_assemble_control/META-INF/war-tracker
  3. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/date/DateOperation.class
  4. 0 31
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/date/DateOperation.java
  5. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/des/Des.class
  6. 0 1064
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/des/Des.java
  7. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/ip/IPHelper.class
  8. 0 21
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/ip/IPHelper.java
  9. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/pagination/Pagination.class
  10. 0 151
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/pagination/Pagination.java
  11. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/properties/PropertiesUtil.class
  12. 0 35
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/properties/PropertiesUtil.java
  13. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/xml/XMLUtil.class
  14. 0 500
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/xml/XMLUtil.java
  15. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/filter/DangerousCharacterFilter$Request.class
  16. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/filter/DangerousCharacterFilter.class
  17. 0 143
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/filter/DangerousCharacterFilter.java
  18. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/listener/SystemStartupListener.class
  19. 0 22
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/listener/SystemStartupListener.java
  20. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/BaseController.class
  21. 0 141
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/BaseController.java
  22. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteDownloadRecordController$1.class
  23. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteDownloadRecordController.class
  24. 0 47
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteDownloadRecordController.java
  25. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteFeedbackController$1.class
  26. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteFeedbackController.class
  27. 0 59
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteFeedbackController.java
  28. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteVisitRecordController$1.class
  29. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteVisitRecordController.class
  30. 0 105
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteVisitRecordController.java
  31. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteDownloadRecordDao.class
  32. 0 10
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteDownloadRecordDao.java
  33. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackContentDao.class
  34. 0 10
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackContentDao.java
  35. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackRecordDao.class
  36. 0 10
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackRecordDao.java
  37. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteVisitRecordDao.class
  38. 0 10
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteVisitRecordDao.java
  39. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteDownloadRecord.class
  40. 0 111
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteDownloadRecord.java
  41. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackContent.class
  42. 0 43
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackContent.java
  43. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackRecord.class
  44. 0 125
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackRecord.java
  45. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteVisitRecord.class
  46. 0 113
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteVisitRecord.java
  47. 0 17
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteDownloadRecord_SqlMap.xml
  48. 0 15
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteFeedbackContent_SqlMap.xml
  49. 0 17
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteFeedbackRecord_SqlMap.xml
  50. 0 17
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteVisitRecord_SqlMap.xml
  51. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceI.class
  52. 0 12
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceI.java
  53. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceImpl.class
  54. 0 28
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceImpl.java
  55. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceI.class
  56. 0 13
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceI.java
  57. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceImpl.class
  58. 0 42
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceImpl.java
  59. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceI.class
  60. 0 12
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceI.java
  61. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceImpl.class
  62. 0 28
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceImpl.java
  63. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceI.class
  64. 0 12
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceI.java
  65. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceImpl.class
  66. 0 28
      officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceImpl.java
  67. 0 7
      officialserver/w_o2website_assemble_control/WEB-INF/classes/config.properties
  68. 0 17
      officialserver/w_o2website_assemble_control/WEB-INF/classes/log4j.properties
  69. 0 43
      officialserver/w_o2website_assemble_control/WEB-INF/classes/spring-mvc.xml
  70. 0 70
      officialserver/w_o2website_assemble_control/WEB-INF/classes/spring-mybatis.xml
  71. 0 22
      officialserver/w_o2website_assemble_control/WEB-INF/classes/spring.xml
  72. 0 12
      officialserver/w_o2website_assemble_control/WEB-INF/classes/sqlMapConfig.xml
  73. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/activation-1.1.jar
  74. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/aopalliance-1.0.jar
  75. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/aspectjrt-1.7.4.jar
  76. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/aspectjweaver-1.7.4.jar
  77. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/c3p0-0.9.1.1.jar
  78. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/cglib-nodep-3.1.jar
  79. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-beanutils-1.9.1.jar
  80. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-codec-1.9.jar
  81. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-collections-3.2.jar
  82. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-discovery-0.5.jar
  83. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-fileupload-1.3.1.jar
  84. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-io-2.2.jar
  85. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-lang-2.4.jar
  86. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-lang3-3.3.jar
  87. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-logging-1.1.1.jar
  88. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/dom4j-1.6.1.jar
  89. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/druid-1.0.16.jar
  90. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/ehcache-core-2.6.8.jar
  91. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/ehcache-spring-annotations-1.2.0.jar
  92. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/ezmorph-1.0.6.jar
  93. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/guava-r09.jar
  94. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-annotations-2.3.2.jar
  95. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-core-2.3.2.jar
  96. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-core-asl-1.9.13.jar
  97. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-databind-2.3.2.jar
  98. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-mapper-asl-1.9.13.jar
  99. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jaxb-api-2.1.jar
  100. BIN
      officialserver/w_o2website_assemble_control/WEB-INF/lib/jaxb-impl-2.1.3.jar

+ 0 - 3
officialserver/w_o2website_assemble_control/META-INF/MANIFEST.MF

@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path: 
-

+ 0 - 0
officialserver/w_o2website_assemble_control/META-INF/war-tracker


BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/date/DateOperation.class


+ 0 - 31
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/date/DateOperation.java

@@ -1,31 +0,0 @@
-package com.o2platform.common.date;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-public class DateOperation {
-	private static SimpleDateFormat format_year = new SimpleDateFormat( "yyyy" );
-	private static SimpleDateFormat format_month = new SimpleDateFormat( "MM" );
-	private static SimpleDateFormat format_day = new SimpleDateFormat( "dd" );
-	
-	public static String getYear( Date date ) {
-		if( date == null ){
-			date = new Date();
-		}
-		return format_year.format( date );
-	}
-	
-	public static String getMonth( Date date ) {
-		if( date == null ){
-			date = new Date();
-		}
-		return format_month.format( date );
-	}
-	
-	public static String getDay( Date date ) {
-		if( date == null ){
-			date = new Date();
-		}
-		return format_day.format( date );
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/des/Des.class


+ 0 - 1064
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/des/Des.java

@@ -1,1064 +0,0 @@
-package com.o2platform.common.des;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class Des {
-    public Des() {
-    }
-    public static void main(String[] args) {
-        Des desObj = new Des();
-        String key1 = "1";
-        String key2 = "2";
-        String key3 = "3";
-        String data = "admin";
-        String str = desObj.strEnc(data, key1, key2, key3);
-        System.out.println(str);
-       // str="F7736590E39804A7F339ED800D96C957845528AE831162BEF007DF42629C0AAE99CB7731FB9A48D695F227A183F1CD1AF875429B5C0938690EC4B15442F96401156FC5B98BF29EEB";
-        String dec = desObj.strDec(str, key1, key2, key3);
-        System.out.println(dec);
-    }
-
-    /**
-     * DES加密/解密
-     * 
-     * @Copyright Copyright (c) 2006
-     * @author Guapo
-     * @see DESCore
-     */
-
-    /*
-     * encrypt the string to string made up of hex return the encrypted string
-     */
-    public String strEnc(String data, String firstKey, String secondKey,
-            String thirdKey) {
-
-        int leng = data.length();
-        String encData = "";
-        List firstKeyBt = null, secondKeyBt = null, thirdKeyBt = null;
-        int firstLength = 0, secondLength = 0, thirdLength = 0;
-        if (firstKey != null && firstKey != "") {
-            firstKeyBt = getKeyBytes(firstKey);
-            firstLength = firstKeyBt.size();
-        }
-        if (secondKey != null && secondKey != "") {
-            secondKeyBt = getKeyBytes(secondKey);
-            secondLength = secondKeyBt.size();
-        }
-        if (thirdKey != null && thirdKey != "") {
-            thirdKeyBt = getKeyBytes(thirdKey);
-            thirdLength = thirdKeyBt.size();
-        }
-
-        if (leng > 0) {
-            if (leng < 4) {
-                int[] bt = strToBt(data);
-                int[] encByte = null;
-                if (firstKey != null && firstKey != "" && secondKey != null
-                        && secondKey != "" && thirdKey != null
-                        && thirdKey != "") {
-                    int[] tempBt;
-                    int x, y, z;
-                    tempBt = bt;
-                    for (x = 0; x < firstLength; x++) {
-                        tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                    }
-                    for (y = 0; y < secondLength; y++) {
-                        tempBt = enc(tempBt, (int[]) secondKeyBt.get(y));
-                    }
-                    for (z = 0; z < thirdLength; z++) {
-                        tempBt = enc(tempBt, (int[]) thirdKeyBt.get(z));
-                    }
-                    encByte = tempBt;
-                } else {
-                    if (firstKey != null && firstKey != "" && secondKey != null
-                            && secondKey != "") {
-                        int[] tempBt;
-                        int x, y;
-                        tempBt = bt;
-                        for (x = 0; x < firstLength; x++) {
-                            tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                        }
-                        for (y = 0; y < secondLength; y++) {
-                            tempBt = enc(tempBt, (int[]) secondKeyBt.get(y));
-                        }
-                        encByte = tempBt;
-                    } else {
-                        if (firstKey != null && firstKey != "") {
-                            int[] tempBt;
-                            int x = 0;
-                            tempBt = bt;
-                            for (x = 0; x < firstLength; x++) {
-                                tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                            }
-                            encByte = tempBt;
-                        }
-                    }
-                }
-                encData = bt64ToHex(encByte);
-            } else {
-                int iterator = (leng / 4);
-                int remainder = leng % 4;
-                int i = 0;
-                for (i = 0; i < iterator; i++) {
-                    String tempData = data.substring(i * 4 + 0, i * 4 + 4);
-                    int[] tempByte = strToBt(tempData);
-                    int[] encByte = null;
-                    if (firstKey != null && firstKey != "" && secondKey != null
-                            && secondKey != "" && thirdKey != null
-                            && thirdKey != "") {
-                        int[] tempBt;
-                        int x, y, z;
-                        tempBt = tempByte;
-                        for (x = 0; x < firstLength; x++) {
-                            tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                        }
-                        for (y = 0; y < secondLength; y++) {
-                            tempBt = enc(tempBt, (int[]) secondKeyBt.get(y));
-                        }
-                        for (z = 0; z < thirdLength; z++) {
-                            tempBt = enc(tempBt, (int[]) thirdKeyBt.get(z));
-                        }
-                        encByte = tempBt;
-                    } else {
-                        if (firstKey != null && firstKey != ""
-                                && secondKey != null && secondKey != "") {
-                            int[] tempBt;
-                            int x, y;
-                            tempBt = tempByte;
-                            for (x = 0; x < firstLength; x++) {
-                                tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                            }
-                            for (y = 0; y < secondLength; y++) {
-                                tempBt = enc(tempBt, (int[]) secondKeyBt.get(y));
-                            }
-                            encByte = tempBt;
-                        } else {
-                            if (firstKey != null && firstKey != "") {
-                                int[] tempBt;
-                                int x;
-                                tempBt = tempByte;
-                                for (x = 0; x < firstLength; x++) {
-                                    tempBt = enc(tempBt, (int[]) firstKeyBt
-                                            .get(x));
-                                }
-                                encByte = tempBt;
-                            }
-                        }
-                    }
-                    encData += bt64ToHex(encByte);
-                }
-                if (remainder > 0) {
-                    String remainderData = data.substring(iterator * 4 + 0,
-                            leng);
-                    int[] tempByte = strToBt(remainderData);
-                    int[] encByte = null;
-                    if (firstKey != null && firstKey != "" && secondKey != null
-                            && secondKey != "" && thirdKey != null
-                            && thirdKey != "") {
-                        int[] tempBt;
-                        int x, y, z;
-                        tempBt = tempByte;
-                        for (x = 0; x < firstLength; x++) {
-                            tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                        }
-                        for (y = 0; y < secondLength; y++) {
-                            tempBt = enc(tempBt, (int[]) secondKeyBt.get(y));
-                        }
-                        for (z = 0; z < thirdLength; z++) {
-                            tempBt = enc(tempBt, (int[]) thirdKeyBt.get(z));
-                        }
-                        encByte = tempBt;
-                    } else {
-                        if (firstKey != null && firstKey != ""
-                                && secondKey != null && secondKey != "") {
-                            int[] tempBt;
-                            int x, y;
-                            tempBt = tempByte;
-                            for (x = 0; x < firstLength; x++) {
-                                tempBt = enc(tempBt, (int[]) firstKeyBt.get(x));
-                            }
-                            for (y = 0; y < secondLength; y++) {
-                                tempBt = enc(tempBt, (int[]) secondKeyBt.get(y));
-                            }
-                            encByte = tempBt;
-                        } else {
-                            if (firstKey != null && firstKey != "") {
-                                int[] tempBt;
-                                int x;
-                                tempBt = tempByte;
-                                for (x = 0; x < firstLength; x++) {
-                                    tempBt = enc(tempBt, (int[]) firstKeyBt
-                                            .get(x));
-                                }
-                                encByte = tempBt;
-                            }
-                        }
-                    }
-                    encData += bt64ToHex(encByte);
-                }
-            }
-        }
-        return encData;
-    }
-
-    /*
-     * decrypt the encrypted string to the original string
-     * 
-     * return the original string
-     */
-    public String strDec(String data, String firstKey, String secondKey,
-            String thirdKey) {
-        int leng = data.length();
-        String decStr = "";
-        List firstKeyBt = null, secondKeyBt = null, thirdKeyBt = null;
-        int firstLength = 0, secondLength = 0, thirdLength = 0;
-        if (firstKey != null && firstKey != "") {
-            firstKeyBt = getKeyBytes(firstKey);
-            firstLength = firstKeyBt.size();
-        }
-        if (secondKey != null && secondKey != "") {
-            secondKeyBt = getKeyBytes(secondKey);
-            secondLength = secondKeyBt.size();
-        }
-        if (thirdKey != null && thirdKey != "") {
-            thirdKeyBt = getKeyBytes(thirdKey);
-            thirdLength = thirdKeyBt.size();
-        }
-
-        int iterator = leng / 16;
-        int i = 0;
-        for (i = 0; i < iterator; i++) {
-            String tempData = data.substring(i * 16 + 0, i * 16 + 16);
-            String strByte = hexToBt64(tempData);
-            int[] intByte = new int[64];
-            int j = 0;
-            for (j = 0; j < 64; j++) {
-                intByte[j] = Integer.parseInt(strByte.substring(j, j + 1));
-            }
-            int[] decByte = null;
-            if (firstKey != null && firstKey != "" && secondKey != null
-                    && secondKey != "" && thirdKey != null && thirdKey != "") {
-                int[] tempBt;
-                int x, y, z;
-                tempBt = intByte;
-                for (x = thirdLength - 1; x >= 0; x--) {
-                    tempBt = dec(tempBt, (int[]) thirdKeyBt.get(x));
-                }
-                for (y = secondLength - 1; y >= 0; y--) {
-                    tempBt = dec(tempBt, (int[]) secondKeyBt.get(y));
-                }
-                for (z = firstLength - 1; z >= 0; z--) {
-                    tempBt = dec(tempBt, (int[]) firstKeyBt.get(z));
-                }
-                decByte = tempBt;
-            } else {
-                if (firstKey != null && firstKey != "" && secondKey != null
-                        && secondKey != "") {
-                    int[] tempBt;
-                    int x, y, z;
-                    tempBt = intByte;
-                    for (x = secondLength - 1; x >= 0; x--) {
-                        tempBt = dec(tempBt, (int[]) secondKeyBt.get(x));
-                    }
-                    for (y = firstLength - 1; y >= 0; y--) {
-                        tempBt = dec(tempBt, (int[]) firstKeyBt.get(y));
-                    }
-                    decByte = tempBt;
-                } else {
-                    if (firstKey != null && firstKey != "") {
-                        int[] tempBt;
-                        int x, y, z;
-                        tempBt = intByte;
-                        for (x = firstLength - 1; x >= 0; x--) {
-                            tempBt = dec(tempBt, (int[]) firstKeyBt.get(x));
-                        }
-                        decByte = tempBt;
-                    }
-                }
-            }
-            decStr += byteToString(decByte);
-        }
-        return decStr;
-    }
-
-    /*
-     * chang the string into the bit array
-     * 
-     * return bit array(it's length % 64 = 0)
-     */
-    public List getKeyBytes(String key) {
-        List keyBytes = new ArrayList();
-        int leng = key.length();
-        int iterator = (leng / 4);
-        int remainder = leng % 4;
-        int i = 0;
-        for (i = 0; i < iterator; i++) {
-            keyBytes.add(i, strToBt(key.substring(i * 4 + 0, i * 4 + 4)));
-        }
-        if (remainder > 0) {
-            // keyBytes[i] = strToBt(key.substring(i*4+0,leng));
-            keyBytes.add(i, strToBt(key.substring(i * 4 + 0, leng)));
-        }
-        return keyBytes;
-    }
-
-    /*
-     * chang the string(it's length <= 4) into the bit array
-     * 
-     * return bit array(it's length = 64)
-     */
-    public int[] strToBt(String str) {
-        int leng = str.length();
-        int[] bt = new int[64];
-        if (leng < 4) {
-            int i = 0, j = 0, p = 0, q = 0;
-            for (i = 0; i < leng; i++) {
-                int k = str.charAt(i);
-                for (j = 0; j < 16; j++) {
-                    int pow = 1, m = 0;
-                    for (m = 15; m > j; m--) {
-                        pow *= 2;
-                    }
-                    // bt.set(16*i+j,""+(k/pow)%2));
-                    bt[16 * i + j] = (k / pow) % 2;
-                }
-            }
-            for (p = leng; p < 4; p++) {
-                int k = 0;
-                for (q = 0; q < 16; q++) {
-                    int pow = 1, m = 0;
-                    for (m = 15; m > q; m--) {
-                        pow *= 2;
-                    }
-                    // bt[16*p+q]=parseInt(k/pow)%2;
-                    // bt.add(16*p+q,""+((k/pow)%2));
-                    bt[16 * p + q] = (k / pow) % 2;
-                }
-            }
-        } else {
-            for (int i = 0; i < 4; i++) {
-                int k = str.charAt(i);
-                for (int j = 0; j < 16; j++) {
-                    int pow = 1;
-                    for (int m = 15; m > j; m--) {
-                        pow *= 2;
-                    }
-                    // bt[16*i+j]=parseInt(k/pow)%2;
-                    // bt.add(16*i+j,""+((k/pow)%2));
-                    bt[16 * i + j] = (k / pow) % 2;
-                }
-            }
-        }
-        return bt;
-    }
-
-    /*
-     * chang the bit(it's length = 4) into the hex
-     * 
-     * return hex
-     */
-    public String bt4ToHex(String binary) {
-        String hex = "";
-        if (binary.equalsIgnoreCase("0000")) {
-            hex = "0";
-        } else if (binary.equalsIgnoreCase("0001")) {
-            hex = "1";
-        } else if (binary.equalsIgnoreCase("0010")) {
-            hex = "2";
-        } else if (binary.equalsIgnoreCase("0011")) {
-            hex = "3";
-        } else if (binary.equalsIgnoreCase("0100")) {
-            hex = "4";
-        } else if (binary.equalsIgnoreCase("0101")) {
-            hex = "5";
-        } else if (binary.equalsIgnoreCase("0110")) {
-            hex = "6";
-        } else if (binary.equalsIgnoreCase("0111")) {
-            hex = "7";
-        } else if (binary.equalsIgnoreCase("1000")) {
-            hex = "8";
-        } else if (binary.equalsIgnoreCase("1001")) {
-            hex = "9";
-        } else if (binary.equalsIgnoreCase("1010")) {
-            hex = "A";
-        } else if (binary.equalsIgnoreCase("1011")) {
-            hex = "B";
-        } else if (binary.equalsIgnoreCase("1100")) {
-            hex = "C";
-        } else if (binary.equalsIgnoreCase("1101")) {
-            hex = "D";
-        } else if (binary.equalsIgnoreCase("1110")) {
-            hex = "E";
-        } else if (binary.equalsIgnoreCase("1111")) {
-            hex = "F";
-        }
-
-        return hex;
-    }
-
-    /*
-     * chang the hex into the bit(it's length = 4)
-     * 
-     * return the bit(it's length = 4)
-     */
-    public String hexToBt4(String hex) {
-        String binary = "";
-        if (hex.equalsIgnoreCase("0")) {
-            binary = "0000";
-        } else if (hex.equalsIgnoreCase("1")) {
-            binary = "0001";
-        }
-        if (hex.equalsIgnoreCase("2")) {
-            binary = "0010";
-        }
-        if (hex.equalsIgnoreCase("3")) {
-            binary = "0011";
-        }
-        if (hex.equalsIgnoreCase("4")) {
-            binary = "0100";
-        }
-        if (hex.equalsIgnoreCase("5")) {
-            binary = "0101";
-        }
-        if (hex.equalsIgnoreCase("6")) {
-            binary = "0110";
-        }
-        if (hex.equalsIgnoreCase("7")) {
-            binary = "0111";
-        }
-        if (hex.equalsIgnoreCase("8")) {
-            binary = "1000";
-        }
-        if (hex.equalsIgnoreCase("9")) {
-            binary = "1001";
-        }
-        if (hex.equalsIgnoreCase("A")) {
-            binary = "1010";
-        }
-        if (hex.equalsIgnoreCase("B")) {
-            binary = "1011";
-        }
-        if (hex.equalsIgnoreCase("C")) {
-            binary = "1100";
-        }
-        if (hex.equalsIgnoreCase("D")) {
-            binary = "1101";
-        }
-        if (hex.equalsIgnoreCase("E")) {
-            binary = "1110";
-        }
-        if (hex.equalsIgnoreCase("F")) {
-            binary = "1111";
-        }
-        return binary;
-    }
-
-    /*
-     * chang the bit(it's length = 64) into the string
-     * 
-     * return string
-     */
-    public String byteToString(int[] byteData) {
-        String str = "";
-        for (int i = 0; i < 4; i++) {
-            int count = 0;
-            for (int j = 0; j < 16; j++) {
-                int pow = 1;
-                for (int m = 15; m > j; m--) {
-                    pow *= 2;
-                }
-                count += byteData[16 * i + j] * pow;
-            }
-            if (count != 0) {
-                str += "" + (char) (count);
-            }
-        }
-        return str;
-    }
-
-    public String bt64ToHex(int[] byteData) {
-        String hex = "";
-        for (int i = 0; i < 16; i++) {
-            String bt = "";
-            for (int j = 0; j < 4; j++) {
-                bt += byteData[i * 4 + j];
-            }
-            hex += bt4ToHex(bt);
-        }
-        return hex;
-    }
-
-    public String hexToBt64(String hex) {
-        String binary = "";
-        for (int i = 0; i < 16; i++) {
-            binary += hexToBt4(hex.substring(i, i + 1));
-        }
-        return binary;
-    }
-
-    /*
-     * the 64 bit des core arithmetic
-     */
-
-    public int[] enc(int[] dataByte, int[] keyByte) {
-        int[][] keys = generateKeys(keyByte);
-        int[] ipByte = initPermute(dataByte);
-        int[] ipLeft = new int[32];
-        int[] ipRight = new int[32];
-        int[] tempLeft = new int[32];
-        int i = 0, j = 0, k = 0, m = 0, n = 0;
-        for (k = 0; k < 32; k++) {
-            ipLeft[k] = ipByte[k];
-            ipRight[k] = ipByte[32 + k];
-        }
-        for (i = 0; i < 16; i++) {
-            for (j = 0; j < 32; j++) {
-                tempLeft[j] = ipLeft[j];
-                ipLeft[j] = ipRight[j];
-            }
-            int[] key = new int[48];
-            for (m = 0; m < 48; m++) {
-                key[m] = keys[i][m];
-            }
-            int[] tempRight = xor(pPermute(sBoxPermute(xor(
-                    expandPermute(ipRight), key))), tempLeft);
-            for (n = 0; n < 32; n++) {
-                ipRight[n] = tempRight[n];
-            }
-
-        }
-
-        int[] finalData = new int[64];
-        for (i = 0; i < 32; i++) {
-            finalData[i] = ipRight[i];
-            finalData[32 + i] = ipLeft[i];
-        }
-        return finallyPermute(finalData);
-    }
-
-    public int[] dec(int[] dataByte, int[] keyByte) {
-        int[][] keys = generateKeys(keyByte);
-        int[] ipByte = initPermute(dataByte);
-        int[] ipLeft = new int[32];
-        int[] ipRight = new int[32];
-        int[] tempLeft = new int[32];
-        int i = 0, j = 0, k = 0, m = 0, n = 0;
-        for (k = 0; k < 32; k++) {
-            ipLeft[k] = ipByte[k];
-            ipRight[k] = ipByte[32 + k];
-        }
-        for (i = 15; i >= 0; i--) {
-            for (j = 0; j < 32; j++) {
-                tempLeft[j] = ipLeft[j];
-                ipLeft[j] = ipRight[j];
-            }
-            int[] key = new int[48];
-            for (m = 0; m < 48; m++) {
-                key[m] = keys[i][m];
-            }
-
-            int[] tempRight = xor(pPermute(sBoxPermute(xor(
-                    expandPermute(ipRight), key))), tempLeft);
-            for (n = 0; n < 32; n++) {
-                ipRight[n] = tempRight[n];
-            }
-        }
-
-        int[] finalData = new int[64];
-        for (i = 0; i < 32; i++) {
-            finalData[i] = ipRight[i];
-            finalData[32 + i] = ipLeft[i];
-        }
-        return finallyPermute(finalData);
-    }
-
-    public int[] initPermute(int[] originalData) {
-        int[] ipByte = new int[64];
-        int i = 0, m = 1, n = 0, j, k;
-        for (i = 0, m = 1, n = 0; i < 4; i++, m += 2, n += 2) {
-            for (j = 7, k = 0; j >= 0; j--, k++) {
-                ipByte[i * 8 + k] = originalData[j * 8 + m];
-                ipByte[i * 8 + k + 32] = originalData[j * 8 + n];
-            }
-        }
-        return ipByte;
-    }
-
-    public int[] expandPermute(int[] rightData) {
-        int[] epByte = new int[48];
-        int i, j;
-        for (i = 0; i < 8; i++) {
-            if (i == 0) {
-                epByte[i * 6 + 0] = rightData[31];
-            } else {
-                epByte[i * 6 + 0] = rightData[i * 4 - 1];
-            }
-            epByte[i * 6 + 1] = rightData[i * 4 + 0];
-            epByte[i * 6 + 2] = rightData[i * 4 + 1];
-            epByte[i * 6 + 3] = rightData[i * 4 + 2];
-            epByte[i * 6 + 4] = rightData[i * 4 + 3];
-            if (i == 7) {
-                epByte[i * 6 + 5] = rightData[0];
-            } else {
-                epByte[i * 6 + 5] = rightData[i * 4 + 4];
-            }
-        }
-        return epByte;
-    }
-
-    public int[] xor(int[] byteOne, int[] byteTwo) {
-        // var xorByte = new Array(byteOne.length);
-        // for(int i = 0;i < byteOne.length; i ++){
-        // xorByte[i] = byteOne[i] ^ byteTwo[i];
-        // }
-        // return xorByte;
-        int[] xorByte = new int[byteOne.length];
-        for (int i = 0; i < byteOne.length; i++) {
-            xorByte[i] = byteOne[i] ^ byteTwo[i];
-        }
-        return xorByte;
-    }
-
-    public int[] sBoxPermute(int[] expandByte) {
-
-        // var sBoxByte = new Array(32);
-        int[] sBoxByte = new int[32];
-        String binary = "";
-        int[][] s1 = {
-                { 14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7 },
-                { 0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8 },
-                { 4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0 },
-                { 15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13 } };
-
-        /* Table - s2 */
-        int[][] s2 = {
-                { 15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10 },
-                { 3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5 },
-                { 0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15 },
-                { 13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9 } };
-
-        /* Table - s3 */
-        int[][] s3 = {
-                { 10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8 },
-                { 13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1 },
-                { 13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7 },
-                { 1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12 } };
-        /* Table - s4 */
-        int[][] s4 = {
-                { 7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15 },
-                { 13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9 },
-                { 10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4 },
-                { 3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14 } };
-
-        /* Table - s5 */
-        int[][] s5 = {
-                { 2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9 },
-                { 14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6 },
-                { 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14 },
-                { 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3 } };
-
-        /* Table - s6 */
-        int[][] s6 = {
-                { 12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11 },
-                { 10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8 },
-                { 9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6 },
-                { 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13 } };
-
-        /* Table - s7 */
-        int[][] s7 = {
-                { 4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1 },
-                { 13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6 },
-                { 1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2 },
-                { 6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12 } };
-
-        /* Table - s8 */
-        int[][] s8 = {
-                { 13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7 },
-                { 1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2 },
-                { 7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8 },
-                { 2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11 } };
-
-        for (int m = 0; m < 8; m++) {
-            int i = 0, j = 0;
-            i = expandByte[m * 6 + 0] * 2 + expandByte[m * 6 + 5];
-            j = expandByte[m * 6 + 1] * 2 * 2 * 2 + expandByte[m * 6 + 2] * 2
-                    * 2 + expandByte[m * 6 + 3] * 2 + expandByte[m * 6 + 4];
-            switch (m) {
-            case 0:
-                binary = getBoxBinary(s1[i][j]);
-                break;
-            case 1:
-                binary = getBoxBinary(s2[i][j]);
-                break;
-            case 2:
-                binary = getBoxBinary(s3[i][j]);
-                break;
-            case 3:
-                binary = getBoxBinary(s4[i][j]);
-                break;
-            case 4:
-                binary = getBoxBinary(s5[i][j]);
-                break;
-            case 5:
-                binary = getBoxBinary(s6[i][j]);
-                break;
-            case 6:
-                binary = getBoxBinary(s7[i][j]);
-                break;
-            case 7:
-                binary = getBoxBinary(s8[i][j]);
-                break;
-            }
-            sBoxByte[m * 4 + 0] = Integer.parseInt(binary.substring(0, 1));
-            sBoxByte[m * 4 + 1] = Integer.parseInt(binary.substring(1, 2));
-            sBoxByte[m * 4 + 2] = Integer.parseInt(binary.substring(2, 3));
-            sBoxByte[m * 4 + 3] = Integer.parseInt(binary.substring(3, 4));
-        }
-        return sBoxByte;
-    }
-
-    public int[] pPermute(int[] sBoxByte) {
-        int[] pBoxPermute = new int[32];
-        pBoxPermute[0] = sBoxByte[15];
-        pBoxPermute[1] = sBoxByte[6];
-        pBoxPermute[2] = sBoxByte[19];
-        pBoxPermute[3] = sBoxByte[20];
-        pBoxPermute[4] = sBoxByte[28];
-        pBoxPermute[5] = sBoxByte[11];
-        pBoxPermute[6] = sBoxByte[27];
-        pBoxPermute[7] = sBoxByte[16];
-        pBoxPermute[8] = sBoxByte[0];
-        pBoxPermute[9] = sBoxByte[14];
-        pBoxPermute[10] = sBoxByte[22];
-        pBoxPermute[11] = sBoxByte[25];
-        pBoxPermute[12] = sBoxByte[4];
-        pBoxPermute[13] = sBoxByte[17];
-        pBoxPermute[14] = sBoxByte[30];
-        pBoxPermute[15] = sBoxByte[9];
-        pBoxPermute[16] = sBoxByte[1];
-        pBoxPermute[17] = sBoxByte[7];
-        pBoxPermute[18] = sBoxByte[23];
-        pBoxPermute[19] = sBoxByte[13];
-        pBoxPermute[20] = sBoxByte[31];
-        pBoxPermute[21] = sBoxByte[26];
-        pBoxPermute[22] = sBoxByte[2];
-        pBoxPermute[23] = sBoxByte[8];
-        pBoxPermute[24] = sBoxByte[18];
-        pBoxPermute[25] = sBoxByte[12];
-        pBoxPermute[26] = sBoxByte[29];
-        pBoxPermute[27] = sBoxByte[5];
-        pBoxPermute[28] = sBoxByte[21];
-        pBoxPermute[29] = sBoxByte[10];
-        pBoxPermute[30] = sBoxByte[3];
-        pBoxPermute[31] = sBoxByte[24];
-        return pBoxPermute;
-    }
-
-    public int[] finallyPermute(int[] endByte) {
-        int[] fpByte = new int[64];
-        fpByte[0] = endByte[39];
-        fpByte[1] = endByte[7];
-        fpByte[2] = endByte[47];
-        fpByte[3] = endByte[15];
-        fpByte[4] = endByte[55];
-        fpByte[5] = endByte[23];
-        fpByte[6] = endByte[63];
-        fpByte[7] = endByte[31];
-        fpByte[8] = endByte[38];
-        fpByte[9] = endByte[6];
-        fpByte[10] = endByte[46];
-        fpByte[11] = endByte[14];
-        fpByte[12] = endByte[54];
-        fpByte[13] = endByte[22];
-        fpByte[14] = endByte[62];
-        fpByte[15] = endByte[30];
-        fpByte[16] = endByte[37];
-        fpByte[17] = endByte[5];
-        fpByte[18] = endByte[45];
-        fpByte[19] = endByte[13];
-        fpByte[20] = endByte[53];
-        fpByte[21] = endByte[21];
-        fpByte[22] = endByte[61];
-        fpByte[23] = endByte[29];
-        fpByte[24] = endByte[36];
-        fpByte[25] = endByte[4];
-        fpByte[26] = endByte[44];
-        fpByte[27] = endByte[12];
-        fpByte[28] = endByte[52];
-        fpByte[29] = endByte[20];
-        fpByte[30] = endByte[60];
-        fpByte[31] = endByte[28];
-        fpByte[32] = endByte[35];
-        fpByte[33] = endByte[3];
-        fpByte[34] = endByte[43];
-        fpByte[35] = endByte[11];
-        fpByte[36] = endByte[51];
-        fpByte[37] = endByte[19];
-        fpByte[38] = endByte[59];
-        fpByte[39] = endByte[27];
-        fpByte[40] = endByte[34];
-        fpByte[41] = endByte[2];
-        fpByte[42] = endByte[42];
-        fpByte[43] = endByte[10];
-        fpByte[44] = endByte[50];
-        fpByte[45] = endByte[18];
-        fpByte[46] = endByte[58];
-        fpByte[47] = endByte[26];
-        fpByte[48] = endByte[33];
-        fpByte[49] = endByte[1];
-        fpByte[50] = endByte[41];
-        fpByte[51] = endByte[9];
-        fpByte[52] = endByte[49];
-        fpByte[53] = endByte[17];
-        fpByte[54] = endByte[57];
-        fpByte[55] = endByte[25];
-        fpByte[56] = endByte[32];
-        fpByte[57] = endByte[0];
-        fpByte[58] = endByte[40];
-        fpByte[59] = endByte[8];
-        fpByte[60] = endByte[48];
-        fpByte[61] = endByte[16];
-        fpByte[62] = endByte[56];
-        fpByte[63] = endByte[24];
-        return fpByte;
-    }
-
-    public String getBoxBinary(int i) {
-        String binary = "";
-        switch (i) {
-        case 0:
-            binary = "0000";
-            break;
-        case 1:
-            binary = "0001";
-            break;
-        case 2:
-            binary = "0010";
-            break;
-        case 3:
-            binary = "0011";
-            break;
-        case 4:
-            binary = "0100";
-            break;
-        case 5:
-            binary = "0101";
-            break;
-        case 6:
-            binary = "0110";
-            break;
-        case 7:
-            binary = "0111";
-            break;
-        case 8:
-            binary = "1000";
-            break;
-        case 9:
-            binary = "1001";
-            break;
-        case 10:
-            binary = "1010";
-            break;
-        case 11:
-            binary = "1011";
-            break;
-        case 12:
-            binary = "1100";
-            break;
-        case 13:
-            binary = "1101";
-            break;
-        case 14:
-            binary = "1110";
-            break;
-        case 15:
-            binary = "1111";
-            break;
-        }
-        return binary;
-    }
-
-    /*
-     * generate 16 keys for xor
-     * 
-     */
-    public int[][] generateKeys(int[] keyByte) {
-        int[] key = new int[56];
-        int[][] keys = new int[16][48];
-
-        // keys[ 0] = new Array();
-        // keys[ 1] = new Array();
-        // keys[ 2] = new Array();
-        // keys[ 3] = new Array();
-        // keys[ 4] = new Array();
-        // keys[ 5] = new Array();
-        // keys[ 6] = new Array();
-        // keys[ 7] = new Array();
-        // keys[ 8] = new Array();
-        // keys[ 9] = new Array();
-        // keys[10] = new Array();
-        // keys[11] = new Array();
-        // keys[12] = new Array();
-        // keys[13] = new Array();
-        // keys[14] = new Array();
-        // keys[15] = new Array();
-        int[] loop = new int[] { 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 };
-
-        for (int i = 0; i < 7; i++) {
-            for (int j = 0, k = 7; j < 8; j++, k--) {
-                key[i * 8 + j] = keyByte[8 * k + i];
-            }
-        }
-
-        int i = 0;
-        for (i = 0; i < 16; i++) {
-            int tempLeft = 0;
-            int tempRight = 0;
-            for (int j = 0; j < loop[i]; j++) {
-                tempLeft = key[0];
-                tempRight = key[28];
-                for (int k = 0; k < 27; k++) {
-                    key[k] = key[k + 1];
-                    key[28 + k] = key[29 + k];
-                }
-                key[27] = tempLeft;
-                key[55] = tempRight;
-            }
-            // var tempKey = new Array(48);
-            int[] tempKey = new int[48];
-            tempKey[0] = key[13];
-            tempKey[1] = key[16];
-            tempKey[2] = key[10];
-            tempKey[3] = key[23];
-            tempKey[4] = key[0];
-            tempKey[5] = key[4];
-            tempKey[6] = key[2];
-            tempKey[7] = key[27];
-            tempKey[8] = key[14];
-            tempKey[9] = key[5];
-            tempKey[10] = key[20];
-            tempKey[11] = key[9];
-            tempKey[12] = key[22];
-            tempKey[13] = key[18];
-            tempKey[14] = key[11];
-            tempKey[15] = key[3];
-            tempKey[16] = key[25];
-            tempKey[17] = key[7];
-            tempKey[18] = key[15];
-            tempKey[19] = key[6];
-            tempKey[20] = key[26];
-            tempKey[21] = key[19];
-            tempKey[22] = key[12];
-            tempKey[23] = key[1];
-            tempKey[24] = key[40];
-            tempKey[25] = key[51];
-            tempKey[26] = key[30];
-            tempKey[27] = key[36];
-            tempKey[28] = key[46];
-            tempKey[29] = key[54];
-            tempKey[30] = key[29];
-            tempKey[31] = key[39];
-            tempKey[32] = key[50];
-            tempKey[33] = key[44];
-            tempKey[34] = key[32];
-            tempKey[35] = key[47];
-            tempKey[36] = key[43];
-            tempKey[37] = key[48];
-            tempKey[38] = key[38];
-            tempKey[39] = key[55];
-            tempKey[40] = key[33];
-            tempKey[41] = key[52];
-            tempKey[42] = key[45];
-            tempKey[43] = key[41];
-            tempKey[44] = key[49];
-            tempKey[45] = key[35];
-            tempKey[46] = key[28];
-            tempKey[47] = key[31];
-            int m;
-            switch (i) {
-            case 0:
-                for (m = 0; m < 48; m++) {
-                    keys[0][m] = tempKey[m];
-                }
-                break;
-            case 1:
-                for (m = 0; m < 48; m++) {
-                    keys[1][m] = tempKey[m];
-                }
-                break;
-            case 2:
-                for (m = 0; m < 48; m++) {
-                    keys[2][m] = tempKey[m];
-                }
-                break;
-            case 3:
-                for (m = 0; m < 48; m++) {
-                    keys[3][m] = tempKey[m];
-                }
-                break;
-            case 4:
-                for (m = 0; m < 48; m++) {
-                    keys[4][m] = tempKey[m];
-                }
-                break;
-            case 5:
-                for (m = 0; m < 48; m++) {
-                    keys[5][m] = tempKey[m];
-                }
-                break;
-            case 6:
-                for (m = 0; m < 48; m++) {
-                    keys[6][m] = tempKey[m];
-                }
-                break;
-            case 7:
-                for (m = 0; m < 48; m++) {
-                    keys[7][m] = tempKey[m];
-                }
-                break;
-            case 8:
-                for (m = 0; m < 48; m++) {
-                    keys[8][m] = tempKey[m];
-                }
-                break;
-            case 9:
-                for (m = 0; m < 48; m++) {
-                    keys[9][m] = tempKey[m];
-                }
-                break;
-            case 10:
-                for (m = 0; m < 48; m++) {
-                    keys[10][m] = tempKey[m];
-                }
-                break;
-            case 11:
-                for (m = 0; m < 48; m++) {
-                    keys[11][m] = tempKey[m];
-                }
-                break;
-            case 12:
-                for (m = 0; m < 48; m++) {
-                    keys[12][m] = tempKey[m];
-                }
-                break;
-            case 13:
-                for (m = 0; m < 48; m++) {
-                    keys[13][m] = tempKey[m];
-                }
-                break;
-            case 14:
-                for (m = 0; m < 48; m++) {
-                    keys[14][m] = tempKey[m];
-                }
-                break;
-            case 15:
-                for (m = 0; m < 48; m++) {
-                    keys[15][m] = tempKey[m];
-                }
-                break;
-            }
-        }
-        return keys;
-    }
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/ip/IPHelper.class


+ 0 - 21
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/ip/IPHelper.java

@@ -1,21 +0,0 @@
-package com.o2platform.common.ip;
-
-import javax.servlet.http.HttpServletRequest;
-
-public class IPHelper {
-	
-	public static String getIpAddr( HttpServletRequest request ) {
-		String ip = request.getHeader("x-forwarded-for");
-		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
-			ip = request.getHeader("Proxy-Client-IP");
-		}
-		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
-			ip = request.getHeader("WL-Proxy-Client-IP");
-		}
-		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
-			ip = request.getRemoteAddr();
-		}
-		return ip;
-	}
-	
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/pagination/Pagination.class


+ 0 - 151
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/pagination/Pagination.java

@@ -1,151 +0,0 @@
-package com.o2platform.common.pagination;
-
-import java.util.List;
-
-
-public class Pagination<T> {
-	private int currentPage; // 当前页
-	private int pageSize; // 每页显示条数
-	private int totalPage; // 总页数
-	private int totalRecord; // 总记录数
-	private List<T> dataList; // 分页返回的数据
-
-	private Pagination() {
-	}
-
-	/*
-	 * 初始化PageModel实例
-	 */
-	private Pagination(final int pageSize, final String page,
-			final int totalRecord) {
-		// 初始化每页显示条数
-		this.pageSize = pageSize;
-		// 设置总记录数
-		this.totalRecord = totalRecord;
-		// 初始化总页数
-		setTotalPage();
-		// 初始化当前页
-		setCurrentPage(page);
-
-	}
-
-	/*
-	 * 外界获得PageModel实例
-	 */
-	public static Pagination newPagination(final int pageSize, final String page,
-			final int totalRecord) {
-
-		return new Pagination(pageSize, page, totalRecord);
-	}
-
-	// 设置当前请求页
-	private void setCurrentPage(String page) {
-		try {
-			currentPage = Integer.parseInt(page);
-
-		} catch (java.lang.NumberFormatException e) {
-			// 这里异常不做处理,当前页默认为1
-			currentPage = 1;
-		}
-		// 如果当前页小于第一页时,当前页指定到首页
-		if (currentPage < 1) {
-
-			currentPage = 1;
-		}
-
-		if (currentPage > totalPage) {
-
-			currentPage = totalPage;
-
-		}
-
-	}
-
-	private void setTotalPage() {
-		if (totalRecord % pageSize == 0) {
-
-			totalPage = totalRecord / pageSize;
-		} else {
-			totalPage = totalRecord / pageSize + 1;
-		}
-	}
-
-	/*
-	 * 获得当前页
-	 */
-	public int getCurrentPage() {
-		return currentPage;
-	}
-
-	/*
-	 * 获得总页数
-	 */
-	public int getTotalPage() {
-		return totalPage;
-
-	}
-
-	/*
-	 * 获得开始行数
-	 */
-	public int getStartRow() {
-		return (currentPage - 1) * pageSize;
-	}
-
-	/*
-	 * 获得结束行
-	 */
-	public int getEndRow() {
-		int index = currentPage * pageSize - 1;
-		if(index < 0) index = 0;
-		return index;
-	}
-
-	/*
-	 * 获得翻页数据
-	 */
-	public List<T> getDataList() {
-		return dataList;
-	}
-
-	/*
-	 * 设置翻页数据
-	 */
-	public void setDataList(List<T> dataList) {
-		this.dataList = dataList;
-	}
-
-	// 首页
-	public int getFirst() {
-		return 1;
-	}
-
-	//  
-	// 上一页
-
-	public int getPrevious() {
-
-		return currentPage - 1;
-	}
-
-	//  
-	// // 下一页
-	public int getNext() {
-		return currentPage + 1;
-	}
-
-	//  
-	// // 尾页
-	//  
-	public int getLast() {
-		return totalPage;
-	}
-
-	public int getTotalRecord() {
-		return totalRecord;
-	}
-	
-	
-	
-	
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/properties/PropertiesUtil.class


+ 0 - 35
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/properties/PropertiesUtil.java

@@ -1,35 +0,0 @@
-package com.o2platform.common.properties;
-
-import java.util.ResourceBundle;
-/**
- * 配置文件操作类
- * 创建时间:2009-1-15
- * 作者:李义
- * 单位:浙江兰德纵横网络技术有限公司
- */ 
-public class PropertiesUtil {
-
-	private PropertiesUtil() {	//不允许创建该对象
-	}
-	/**
-	 * 从配置文件conf.property里取参数
-	 * @param name
-	 * @return
-	 */
-	public static String getProperties( String name ) {
-		String resource = "config";
-		ResourceBundle prop = ResourceBundle.getBundle(resource);
-		return prop.getString( name );
-	}
-	/**
-	 * 从配置文件$fileName$.properties里取参数
-	 * @param fileName
-	 * @param name
-	 * @return
-	 */
-	public static String getProperties( String fileName,String name ) {
-		String resource = fileName;
-		ResourceBundle prop = ResourceBundle.getBundle(resource);
-		return prop.getString( name );
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/xml/XMLUtil.class


+ 0 - 500
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/common/xml/XMLUtil.java

@@ -1,500 +0,0 @@
-package com.o2platform.common.xml;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.dom4j.Document;
-import org.dom4j.DocumentException;
-import org.dom4j.DocumentHelper;
-import org.dom4j.Element;
-import org.dom4j.io.SAXReader;
-
-
-/**
- * XML工具类
- * 
- * @项目名 :OAService
- * @包 名 :com.land.oaservice.xml
- * @文件名 :XMLUtil.java
- * @单 位 :浙江兰德纵横网络技术有限公司
- * @日 期 :2009-9-17
- */
-public class XMLUtil {
-	
-	public static Logger logger = Logger.getLogger(XMLUtil.class);
-
-	public static final String TEXT = "TEXT";
-
-	public static final String ATRRIBUTE = "ATRRIBUTE";
-
-	public static final String SELFTEXT = "SELFTEXT";
-
-	public static void main(String[] args) {
-		//String company = "<data> <isautostart name=\"是否自动发起流程\">1</isautostart> <scale_of_marks_id name=\"单项评分标准ID\">2788898765432</scale_of_marks_id> <auto_starttime name=\"自动发起时间\">2015-09-11 09:11:15</auto_starttime> <auto_endtime name=\"自动结束时间\">2015-09-115 09:11:15</auto_endtime></data>";
-		String company = "<fields><field><code>FIELD_XTJSMS</code><name>系统建设模式</name><v_type>string</v_type><v_length>1000</v_length><v_value>系统建设模式test1</v_value></field><field><code>FIELD_JSGZJDJH</code><name>建设工作进度计划</name><v_type>textarea</v_type><v_length>10000</v_length><v_value>建设工作进度计划22222222222test</v_value></field><field><code>FIELD_YJWCSJ</code><name>预计完成时间</name><v_type>date</v_type><v_length>20</v_length><v_value>预计完成时间随便填写xxxxxxxxxxxx</v_value></field><field><code>FIELD_DQJSJD</code><name>当前建设进度</name><v_type>string</v_type><v_length>1000</v_length><v_value>sssssssssssssss当前建设进度</v_value></field><field><code>FIELD_DQFGBL</code><name>当前覆盖比例</name><v_type>string</v_type><v_length>100</v_length><v_value>当前覆盖比例50%%%%%</v_value></field></fields>";
-		XMLUtil XMLUtil = new XMLUtil();
-		Map map = new HashMap();
-		map.put("name", "TEXT");
-		map.put("v_value", "TEXT");
-		try {
-			System.out.println(XMLUtil.getXmlNodeValueList( company , "/fields/field", map));
-		} catch (DocumentException e) {
-			logger.error("系统异常", e);
-		}
-	}
-
-	/**
-	 * 从XML文档里解析出指定路径下,指标节点的内容
-	 * @param content
-	 * @param xmlNodePath
-	 * @param nodeName
-	 * @param type
-	 * @return
-	 * @throws DocumentException
-	 */
-	public String getXmlNodeValue(String content, String xmlNodePath, String nodeName, String type) throws DocumentException {
-		Document doc = getDocumentByContent(content);
-		List list = doc.selectNodes( xmlNodePath );
-		Element element = null;
-		String result = "";
-		try{
-			for (int i = 0; list != null && i < list.size(); i++) {
-				element = (Element)list.get(i);
-				if ("TEXT".equals(type)) {// 如果是节点的文本
-					if (element.element(nodeName) != null) {
-						result = element.elementText(nodeName);
-					}
-				} else if ("ATRRIBUTE".equals(type)) {// 如果是节点的属性
-					if (element.attribute(nodeName) != null) {
-						result = element.attributeValue(nodeName);
-					}
-				} else if ("SELFTEXT".equals(type)) {
-					result = element.getText();
-				}
-			}
-		}catch(Exception e){
-			logger.error("系统在尝试从XML文档中获取信息时发生错误。xmlNodePath=" + xmlNodePath, e);
-		}		
-		return result;
-	}
-	
-	
-
-	public Map getXmlNodeValue(String content, String xmlNodePath, Map attrMap) throws DocumentException {
-		Document doc = getDocumentByContent(content);
-		Map reslut = getNodeMap(doc, xmlNodePath, null, attrMap);
-		return reslut;
-	}
-	
-	
-	public List<Map<String, Object>> getXmlNodeValueList(String content, String xmlNodePath,
-			Map<String, Object> attrMap) throws DocumentException {
-		Document doc = getDocumentByContent(content);
-		List<Map<String, Object>> reslut = getNodeMapList(doc, xmlNodePath, null, attrMap);
-		return reslut;
-	}
-
-	/**
-	 * 查找数据字典,根据节点路径,属性值,得到需要的对应值
-	 * 
-	 * @param xmlFile
-	 *            XML文件名 dictionary.xml
-	 * @param xmlNodePath
-	 *            节点路径,如://dictionary/itemproperties/itemproperty
-	 * @param filterMap
-	 *            filterMap.put("sapvalue", "01");
-	 * @param getAttrName
-	 *            asvalue
-	 * @param type
-	 *            ATRRIBUTE
-	 * @return String
-	 * @throws DocumentException
-	 */
-	public String getDectionaryValue(Document doc, String xmlNodePath,
-			Map filterMap, String getAttrName, String type)
-			throws DocumentException {
-		// 得到item节点
-		Element node = getNodeByFilter(doc, xmlNodePath, filterMap);
-		String reslut = getNodeValue(node, getAttrName, type);
-		return reslut;
-	}
-
-	/**
-	 * 根据XML内容构造一个XML Document文档
-	 * 
-	 * @param xmlContent
-	 * @return
-	 * @throws DocumentException
-	 */
-	public Document getDocumentByContent(String xmlContent)
-			throws DocumentException {
-		Document doc = DocumentHelper.parseText(xmlContent);
-		return doc;
-	}
-
-	/**
-	 * 根据XML文档,指定路径和属性参数MAP,得到一个List
-	 * 
-	 * @param xml
-	 *            XML的内容
-	 * @param listNodePath
-	 *            要查寻的节点,比如“//学生信息/学生”
-	 */
-	@SuppressWarnings("unchecked")
-	public List getNodeList(Document doc, String listNodePath, Map map) {
-		Map resultmap = null;
-		List resultList = new ArrayList();
-		try {
-			List list = doc.selectNodes(listNodePath);
-			for (int i = 0; list != null && i < list.size(); i++) {
-				Element node = (Element) list.get(i);
-				resultmap = new HashMap();
-				for (Iterator iterator = map.keySet().iterator(); iterator
-						.hasNext();) {
-					String key = iterator.next() + "";
-					String value = map.get(key) + "";
-					resultmap.put(key, getNodeValue(node, key, value));
-				}
-				resultList.add(resultmap);
-			}
-			//System.out.print("");
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return resultList;
-	}
-
-	/**
-	 * 
-	 * 根据条件得到一个路径下的指定节点信息
-	 * 
-	 * @param doc
-	 *            XML对象
-	 * @param path
-	 *            指定的XML节点路径
-	 * @param filterMap
-	 *            过滤的条件属性
-	 * @param attributeMap
-	 *            得到的参数属性
-	 * @return
-	 */
-	@SuppressWarnings("unchecked")
-	public Map getNodeMap(Document doc, String path, Map filterMap, Map attributeMap) {
-		Map resultmap = new HashMap();
-		try {
-			List list = doc.selectNodes(path);
-			for (int i = 0; list != null && i < list.size(); i++) {
-				Element node = (Element) list.get(i);
-				if (filterMap == null || filterMap.isEmpty()) {
-					filterMap = new HashMap();
-					for (Iterator iterator_re = attributeMap.keySet()
-							.iterator(); iterator_re.hasNext();) {
-						String key_re = iterator_re.next() + "";
-						String value_re = attributeMap.get(key_re) + "";
-						resultmap.put(key_re, getNodeValue(node, key_re,
-								value_re));
-					}
-				}
-				for (Iterator iterator = filterMap.keySet().iterator(); iterator
-						.hasNext();) {
-					String key_filter = iterator.next() + "";
-					String value_filter = filterMap.get(key_filter) + "";
-					String filetervalue = getNodeValue(node, key_filter, TEXT);
-					String filetervalue1 = getNodeValue(node, key_filter,
-							ATRRIBUTE);
-					if ((filetervalue != null && filetervalue
-							.equals(value_filter))
-							|| filetervalue1 != null
-							&& filetervalue1.equals(value_filter)) {
-						// 就是这个条目
-						// 取这个条目下面的指定信息
-						for (Iterator iterator_re = attributeMap.keySet()
-								.iterator(); iterator_re.hasNext();) {
-							String key_re = iterator_re.next() + "";
-							String value_re = attributeMap.get(key_re) + "";
-							resultmap.put(key_re, getNodeValue(node, key_re,
-									value_re));
-						}
-						i = list.size();
-						break;
-					}
-				}
-			}
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return resultmap;
-	}
-	
-	public List<Map<String, Object>> getNodeMapList(Document doc, String path, Map<String, Object> filterMap,
-			Map<String, Object> attributeMap) {
-		Map<String, Object> resultmap;
-		List<Map<String, Object>> resultList = new ArrayList();
-		try {
-			List list = doc.selectNodes(path);
-			for (int i = 0; list != null && i < list.size(); i++) {
-				resultmap = new HashMap();
-				Element node = (Element) list.get(i);
-				if (filterMap == null || filterMap.isEmpty()) {
-					filterMap = new HashMap();
-					for (Iterator iterator_re = attributeMap.keySet()
-							.iterator(); iterator_re.hasNext();) {
-						String key_re = iterator_re.next() + "";
-						String value_re = attributeMap.get(key_re) + "";
-						resultmap.put(key_re, getNodeValue(node, key_re, value_re));
-					}
-				}
-				for (Iterator iterator = filterMap.keySet().iterator(); iterator
-						.hasNext();) {
-					String key_filter = iterator.next() + "";
-					String value_filter = filterMap.get(key_filter) + "";
-					String filetervalue = getNodeValue(node, key_filter, TEXT);
-					String filetervalue1 = getNodeValue(node, key_filter, ATRRIBUTE);
-					if ((filetervalue != null && filetervalue
-							.equals(value_filter))
-							|| filetervalue1 != null
-							&& filetervalue1.equals(value_filter)) {
-						// 就是这个条目
-						// 取这个条目下面的指定信息
-						for (Iterator iterator_re = attributeMap.keySet().iterator(); iterator_re.hasNext();) {
-							String key_re = iterator_re.next() + "";
-							String value_re = attributeMap.get(key_re) + "";
-							resultmap.put(key_re, getNodeValue(node, key_re, value_re));
-						}
-						i = list.size();
-						break;
-					}
-				}
-				resultList.add( resultmap );
-			}
-			
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return resultList;
-	}
-
-	/**
-	 * 根据节点对象,属性或节点的名称得到信息
-	 * 
-	 * @param node
-	 * @param nName
-	 * @param type
-	 * @return
-	 */
-	public String getNodeValue(Element node, String nName, String type) {
-		String result = null;
-		if ("TEXT".equals(type)) {// 如果是节点的文本
-			if (node.element(nName) != null) {
-				result = node.elementText(nName);
-			}
-		} else if ("ATRRIBUTE".equals(type)) {// 如果是节点的属性
-			if (node.attribute(nName) != null) {
-				result = node.attributeValue(nName);
-			}
-		} else if ("SELFTEXT".equals(type)) {
-			result = node.getText();
-		}
-		return result;
-	}
-
-	/**
-	 * 
-	 * 在文档里根据文档对象,下级路径和参数Map取一个具体的节点对象
-	 * 
-	 * @param doc
-	 * @param path
-	 * @param filterMap
-	 * @return
-	 */
-	@SuppressWarnings("unchecked")
-	public Element getNodeByFilter(Document doc, String path,
-			Map filterMap) {
-		try {
-			List list = doc.selectNodes(path);
-			for (int i = 0; list != null && i < list.size(); i++) {
-				Element node = (Element) list.get(i);
-				for (Iterator iterator = filterMap.keySet().iterator(); iterator
-						.hasNext();) {
-					String key_filter = iterator.next() + "";
-					String value_filter = filterMap.get(key_filter) + "";
-					String filetervalue = getNodeValue(node, key_filter, TEXT);
-					String filetervalue1 = getNodeValue(node, key_filter,
-							ATRRIBUTE);
-					if ((filetervalue != null && filetervalue
-							.equals(value_filter))
-							|| filetervalue1 != null
-							&& filetervalue1.equals(value_filter)) {
-						// 就是这个条目
-						return node;
-					}
-				}
-			}
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return null;
-	}
-
-	/**
-	 * 根据节点,下级路径,条件Map得到一个具体的节点对象
-	 * 
-	 * @param rootNode
-	 * @param path
-	 * @param filterMap
-	 * @return
-	 */
-	@SuppressWarnings("unchecked")
-	public Element getNodeByFilter(Element rootNode, String path,
-			Map filterMap) {
-		try {
-			List list = rootNode.selectNodes(path);
-			Element node = null;
-			for (int i = 0; list != null && i < list.size(); i++) {
-				node = (Element) list.get(i);
-				if (filterMap == null) {
-					return node;
-				}
-				for (Iterator iterator = filterMap.keySet().iterator(); iterator
-						.hasNext();) {
-					String key_filter = iterator.next() + "";
-					String value_filter = filterMap.get(key_filter) + "";
-					String filetervalue = getNodeValue(node, key_filter, TEXT);
-					String filetervalue1 = getNodeValue(node, key_filter,
-							ATRRIBUTE);
-					if ((filetervalue != null && filetervalue
-							.equals(value_filter))
-							|| filetervalue1 != null
-							&& filetervalue1.equals(value_filter)) {
-						// 就是这个条目
-						return node;
-					}
-				}
-			}
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return null;
-	}
-
-	/**
-	 * 根据节点,下级路径,条件Map和所取参数Map,获取某一个条目的指定信息Map
-	 * 
-	 * @param rootNode
-	 * @param path
-	 * @param filterMap
-	 * @param attributeMap
-	 * @return
-	 */
-	@SuppressWarnings("unchecked")
-	public Map getNodeMap(Element rootNode, String path, Map filterMap,
-			Map attributeMap) {
-		Map resultmap = new HashMap();
-		try {
-			List list = rootNode.selectNodes(path);
-			for (int i = 0; list != null && i < list.size(); i++) {
-				Element node = (Element) list.get(i);
-				if (filterMap == null) {
-					if (node != null) {
-						for (Iterator iterator_re = attributeMap.keySet()
-								.iterator(); iterator_re.hasNext();) {
-							String key_re = iterator_re.next() + "";
-							String value_re = attributeMap.get(key_re) + "";
-							resultmap.put(key_re, getNodeValue(node, key_re,
-									value_re));
-						}
-						i = list.size();
-						break;
-					}
-				} else {
-					for (Iterator iterator = filterMap.keySet().iterator(); iterator
-							.hasNext();) {
-						String key_filter = iterator.next() + "";
-						String value_filter = filterMap.get(key_filter) + "";
-						String filetervalue = getNodeValue(node, key_filter,
-								TEXT);
-						String filetervalue1 = getNodeValue(node, key_filter,
-								ATRRIBUTE);
-						if ((filetervalue != null && filetervalue
-								.equals(value_filter))
-								|| filetervalue1 != null
-								&& filetervalue1.equals(value_filter)) {
-							// 就是这个条目
-							// 取这个条目下面的指定信息
-							for (Iterator iterator_re = attributeMap.keySet()
-									.iterator(); iterator_re.hasNext();) {
-								String key_re = iterator_re.next() + "";
-								String value_re = attributeMap.get(key_re) + "";
-								resultmap.put(key_re, getNodeValue(node,
-										key_re, value_re));
-							}
-							i = list.size();
-							break;
-						}
-					}
-				}
-			}
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return resultmap;
-	}
-
-	/**
-	 * 
-	 * 根据节点,下级路径,需要的参数Map取一个List<Map>
-	 * 
-	 * @param rootNode
-	 * @param listNodePath
-	 * @param map
-	 * @return
-	 */
-	@SuppressWarnings("unchecked")
-	public List getNodeList(Element rootNode, String listNodePath,
-			Map map) {
-		Map resultmap = new HashMap();
-		List resultList = new ArrayList();
-		try {
-			List list = rootNode.selectNodes(listNodePath);
-			for (int i = 0; list != null && i < list.size(); i++) {
-				Element node = (Element) list.get(i);
-				for (Iterator iterator = map.keySet().iterator(); iterator
-						.hasNext();) {
-					String key = iterator.next() + "";
-					String value = map.get(key) + "";
-					resultmap.put(key, getNodeValue(node, key, value));
-				}
-				resultList.add(resultmap);
-			}
-		} catch (Exception e) {
-				logger.error("系统异常", e);
-		}
-		return resultList;
-	}
-
-	/**
-	 * 从文件读取XML,返回字符串 
-	 * 
-	 * @param fileFullName
-	 * @return
-	 */
-	public static String fileRead(String fileFullName) {
-		SAXReader reader = new SAXReader();
-		File file = new File(fileFullName);
-		Document document = null;
-		try {
-			if (file.exists()) {
-				document = reader.read(file);// 读取XML文件
-				return document.asXML();
-			}			
-		} catch (DocumentException e) {
-				logger.error("系统异常", e);
-		}
-		return "";
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/filter/DangerousCharacterFilter$Request.class


BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/filter/DangerousCharacterFilter.class


+ 0 - 143
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/filter/DangerousCharacterFilter.java

@@ -1,143 +0,0 @@
-package com.o2platform.filter;
-
-import java.io.IOException;
-import java.net.URLDecoder;
-
-import javax.servlet.FilterChain;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletRequestWrapper;
-import javax.servlet.http.HttpServletResponse;
-
-import org.springframework.web.filter.OncePerRequestFilter;
-
-/**
- * 危险字符过滤器
- * 
- * 不允许在系统内以用户参数的方式传递如HTML标签等特殊符号
- *
- */
-public class DangerousCharacterFilter extends OncePerRequestFilter {
-	
-    @Override
-    protected void doFilterInternal( HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {
-
-    	/**
-    	 * 对传入的参数进行危险字符过滤
-    	 * 对请求对象进行包装,在获取请求具体参数时会进行信息过滤
-    	 */
-        request = new Request((HttpServletRequest) request);
-        response.setHeader("Set-Cookie", "name=value; HttpOnly");
-        chain.doFilter(request, response);
-    }
-
-    /**
-     * |(竖线符号)
- & (& 符号)
- ;(分号)
- $(美元符号)
- %(百分比符号)
- @(at 符号)
- '(单引号)
- "(引号)
- \'(反斜杠转义单引号)
- \"(反斜杠转义引号)
- <>(尖括号)
- ()(括号)
- +(加号)
- CR(回车符,ASCII 0x0d)
- LF(换行,ASCII 0x0a)
- ,(逗号)
- \(反斜杠)
- Eval方法
- Document
- Cookie
- Javascript
- Script
- onerror
-     * @param value
-     * @return
-     */
-    public String filterDangerString(String value) {
-    	
-        if (value == null) {  return null; }
-        // 字符转换 #[backslash] = /
-        value = value.replaceAll("/", "#backslash");
-        // 字符转换 #[lt] = <
-        value = value.replaceAll("<", "#lt");
-        // 字符转换 #[gt] = >
-        value = value.replaceAll(">", "#gt");
-        // 字符转换 #[at] = @
-        value = value.replaceAll("@", "#at");
-        // 字符转换 #[semicolon] = ;
-        value = value.replaceAll(";", "#semicolon");
-        // 字符转换 #[and] = ;
-        value = value.replaceAll("&", "#and");
-        
-        value = value.replaceAll("\\|", "");
-        value = value.replaceAll("\\\\", "");
-        value = value.replaceAll("\\(", "");
-        value = value.replaceAll("\\)", "");
-        value = value.replaceAll("\\+", "");
-        value = value.replaceAll("%", "");
-        value = value.replaceAll("\r", "");
-        value = value.replaceAll("\n", "");
-        value = value.replaceAll("script", "");
-        value = value.replaceAll("SCRIPT", "");
-        value = value.replaceAll("=", "");
-        
-        value = value.replaceAll("Eval", "");
-        value = value.replaceAll("Document", "");
-        value = value.replaceAll("Cookie", "");
-        value = value.replaceAll("Javascript", "");
-        value = value.replaceAll("Script", "");
-        value = value.replaceAll("onerror", "");
-
-        return value;
-    }
-
-    /**
-     * 请求包装实现类
-     * @author liyi
-     *
-     */
-    class Request extends HttpServletRequestWrapper {
-    	
-        public Request(HttpServletRequest request) {
-            super(request);
-        }
-        
-        @SuppressWarnings("deprecation")
-		@Override
-        public String getParameter(String name) {
-            // 返回值之前 先进行过滤
-        	String value = super.getParameter( name );
-        	if( value!=null && !value.isEmpty()){
-        		value = URLDecoder.decode ( URLDecoder.decode( value ) );       
-        	}
-            return filterDangerString( value );
-        }
-
-        @SuppressWarnings("deprecation")
-		@Override
-        public String[] getParameterValues(String name) {
-            // 返回值之前 先进行过滤
-            String[] values = super.getParameterValues(name);            
-            if( values != null ){            	
-            	for (int i = 0; i < values.length; i++) {
-            		if( values[i]!=null && !values[i].isEmpty()){
-            			/**
-                		 * 有可能会有中文传递,中文传递时会二次使用URL编码,所以此处先URL解码两次,多次解码不影响结果
-                		 */
-                		values[i] = URLDecoder.decode ( URLDecoder.decode( values[i]) );
-                		/**
-                		 * 然后对传递的结果进行危险字符过滤
-                		 */
-                        values[i] = filterDangerString(values[i]);
-            		}
-                }
-            }
-            return values;
-        }
-    }
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/listener/SystemStartupListener.class


+ 0 - 22
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/listener/SystemStartupListener.java

@@ -1,22 +0,0 @@
-package com.o2platform.listener;
-
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
-import javax.servlet.http.HttpServlet;
-
-import org.apache.log4j.Logger;
-
-
-public class SystemStartupListener extends HttpServlet implements ServletContextListener {
-	
-	private static final long serialVersionUID = 1L;
-	
-	public static Logger logger = Logger.getLogger(SystemStartupListener.class);
-	 
-	public void contextDestroyed(ServletContextEvent arg0) {
-		//logger.info("服务已经成功停止。");
-	}
-	public void contextInitialized(ServletContextEvent arg0) {
-		//logger.info(">>>>>>>>>>>应用服务已经成功启动。");
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/BaseController.class


+ 0 - 141
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/BaseController.java

@@ -1,141 +0,0 @@
-package com.o2platform.website.controller;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpSession;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.context.request.RequestContextHolder;
-import org.springframework.web.context.request.ServletRequestAttributes;
-import org.springframework.web.context.support.WebApplicationContextUtils;
-
-/**
- * BaseController为所有的Controller的父类,系统在BaseController类里提供了部分方法来供子类使用:<br/>
- * getWebApplicationContext 获取Spring的上下文对象<br/>
- * getServletContext 获取Servlet上下文对象,一般用来缓存常用的对象(application对象)<br/>
- * getAttributeFromServletContext 从Servlet上下文中获取指定的属性,一般是获取缓存对象<br/>
- * setAttributeToServletContext 向Servlet上下文对象中设置属性,一般是设置缓存对象<br/>
- * getSession 获取Session对象<br/>
- * getAttributeFromHttpSession 从Session中获取指定的属性,一般是获取用户信息,购物车信息<br/>
- * setAttributeToHttpSession  向session中设置属性,一般是设置用户相关属性<br/>
- * getRequest  获取HttpRequest对象,一般是获取请求的参数<br/>
- */
-@Controller
-public class BaseController {
-	
-	/**
-	 * 在Controller中获取ServletContext对象
-	 * @return
-	 */
-	public Object getServiceBean(String benaName) {
-		
-		try {
-			WebApplicationContext springContext = getWebApplicationContext();
-			return springContext.getBean(benaName);
-		} catch (Exception e) {
-		}
-		return null;
-	}
-	
-	/**
-	 * 在Controller中获取ServletContext对象
-	 * @return
-	 */
-	public WebApplicationContext getWebApplicationContext() {
-		WebApplicationContext springContext = null;
-		try {
-			springContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
-		} catch (Exception e) {
-		}
-		return springContext;
-	}
-	
-	/**
-	 * 在Controller中获取ServletContext对象
-	 * @return
-	 */
-	public ServletContext getServletContext() {
-		ServletContext servletContext = null;
-		try {
-			servletContext = getSession().getServletContext();
-		} catch (Exception e) {
-		}
-		return servletContext;
-	}
-	
-	/**
-	 * 从ServletContext中获取参数
-	 * @return
-	 */
-	public Object getAttributeFromServletContext(String key) {
-		try {
-			ServletContext servletContext = getServletContext();
-			return servletContext.getAttribute(key);
-		} catch (Exception e) {
-		}
-		return null;
-	}
-	
-	
-	/**
-	 * 向ServletContext中设置参数
-	 * @return
-	 */
-	public void setAttributeToServletContext(String key, Object obj) {
-		try {
-			ServletContext servletContext = getServletContext();
-			servletContext.setAttribute(key, obj);
-		} catch (Exception e) {
-		}
-	}
-	
-	/**
-	 * 在Controller中获取HttpSession对象
-	 * @return
-	 */
-	public HttpSession getSession() {
-		HttpSession session = null;
-		try {
-			session = getRequest().getSession();
-		} catch (Exception e) {
-		}
-		return session;
-	}
-	
-	/**
-	 * 从HttpSession中获取参数
-	 * @return
-	 */
-	public Object getAttributeFromHttpSession(String key) {
-		try {
-			HttpSession session = getSession();
-			return session.getAttribute(key);
-		} catch (Exception e) {
-		}
-		return null;
-	}
-	
-	
-	/**
-	 * 向HttpSession中设置参数
-	 * @return
-	 */
-	public void setAttributeToHttpSession(String key, Object obj) {
-		try {
-			HttpSession session = getSession();
-			session.setAttribute(key, obj);
-		} catch (Exception e) {
-		}
-	}
-	
-	/**
-	 * 在Controller中获取HttpRequest对象
-	 * @return
-	 */
-	public HttpServletRequest getRequest() {
-		ServletRequestAttributes attrs = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
-		return attrs.getRequest();
-	}
-	
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteDownloadRecordController$1.class


BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteDownloadRecordController.class


+ 0 - 47
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteDownloadRecordController.java

@@ -1,47 +0,0 @@
-package com.o2platform.website.controller;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import com.o2platform.common.ip.IPHelper;
-import com.o2platform.website.entity.WebSiteDownloadRecord;
-import com.o2platform.website.service.WebSiteDownloadRecordServiceI;
-
-
-@Controller
-@RequestMapping("webSiteDownloadRecord")
-public class WebSiteDownloadRecordController extends BaseController {
-    public static Logger logger = Logger.getLogger( WebSiteDownloadRecordController.class );
-    
-    private String clazzName = new Object() {
-    	public String getClassName() {
-    		String clazzName = this.getClass().getName();
-    		return clazzName.substring(0, clazzName.lastIndexOf('$'));
-    	}
-    }.getClassName();
-    
-    @Autowired
-	private WebSiteDownloadRecordServiceI webSiteDownloadRecordService;	
-	
-	@RequestMapping( value = "download" )
-	public Object download( String fileName, HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteDownloadRecord entity = new WebSiteDownloadRecord();
-		entity.setFileName( "fileName" );
-		entity.setHostIp( IPHelper.getIpAddr( req ) );
-		try{
-			webSiteDownloadRecordService.add( entity );
-		}catch(Exception e){
-			logger.error("保存文件下载日志信息表信息失败", e);
-		}
-		return map;
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteFeedbackController$1.class


BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteFeedbackController.class


+ 0 - 59
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteFeedbackController.java

@@ -1,59 +0,0 @@
-package com.o2platform.website.controller;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import com.o2platform.common.ip.IPHelper;
-import com.o2platform.website.entity.WebSiteFeedbackContent;
-import com.o2platform.website.entity.WebSiteFeedbackRecord;
-import com.o2platform.website.service.WebSiteFeedbackContentServiceI;
-import com.o2platform.website.service.WebSiteFeedbackRecordServiceI;
-
-
-@Controller
-@RequestMapping("WebSiteFeedback")
-public class WebSiteFeedbackController extends BaseController {
-    public static Logger logger = Logger.getLogger( WebSiteFeedbackController.class );
-    
-    private String clazzName = new Object() {
-    	public String getClassName() {
-    		String clazzName = this.getClass().getName();
-    		return clazzName.substring(0, clazzName.lastIndexOf('$'));
-    	}
-    }.getClassName();
-    
-    @Autowired
-	private WebSiteFeedbackRecordServiceI webSiteFeedbackRecordService;
-    
-    @Autowired
-	private WebSiteFeedbackContentServiceI webSiteFeedbackContentService;
-	
-	@RequestMapping( value = "submit" )
-	public Object submit( String title, String content, String telephone, String email, HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteFeedbackRecord feedbackRecord = new WebSiteFeedbackRecord();
-		WebSiteFeedbackContent feedbackContent = new WebSiteFeedbackContent();
-		feedbackRecord.setTitle( title );
-		feedbackRecord.setTelephone( telephone );
-		feedbackRecord.setEmail( email );
-		feedbackRecord.setHostIp( IPHelper.getIpAddr( req ) );
-		
-		feedbackContent.setContent( content );
-		
-		try{
-			webSiteFeedbackRecordService.add( feedbackRecord );
-			webSiteFeedbackContentService.add( feedbackContent );
-		}catch(Exception e){
-			logger.error("保存用户反馈信息表信息失败", e);
-		}
-		return map;
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteVisitRecordController$1.class


BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteVisitRecordController.class


+ 0 - 105
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/controller/WebSiteVisitRecordController.java

@@ -1,105 +0,0 @@
-package com.o2platform.website.controller;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import com.o2platform.common.ip.IPHelper;
-import com.o2platform.website.entity.WebSiteVisitRecord;
-import com.o2platform.website.service.WebSiteVisitRecordServiceI;
-
-
-@Controller
-@RequestMapping("visit")
-public class WebSiteVisitRecordController extends BaseController {
-    public static Logger logger = Logger.getLogger( WebSiteVisitRecordController.class );
-    
-    private String clazzName = new Object() {
-    	public String getClassName() {
-    		String clazzName = this.getClass().getName();
-    		return clazzName.substring(0, clazzName.lastIndexOf('$'));
-    	}
-    }.getClassName();
-    
-    @Autowired
-	private WebSiteVisitRecordServiceI webSiteVisitRecordService;	
-	
-	@RequestMapping( value = "index" )
-	public Object index( HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteVisitRecord entity = new WebSiteVisitRecord();
-		entity.setPageName( "o2.html" );
-		entity.setHostIp( IPHelper.getIpAddr( req ) );
-		try{
-			webSiteVisitRecordService.add( entity );
-		}catch(Exception e){
-			logger.error("保存访问日志信息表信息失败", e);
-		}
-		return map;
-	}
-	
-	@RequestMapping( value = "download" )
-	public Object download( HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteVisitRecord entity = new WebSiteVisitRecord();
-		entity.setPageName( "download.html" );
-		entity.setHostIp( IPHelper.getIpAddr( req ) );
-		try{
-			webSiteVisitRecordService.add( entity );
-		}catch(Exception e){
-			logger.error("保存访问日志信息表信息失败", e);
-		}
-		return map;	
-	}
-	
-	@RequestMapping( value = "feedback" )
-	public Object feedback( HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteVisitRecord entity = new WebSiteVisitRecord();
-		entity.setPageName( "feedback.html" );
-		entity.setHostIp( IPHelper.getIpAddr( req ) );
-		try{
-			webSiteVisitRecordService.add( entity );
-		}catch(Exception e){
-			logger.error("保存访问日志信息表信息失败", e);
-		}
-		return map;		
-	}
-	
-	@RequestMapping( value = "trial" )
-	public Object trial( HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteVisitRecord entity = new WebSiteVisitRecord();
-		entity.setPageName( "trial" );
-		entity.setHostIp( IPHelper.getIpAddr( req ) );
-		entity.setDescription( "http://demo.xplatform.tech" );
-		try{
-			webSiteVisitRecordService.add( entity );
-		}catch(Exception e){
-			logger.error("保存访问日志信息表信息失败", e);
-		}
-		return map;		
-	}
-	
-	@RequestMapping( value = "forum" )
-	public Object forum( HttpServletRequest req, HttpServletResponse resp ) {
-		Map<String, Object> map = new HashMap<String, Object>();
-		WebSiteVisitRecord entity = new WebSiteVisitRecord();
-		entity.setPageName( "forum" );
-		entity.setHostIp( IPHelper.getIpAddr( req ) );
-		entity.setDescription( "http://www.o2server.io:9081/x_desktop/forum.html" );
-		try{
-			webSiteVisitRecordService.add( entity );
-		}catch(Exception e){
-			logger.error("保存访问日志信息表信息失败", e);
-		}
-		return map;		
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteDownloadRecordDao.class


+ 0 - 10
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteDownloadRecordDao.java

@@ -1,10 +0,0 @@
-package com.o2platform.website.dao;
-
-
-import com.o2platform.website.entity.WebSiteDownloadRecord;
-
-public interface WebSiteDownloadRecordDao { 
-
-	public Integer add( WebSiteDownloadRecord entity ); 
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackContentDao.class


+ 0 - 10
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackContentDao.java

@@ -1,10 +0,0 @@
-package com.o2platform.website.dao;
-
-
-import com.o2platform.website.entity.WebSiteFeedbackContent;
-
-public interface WebSiteFeedbackContentDao { 
-
-	public Integer add( WebSiteFeedbackContent entity ); 
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackRecordDao.class


+ 0 - 10
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteFeedbackRecordDao.java

@@ -1,10 +0,0 @@
-package com.o2platform.website.dao;
-
-
-import com.o2platform.website.entity.WebSiteFeedbackRecord;
-
-public interface WebSiteFeedbackRecordDao { 
-
-	public Integer add( WebSiteFeedbackRecord entity ); 
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteVisitRecordDao.class


+ 0 - 10
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/dao/WebSiteVisitRecordDao.java

@@ -1,10 +0,0 @@
-package com.o2platform.website.dao;
-
-
-import com.o2platform.website.entity.WebSiteVisitRecord;
-
-public interface WebSiteVisitRecordDao {
-
-	public Integer add( WebSiteVisitRecord entity ); 
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteDownloadRecord.class


+ 0 - 111
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteDownloadRecord.java

@@ -1,111 +0,0 @@
-package com.o2platform.website.entity;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.UUID;
-
-import com.o2platform.common.date.DateOperation;
-
-public class WebSiteDownloadRecord implements Serializable{
-
-	private static final long serialVersionUID = 1L;
-
-	public WebSiteDownloadRecord() {
-		Date date = new Date();
-		if ( null == this.createTime ) {
-			this.createTime = date;
-		}
-		if ( null == this.operationYear ) {
-			this.operationYear = DateOperation.getYear( date );
-		}
-		if ( null == this.operationMonth ) {
-			this.operationMonth = DateOperation.getMonth( date );
-		}
-		if ( null == this.operationDay ) {
-			this.operationDay = DateOperation.getDay( date );
-		}
-	}
-	
-	public static String createId() {
-		return UUID.randomUUID().toString();
-	}
-	private String id = createId();
-	private Date createTime;
-	private String hostIp = "";
-	private String operationYear = null;
-	private String operationMonth = null;
-	private String operationDay = null;
-	private String xoperator = "";
-	private String province = "";
-	private String city = "";
-	private String fileName = "";
-	private String description = "";
-
-	public String getId() {
-		return id;
-	}
-	public void setId(String id) {
-		this.id = id;
-	}
-	public Date getCreateTime() {
-		return createTime;
-	}
-	public void setCreateTime(Date createTime) {
-		this.createTime = createTime;
-	}
-	public String getHostIp() {
-		return hostIp;
-	}
-	public void setHostIp(String hostIp) {
-		this.hostIp = hostIp;
-	}
-	public String getOperationDay() {
-		return operationDay;
-	}
-	public void setOperationDay(String operationDay) {
-		this.operationDay = operationDay;
-	}
-	public String getXoperator() {
-		return xoperator;
-	}
-	public void setXoperator(String xoperator) {
-		this.xoperator = xoperator;
-	}
-	public String getFileName() {
-		return fileName;
-	}
-	public void setFileName(String fileName) {
-		this.fileName = fileName;
-	}
-	public String getDescription() {
-		return description;
-	}
-	public void setDescription(String description) {
-		this.description = description;
-	}
-	public String getOperationYear() {
-		return operationYear;
-	}
-	public void setOperationYear(String operationYear) {
-		this.operationYear = operationYear;
-	}
-	public String getOperationMonth() {
-		return operationMonth;
-	}
-	public void setOperationMonth(String operationMonth) {
-		this.operationMonth = operationMonth;
-	}
-	public String getProvince() {
-		return province;
-	}
-	public void setProvince(String province) {
-		this.province = province;
-	}
-	public String getCity() {
-		return city;
-	}
-	public void setCity(String city) {
-		this.city = city;
-	}
-	
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackContent.class


+ 0 - 43
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackContent.java

@@ -1,43 +0,0 @@
-package com.o2platform.website.entity;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.UUID;
-
-public class WebSiteFeedbackContent implements Serializable {
-
-	private static final long serialVersionUID = 1L;
-
-	public WebSiteFeedbackContent() {
-		Date date = new Date();
-		if ( null == this.createTime ) {
-			this.createTime = date;
-		}
-	}
-	public static String createId() {
-		return UUID.randomUUID().toString();
-	}
-	
-	private String id = createId();
-	private Date createTime;
-	private String content = "";
-
-	public String getContent() {
-		return content;
-	}
-	public void setContent(String content) {
-		this.content = content;
-	}
-	public String getId() {
-		return id;
-	}
-	public void setId(String id) {
-		this.id = id;
-	}
-	public Date getCreateTime() {
-		return createTime;
-	}
-	public void setCreateTime(Date createTime) {
-		this.createTime = createTime;
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackRecord.class


+ 0 - 125
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteFeedbackRecord.java

@@ -1,125 +0,0 @@
-package com.o2platform.website.entity;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.UUID;
-
-import com.o2platform.common.date.DateOperation;
-
-
-public class WebSiteFeedbackRecord implements Serializable {
-
-	private static final long serialVersionUID = 3856138316794473794L;
-	
-	public WebSiteFeedbackRecord() {
-		Date date = new Date();
-		if ( null == this.createTime ) {
-			this.createTime = date;
-		}
-		if ( null == this.operationYear ) {
-			this.operationYear = DateOperation.getYear( date );
-		}
-		if ( null == this.operationMonth ) {
-			this.operationMonth = DateOperation.getMonth( date );
-		}
-		if ( null == this.operationDay ) {
-			this.operationDay = DateOperation.getDay( date );
-		}
-	}
-	
-	public static String createId() {
-		return UUID.randomUUID().toString();
-	}
-	private String id = createId();
-	private Date createTime;
-	private String hostIp = "";
-	private String operationYear = null;
-	private String operationMonth = null;
-	private String operationDay = null;
-	private String xoperator = "";
-	private String province = "";
-	private String city = "";
-	private String title = "";
-	private String description = "";
-	private String telephone = "";
-	private String email = "";
-
-	public String getHostIp() {
-		return hostIp;
-	}
-	public void setHostIp(String hostIp) {
-		this.hostIp = hostIp;
-	}
-	public String getOperationDay() {
-		return operationDay;
-	}
-	public void setOperationDay(String operationDay) {
-		this.operationDay = operationDay;
-	}
-	public String getXoperator() {
-		return xoperator;
-	}
-	public void setXoperator(String xoperator) {
-		this.xoperator = xoperator;
-	}
-	public String getDescription() {
-		return description;
-	}
-	public void setDescription(String description) {
-		this.description = description;
-	}
-	public String getOperationYear() {
-		return operationYear;
-	}
-	public void setOperationYear(String operationYear) {
-		this.operationYear = operationYear;
-	}
-	public String getOperationMonth() {
-		return operationMonth;
-	}
-	public void setOperationMonth(String operationMonth) {
-		this.operationMonth = operationMonth;
-	}
-	public String getProvince() {
-		return province;
-	}
-	public void setProvince(String province) {
-		this.province = province;
-	}
-	public String getCity() {
-		return city;
-	}
-	public void setCity(String city) {
-		this.city = city;
-	}
-	public String getTitle() {
-		return title;
-	}
-	public void setTitle(String title) {
-		this.title = title;
-	}
-	public String getTelephone() {
-		return telephone;
-	}
-	public void setTelephone(String telephone) {
-		this.telephone = telephone;
-	}
-	public String getEmail() {
-		return email;
-	}
-	public void setEmail(String email) {
-		this.email = email;
-	}
-	public String getId() {
-		return id;
-	}
-	public void setId(String id) {
-		this.id = id;
-	}
-	public Date getCreateTime() {
-		return createTime;
-	}
-	public void setCreateTime(Date createTime) {
-		this.createTime = createTime;
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteVisitRecord.class


+ 0 - 113
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/entity/WebSiteVisitRecord.java

@@ -1,113 +0,0 @@
-package com.o2platform.website.entity;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.UUID;
-
-import com.o2platform.common.date.DateOperation;
-
-
-public class WebSiteVisitRecord implements Serializable {
-
-	private static final long serialVersionUID = 3856138316794473794L;
-	
-	public WebSiteVisitRecord() {
-		Date date = new Date();
-		if ( null == this.createTime ) {
-			this.createTime = date;
-		}
-		if ( null == this.operationYear ) {
-			this.operationYear = DateOperation.getYear( date );
-		}
-		if ( null == this.operationMonth ) {
-			this.operationMonth = DateOperation.getMonth( date );
-		}
-		if ( null == this.operationDay ) {
-			this.operationDay = DateOperation.getDay( date );
-		}
-	}
-	
-	public static String createId() {
-		return UUID.randomUUID().toString();
-	}
-	private String id = createId();
-	private Date createTime;
-	private String hostIp = null;
-	private String operationYear = null;
-	private String operationMonth = null;
-	private String operationDay = null;
-	private String xoperator = "";
-	private String pageName = null;
-	private String province = null;
-	private String city = null;
-	private String description = null;
-
-	public String getHostIp() {
-		return hostIp;
-	}
-	public void setHostIp(String hostIp) {
-		this.hostIp = hostIp;
-	}
-	public String getOperationDay() {
-		return operationDay;
-	}
-	public void setOperationDay(String operationDay) {
-		this.operationDay = operationDay;
-	}
-	public String getXoperator() {
-		return xoperator;
-	}
-	public void setXoperator(String xoperator) {
-		this.xoperator = xoperator;
-	}
-
-	public String getPageName() {
-		return pageName;
-	}
-	public void setPageName(String pageName) {
-		this.pageName = pageName;
-	}
-	public String getDescription() {
-		return description;
-	}
-	public void setDescription(String description) {
-		this.description = description;
-	}
-	public String getOperationYear() {
-		return operationYear;
-	}
-	public void setOperationYear(String operationYear) {
-		this.operationYear = operationYear;
-	}
-	public String getOperationMonth() {
-		return operationMonth;
-	}
-	public void setOperationMonth(String operationMonth) {
-		this.operationMonth = operationMonth;
-	}
-	public String getProvince() {
-		return province;
-	}
-	public void setProvince(String province) {
-		this.province = province;
-	}
-	public String getCity() {
-		return city;
-	}
-	public void setCity(String city) {
-		this.city = city;
-	}
-	public String getId() {
-		return id;
-	}
-	public void setId(String id) {
-		this.id = id;
-	}
-	public Date getCreateTime() {
-		return createTime;
-	}
-	public void setCreateTime(Date createTime) {
-		this.createTime = createTime;
-	}
-	
-}

+ 0 - 17
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteDownloadRecord_SqlMap.xml

@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="com.o2platform.website.dao.WebSiteDownloadRecordDao"> 
-
-	<resultMap type="com.o2platform.website.entity.WebSiteDownloadRecord" id="webSiteDownloadRecordResult"/> 
-
-	<insert id="add" parameterType="com.o2platform.website.entity.WebSiteDownloadRecord">
-		<![CDATA[
-			INSERT INTO WEBSITEVISITRECORD ( ID, CREATETIME, HOSTIP, OPERATIONYEAR, OPERATIONMONTH, 
-			OPERATIONDAY, XOPERATOR, FILENAME, PROVINCE, CITY, DESCRIPTION  ) 
-			VALUES ( #{id}, #{createTime}, #{hostIp}, #{operationYear}, #{operationMonth}, 
-			#{operationDay}, #{xoperator}, #{fileName}, #{province}, #{city}, #{description} ) 
-		]]>
-	</insert>
-</mapper>
-

+ 0 - 15
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteFeedbackContent_SqlMap.xml

@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="com.o2platform.website.dao.WebSiteFeedbackContentDao"> 
-
-	<resultMap type="com.o2platform.website.entity.WebSiteFeedbackContent" id="webSiteFeedbackContentResult"/> 
-
-	<insert id="add" parameterType="com.o2platform.website.entity.WebSiteFeedbackContent">
-		<![CDATA[
-			INSERT INTO WEBSITEVISITRECORD ( ID, CREATETIME, CONTENT  ) 
-			VALUES ( #{id}, #{createTime}, #{content} ) 
-		]]>
-	</insert>
-</mapper>
-

+ 0 - 17
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteFeedbackRecord_SqlMap.xml

@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="com.o2platform.website.dao.WebSiteFeedbackRecordDao"> 
-
-	<resultMap type="com.o2platform.website.entity.WebSiteFeedbackRecord" id="webSiteFeedbackRecordResult"/> 
-
-	<insert id="add" parameterType="com.o2platform.website.entity.WebSiteFeedbackRecord">
-		<![CDATA[
-			INSERT INTO WEBSITEVISITRECORD ( ID, CREATETIME, HOSTIP, OPERATIONYEAR, OPERATIONMONTH, 
-			OPERATIONDAY, XOPERATOR, TITLE, PROVINCE, CITY, TELEPHONE, EMAIL, DESCRIPTION  ) 
-			VALUES ( #{id}, #{createTime}, #{hostIp}, #{operationYear}, #{operationMonth}, 
-			#{operationDay}, #{xoperator}, #{title}, #{province}, #{telephone}, #{email}, #{description} ) 
-		]]>
-	</insert>
-</mapper>
-

+ 0 - 17
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/mapper/WebSiteVisitRecord_SqlMap.xml

@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="com.o2platform.website.dao.WebSiteVisitRecordDao"> 
-
-	<resultMap type="com.o2platform.website.entity.WebSiteVisitRecord" id="webSiteVisitRecordResult"/> 
-
-	<insert id="add" parameterType="com.o2platform.website.entity.WebSiteVisitRecord">
-		<![CDATA[
-			INSERT INTO WEBSITEVISITRECORD ( ID, CREATETIME, HOSTIP, OPERATIONYEAR, OPERATIONMONTH, 
-			OPERATIONDAY, XOPERATOR, PAGENAME, PROVINCE, CITY, DESCRIPTION  ) 
-			VALUES ( #{id}, #{createTime}, #{hostIp}, #{operationYear}, #{operationMonth}, 
-			#{operationDay}, #{xoperator}, #{pageName}, #{province}, #{city}, #{description} ) 
-		]]>
-	</insert>
-</mapper>
-

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceI.class


+ 0 - 12
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceI.java

@@ -1,12 +0,0 @@
-package com.o2platform.website.service;
-
-
-import com.o2platform.website.entity.WebSiteDownloadRecord;
-
-public interface WebSiteDownloadRecordServiceI { 
-	/**
-	 * 新增数据方法接口
-	**/
-	public boolean add( WebSiteDownloadRecord entity);
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceImpl.class


+ 0 - 28
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteDownloadRecordServiceImpl.java

@@ -1,28 +0,0 @@
-package com.o2platform.website.service;
-
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.o2platform.website.dao.WebSiteDownloadRecordDao;
-import com.o2platform.website.entity.WebSiteDownloadRecord;
-
-@Service("webSiteDownloadRecordService")
-public class WebSiteDownloadRecordServiceImpl implements WebSiteDownloadRecordServiceI { 
-
-	public static Logger logger = Logger.getLogger(WebSiteDownloadRecordServiceImpl.class);
-	
-	@Autowired
-	private WebSiteDownloadRecordDao dao;
-
-	@Override
-	public boolean add( WebSiteDownloadRecord entity ){
-		try {
-			dao.add( entity );
-			return true;
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceI.class


+ 0 - 13
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceI.java

@@ -1,13 +0,0 @@
-package com.o2platform.website.service;
-
-
-import com.o2platform.website.entity.WebSiteFeedbackContent;
-
-public interface WebSiteFeedbackContentServiceI { 
-
-	/**
-	 * 新增数据方法接口
-	**/
-	public boolean add( WebSiteFeedbackContent entity );
-	
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceImpl.class


+ 0 - 42
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackContentServiceImpl.java

@@ -1,42 +0,0 @@
-package com.o2platform.website.service;
-
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.o2platform.website.dao.WebSiteFeedbackContentDao;
-import com.o2platform.website.entity.WebSiteFeedbackContent;
-
-/**
- * SYS_CONFIG[系统配置信息表]表操作Serfice实现类
-
- * 类   名:Sys_configServiceImpl<br/>
- * 表   名:SYS_CONFIGSERVICEIMPL<br/>
- * 注   释:<br/>
- * 作   者:GREENLEAF<br/>
- * 单   位:浙江兰德纵横网络技术有限公司<br/>
- * 日   期:2014-09-03 20:36:57
-**/
-@Service( "sys_configService" )
-public class WebSiteFeedbackContentServiceImpl implements WebSiteFeedbackContentServiceI { 
-
-	public static Logger logger = Logger.getLogger(WebSiteFeedbackContentServiceImpl.class);
-
-	@Autowired
-	private WebSiteFeedbackContentDao dao;
-	
-	/**
-	 * 新增数据方法实现
-	**/
-	@Override
-	public boolean add( WebSiteFeedbackContent entity ){
-		try {
-			dao.add( entity );
-			return true;
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-	}
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceI.class


+ 0 - 12
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceI.java

@@ -1,12 +0,0 @@
-package com.o2platform.website.service;
-
-
-import com.o2platform.website.entity.WebSiteFeedbackRecord;
-
-public interface WebSiteFeedbackRecordServiceI { 
-	/**
-	 * 新增数据方法接口
-	**/
-	public boolean add( WebSiteFeedbackRecord entity );
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceImpl.class


+ 0 - 28
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteFeedbackRecordServiceImpl.java

@@ -1,28 +0,0 @@
-package com.o2platform.website.service;
-
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.o2platform.website.dao.WebSiteFeedbackRecordDao;
-import com.o2platform.website.entity.WebSiteFeedbackRecord;
-
-@Service("webSiteFeedbackRecordService")
-public class WebSiteFeedbackRecordServiceImpl implements WebSiteFeedbackRecordServiceI { 
-
-	public static Logger logger = Logger.getLogger(WebSiteFeedbackRecordServiceImpl.class);
-	
-	@Autowired
-	private WebSiteFeedbackRecordDao dao;
-
-	@Override
-	public boolean add( WebSiteFeedbackRecord entity ){
-		try {
-			dao.add( entity );
-			return true;
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-	}
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceI.class


+ 0 - 12
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceI.java

@@ -1,12 +0,0 @@
-package com.o2platform.website.service;
-
-
-import com.o2platform.website.entity.WebSiteVisitRecord;
-
-public interface WebSiteVisitRecordServiceI { 
-	/**
-	 * 新增数据方法接口
-	**/
-	public boolean add( WebSiteVisitRecord entity );
-
-}

BIN
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceImpl.class


+ 0 - 28
officialserver/w_o2website_assemble_control/WEB-INF/classes/com/o2platform/website/service/WebSiteVisitRecordServiceImpl.java

@@ -1,28 +0,0 @@
-package com.o2platform.website.service;
-
-
-import org.apache.log4j.Logger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.o2platform.website.dao.WebSiteVisitRecordDao;
-import com.o2platform.website.entity.WebSiteVisitRecord;
-
-@Service("webSiteVisitRecordService")
-public class WebSiteVisitRecordServiceImpl implements WebSiteVisitRecordServiceI { 
-
-	public static Logger logger = Logger.getLogger( WebSiteVisitRecordServiceImpl.class );
-	
-	@Autowired
-	private WebSiteVisitRecordDao dao;
-
-	@Override
-	public boolean add( WebSiteVisitRecord entity ){
-		try {
-			dao.add( entity );
-			return true;
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-	}
-}

+ 0 - 7
officialserver/w_o2website_assemble_control/WEB-INF/classes/config.properties

@@ -1,7 +0,0 @@
-jdbc_driver=com.mysql.jdbc.Driver
-validationQuery=SELECT 1 FROM sys_config
-jdbc_url=jdbc:mysql://localhost:3306/o2website?useUnicode=true&characterEncoding=utf-8
-jdbc_u=root
-jdbc_p=Zone2009
-loginIndex=index.html
-app_version=1.0.0

+ 0 - 17
officialserver/w_o2website_assemble_control/WEB-INF/classes/log4j.properties

@@ -1,17 +0,0 @@
-log4j.rootCategory=DEBUG, stdout
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=[QC] %p [%t] %C.%M(%L) | %m%n
-
-log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.file.file=d:/o2website.log
-log4j.appender.file.MaxFileSize=10000KB 
-log4j.appender.file.DatePattern='.'yyyy-MM-dd
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%-d{yyyy-MM-dd HH\:mm\:ss.SSS}, [%-9t], [%-5p], %C{1}.%M(%L), | %m%n
-
-#log4j.logger.java.sql.ResultSet=DEBUG
-log4j.logger.java.sql.Connection=DEBUG
-log4j.logger.java.sql.Statement=DEBUG
-log4j.logger.java.sql.PreparedStatement=DEBUG

+ 0 - 43
officialserver/w_o2website_assemble_control/WEB-INF/classes/spring-mvc.xml

@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans" 
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xmlns:mvc="http://www.springframework.org/schema/mvc" 
-	xmlns:context="http://www.springframework.org/schema/context"
-	xmlns:websocket="http://www.springframework.org/schema/websocket"
-	xsi:schemaLocation="
-	http://www.springframework.org/schema/beans
-	http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
-	http://www.springframework.org/schema/context 
-	http://www.springframework.org/schema/context/spring-context-4.0.xsd
-	http://www.springframework.org/schema/mvc  
-    http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
-    http://www.springframework.org/schema/websocket 
-    http://www.springframework.org/schema/websocket/spring-websocket.xsd">
-    
-	<!-- controller包(自动注入) -->
-	<context:component-scan base-package="com.o2platform.*.controller" />
-
-	<!-- 采用注解方式配置MVC -->
-	<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>
-    <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
-        <property name="messageConverters">
-            <list>
-                <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" />
-            </list>
-        </property>
-    </bean>
-	
-	<!-- 对模型视图名称的解析,即在模型视图名称添加前后缀 -->
-	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
-		<property name="prefix" value="/" />
-		<property name="suffix" value=".jsp" />
-	</bean>
-	
-	<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
-		<property name="defaultEncoding" value="UTF-8" />
-		<!-- 上传文件大小限制为21m,21*1024*1024 -->
-		<property name="maxUploadSize" value="22020096" />
-		<property name="maxInMemorySize" value="4096" />
-	</bean>
-	 
-</beans>

+ 0 - 70
officialserver/w_o2website_assemble_control/WEB-INF/classes/spring-mybatis.xml

@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
-	xmlns:aop="http://www.springframework.org/schema/aop"
-	xsi:schemaLocation="
-http://www.springframework.org/schema/beans 
-http://www.springframework.org/schema/beans/spring-beans-3.1.xsd 
-http://www.springframework.org/schema/tx 
-http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
-http://www.springframework.org/schema/aop 
-http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
-">
-	<!-- 数据源配置, 使用 BoneCP 数据库连接池 -->
-	<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
-		<!-- 数据源驱动类可不写,Druid默认会自动根据URL识别DriverClass -->
-		<property name="driverClassName" value="${jdbc_driver}" />
-		<!-- 基本属性 url、user、password -->
-		<property name="url" value="${jdbc_url}" />
-		<property name="username" value="${jdbc_u}" />
-		<property name="password" value="${jdbc_p}" />
-		<!-- 配置初始化大小、最小、最大 -->
-		<property name="initialSize" value="1" />
-		<property name="minIdle" value="1" />
-		<property name="maxActive" value="1" />
-		<!-- 配置获取连接等待超时的时间 -->
-		<property name="maxWait" value="60000" />
-
-		<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
-		<property name="timeBetweenEvictionRunsMillis" value="60000" />
-		<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
-		<property name="minEvictableIdleTimeMillis" value="300000" />
-		<property name="validationQuery" value="${validationQuery}" />
-		<property name="testWhileIdle" value="true" />
-		<property name="testOnBorrow" value="true" />
-		<property name="testOnReturn" value="true" />
-		<!-- 打开PSCache,并且指定每个连接上PSCache的大小(Oracle使用) 
-		<property name="poolPreparedStatements"  value="true" /> 
-		<property name="maxPoolPreparedStatementPerConnectionSize" value="20" />
-		-->		
-		<!-- 配置监控统计拦截的filters -->
-		<property name="filters" value="stat" />
-	</bean>
-	
-	<!-- mybatis文件 -->
-	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
-		<property name="dataSource" ref="dataSource" />
-		<property name="configLocation" value="classpath:sqlMapConfig.xml"></property>
-		<!-- 自动扫描entity目录,省略Configuration.xml里手工配置 -->
-		<property name="mapperLocations" >
-            <list>
-                <!-- mapper接口对应的xml路径 如果mapper接口的保内有和接口名一致的xml 则不用配置这个 -->
-                <value>classpath:com/o2platform/website/mapper/*.xml</value>
-		</list>
-		</property>
-	</bean>
-
-	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
-		<!--basePackage指定要扫描的包,在此包之下的映射器都会被搜索到。可指定多个包,包与包之间用逗号或分号分隔 -->
-		<property name="basePackage" value="com.o2platform.website.dao" />
-		<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
-	</bean>
-
-	<!-- 配置事务管理器 -->
-	<bean name="transactionManager"
-		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
-		<property name="dataSource" ref="dataSource" />
-	</bean>	
-	
-	<tx:annotation-driven transaction-manager="transactionManager" /> 
-</beans>

+ 0 - 22
officialserver/w_o2website_assemble_control/WEB-INF/classes/spring.xml

@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="
-http://www.springframework.org/schema/beans
-http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
-http://www.springframework.org/schema/context
-http://www.springframework.org/schema/context/spring-context-3.1.xsd
-">
-
-	<!-- 引入属性文件,为spring-mybatis 文件中的数据库连接配置准备-->
-	<context:property-placeholder location="classpath:config.properties" />
-	
-	<!-- service包(自动注入) -->
-	<context:component-scan base-package="com.o2platform.website.service" />
-	
-	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
-	    <property name="basename" value="messages" />
-	</bean>
-	
-	<!--集成quartz2.2.1,进行定时任务管理-->
-     <bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" />
-     
-</beans>

+ 0 - 12
officialserver/w_o2website_assemble_control/WEB-INF/classes/sqlMapConfig.xml

@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
-<configuration>
-	<settings>
-		<setting name="cacheEnabled" value="true" />
-		<setting name="lazyLoadingEnabled" value="true" />
-		<setting name="multipleResultSetsEnabled" value="true" />
-		<setting name="useColumnLabel" value="true" />
-		<setting name="defaultExecutorType" value="REUSE" />
-		<setting name="defaultStatementTimeout" value="25000" />
-	</settings>	
-</configuration>

BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/activation-1.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/aopalliance-1.0.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/aspectjrt-1.7.4.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/aspectjweaver-1.7.4.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/c3p0-0.9.1.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/cglib-nodep-3.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-beanutils-1.9.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-codec-1.9.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-collections-3.2.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-discovery-0.5.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-fileupload-1.3.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-io-2.2.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-lang-2.4.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-lang3-3.3.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/commons-logging-1.1.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/dom4j-1.6.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/druid-1.0.16.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/ehcache-core-2.6.8.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/ehcache-spring-annotations-1.2.0.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/ezmorph-1.0.6.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/guava-r09.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-annotations-2.3.2.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-core-2.3.2.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-core-asl-1.9.13.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-databind-2.3.2.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jackson-mapper-asl-1.9.13.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jaxb-api-2.1.jar


BIN
officialserver/w_o2website_assemble_control/WEB-INF/lib/jaxb-impl-2.1.3.jar


Some files were not shown because too many files changed in this diff