feat:修改用户记录

dev
wangxy 8 months ago
parent c4712cc9c9
commit bfb6f13b3b

@ -22,7 +22,7 @@
调整文件汇总 调整文件汇总
调整版本v4.7.1 更新日志http://doc.ruoyi.vip/ruoyi/document/gxrz.html#v4-7-1 调整版本v4.7.1 更新日志http://doc.ruoyi.vip/ruoyi/document/gxrz.html#v4-7-1
src/main/java/com/ruoyi/framework/config/ScheduleConfig.java src/main/java/com/ruoyi/framework/config/ScheduleConfig.java
src/main/resources/mybatis/**/**.xml src/main/resources/mybatis**.xml
src/main/resources/templates/system/user/user.html src/main/resources/templates/system/user/user.html
src/main/resources/application-druid.yml src/main/resources/application-druid.yml
src/main/resources/application.yml src/main/resources/application.yml

@ -1,187 +1,187 @@
/* */ package com.archive.common.convert; package com.archive.common.convert;
/* */
/* */ import java.io.BufferedReader; import java.io.BufferedReader;
/* */ import java.io.FileNotFoundException; import java.io.FileNotFoundException;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import java.io.InputStream; import java.io.InputStream;
/* */ import java.io.InputStreamReader; import java.io.InputStreamReader;
/* */ import java.util.HashMap; import java.util.HashMap;
/* */ import java.util.HashSet; import java.util.HashSet;
/* */ import java.util.Iterator; import java.util.Iterator;
/* */ import java.util.Map; import java.util.Map;
/* */ import java.util.Properties; import java.util.Properties;
/* */ import java.util.Set; import java.util.Set;
/* */ import net.sourceforge.pinyin4j.PinyinHelper; import net.sourceforge.pinyin4j.PinyinHelper;
/* */ import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
/* */ import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
/* */ import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
/* */ import net.sourceforge.pinyin4j.format.HanyuPinyinVCharType; import net.sourceforge.pinyin4j.format.HanyuPinyinVCharType;
/* */ import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination; import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination;
/* */
/* */
/* */
/* */
/* */
/* */ public class ZHConvert public class ZHConvert
/* */ { {
/* 27 */ private Properties charMap = new Properties(); private Properties charMap = new Properties();
/* 28 */ private Set<String> conflictingSets = new HashSet<>(); private Set<String> conflictingSets = new HashSet<>();
/* */ public static final int TRADITIONAL = 0; public static final int TRADITIONAL = 0;
/* */ public static final int SIMPLIFIED = 1; public static final int SIMPLIFIED = 1;
/* */ private static final int NUM_OF_CONVERTERS = 2; private static final int NUM_OF_CONVERTERS = 2;
/* 32 */ private static final com.archive.common.convert.ZHConvert[] converters = new com.archive.common.convert.ZHConvert[2]; private static final com.archive.common.convert.ZHConvert[] converters = new com.archive.common.convert.ZHConvert[2];
/* 33 */ private static final String[] propertyFiles = new String[2]; private static final String[] propertyFiles = new String[2];
/* */ static { static {
/* 35 */ propertyFiles[0] = "zh2Hant.properties"; propertyFiles[0] = "zh2Hant.properties";
/* 36 */ propertyFiles[1] = "zh2Hans.properties"; propertyFiles[1] = "zh2Hans.properties";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static com.archive.common.convert.ZHConvert getInstance(int converterType) { public static com.archive.common.convert.ZHConvert getInstance(int converterType) {
/* 45 */ if (converterType >= 0 && converterType < 2) { if (converterType >= 0 && converterType < 2) {
/* 46 */ if (converters[converterType] == null) { if (converters[converterType] == null) {
/* 47 */ synchronized (com.archive.common.convert.ZHConvert.class) { synchronized (com.archive.common.convert.ZHConvert.class) {
/* 48 */ if (converters[converterType] == null) { if (converters[converterType] == null) {
/* 49 */ converters[converterType] = new com.archive.common.convert.ZHConvert(propertyFiles[converterType]); converters[converterType] = new com.archive.common.convert.ZHConvert(propertyFiles[converterType]);
/* */ } }
/* */ } }
/* */ } }
/* 53 */ return converters[converterType]; return converters[converterType];
/* */ } }
/* 55 */ return null; return null;
/* */ } }
/* */
/* */
/* */ public static String convert(String text, int converterType) { public static String convert(String text, int converterType) {
/* 60 */ com.archive.common.convert.ZHConvert instance = getInstance(converterType); com.archive.common.convert.ZHConvert instance = getInstance(converterType);
/* 61 */ return instance.convert(text); return instance.convert(text);
/* */ } }
/* */
/* */
/* */ private ZHConvert(String propertyFile) { private ZHConvert(String propertyFile) {
/* 66 */ InputStream is = null; InputStream is = null;
/* 67 */ is = getClass().getResourceAsStream(propertyFile); is = getClass().getResourceAsStream(propertyFile);
/* */
/* 69 */ if (is != null) { if (is != null) {
/* 70 */ BufferedReader reader = null; BufferedReader reader = null;
/* */
/* 72 */ try { reader = new BufferedReader(new InputStreamReader(is)); try { reader = new BufferedReader(new InputStreamReader(is));
/* 73 */ this.charMap.load(reader); } this.charMap.load(reader); }
/* 74 */ catch (FileNotFoundException fileNotFoundException) catch (FileNotFoundException fileNotFoundException)
/* */
/* */ { {
/* */ try { try {
/* */
/* */
/* 80 */ if (reader != null) if (reader != null)
/* 81 */ { {
reader.close(); reader.close();
} }
/* 82 */ if (is != null) if (is != null)
/* 83 */ { {
is.close(); is.close();
} }
/* 84 */ } catch (IOException iOException) {} } catch (IOException e) { e.printStackTrace(); } finally { try { if (reader != null) reader.close(); if (is != null) is.close(); } catch (IOException iOException) {} } } catch (IOException iOException) {} } catch (IOException e) { e.printStackTrace(); } finally { try { if (reader != null) reader.close(); if (is != null) is.close(); } catch (IOException iOException) {} }
/* */
/* */ } }
/* */
/* 88 */ initializeHelper(); initializeHelper();
/* */ } }
/* */
/* */
/* */ private void initializeHelper() { private void initializeHelper() {
/* 93 */
/* */ } }
/* */
/* */ public String convert(String in) { public String convert(String in) {
/* 120 */ StringBuilder outString = new StringBuilder(); StringBuilder outString = new StringBuilder();
/* 121 */ StringBuilder stackString = new StringBuilder(); StringBuilder stackString = new StringBuilder();
/* 122 */ for (int i = 0; i < in.length(); i++) { for (int i = 0; i < in.length(); i++) {
/* 123 */ char c = in.charAt(i); char c = in.charAt(i);
/* 124 */ String key = "" + c; String key = "" + c;
/* 125 */ stackString.append(key); stackString.append(key);
/* 126 */ if (!this.conflictingSets.contains(stackString.toString())) if (!this.conflictingSets.contains(stackString.toString()))
/* 127 */ { {
if (this.charMap.containsKey(stackString.toString())) { if (this.charMap.containsKey(stackString.toString())) {
/* 128 */ outString.append(this.charMap.get(stackString.toString())); outString.append(this.charMap.get(stackString.toString()));
/* 129 */ stackString.setLength(0); stackString.setLength(0);
/* */ } else { } else {
/* 131 */ CharSequence sequence = stackString.subSequence(0, stackString.length() - 1); CharSequence sequence = stackString.subSequence(0, stackString.length() - 1);
/* 132 */ stackString.delete(0, stackString.length() - 1); stackString.delete(0, stackString.length() - 1);
/* 133 */ flushStack(outString, new StringBuilder(sequence)); flushStack(outString, new StringBuilder(sequence));
/* */ } }
} }
/* */ } }
/* 136 */ flushStack(outString, stackString); flushStack(outString, stackString);
/* 137 */ return outString.toString(); return outString.toString();
/* */ } }
/* */
/* */ private void flushStack(StringBuilder outString, StringBuilder stackString) { private void flushStack(StringBuilder outString, StringBuilder stackString) {
/* 141 */ while (stackString.length() > 0) { while (stackString.length() > 0) {
/* 142 */ if (this.charMap.containsKey(stackString.toString())) { if (this.charMap.containsKey(stackString.toString())) {
/* 143 */ outString.append(this.charMap.get(stackString.toString())); outString.append(this.charMap.get(stackString.toString()));
/* 144 */ stackString.setLength(0); continue; stackString.setLength(0); continue;
/* */ } }
/* 146 */ outString.append("" + stackString.charAt(0)); outString.append("" + stackString.charAt(0));
/* 147 */ stackString.delete(0, 1); stackString.delete(0, 1);
/* */ } }
/* */ } }
/* */
/* */ String parseOneChar(String c) { String parseOneChar(String c) {
/* 152 */ if (this.charMap.containsKey(c)) { if (this.charMap.containsKey(c)) {
/* 153 */ return (String)this.charMap.get(c); return (String)this.charMap.get(c);
/* */ } }
/* */
/* 156 */ return c; return c;
/* */ } }
/* */
/* */
/* */ public static String getPingYin(String src) { public static String getPingYin(String src) {
/* 161 */ char[] t1 = src.toCharArray(); char[] t1 = src.toCharArray();
/* 162 */ String[] t2 = new String[t1.length]; String[] t2 = new String[t1.length];
/* */
/* 164 */ HanyuPinyinOutputFormat t3 = new HanyuPinyinOutputFormat(); HanyuPinyinOutputFormat t3 = new HanyuPinyinOutputFormat();
/* 165 */ t3.setCaseType(HanyuPinyinCaseType.LOWERCASE); t3.setCaseType(HanyuPinyinCaseType.LOWERCASE);
/* 166 */ t3.setToneType(HanyuPinyinToneType.WITHOUT_TONE); t3.setToneType(HanyuPinyinToneType.WITHOUT_TONE);
/* 167 */ t3.setVCharType(HanyuPinyinVCharType.WITH_U_UNICODE); t3.setVCharType(HanyuPinyinVCharType.WITH_U_UNICODE);
/* */
/* 169 */ String t4 = ""; String t4 = "";
/* 170 */ int t0 = t1.length; int t0 = t1.length;
/* */ try { try {
/* 172 */ for (int i = 0; i < t0; i++) { for (int i = 0; i < t0; i++) {
/* */
/* 174 */ if (Character.toString(t1[i]).matches("[\\u4E00-\\u9FA5]+")) { if (Character.toString(t1[i]).matches("[\\u4E00-\\u9FA5]+")) {
/* 175 */ t2 = PinyinHelper.toHanyuPinyinStringArray(t1[i], t3); t2 = PinyinHelper.toHanyuPinyinStringArray(t1[i], t3);
/* 176 */ if (t2 != null && t2.length > 0 && t2[0] != null) { if (t2 != null && t2.length > 0 && t2[0] != null) {
/* 177 */ t4 = t4 + t2[0]; t4 = t4 + t2[0];
/* */ } }
/* */ } else { } else {
/* */
/* 181 */ t4 = t4 + Character.toString(t1[i]); t4 = t4 + Character.toString(t1[i]);
/* */ } }
/* */ } }
/* 184 */ return t4; return t4;
/* 185 */ } catch (BadHanyuPinyinOutputFormatCombination e1) { } catch (BadHanyuPinyinOutputFormatCombination e1) {
/* 186 */ System.out.println("拼音转换失败(src)" + e1.getMessage()); System.out.println("拼音转换失败(src)" + e1.getMessage());
/* */
/* 188 */ return t4; return t4;
/* */ } }
/* */ } }
/* */
/* */ public static void main(String[] args) { public static void main(String[] args) {
/* 193 */ String allValueSimplified = convert("1111", 1); String allValueSimplified = convert("1111", 1);
/* */
/* 195 */ String allValueTraditional = convert("1111", 0); String allValueTraditional = convert("1111", 0);
/* */
/* */
/* 198 */ String allValuePinyin = getPingYin("11111111"); String allValuePinyin = getPingYin("11111111");
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\convert\ZHConvert.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\convert\ZHConvert.class

@ -1,29 +1,29 @@
/* */ package com.archive.common.exception; package com.archive.common.exception;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class UtilException public class UtilException
/* */ extends RuntimeException extends RuntimeException
/* */ { {
/* */ private static final long serialVersionUID = 8247610319171014183L; private static final long serialVersionUID = 8247610319171014183L;
/* */
/* */ public UtilException(Throwable e) { public UtilException(Throwable e) {
/* 14 */ super(e.getMessage(), e); super(e.getMessage(), e);
/* */ } }
/* */
/* */
/* */ public UtilException(String message) { public UtilException(String message) {
/* 19 */ super(message); super(message);
/* */ } }
/* */
/* */
/* */ public UtilException(String message, Throwable throwable) { public UtilException(String message, Throwable throwable) {
/* 24 */ super(message, throwable); super(message, throwable);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\UtilException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exception\UtilException.class

@ -1,21 +1,21 @@
/* */ package com.archive.common.exception.user; package com.archive.common.exception.user;
/* */
/* */ import com.archive.common.exception.base.BaseException; import com.archive.common.exception.base.BaseException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class UserException public class UserException
/* */ extends BaseException extends BaseException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */
/* */ public UserException(String code, Object[] args) { public UserException(String code, Object[] args) {
/* 16 */ super("user", code, args, null); super("user", code, args, null);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserException.class

@ -1,19 +1,19 @@
/* */ package com.archive.common.exception.user; package com.archive.common.exception.user;
/* */
/* */ import com.archive.common.exception.user.UserException; import com.archive.common.exception.user.UserException;
/* */
/* */
/* */
/* */
/* */ public class UserNotExistsException public class UserNotExistsException
/* */ extends UserException extends UserException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */
/* */ public UserNotExistsException() { public UserNotExistsException() {
/* 14 */ super("user.not.exists", null); super("user.not.exists", null);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserNotExistsException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserNotExistsException.class

@ -1,19 +1,19 @@
/* */ package com.archive.common.exception.user; package com.archive.common.exception.user;
/* */
/* */ import com.archive.common.exception.user.UserException; import com.archive.common.exception.user.UserException;
/* */
/* */
/* */
/* */
/* */ public class UserPasswordNotMatchException public class UserPasswordNotMatchException
/* */ extends UserException extends UserException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */
/* */ public UserPasswordNotMatchException() { public UserPasswordNotMatchException() {
/* 14 */ super("user.password.not.match", null); super("user.password.not.match", null);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserPasswordNotMatchException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserPasswordNotMatchException.class

@ -1,19 +1,19 @@
/* */ package com.archive.common.exception.user; package com.archive.common.exception.user;
/* */
/* */ import com.archive.common.exception.user.UserException; import com.archive.common.exception.user.UserException;
/* */
/* */
/* */
/* */
/* */ public class UserPasswordRetryLimitCountException public class UserPasswordRetryLimitCountException
/* */ extends UserException extends UserException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */
/* */ public UserPasswordRetryLimitCountException(int retryLimitCount) { public UserPasswordRetryLimitCountException(int retryLimitCount) {
/* 14 */ super("user.password.retry.limit.count", new Object[] { Integer.valueOf(retryLimitCount) }); super("user.password.retry.limit.count", new Object[] { Integer.valueOf(retryLimitCount) });
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserPasswordRetryLimitCountException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserPasswordRetryLimitCountException.class

@ -1,19 +1,19 @@
/* */ package com.archive.common.exception.user; package com.archive.common.exception.user;
/* */
/* */ import com.archive.common.exception.user.UserException; import com.archive.common.exception.user.UserException;
/* */
/* */
/* */
/* */
/* */ public class UserPasswordRetryLimitExceedException public class UserPasswordRetryLimitExceedException
/* */ extends UserException extends UserException
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */
/* */ public UserPasswordRetryLimitExceedException(int retryLimitCount) { public UserPasswordRetryLimitExceedException(int retryLimitCount) {
/* 14 */ super("user.password.retry.limit.exceed", new Object[] { Integer.valueOf(retryLimitCount) }); super("user.password.retry.limit.exceed", new Object[] { Integer.valueOf(retryLimitCount) });
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserPasswordRetryLimitExceedException.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\exceptio\\user\UserPasswordRetryLimitExceedException.class

@ -1,31 +1,31 @@
/* */ package com.archive.common.utils.uuid package com.archive.common.utils.uuid
; ;
/* */
/* */ import com.archive.common.utils.uuid.UUID; import com.archive.common.utils.uuid.UUID;
/* */ import java.security.SecureRandom; import java.security.SecureRandom;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class Holder class Holder
/* */ { {
/* 25 */ static final SecureRandom numberGenerator = UUID.getSecureRandom(); static final SecureRandom numberGenerator = UUID.getSecureRandom();
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\util\\uuid\UUID$Holder.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\util\\uuid\UUID$Holder.class

@ -1,487 +1,487 @@
/* */ package com.archive.common.utils.uuid; package com.archive.common.utils.uuid;
/* */
/* */ import com.archive.common.exception.UtilException; import com.archive.common.exception.UtilException;
/* */ import com.archive.common.utils.uuid.UUID; import com.archive.common.utils.uuid.UUID;
/* */ import java.io.Serializable; import java.io.Serializable;
/* */ import java.security.MessageDigest; import java.security.MessageDigest;
/* */ import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
/* */ import java.security.SecureRandom; import java.security.SecureRandom;
/* */ import java.util.Random; import java.util.Random;
/* */ import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public final class UUID public final class UUID
/* */ implements Serializable, Comparable<UUID> implements Serializable, Comparable<UUID>
/* */ { {
/* */ private static final long serialVersionUID = -1185015143654744140L; private static final long serialVersionUID = -1185015143654744140L;
/* */ private final long mostSigBits; private final long mostSigBits;
/* */ private final long leastSigBits; private final long leastSigBits;
/* */
/* */ private UUID(byte[] data) { private UUID(byte[] data) {
/* 41 */ long msb = 0L; long msb = 0L;
/* 42 */ long lsb = 0L; long lsb = 0L;
/* 43 */ assert data.length == 16 : "data must be 16 bytes in length"; int i; assert data.length == 16 : "data must be 16 bytes in length"; int i;
/* 44 */ for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
/* */ { {
/* 46 */ msb = msb << 8L | (data[i] & 0xFF); msb = msb << 8L | (data[i] & 0xFF);
/* */ } }
/* 48 */ for (i = 8; i < 16; i++) for (i = 8; i < 16; i++)
/* */ { {
/* 50 */ lsb = lsb << 8L | (data[i] & 0xFF); lsb = lsb << 8L | (data[i] & 0xFF);
/* */ } }
/* 52 */ this.mostSigBits = msb; this.mostSigBits = msb;
/* 53 */ this.leastSigBits = lsb; this.leastSigBits = lsb;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public UUID(long mostSigBits, long leastSigBits) { public UUID(long mostSigBits, long leastSigBits) {
/* 64 */ this.mostSigBits = mostSigBits; this.mostSigBits = mostSigBits;
/* 65 */ this.leastSigBits = leastSigBits; this.leastSigBits = leastSigBits;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static UUID fastUUID() { public static UUID fastUUID() {
/* 75 */ return randomUUID(false); return randomUUID(false);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static UUID randomUUID() { public static UUID randomUUID() {
/* 85 */ return randomUUID(true); return randomUUID(true);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static UUID randomUUID(boolean isSecure) { public static UUID randomUUID(boolean isSecure) {
/* 96 */ Random ng = isSecure ? Holder.numberGenerator : getRandom(); Random ng = isSecure ? Holder.numberGenerator : getRandom();
/* */
/* 98 */ byte[] randomBytes = new byte[16]; byte[] randomBytes = new byte[16];
/* 99 */ ng.nextBytes(randomBytes); ng.nextBytes(randomBytes);
/* 100 */ randomBytes[6] = (byte)(randomBytes[6] & 0xF); randomBytes[6] = (byte)(randomBytes[6] & 0xF);
/* 101 */ randomBytes[6] = (byte)(randomBytes[6] | 0x40); randomBytes[6] = (byte)(randomBytes[6] | 0x40);
/* 102 */ randomBytes[8] = (byte)(randomBytes[8] & 0x3F); randomBytes[8] = (byte)(randomBytes[8] & 0x3F);
/* 103 */ randomBytes[8] = (byte)(randomBytes[8] | 0x80); randomBytes[8] = (byte)(randomBytes[8] | 0x80);
/* 104 */ return new UUID(randomBytes); return new UUID(randomBytes);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static UUID nameUUIDFromBytes(byte[] name) { public static UUID nameUUIDFromBytes(byte[] name) {
/* */ MessageDigest md; MessageDigest md;
/* */ try { try {
/* 119 */ md = MessageDigest.getInstance("MD5"); md = MessageDigest.getInstance("MD5");
/* */ } }
/* 121 */ catch (NoSuchAlgorithmException nsae) { catch (NoSuchAlgorithmException nsae) {
/* */
/* 123 */ throw new InternalError("MD5 not supported"); throw new InternalError("MD5 not supported");
/* */ } }
/* 125 */ byte[] md5Bytes = md.digest(name); byte[] md5Bytes = md.digest(name);
/* 126 */ md5Bytes[6] = (byte)(md5Bytes[6] & 0xF); md5Bytes[6] = (byte)(md5Bytes[6] & 0xF);
/* 127 */ md5Bytes[6] = (byte)(md5Bytes[6] | 0x30); md5Bytes[6] = (byte)(md5Bytes[6] | 0x30);
/* 128 */ md5Bytes[8] = (byte)(md5Bytes[8] & 0x3F); md5Bytes[8] = (byte)(md5Bytes[8] & 0x3F);
/* 129 */ md5Bytes[8] = (byte)(md5Bytes[8] | 0x80); md5Bytes[8] = (byte)(md5Bytes[8] | 0x80);
/* 130 */ return new UUID(md5Bytes); return new UUID(md5Bytes);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static UUID fromString(String name) { public static UUID fromString(String name) {
/* 143 */ String[] components = name.split("-"); String[] components = name.split("-");
/* 144 */ if (components.length != 5) if (components.length != 5)
/* */ { {
/* 146 */ throw new IllegalArgumentException("Invalid UUID string: " + name); throw new IllegalArgumentException("Invalid UUID string: " + name);
/* */ } }
/* 148 */ for (int i = 0; i < 5; i++) for (int i = 0; i < 5; i++)
/* */ { {
/* 150 */ components[i] = "0x" + components[i]; components[i] = "0x" + components[i];
/* */ } }
/* */
/* 153 */ long mostSigBits = Long.decode(components[0]).longValue(); long mostSigBits = Long.decode(components[0]).longValue();
/* 154 */ mostSigBits <<= 16L; mostSigBits <<= 16L;
/* 155 */ mostSigBits |= Long.decode(components[1]).longValue(); mostSigBits |= Long.decode(components[1]).longValue();
/* 156 */ mostSigBits <<= 16L; mostSigBits <<= 16L;
/* 157 */ mostSigBits |= Long.decode(components[2]).longValue(); mostSigBits |= Long.decode(components[2]).longValue();
/* */
/* 159 */ long leastSigBits = Long.decode(components[3]).longValue(); long leastSigBits = Long.decode(components[3]).longValue();
/* 160 */ leastSigBits <<= 48L; leastSigBits <<= 48L;
/* 161 */ leastSigBits |= Long.decode(components[4]).longValue(); leastSigBits |= Long.decode(components[4]).longValue();
/* */
/* 163 */ return new UUID(mostSigBits, leastSigBits); return new UUID(mostSigBits, leastSigBits);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public long getLeastSignificantBits() { public long getLeastSignificantBits() {
/* 173 */ return this.leastSigBits; return this.leastSigBits;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public long getMostSignificantBits() { public long getMostSignificantBits() {
/* 183 */ return this.mostSigBits; return this.mostSigBits;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int version() { public int version() {
/* 202 */ return (int)(this.mostSigBits >> 12L & 0xFL); return (int)(this.mostSigBits >> 12L & 0xFL);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int variant() { public int variant() {
/* 225 */ return (int)(this.leastSigBits >>> (int)(64L - (this.leastSigBits >>> 62L)) & this.leastSigBits >> 63L); return (int)(this.leastSigBits >>> (int)(64L - (this.leastSigBits >>> 62L)) & this.leastSigBits >> 63L);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public long timestamp() throws UnsupportedOperationException { public long timestamp() throws UnsupportedOperationException {
/* 243 */ checkTimeBase(); checkTimeBase();
/* 244 */ return (this.mostSigBits & 0xFFFL) << 48L | (this.mostSigBits >> 16L & 0xFFFFL) << 32L | this.mostSigBits >>> 32L; return (this.mostSigBits & 0xFFFL) << 48L | (this.mostSigBits >> 16L & 0xFFFFL) << 32L | this.mostSigBits >>> 32L;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int clockSequence() throws UnsupportedOperationException { public int clockSequence() throws UnsupportedOperationException {
/* 264 */ checkTimeBase(); checkTimeBase();
/* 265 */ return (int)((this.leastSigBits & 0x3FFF000000000000L) >>> 48L); return (int)((this.leastSigBits & 0x3FFF000000000000L) >>> 48L);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public long node() throws UnsupportedOperationException { public long node() throws UnsupportedOperationException {
/* 283 */ checkTimeBase(); checkTimeBase();
/* 284 */ return this.leastSigBits & 0xFFFFFFFFFFFFL; return this.leastSigBits & 0xFFFFFFFFFFFFL;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String toString() { public String toString() {
/* 314 */ return toString(false); return toString(false);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String toString(boolean isSimple) { public String toString(boolean isSimple) {
/* 343 */ StringBuilder builder = new StringBuilder(isSimple ? 32 : 36); StringBuilder builder = new StringBuilder(isSimple ? 32 : 36);
/* */
/* 345 */ builder.append(digits(this.mostSigBits >> 32L, 8)); builder.append(digits(this.mostSigBits >> 32L, 8));
/* 346 */ if (false == isSimple) if (false == isSimple)
/* */ { {
/* 348 */ builder.append('-'); builder.append('-');
/* */ } }
/* */
/* 351 */ builder.append(digits(this.mostSigBits >> 16L, 4)); builder.append(digits(this.mostSigBits >> 16L, 4));
/* 352 */ if (false == isSimple) if (false == isSimple)
/* */ { {
/* 354 */ builder.append('-'); builder.append('-');
/* */ } }
/* */
/* 357 */ builder.append(digits(this.mostSigBits, 4)); builder.append(digits(this.mostSigBits, 4));
/* 358 */ if (false == isSimple) if (false == isSimple)
/* */ { {
/* 360 */ builder.append('-'); builder.append('-');
/* */ } }
/* */
/* 363 */ builder.append(digits(this.leastSigBits >> 48L, 4)); builder.append(digits(this.leastSigBits >> 48L, 4));
/* 364 */ if (false == isSimple) if (false == isSimple)
/* */ { {
/* 366 */ builder.append('-'); builder.append('-');
/* */ } }
/* */
/* 369 */ builder.append(digits(this.leastSigBits, 12)); builder.append(digits(this.leastSigBits, 12));
/* */
/* 371 */ return builder.toString(); return builder.toString();
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int hashCode() { public int hashCode() {
/* 382 */ long hilo = this.mostSigBits ^ this.leastSigBits; long hilo = this.mostSigBits ^ this.leastSigBits;
/* 383 */ return (int)(hilo >> 32L) ^ (int)hilo; return (int)(hilo >> 32L) ^ (int)hilo;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean equals(Object obj) { public boolean equals(Object obj) {
/* 398 */ if (null == obj || obj.getClass() != UUID.class) if (null == obj || obj.getClass() != UUID.class)
/* */ { {
/* 400 */ return false; return false;
/* */ } }
/* 402 */ UUID id = (UUID)obj; UUID id = (UUID)obj;
/* 403 */ return (this.mostSigBits == id.mostSigBits && this.leastSigBits == id.leastSigBits); return (this.mostSigBits == id.mostSigBits && this.leastSigBits == id.leastSigBits);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int compareTo(UUID val) { public int compareTo(UUID val) {
/* 424 */ return (this.mostSigBits < val.mostSigBits) ? -1 : ((this.mostSigBits > val.mostSigBits) ? 1 : ((this.leastSigBits < val.leastSigBits) ? -1 : ((this.leastSigBits > val.leastSigBits) ? 1 : 0))); return (this.mostSigBits < val.mostSigBits) ? -1 : ((this.mostSigBits > val.mostSigBits) ? 1 : ((this.leastSigBits < val.leastSigBits) ? -1 : ((this.leastSigBits > val.leastSigBits) ? 1 : 0)));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static String digits(long val, int digits) { private static String digits(long val, int digits) {
/* 442 */ long hi = 1L << digits * 4; long hi = 1L << digits * 4;
/* 443 */ return Long.toHexString(hi | val & hi - 1L).substring(1); return Long.toHexString(hi | val & hi - 1L).substring(1);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ private void checkTimeBase() { private void checkTimeBase() {
/* 451 */ if (version() != 1) if (version() != 1)
/* */ { {
/* 453 */ throw new UnsupportedOperationException("Not a time-based UUID"); throw new UnsupportedOperationException("Not a time-based UUID");
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static SecureRandom getSecureRandom() { public static SecureRandom getSecureRandom() {
/* */ try { try {
/* 466 */ return SecureRandom.getInstance("SHA1PRNG"); return SecureRandom.getInstance("SHA1PRNG");
/* */ } }
/* 468 */ catch (NoSuchAlgorithmException e) { catch (NoSuchAlgorithmException e) {
/* */
/* 470 */ throw new UtilException(e); throw new UtilException(e);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static ThreadLocalRandom getRandom() { public static ThreadLocalRandom getRandom() {
/* 482 */ return ThreadLocalRandom.current(); return ThreadLocalRandom.current();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\util\\uuid\UUID.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\commo\\util\\uuid\UUID.class

@ -1,98 +1,98 @@
/* */ package com.archive.common.xss package com.archive.common.xss
; ;
/* */
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.common.xss.XssHttpServletRequestWrapper; import com.archive.common.xss.XssHttpServletRequestWrapper;
/* */ import java.io.IOException; import java.io.IOException;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.regex.Matcher; import java.util.regex.Matcher;
/* */ import java.util.regex.Pattern; import java.util.regex.Pattern;
/* */ import javax.servlet.Filter; import javax.servlet.Filter;
/* */ import javax.servlet.FilterChain; import javax.servlet.FilterChain;
/* */ import javax.servlet.FilterConfig; import javax.servlet.FilterConfig;
/* */ import javax.servlet.ServletException; import javax.servlet.ServletException;
/* */ import javax.servlet.ServletRequest; import javax.servlet.ServletRequest;
/* */ import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
/* */ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class XssFilter public class XssFilter
/* */ implements Filter implements Filter
/* */ { {
/* 28 */ public List<String> excludes = new ArrayList<>(); public List<String> excludes = new ArrayList<>();
/* */
/* */
/* */
/* */ public boolean enabled = false; public boolean enabled = false;
/* */
/* */
/* */
/* */
/* */ public void init(FilterConfig filterConfig) throws ServletException { public void init(FilterConfig filterConfig) throws ServletException {
/* 38 */ String tempExcludes = filterConfig.getInitParameter("excludes"); String tempExcludes = filterConfig.getInitParameter("excludes");
/* 39 */ String tempEnabled = filterConfig.getInitParameter("enabled"); String tempEnabled = filterConfig.getInitParameter("enabled");
/* 40 */ if (StringUtils.isNotEmpty(tempExcludes)) { if (StringUtils.isNotEmpty(tempExcludes)) {
/* */
/* 42 */ String[] url = tempExcludes.split(","); String[] url = tempExcludes.split(",");
/* 43 */ for (int i = 0; url != null && i < url.length; i++) for (int i = 0; url != null && i < url.length; i++)
/* */ { {
/* 45 */ this.excludes.add(url[i]); this.excludes.add(url[i]);
/* */ } }
/* */ } }
/* 48 */ if (StringUtils.isNotEmpty(tempEnabled)) if (StringUtils.isNotEmpty(tempEnabled))
/* */ { {
/* 50 */ this.enabled = Boolean.valueOf(tempEnabled).booleanValue(); this.enabled = Boolean.valueOf(tempEnabled).booleanValue();
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
/* 58 */ HttpServletRequest req = (HttpServletRequest)request; HttpServletRequest req = (HttpServletRequest)request;
/* 59 */ HttpServletResponse resp = (HttpServletResponse)response; HttpServletResponse resp = (HttpServletResponse)response;
/* 60 */ if (handleExcludeURL(req, resp)) { if (handleExcludeURL(req, resp)) {
/* */
/* 62 */ chain.doFilter(request, response); chain.doFilter(request, response);
/* */ return; return;
/* */ } }
/* 65 */ XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper((HttpServletRequest)request); XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper((HttpServletRequest)request);
/* 66 */ chain.doFilter((ServletRequest)xssRequest, response); chain.doFilter((ServletRequest)xssRequest, response);
/* */ } }
/* */
/* */
/* */ private boolean handleExcludeURL(HttpServletRequest request, HttpServletResponse response) { private boolean handleExcludeURL(HttpServletRequest request, HttpServletResponse response) {
/* 71 */ if (!this.enabled) if (!this.enabled)
/* */ { {
/* 73 */ return true; return true;
/* */ } }
/* 75 */ if (this.excludes == null || this.excludes.isEmpty()) if (this.excludes == null || this.excludes.isEmpty())
/* */ { {
/* 77 */ return false; return false;
/* */ } }
/* 79 */ String url = request.getServletPath(); String url = request.getServletPath();
/* 80 */ for (String pattern : this.excludes) { for (String pattern : this.excludes) {
/* */
/* 82 */ Pattern p = Pattern.compile("^" + pattern); Pattern p = Pattern.compile("^" + pattern);
/* 83 */ Matcher m = p.matcher(url); Matcher m = p.matcher(url);
/* 84 */ if (m.find()) if (m.find())
/* */ { {
/* 86 */ return true; return true;
/* */ } }
/* */ } }
/* 89 */ return false; return false;
/* */ } }
/* */
/* */ public void destroy() {} public void destroy() {}
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\xss\XssFilter.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\xss\XssFilter.class

@ -1,43 +1,43 @@
/* */ package com.archive.common.xss package com.archive.common.xss
; ;
/* */
/* */ import com.archive.common.utils.html.EscapeUtil; import com.archive.common.utils.html.EscapeUtil;
/* */ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletRequestWrapper; import javax.servlet.http.HttpServletRequestWrapper;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class XssHttpServletRequestWrapper public class XssHttpServletRequestWrapper
/* */ extends HttpServletRequestWrapper extends HttpServletRequestWrapper
/* */ { {
/* */ public XssHttpServletRequestWrapper(HttpServletRequest request) { public XssHttpServletRequestWrapper(HttpServletRequest request) {
/* 19 */ super(request); super(request);
/* */ } }
/* */
/* */
/* */
/* */ public String[] getParameterValues(String name) { public String[] getParameterValues(String name) {
/* 25 */ String[] values = super.getParameterValues(name); String[] values = super.getParameterValues(name);
/* 26 */ if (values != null) { if (values != null) {
/* */
/* 28 */ int length = values.length; int length = values.length;
/* 29 */ String[] escapseValues = new String[length]; String[] escapseValues = new String[length];
/* 30 */ for (int i = 0; i < length; i++) for (int i = 0; i < length; i++)
/* */ { {
/* */
/* 33 */ escapseValues[i] = EscapeUtil.clean(values[i]).trim(); escapseValues[i] = EscapeUtil.clean(values[i]).trim();
/* */ } }
/* 35 */ return escapseValues; return escapseValues;
/* */ } }
/* 37 */ return super.getParameterValues(name); return super.getParameterValues(name);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\xss\XssHttpServletRequestWrapper.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\common\xss\XssHttpServletRequestWrapper.class

@ -1,163 +1,163 @@
/* */ package com.archive.framework.shiro.realm package com.archive.framework.shiro.realm
; ;
/* */
/* */ import com.archive.common.exception.user.CaptchaException; import com.archive.common.exception.user.CaptchaException;
/* */ import com.archive.common.exception.user.RoleBlockedException; import com.archive.common.exception.user.RoleBlockedException;
/* */ import com.archive.common.exception.user.UserBlockedException; import com.archive.common.exception.user.UserBlockedException;
/* */ import com.archive.common.exception.user.UserNotExistsException; import com.archive.common.exception.user.UserNotExistsException;
/* */ import com.archive.common.exception.user.UserPasswordNotMatchException; import com.archive.common.exception.user.UserPasswordNotMatchException;
/* */ import com.archive.common.exception.user.UserPasswordRetryLimitExceedException; import com.archive.common.exception.user.UserPasswordRetryLimitExceedException;
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.framework.shiro.service.LoginService; import com.archive.framework.shiro.service.LoginService;
/* */ import com.archive.project.system.menu.service.IMenuService; import com.archive.project.system.menu.service.IMenuService;
/* */ import com.archive.project.system.role.service.IRoleService; import com.archive.project.system.role.service.IRoleService;
/* */ import com.archive.project.system.user.domain.User; import com.archive.project.system.user.domain.User;
/* */ import java.util.HashSet; import java.util.HashSet;
/* */ import java.util.Set; import java.util.Set;
/* */ import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationException;
/* */ import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationInfo;
/* */ import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.AuthenticationToken;
/* */ import org.apache.shiro.authc.ExcessiveAttemptsException; import org.apache.shiro.authc.ExcessiveAttemptsException;
/* */ import org.apache.shiro.authc.IncorrectCredentialsException; import org.apache.shiro.authc.IncorrectCredentialsException;
/* */ import org.apache.shiro.authc.LockedAccountException; import org.apache.shiro.authc.LockedAccountException;
/* */ import org.apache.shiro.authc.SimpleAuthenticationInfo; import org.apache.shiro.authc.SimpleAuthenticationInfo;
/* */ import org.apache.shiro.authc.UnknownAccountException; import org.apache.shiro.authc.UnknownAccountException;
/* */ import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.authc.UsernamePasswordToken;
/* */ import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.AuthorizationInfo;
/* */ import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.authz.SimpleAuthorizationInfo;
/* */ import org.apache.shiro.cache.Cache; import org.apache.shiro.cache.Cache;
/* */ import org.apache.shiro.realm.AuthorizingRealm; import org.apache.shiro.realm.AuthorizingRealm;
/* */ import org.apache.shiro.subject.PrincipalCollection; import org.apache.shiro.subject.PrincipalCollection;
/* */ import org.apache.shiro.subject.SimplePrincipalCollection; import org.apache.shiro.subject.SimplePrincipalCollection;
/* */ import org.slf4j.Logger; import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */
/* */
/* */
/* */
/* */
/* */ public class UserRealm public class UserRealm
/* */ extends AuthorizingRealm extends AuthorizingRealm
/* */ { {
/* 42 */ private static final Logger log = LoggerFactory.getLogger(com.archive.framework.shiro.realm.UserRealm.class); private static final Logger log = LoggerFactory.getLogger(com.archive.framework.shiro.realm.UserRealm.class);
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IMenuService menuService; private IMenuService menuService;
/* */
/* */
/* */ @Autowired @Autowired
/* */ private IRoleService roleService; private IRoleService roleService;
/* */
/* */
/* */ @Autowired @Autowired
/* */ private LoginService loginService; private LoginService loginService;
/* */
/* */
/* */
/* */ protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection arg0) { protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection arg0) {
/* 59 */ User user = ShiroUtils.getSysUser(); User user = ShiroUtils.getSysUser();
/* */
/* 61 */ Set<String> roles = new HashSet<>(); Set<String> roles = new HashSet<>();
/* */
/* 63 */ Set<String> menus = new HashSet<>(); Set<String> menus = new HashSet<>();
/* 64 */ SimpleAuthorizationInfo info = new SimpleAuthorizationInfo(); SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
/* */
/* 66 */ if (user.isAdmin()) { if (user.isAdmin()) {
/* */
/* 68 */ info.addRole("admin"); info.addRole("admin");
/* 69 */ info.addStringPermission("*:*:*"); info.addStringPermission("*:*:*");
/* */ } }
/* */ else { else {
/* */
/* 73 */ roles = this.roleService.selectRoleKeys(user.getUserId()); roles = this.roleService.selectRoleKeys(user.getUserId());
/* 74 */ menus = this.menuService.selectPermsByUserId(user.getUserId()); menus = this.menuService.selectPermsByUserId(user.getUserId());
/* */
/* 76 */ info.setRoles(roles); info.setRoles(roles);
/* */
/* 78 */ info.setStringPermissions(menus); info.setStringPermissions(menus);
/* */ } }
/* 80 */ return (AuthorizationInfo)info; return (AuthorizationInfo)info;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
/* 89 */ UsernamePasswordToken upToken = (UsernamePasswordToken)token; UsernamePasswordToken upToken = (UsernamePasswordToken)token;
/* 90 */ String username = upToken.getUsername(); String username = upToken.getUsername();
/* 91 */ String password = ""; String password = "";
/* 92 */ if (upToken.getPassword() != null) if (upToken.getPassword() != null)
/* */ { {
/* 94 */ password = new String(upToken.getPassword()); password = new String(upToken.getPassword());
/* */ } }
/* */
/* 97 */ User user = null; User user = null;
/* */
/* */ try { try {
/* 100 */ user = this.loginService.login(username, password); user = this.loginService.login(username, password);
/* */ } }
/* 102 */ catch (CaptchaException e) { catch (CaptchaException e) {
/* */
/* 104 */ throw new AuthenticationException(e.getMessage(), e); throw new AuthenticationException(e.getMessage(), e);
/* */ } }
/* 106 */ catch (UserNotExistsException e) { catch (UserNotExistsException e) {
/* */
/* 108 */ throw new UnknownAccountException(e.getMessage(), e); throw new UnknownAccountException(e.getMessage(), e);
/* */ } }
/* 110 */ catch (UserPasswordNotMatchException e) { catch (UserPasswordNotMatchException e) {
/* */
/* 112 */ throw new IncorrectCredentialsException(e.getMessage(), e); throw new IncorrectCredentialsException(e.getMessage(), e);
/* */ } }
/* 114 */ catch (UserPasswordRetryLimitExceedException e) { catch (UserPasswordRetryLimitExceedException e) {
/* */
/* 116 */ throw new ExcessiveAttemptsException(e.getMessage(), e); throw new ExcessiveAttemptsException(e.getMessage(), e);
/* */ } }
/* 118 */ catch (UserBlockedException e) { catch (UserBlockedException e) {
/* */
/* 120 */ throw new LockedAccountException(e.getMessage(), e); throw new LockedAccountException(e.getMessage(), e);
/* */ } }
/* 122 */ catch (RoleBlockedException e) { catch (RoleBlockedException e) {
/* */
/* 124 */ throw new LockedAccountException(e.getMessage(), e); throw new LockedAccountException(e.getMessage(), e);
/* */ } }
/* 126 */ catch (Exception e) { catch (Exception e) {
/* */
/* 128 */ log.info("对用户[" + username + "]进行登录验证..验证未通过{}", e.getMessage()); log.info("对用户[" + username + "]进行登录验证..验证未通过{}", e.getMessage());
/* 129 */ throw new AuthenticationException(e.getMessage(), e); throw new AuthenticationException(e.getMessage(), e);
/* */ } }
/* 131 */ SimpleAuthenticationInfo info = new SimpleAuthenticationInfo(user, password, getName()); SimpleAuthenticationInfo info = new SimpleAuthenticationInfo(user, password, getName());
/* 132 */ return (AuthenticationInfo)info; return (AuthenticationInfo)info;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ public void clearCachedAuthorizationInfo(Object principal) { public void clearCachedAuthorizationInfo(Object principal) {
/* 140 */ SimplePrincipalCollection principals = new SimplePrincipalCollection(principal, getName()); SimplePrincipalCollection principals = new SimplePrincipalCollection(principal, getName());
/* 141 */ clearCachedAuthorizationInfo((PrincipalCollection)principals); clearCachedAuthorizationInfo((PrincipalCollection)principals);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */ public void clearAllCachedAuthorizationInfo() { public void clearAllCachedAuthorizationInfo() {
/* 149 */ Cache<Object, AuthorizationInfo> cache = getAuthorizationCache(); Cache<Object, AuthorizationInfo> cache = getAuthorizationCache();
/* 150 */ if (cache != null) if (cache != null)
/* */ { {
/* 152 */ for (Object key : cache.keys()) for (Object key : cache.keys())
/* */ { {
/* 154 */ cache.remove(key); cache.remove(key);
/* */ } }
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\realm\UserRealm.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\shiro\realm\UserRealm.class

@ -1,109 +1,109 @@
/* */ package com.archive.framework.web.domain package com.archive.framework.web.domain
; ;
/* */
/* */ import java.io.Serializable; import java.io.Serializable;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class Ztree public class Ztree
/* */ implements Serializable implements Serializable
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private Long id; private Long id;
/* */ private Long pId; private Long pId;
/* */ private String name; private String name;
/* */ private String title; private String title;
/* */ private boolean checked = false; private boolean checked = false;
/* */ private boolean open = false; private boolean open = false;
/* */ private boolean nocheck = false; private boolean nocheck = false;
/* */
/* */ public Long getId() { public Long getId() {
/* 37 */ return this.id; return this.id;
/* */ } }
/* */
/* */
/* */ public void setId(Long id) { public void setId(Long id) {
/* 42 */ this.id = id; this.id = id;
/* */ } }
/* */
/* */
/* */ public Long getpId() { public Long getpId() {
/* 47 */ return this.pId; return this.pId;
/* */ } }
/* */
/* */
/* */ public void setpId(Long pId) { public void setpId(Long pId) {
/* 52 */ this.pId = pId; this.pId = pId;
/* */ } }
/* */
/* */
/* */ public String getName() { public String getName() {
/* 57 */ return this.name; return this.name;
/* */ } }
/* */
/* */
/* */ public void setName(String name) { public void setName(String name) {
/* 62 */ this.name = name; this.name = name;
/* */ } }
/* */
/* */
/* */ public String getTitle() { public String getTitle() {
/* 67 */ return this.title; return this.title;
/* */ } }
/* */
/* */
/* */ public void setTitle(String title) { public void setTitle(String title) {
/* 72 */ this.title = title; this.title = title;
/* */ } }
/* */
/* */
/* */ public boolean isChecked() { public boolean isChecked() {
/* 77 */ return this.checked; return this.checked;
/* */ } }
/* */
/* */
/* */ public void setChecked(boolean checked) { public void setChecked(boolean checked) {
/* 82 */ this.checked = checked; this.checked = checked;
/* */ } }
/* */
/* */
/* */ public boolean isOpen() { public boolean isOpen() {
/* 87 */ return this.open; return this.open;
/* */ } }
/* */
/* */
/* */ public void setOpen(boolean open) { public void setOpen(boolean open) {
/* 92 */ this.open = open; this.open = open;
/* */ } }
/* */
/* */
/* */ public boolean isNocheck() { public boolean isNocheck() {
/* 97 */ return this.nocheck; return this.nocheck;
/* */ } }
/* */
/* */
/* */ public void setNocheck(boolean nocheck) { public void setNocheck(boolean nocheck) {
/* 102 */ this.nocheck = nocheck; this.nocheck = nocheck;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\domain\Ztree.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\framework\web\domain\Ztree.class

@ -1,94 +1,94 @@
/* */ package com.archive.project.monitor.online.controller package com.archive.project.monitor.online.controller
; ;
/* */
/* */ import com.archive.common.utils.security.ShiroUtils; import com.archive.common.utils.security.ShiroUtils;
/* */ import com.archive.common.utils.text.Convert; import com.archive.common.utils.text.Convert;
/* */ import com.archive.framework.aspectj.lang.annotation.Log; import com.archive.framework.aspectj.lang.annotation.Log;
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType; import com.archive.framework.aspectj.lang.enums.BusinessType;
/* */ import com.archive.framework.shiro.session.OnlineSessionDAO; import com.archive.framework.shiro.session.OnlineSessionDAO;
/* */ import com.archive.framework.web.controller.BaseController; import com.archive.framework.web.controller.BaseController;
/* */ import com.archive.framework.web.domain.AjaxResult; import com.archive.framework.web.domain.AjaxResult;
/* */ import com.archive.framework.web.page.TableDataInfo; import com.archive.framework.web.page.TableDataInfo;
/* */ import com.archive.project.monitor.online.domain.OnlineSession; import com.archive.project.monitor.online.domain.OnlineSession;
/* */ import com.archive.project.monitor.online.domain.OnlineStatus; import com.archive.project.monitor.online.domain.OnlineStatus;
import com.archive.project.monitor.online.domain.UserOnline; import com.archive.project.monitor.online.domain.UserOnline;
/* */ import com.archive.project.monitor.online.service.IUserOnlineService; import com.archive.project.monitor.online.service.IUserOnlineService;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.shiro.authz.annotation.Logical; import org.apache.shiro.authz.annotation.Logical;
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
/* */ import org.apache.shiro.session.Session; import org.apache.shiro.session.Session;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
/* */ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
/* */ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
/* */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
/* */
/* */
/* */
/* */
/* */
/* */ @Controller @Controller
/* */ @RequestMapping({"/monitor/online"}) @RequestMapping({"/monitor/online"})
/* */ public class UserOnlineController public class UserOnlineController
/* */ extends BaseController extends BaseController
/* */ { {
/* 34 */ private String prefix = "monitor/online"; private String prefix = "monitor/online";
/* */
/* */ @Autowired @Autowired
/* */ private IUserOnlineService userOnlineService; private IUserOnlineService userOnlineService;
/* */
/* */ @Autowired @Autowired
/* */ private OnlineSessionDAO onlineSessionDAO; private OnlineSessionDAO onlineSessionDAO;
/* */
/* */
/* */ @RequiresPermissions({"monitor:online:view"}) @RequiresPermissions({"monitor:online:view"})
/* */ @GetMapping @GetMapping
/* */ public String online() { public String online() {
/* 46 */ return this.prefix + "/online"; return this.prefix + "/online";
/* */ } }
/* */
/* */
/* */ @RequiresPermissions({"monitor:online:list"}) @RequiresPermissions({"monitor:online:list"})
/* */ @PostMapping({"/list"}) @PostMapping({"/list"})
/* */ @ResponseBody @ResponseBody
/* */ public TableDataInfo list(UserOnline userOnline) { public TableDataInfo list(UserOnline userOnline) {
/* 54 */ startPage(); startPage();
/* 55 */ List<UserOnline> list = this.userOnlineService.selectUserOnlineList(userOnline); List<UserOnline> list = this.userOnlineService.selectUserOnlineList(userOnline);
/* 56 */ return getDataTable(list); return getDataTable(list);
/* */ } }
/* */
/* */
/* */ @RequiresPermissions(value = {"monitor:online:batchForceLogout", "monitor:online:forceLogout"}, logical = Logical.OR) @RequiresPermissions(value = {"monitor:online:batchForceLogout", "monitor:online:forceLogout"}, logical = Logical.OR)
/* */ @Log(title = "在线用户", businessType = BusinessType.FORCE) @Log(title = "在线用户", businessType = BusinessType.FORCE)
/* */ @PostMapping({"/batchForceLogout"}) @PostMapping({"/batchForceLogout"})
/* */ @ResponseBody @ResponseBody
/* */ public AjaxResult batchForceLogout(String ids) { public AjaxResult batchForceLogout(String ids) {
/* 65 */ for (String sessionId : Convert.toStrArray(ids)) { for (String sessionId : Convert.toStrArray(ids)) {
/* */
/* 67 */ UserOnline online = this.userOnlineService.selectOnlineById(sessionId); UserOnline online = this.userOnlineService.selectOnlineById(sessionId);
/* 68 */ if (online == null) if (online == null)
/* */ { {
/* 70 */ return error("用户已下线"); return error("用户已下线");
/* */ } }
/* 72 */ OnlineSession onlineSession = (OnlineSession)this.onlineSessionDAO.readSession(online.getSessionId()); OnlineSession onlineSession = (OnlineSession)this.onlineSessionDAO.readSession(online.getSessionId());
/* 73 */ if (onlineSession == null) if (onlineSession == null)
/* */ { {
/* 75 */ return error("用户已下线"); return error("用户已下线");
/* */ } }
/* 77 */ if (sessionId.equals(ShiroUtils.getSessionId())) if (sessionId.equals(ShiroUtils.getSessionId()))
/* */ { {
/* 79 */ return error("当前登录用户无法强退"); return error("当前登录用户无法强退");
/* */ } }
/* 81 */ this.onlineSessionDAO.delete((Session)onlineSession); this.onlineSessionDAO.delete((Session)onlineSession);
/* 82 */ online.setStatus(OnlineStatus.off_line); online.setStatus(OnlineStatus.off_line);
/* 83 */ this.userOnlineService.saveOnline(online); this.userOnlineService.saveOnline(online);
/* 84 */ this.userOnlineService.removeUserCache(online.getLoginName(), sessionId); this.userOnlineService.removeUserCache(online.getLoginName(), sessionId);
/* */ } }
/* 86 */ return success(); return success();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\controller\UserOnlineController.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\controller\UserOnlineController.class

@ -1,195 +1,195 @@
/* */ package com.archive.project.monitor.online.domain package com.archive.project.monitor.online.domain
; ;
/* */
/* */ import com.archive.framework.web.domain.BaseEntity; import com.archive.framework.web.domain.BaseEntity;
/* */ import com.archive.project.monitor.online.domain.OnlineSession; import com.archive.project.monitor.online.domain.OnlineSession;
/* */ import java.util.Date; import java.util.Date;
/* */ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class UserOnline public class UserOnline
/* */ extends BaseEntity extends BaseEntity
/* */ { {
/* */ private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/* */ private String sessionId; private String sessionId;
/* */ private String deptName; private String deptName;
/* */ private String loginName; private String loginName;
/* */ private String ipaddr; private String ipaddr;
/* */ private String loginLocation; private String loginLocation;
/* */ private String browser; private String browser;
/* */ private String os; private String os;
/* */ private Date startTimestamp; private Date startTimestamp;
/* */ private Date lastAccessTime; private Date lastAccessTime;
/* */ private Long expireTime; private Long expireTime;
/* 49 */ private OnlineStatus status = OnlineStatus.on_line; private OnlineStatus status = OnlineStatus.on_line;
/* */
/* */
/* */ private OnlineSession session; private OnlineSession session;
/* */
/* */
/* */ public String getSessionId() { public String getSessionId() {
/* 56 */ return this.sessionId; return this.sessionId;
/* */ } }
/* */
/* */
/* */ public void setSessionId(String sessionId) { public void setSessionId(String sessionId) {
/* 61 */ this.sessionId = sessionId; this.sessionId = sessionId;
/* */ } }
/* */
/* */
/* */ public String getDeptName() { public String getDeptName() {
/* 66 */ return this.deptName; return this.deptName;
/* */ } }
/* */
/* */
/* */ public void setDeptName(String deptName) { public void setDeptName(String deptName) {
/* 71 */ this.deptName = deptName; this.deptName = deptName;
/* */ } }
/* */
/* */
/* */ public String getLoginName() { public String getLoginName() {
/* 76 */ return this.loginName; return this.loginName;
/* */ } }
/* */
/* */
/* */ public void setLoginName(String loginName) { public void setLoginName(String loginName) {
/* 81 */ this.loginName = loginName; this.loginName = loginName;
/* */ } }
/* */
/* */
/* */ public String getIpaddr() { public String getIpaddr() {
/* 86 */ return this.ipaddr; return this.ipaddr;
/* */ } }
/* */
/* */
/* */ public void setIpaddr(String ipaddr) { public void setIpaddr(String ipaddr) {
/* 91 */ this.ipaddr = ipaddr; this.ipaddr = ipaddr;
/* */ } }
/* */
/* */
/* */ public String getLoginLocation() { public String getLoginLocation() {
/* 96 */ return this.loginLocation; return this.loginLocation;
/* */ } }
/* */
/* */
/* */ public void setLoginLocation(String loginLocation) { public void setLoginLocation(String loginLocation) {
/* 101 */ this.loginLocation = loginLocation; this.loginLocation = loginLocation;
/* */ } }
/* */
/* */
/* */ public String getBrowser() { public String getBrowser() {
/* 106 */ return this.browser; return this.browser;
/* */ } }
/* */
/* */
/* */ public void setBrowser(String browser) { public void setBrowser(String browser) {
/* 111 */ this.browser = browser; this.browser = browser;
/* */ } }
/* */
/* */
/* */ public String getOs() { public String getOs() {
/* 116 */ return this.os; return this.os;
/* */ } }
/* */
/* */
/* */ public void setOs(String os) { public void setOs(String os) {
/* 121 */ this.os = os; this.os = os;
/* */ } }
/* */
/* */
/* */ public Date getStartTimestamp() { public Date getStartTimestamp() {
/* 126 */ return this.startTimestamp; return this.startTimestamp;
/* */ } }
/* */
/* */
/* */ public void setStartTimestamp(Date startTimestamp) { public void setStartTimestamp(Date startTimestamp) {
/* 131 */ this.startTimestamp = startTimestamp; this.startTimestamp = startTimestamp;
/* */ } }
/* */
/* */
/* */ public Date getLastAccessTime() { public Date getLastAccessTime() {
/* 136 */ return this.lastAccessTime; return this.lastAccessTime;
/* */ } }
/* */
/* */
/* */ public void setLastAccessTime(Date lastAccessTime) { public void setLastAccessTime(Date lastAccessTime) {
/* 141 */ this.lastAccessTime = lastAccessTime; this.lastAccessTime = lastAccessTime;
/* */ } }
/* */
/* */
/* */ public Long getExpireTime() { public Long getExpireTime() {
/* 146 */ return this.expireTime; return this.expireTime;
/* */ } }
/* */
/* */
/* */ public void setExpireTime(Long expireTime) { public void setExpireTime(Long expireTime) {
/* 151 */ this.expireTime = expireTime; this.expireTime = expireTime;
/* */ } }
/* */
/* */
/* */ public OnlineStatus getStatus() { public OnlineStatus getStatus() {
/* 156 */ return this.status; return this.status;
/* */ } }
/* */
/* */
/* */ public void setStatus(OnlineStatus status) { public void setStatus(OnlineStatus status) {
/* 161 */ this.status = status; this.status = status;
/* */ } }
/* */
/* */
/* */ public OnlineSession getSession() { public OnlineSession getSession() {
/* 166 */ return this.session; return this.session;
/* */ } }
/* */
/* */
/* */ public void setSession(OnlineSession session) { public void setSession(OnlineSession session) {
/* 171 */ this.session = session; this.session = session;
/* */ } }
/* */
/* */ @Override @Override
/* */ public String toString() { public String toString() {
/* 176 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 177 */ .append("sessionId", getSessionId()) .append("sessionId", getSessionId())
/* 178 */ .append("loginName", getLoginName()) .append("loginName", getLoginName())
/* 179 */ .append("deptName", getDeptName()) .append("deptName", getDeptName())
/* 180 */ .append("ipaddr", getIpaddr()) .append("ipaddr", getIpaddr())
/* 181 */ .append("loginLocation", getLoginLocation()) .append("loginLocation", getLoginLocation())
/* 182 */ .append("browser", getBrowser()) .append("browser", getBrowser())
/* 183 */ .append("os", getOs()) .append("os", getOs())
/* 184 */ .append("status", getStatus()) .append("status", getStatus())
/* 185 */ .append("startTimestamp", getStartTimestamp()) .append("startTimestamp", getStartTimestamp())
/* 186 */ .append("lastAccessTime", getLastAccessTime()) .append("lastAccessTime", getLastAccessTime())
/* 187 */ .append("expireTime", getExpireTime()) .append("expireTime", getExpireTime())
/* 188 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\domain\UserOnline.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\domain\UserOnline.class

@ -1,156 +1,156 @@
/* */ package com.archive.project.monitor.online.service package com.archive.project.monitor.online.service
; ;
/* */
/* */ import com.archive.common.utils.DateUtils; import com.archive.common.utils.DateUtils;
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.framework.shiro.session.OnlineSessionDAO; import com.archive.framework.shiro.session.OnlineSessionDAO;
/* */ import com.archive.project.monitor.online.domain.UserOnline; import com.archive.project.monitor.online.domain.UserOnline;
/* */ import com.archive.project.monitor.online.mapper.UserOnlineMapper; import com.archive.project.monitor.online.mapper.UserOnlineMapper;
/* */ import com.archive.project.monitor.online.service.IUserOnlineService; import com.archive.project.monitor.online.service.IUserOnlineService;
/* */ import java.io.Serializable; import java.io.Serializable;
/* */ import java.util.Date; import java.util.Date;
/* */ import java.util.Deque; import java.util.Deque;
/* */ import java.util.List; import java.util.List;
/* */ import org.apache.shiro.cache.Cache; import org.apache.shiro.cache.Cache;
/* */ import org.apache.shiro.cache.ehcache.EhCacheManager; import org.apache.shiro.cache.ehcache.EhCacheManager;
/* */ import org.apache.shiro.session.Session; import org.apache.shiro.session.Session;
/* */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/* */ import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Service @Service
/* */ public class UserOnlineServiceImpl public class UserOnlineServiceImpl
/* */ implements IUserOnlineService implements IUserOnlineService
/* */ { {
/* */ @Autowired @Autowired
/* */ private UserOnlineMapper userOnlineDao; private UserOnlineMapper userOnlineDao;
/* */ @Autowired @Autowired
/* */ private OnlineSessionDAO onlineSessionDAO; private OnlineSessionDAO onlineSessionDAO;
/* */ @Autowired @Autowired
/* */ private EhCacheManager ehCacheManager; private EhCacheManager ehCacheManager;
/* */
/* */ public UserOnline selectOnlineById(String sessionId) { public UserOnline selectOnlineById(String sessionId) {
/* 45 */ return this.userOnlineDao.selectOnlineById(sessionId); return this.userOnlineDao.selectOnlineById(sessionId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void deleteOnlineById(String sessionId) { public void deleteOnlineById(String sessionId) {
/* 57 */ UserOnline userOnline = selectOnlineById(sessionId); UserOnline userOnline = selectOnlineById(sessionId);
/* 58 */ if (StringUtils.isNotNull(userOnline)) if (StringUtils.isNotNull(userOnline))
/* */ { {
/* 60 */ this.userOnlineDao.deleteOnlineById(sessionId); this.userOnlineDao.deleteOnlineById(sessionId);
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void batchDeleteOnline(List<String> sessions) { public void batchDeleteOnline(List<String> sessions) {
/* 73 */ for (String sessionId : sessions) { for (String sessionId : sessions) {
/* */
/* 75 */ UserOnline userOnline = selectOnlineById(sessionId); UserOnline userOnline = selectOnlineById(sessionId);
/* 76 */ if (StringUtils.isNotNull(userOnline)) if (StringUtils.isNotNull(userOnline))
/* */ { {
/* 78 */ this.userOnlineDao.deleteOnlineById(sessionId); this.userOnlineDao.deleteOnlineById(sessionId);
/* */ } }
/* */ } }
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void saveOnline(UserOnline online) { public void saveOnline(UserOnline online) {
/* 91 */ this.userOnlineDao.saveOnline(online); this.userOnlineDao.saveOnline(online);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<UserOnline> selectUserOnlineList(UserOnline userOnline) { public List<UserOnline> selectUserOnlineList(UserOnline userOnline) {
/* 102 */ return this.userOnlineDao.selectUserOnlineList(userOnline); return this.userOnlineDao.selectUserOnlineList(userOnline);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void forceLogout(String sessionId) { public void forceLogout(String sessionId) {
/* 113 */ Session session = this.onlineSessionDAO.readSession(sessionId); Session session = this.onlineSessionDAO.readSession(sessionId);
/* 114 */ if (session == null) { if (session == null) {
/* */ return; return;
/* */ } }
/* */
/* 118 */ session.setTimeout(1000L); session.setTimeout(1000L);
/* 119 */ this.userOnlineDao.deleteOnlineById(sessionId); this.userOnlineDao.deleteOnlineById(sessionId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void removeUserCache(String loginName, String sessionId) { public void removeUserCache(String loginName, String sessionId) {
/* 131 */ Cache<String, Deque<Serializable>> cache = this.ehCacheManager.getCache("sys-userCache"); Cache<String, Deque<Serializable>> cache = this.ehCacheManager.getCache("sys-userCache");
/* 132 */ Deque<Serializable> deque = (Deque<Serializable>)cache.get(loginName); Deque<Serializable> deque = (Deque<Serializable>)cache.get(loginName);
/* 133 */ if (StringUtils.isEmpty(deque) || deque.size() == 0) { if (StringUtils.isEmpty(deque) || deque.size() == 0) {
/* */ return; return;
/* */ } }
/* */
/* 137 */ deque.remove(sessionId); deque.remove(sessionId);
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public List<UserOnline> selectOnlineByExpired(Date expiredDate) { public List<UserOnline> selectOnlineByExpired(Date expiredDate) {
/* 148 */ String lastAccessTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, expiredDate); String lastAccessTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, expiredDate);
/* 149 */ return this.userOnlineDao.selectOnlineByExpired(lastAccessTime); return this.userOnlineDao.selectOnlineByExpired(lastAccessTime);
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\service\UserOnlineServiceImpl.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\monitor\online\service\UserOnlineServiceImpl.class

@ -1,49 +1,49 @@
/* */ package com.archive.project.system.user.domain package com.archive.project.system.user.domain
; ;
/* */
/* */ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class UserPost public class UserPost
/* */ { {
/* */ private Long userId; private Long userId;
/* */ private Long postId; private Long postId;
/* */
/* */ public Long getUserId() { public Long getUserId() {
/* 20 */ return this.userId; return this.userId;
/* */ } }
/* */
/* */
/* */ public void setUserId(Long userId) { public void setUserId(Long userId) {
/* 25 */ this.userId = userId; this.userId = userId;
/* */ } }
/* */
/* */
/* */ public Long getPostId() { public Long getPostId() {
/* 30 */ return this.postId; return this.postId;
/* */ } }
/* */
/* */
/* */ public void setPostId(Long postId) { public void setPostId(Long postId) {
/* 35 */ this.postId = postId; this.postId = postId;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 40 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 41 */ .append("userId", getUserId()) .append("userId", getUserId())
/* 42 */ .append("postId", getPostId()) .append("postId", getPostId())
/* 43 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\UserPost.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\UserPost.class

@ -1,51 +1,51 @@
/* */ package com.archive.project.system.user.domain package com.archive.project.system.user.domain
; ;
/* */
/* */ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
/* */ import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class UserRole public class UserRole
/* */ { {
/* */ private Long userId; private Long userId;
/* */ private Long roleId; private Long roleId;
/* */
/* */ public Long getUserId() { public Long getUserId() {
/* 21 */ return this.userId; return this.userId;
/* */ } }
/* */
/* */
/* */ public void setUserId(Long userId) { public void setUserId(Long userId) {
/* 26 */ this.userId = userId; this.userId = userId;
/* */ } }
/* */
/* */
/* */ public Long getRoleId() { public Long getRoleId() {
/* 31 */ return this.roleId; return this.roleId;
/* */ } }
/* */
/* */
/* */ public void setRoleId(Long roleId) { public void setRoleId(Long roleId) {
/* 36 */ this.roleId = roleId; this.roleId = roleId;
/* */ } }
/* */
/* */
/* */ public String toString() { public String toString() {
/* 41 */ return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)) return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 42 */ .append("userId", getUserId()) .append("userId", getUserId())
/* 43 */ .append("roleId", getRoleId()) .append("roleId", getRoleId())
/* 44 */ .toString(); .toString();
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\UserRole.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\UserRole.class

@ -1,34 +1,34 @@
/* */ package com.archive.project.system.user.domain; package com.archive.project.system.user.domain;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public enum UserStatus public enum UserStatus
/* */ { {
/* 11 */ OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除"); OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");
/* */
/* */ private final String info; private final String info;
/* */
/* */ private final String code; private final String code;
/* */
/* */ UserStatus(String code, String info) { UserStatus(String code, String info) {
/* 18 */ this.code = code; this.code = code;
/* 19 */ this.info = info; this.info = info;
/* */ } }
/* */
/* */
/* */ public String getCode() { public String getCode() {
/* 24 */ return this.code; return this.code;
/* */ } }
/* */
/* */
/* */ public String getInfo() { public String getInfo() {
/* 29 */ return this.info; return this.info;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\UserStatus.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\syste\\user\domain\UserStatus.class

@ -1,40 +1,40 @@
/* */ package com.archive.project.tool.gen.util package com.archive.project.tool.gen.util
; ;
/* */
/* */ import java.util.Properties; import java.util.Properties;
/* */ import org.apache.velocity.app.Velocity; import org.apache.velocity.app.Velocity;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class VelocityInitializer public class VelocityInitializer
/* */ { {
/* */ public static void initVelocity() { public static void initVelocity() {
/* 19 */ Properties p = new Properties(); Properties p = new Properties();
/* */
/* */
/* */ try { try {
/* 23 */ p.setProperty("file.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); p.setProperty("file.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
/* */
/* 25 */ p.setProperty("ISO-8859-1", "UTF-8"); p.setProperty("ISO-8859-1", "UTF-8");
/* 26 */ p.setProperty("output.encoding", "UTF-8"); p.setProperty("output.encoding", "UTF-8");
/* */
/* 28 */ Velocity.init(p); Velocity.init(p);
/* */ } }
/* 30 */ catch (Exception e) { catch (Exception e) {
/* */
/* 32 */ throw new RuntimeException(e); throw new RuntimeException(e);
/* */ } }
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\ge\\util\VelocityInitializer.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\ge\\util\VelocityInitializer.class

@ -1,373 +1,373 @@
/* */ package com.archive.project.tool.gen.util package com.archive.project.tool.gen.util
; ;
/* */
/* */ import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
/* */ import com.archive.common.utils.DateUtils; import com.archive.common.utils.DateUtils;
/* */ import com.archive.common.utils.StringUtils; import com.archive.common.utils.StringUtils;
/* */ import com.archive.project.tool.gen.domain.GenTable; import com.archive.project.tool.gen.domain.GenTable;
/* */ import com.archive.project.tool.gen.domain.GenTableColumn; import com.archive.project.tool.gen.domain.GenTableColumn;
/* */ import java.util.ArrayList; import java.util.ArrayList;
/* */ import java.util.HashSet; import java.util.HashSet;
/* */ import java.util.List; import java.util.List;
/* */ import java.util.Map; import java.util.Map;
/* */ import org.apache.velocity.VelocityContext; import org.apache.velocity.VelocityContext;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class VelocityUtils public class VelocityUtils
/* */ { {
/* */ private static final String PROJECT_PATH = "main/java"; private static final String PROJECT_PATH = "main/java";
/* */ private static final String MYBATIS_PATH = "main/resources/mybatis"; private static final String MYBATIS_PATH = "main/resources/mybatis";
/* */ private static final String TEMPLATES_PATH = "main/resources/templates"; private static final String TEMPLATES_PATH = "main/resources/templates";
/* */ private static final String DEFAULT_PARENT_MENU_ID = "3"; private static final String DEFAULT_PARENT_MENU_ID = "3";
/* */
/* */ public static VelocityContext prepareContext(GenTable genTable) { public static VelocityContext prepareContext(GenTable genTable) {
/* 35 */ String moduleName = genTable.getModuleName(); String moduleName = genTable.getModuleName();
/* 36 */ String businessName = genTable.getBusinessName(); String businessName = genTable.getBusinessName();
/* 37 */ String packageName = genTable.getPackageName(); String packageName = genTable.getPackageName();
/* 38 */ String tplCategory = genTable.getTplCategory(); String tplCategory = genTable.getTplCategory();
/* 39 */ String functionName = genTable.getFunctionName(); String functionName = genTable.getFunctionName();
/* */
/* 41 */ VelocityContext velocityContext = new VelocityContext(); VelocityContext velocityContext = new VelocityContext();
/* 42 */ velocityContext.put("tplCategory", genTable.getTplCategory()); velocityContext.put("tplCategory", genTable.getTplCategory());
/* 43 */ velocityContext.put("tableName", genTable.getTableName()); velocityContext.put("tableName", genTable.getTableName());
/* 44 */ velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【请填写功能名称】"); velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【请填写功能名称】");
/* 45 */ velocityContext.put("ClassName", genTable.getClassName()); velocityContext.put("ClassName", genTable.getClassName());
/* 46 */ velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName())); velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName()));
/* 47 */ velocityContext.put("moduleName", genTable.getModuleName()); velocityContext.put("moduleName", genTable.getModuleName());
/* 48 */ velocityContext.put("businessName", genTable.getBusinessName()); velocityContext.put("businessName", genTable.getBusinessName());
/* 49 */ velocityContext.put("basePackage", getPackagePrefix(packageName)); velocityContext.put("basePackage", getPackagePrefix(packageName));
/* 50 */ velocityContext.put("packageName", packageName); velocityContext.put("packageName", packageName);
/* 51 */ velocityContext.put("author", genTable.getFunctionAuthor()); velocityContext.put("author", genTable.getFunctionAuthor());
/* 52 */ velocityContext.put("datetime", DateUtils.getDate()); velocityContext.put("datetime", DateUtils.getDate());
/* 53 */ velocityContext.put("pkColumn", genTable.getPkColumn()); velocityContext.put("pkColumn", genTable.getPkColumn());
/* 54 */ velocityContext.put("importList", getImportList(genTable)); velocityContext.put("importList", getImportList(genTable));
/* 55 */ velocityContext.put("permissionPrefix", getPermissionPrefix(moduleName, businessName)); velocityContext.put("permissionPrefix", getPermissionPrefix(moduleName, businessName));
/* 56 */ velocityContext.put("columns", genTable.getColumns()); velocityContext.put("columns", genTable.getColumns());
/* 57 */ velocityContext.put("table", genTable); velocityContext.put("table", genTable);
/* 58 */ setMenuVelocityContext(velocityContext, genTable); setMenuVelocityContext(velocityContext, genTable);
/* 59 */ if ("tree".equals(tplCategory)) if ("tree".equals(tplCategory))
/* */ { {
/* 61 */ setTreeVelocityContext(velocityContext, genTable); setTreeVelocityContext(velocityContext, genTable);
/* */ } }
/* 63 */ if ("sub".equals(tplCategory)) if ("sub".equals(tplCategory))
/* */ { {
/* 65 */ setSubVelocityContext(velocityContext, genTable); setSubVelocityContext(velocityContext, genTable);
/* */ } }
/* 67 */ return velocityContext; return velocityContext;
/* */ } }
/* */
/* */
/* */ public static void setMenuVelocityContext(VelocityContext context, GenTable genTable) { public static void setMenuVelocityContext(VelocityContext context, GenTable genTable) {
/* 72 */ String options = genTable.getOptions(); String options = genTable.getOptions();
/* 73 */ JSONObject paramsObj = JSONObject.parseObject(options); JSONObject paramsObj = JSONObject.parseObject(options);
/* 74 */ String parentMenuId = getParentMenuId(paramsObj); String parentMenuId = getParentMenuId(paramsObj);
/* 75 */ context.put("parentMenuId", parentMenuId); context.put("parentMenuId", parentMenuId);
/* */ } }
/* */
/* */
/* */ public static void setTreeVelocityContext(VelocityContext context, GenTable genTable) { public static void setTreeVelocityContext(VelocityContext context, GenTable genTable) {
/* 80 */ String options = genTable.getOptions(); String options = genTable.getOptions();
/* 81 */ JSONObject paramsObj = JSONObject.parseObject(options); JSONObject paramsObj = JSONObject.parseObject(options);
/* 82 */ String treeCode = getTreecode(paramsObj); String treeCode = getTreecode(paramsObj);
/* 83 */ String treeParentCode = getTreeParentCode(paramsObj); String treeParentCode = getTreeParentCode(paramsObj);
/* 84 */ String treeName = getTreeName(paramsObj); String treeName = getTreeName(paramsObj);
/* */
/* 86 */ context.put("treeCode", treeCode); context.put("treeCode", treeCode);
/* 87 */ context.put("treeParentCode", treeParentCode); context.put("treeParentCode", treeParentCode);
/* 88 */ context.put("treeName", treeName); context.put("treeName", treeName);
/* 89 */ context.put("expandColumn", Integer.valueOf(getExpandColumn(genTable))); context.put("expandColumn", Integer.valueOf(getExpandColumn(genTable)));
/* 90 */ if (paramsObj.containsKey("treeParentCode")) if (paramsObj.containsKey("treeParentCode"))
/* */ { {
/* 92 */ context.put("tree_parent_code", paramsObj.getString("treeParentCode")); context.put("tree_parent_code", paramsObj.getString("treeParentCode"));
/* */ } }
/* 94 */ if (paramsObj.containsKey("treeName")) if (paramsObj.containsKey("treeName"))
/* */ { {
/* 96 */ context.put("tree_name", paramsObj.getString("treeName")); context.put("tree_name", paramsObj.getString("treeName"));
/* */ } }
/* */ } }
/* */
/* */
/* */ public static void setSubVelocityContext(VelocityContext context, GenTable genTable) { public static void setSubVelocityContext(VelocityContext context, GenTable genTable) {
/* 102 */ GenTable subTable = genTable.getSubTable(); GenTable subTable = genTable.getSubTable();
/* 103 */ String subTableName = genTable.getSubTableName(); String subTableName = genTable.getSubTableName();
/* 104 */ String subTableFkName = genTable.getSubTableFkName(); String subTableFkName = genTable.getSubTableFkName();
/* 105 */ String subClassName = genTable.getSubTable().getClassName(); String subClassName = genTable.getSubTable().getClassName();
/* 106 */ String subTableFkClassName = StringUtils.convertToCamelCase(subTableFkName); String subTableFkClassName = StringUtils.convertToCamelCase(subTableFkName);
/* */
/* 108 */ context.put("subTable", subTable); context.put("subTable", subTable);
/* 109 */ context.put("subTableName", subTableName); context.put("subTableName", subTableName);
/* 110 */ context.put("subTableFkName", subTableFkName); context.put("subTableFkName", subTableFkName);
/* 111 */ context.put("subTableFkClassName", subTableFkClassName); context.put("subTableFkClassName", subTableFkClassName);
/* 112 */ context.put("subTableFkclassName", StringUtils.uncapitalize(subTableFkClassName)); context.put("subTableFkclassName", StringUtils.uncapitalize(subTableFkClassName));
/* 113 */ context.put("subClassName", subClassName); context.put("subClassName", subClassName);
/* 114 */ context.put("subclassName", StringUtils.uncapitalize(subClassName)); context.put("subclassName", StringUtils.uncapitalize(subClassName));
/* 115 */ context.put("subImportList", getImportList(genTable.getSubTable())); context.put("subImportList", getImportList(genTable.getSubTable()));
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static List<String> getTemplateList(String tplCategory) { public static List<String> getTemplateList(String tplCategory) {
/* 125 */ List<String> templates = new ArrayList<>(); List<String> templates = new ArrayList<>();
/* 126 */ templates.add("vm/java/domain.java.vm"); templates.add("vm/java/domain.java.vm");
/* 127 */ templates.add("vm/java/mapper.java.vm"); templates.add("vm/java/mapper.java.vm");
/* 128 */ templates.add("vm/java/service.java.vm"); templates.add("vm/java/service.java.vm");
/* 129 */ templates.add("vm/java/serviceImpl.java.vm"); templates.add("vm/java/serviceImpl.java.vm");
/* 130 */ templates.add("vm/java/controller.java.vm"); templates.add("vm/java/controller.java.vm");
/* 131 */ templates.add("vm/xml/mapper.xml.vm"); templates.add("vm/xml/mapper.xml.vm");
/* 132 */ if ("crud".equals(tplCategory)) { if ("crud".equals(tplCategory)) {
/* */
/* 134 */ templates.add("vm/html/list.html.vm"); templates.add("vm/html/list.html.vm");
/* */ } }
/* 136 */ else if ("tree".equals(tplCategory)) { else if ("tree".equals(tplCategory)) {
/* */
/* 138 */ templates.add("vm/html/tree.html.vm"); templates.add("vm/html/tree.html.vm");
/* 139 */ templates.add("vm/html/list-tree.html.vm"); templates.add("vm/html/list-tree.html.vm");
/* */ } }
/* 141 */ else if ("sub".equals(tplCategory)) { else if ("sub".equals(tplCategory)) {
/* */
/* 143 */ templates.add("vm/html/list.html.vm"); templates.add("vm/html/list.html.vm");
/* 144 */ templates.add("vm/java/sub-domain.java.vm"); templates.add("vm/java/sub-domain.java.vm");
/* */ } }
/* 146 */ templates.add("vm/html/add.html.vm"); templates.add("vm/html/add.html.vm");
/* 147 */ templates.add("vm/html/edit.html.vm"); templates.add("vm/html/edit.html.vm");
/* 148 */ templates.add("vm/sql/sql.vm"); templates.add("vm/sql/sql.vm");
/* 149 */ return templates; return templates;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getFileName(String template, GenTable genTable) { public static String getFileName(String template, GenTable genTable) {
/* 158 */ String fileName = ""; String fileName = "";
/* */
/* 160 */ String packageName = genTable.getPackageName(); String packageName = genTable.getPackageName();
/* */
/* 162 */ String moduleName = genTable.getModuleName(); String moduleName = genTable.getModuleName();
/* */
/* 164 */ String className = genTable.getClassName(); String className = genTable.getClassName();
/* */
/* 166 */ String businessName = genTable.getBusinessName(); String businessName = genTable.getBusinessName();
/* */
/* 168 */ String javaPath = "main/java/" + StringUtils.replace(packageName, ".", "/"); String javaPath = "main/java/" + StringUtils.replace(packageName, ".", "/");
/* 169 */ String mybatisPath = "main/resources/mybatis/" + moduleName; String mybatisPath = "main/resources/mybatis/" + moduleName;
/* 170 */ String htmlPath = "main/resources/templates/" + moduleName + "/" + businessName; String htmlPath = "main/resources/templates/" + moduleName + "/" + businessName;
/* */
/* 172 */ if (template.contains("domain.java.vm")) if (template.contains("domain.java.vm"))
/* */ { {
/* 174 */ fileName = StringUtils.format("{}/{}/domain/{}.java", new Object[] { javaPath, businessName, className }); fileName = StringUtils.format("{}/{}/domain/{}.java", new Object[] { javaPath, businessName, className });
/* */ } }
/* 176 */ if (template.contains("sub-domain.java.vm") && StringUtils.equals("sub", genTable.getTplCategory())) { if (template.contains("sub-domain.java.vm") && StringUtils.equals("sub", genTable.getTplCategory())) {
/* */
/* 178 */ fileName = StringUtils.format("{}/{}/domain/{}.java", new Object[] { javaPath, businessName, genTable.getSubTable().getClassName() }); fileName = StringUtils.format("{}/{}/domain/{}.java", new Object[] { javaPath, businessName, genTable.getSubTable().getClassName() });
/* */ } }
/* 180 */ else if (template.contains("mapper.java.vm")) { else if (template.contains("mapper.java.vm")) {
/* */
/* 182 */ fileName = StringUtils.format("{}/{}/mapper/{}Mapper.java", new Object[] { javaPath, businessName, className }); fileName = StringUtils.format("{}/{}/mapper/{}Mapper.java", new Object[] { javaPath, businessName, className });
/* */ } }
/* 184 */ else if (template.contains("service.java.vm")) { else if (template.contains("service.java.vm")) {
/* */
/* 186 */ fileName = StringUtils.format("{}/{}/service/I{}Service.java", new Object[] { javaPath, businessName, className }); fileName = StringUtils.format("{}/{}/service/I{}Service.java", new Object[] { javaPath, businessName, className });
/* */ } }
/* 188 */ else if (template.contains("serviceImpl.java.vm")) { else if (template.contains("serviceImpl.java.vm")) {
/* */
/* 190 */ fileName = StringUtils.format("{}/{}/service/impl/{}ServiceImpl.java", new Object[] { javaPath, businessName, className }); fileName = StringUtils.format("{}/{}/service/impl/{}ServiceImpl.java", new Object[] { javaPath, businessName, className });
/* */ } }
/* 192 */ else if (template.contains("controller.java.vm")) { else if (template.contains("controller.java.vm")) {
/* */
/* 194 */ fileName = StringUtils.format("{}/{}/controller/{}Controller.java", new Object[] { javaPath, businessName, className }); fileName = StringUtils.format("{}/{}/controller/{}Controller.java", new Object[] { javaPath, businessName, className });
/* */ } }
/* 196 */ else if (template.contains("mapper.xml.vm")) { else if (template.contains("mapper.xml.vm")) {
/* */
/* 198 */ fileName = StringUtils.format("{}/{}Mapper.xml", new Object[] { mybatisPath, className }); fileName = StringUtils.format("{}/{}Mapper.xml", new Object[] { mybatisPath, className });
/* */ } }
/* 200 */ else if (template.contains("list.html.vm")) { else if (template.contains("list.html.vm")) {
/* */
/* 202 */ fileName = StringUtils.format("{}/{}.html", new Object[] { htmlPath, businessName }); fileName = StringUtils.format("{}/{}.html", new Object[] { htmlPath, businessName });
/* */ } }
/* 204 */ else if (template.contains("list-tree.html.vm")) { else if (template.contains("list-tree.html.vm")) {
/* */
/* 206 */ fileName = StringUtils.format("{}/{}.html", new Object[] { htmlPath, businessName }); fileName = StringUtils.format("{}/{}.html", new Object[] { htmlPath, businessName });
/* */ } }
/* 208 */ else if (template.contains("tree.html.vm")) { else if (template.contains("tree.html.vm")) {
/* */
/* 210 */ fileName = StringUtils.format("{}/tree.html", new Object[] { htmlPath }); fileName = StringUtils.format("{}/tree.html", new Object[] { htmlPath });
/* */ } }
/* 212 */ else if (template.contains("add.html.vm")) { else if (template.contains("add.html.vm")) {
/* */
/* 214 */ fileName = StringUtils.format("{}/add.html", new Object[] { htmlPath }); fileName = StringUtils.format("{}/add.html", new Object[] { htmlPath });
/* */ } }
/* 216 */ else if (template.contains("edit.html.vm")) { else if (template.contains("edit.html.vm")) {
/* */
/* 218 */ fileName = StringUtils.format("{}/edit.html", new Object[] { htmlPath }); fileName = StringUtils.format("{}/edit.html", new Object[] { htmlPath });
/* */ } }
/* 220 */ else if (template.contains("sql.vm")) { else if (template.contains("sql.vm")) {
/* */
/* 222 */ fileName = businessName + "Menu.sql"; fileName = businessName + "Menu.sql";
/* */ } }
/* 224 */ return fileName; return fileName;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getPackagePrefix(String packageName) { public static String getPackagePrefix(String packageName) {
/* 235 */ int lastIndex = packageName.lastIndexOf("."); int lastIndex = packageName.lastIndexOf(".");
/* 236 */ String basePackage = StringUtils.substring(packageName, 0, lastIndex); String basePackage = StringUtils.substring(packageName, 0, lastIndex);
/* 237 */ return basePackage; return basePackage;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static HashSet<String> getImportList(GenTable genTable) { public static HashSet<String> getImportList(GenTable genTable) {
/* 248 */ List<GenTableColumn> columns = genTable.getColumns(); List<GenTableColumn> columns = genTable.getColumns();
/* 249 */ GenTable subGenTable = genTable.getSubTable(); GenTable subGenTable = genTable.getSubTable();
/* 250 */ HashSet<String> importList = new HashSet<>(); HashSet<String> importList = new HashSet<>();
/* 251 */ if (StringUtils.isNotNull(subGenTable)) if (StringUtils.isNotNull(subGenTable))
/* */ { {
/* 253 */ importList.add("java.util.List"); importList.add("java.util.List");
/* */ } }
/* 255 */ for (GenTableColumn column : columns) { for (GenTableColumn column : columns) {
/* */
/* 257 */ if (!column.isSuperColumn() && "Date".equals(column.getJavaType())) { if (!column.isSuperColumn() && "Date".equals(column.getJavaType())) {
/* */
/* 259 */ importList.add("java.util.Date"); importList.add("java.util.Date");
/* 260 */ importList.add("com.fasterxml.jackson.annotation.JsonFormat"); continue; importList.add("com.fasterxml.jackson.annotation.JsonFormat"); continue;
/* */ } }
/* 262 */ if (!column.isSuperColumn() && "BigDecimal".equals(column.getJavaType())) if (!column.isSuperColumn() && "BigDecimal".equals(column.getJavaType()))
/* */ { {
/* 264 */ importList.add("java.math.BigDecimal"); importList.add("java.math.BigDecimal");
/* */ } }
/* */ } }
/* 267 */ return importList; return importList;
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getPermissionPrefix(String moduleName, String businessName) { public static String getPermissionPrefix(String moduleName, String businessName) {
/* 279 */ return StringUtils.format("{}:{}", new Object[] { moduleName, businessName }); return StringUtils.format("{}:{}", new Object[] { moduleName, businessName });
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getParentMenuId(JSONObject paramsObj) { public static String getParentMenuId(JSONObject paramsObj) {
/* 290 */ if (StringUtils.isNotEmpty((Map)paramsObj) && paramsObj.containsKey("parentMenuId")) if (StringUtils.isNotEmpty((Map)paramsObj) && paramsObj.containsKey("parentMenuId"))
/* */ { {
/* 292 */ return paramsObj.getString("parentMenuId"); return paramsObj.getString("parentMenuId");
/* */ } }
/* 294 */ return "3"; return "3";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getTreecode(JSONObject paramsObj) { public static String getTreecode(JSONObject paramsObj) {
/* 305 */ if (paramsObj.containsKey("treeCode")) if (paramsObj.containsKey("treeCode"))
/* */ { {
/* 307 */ return StringUtils.toCamelCase(paramsObj.getString("treeCode")); return StringUtils.toCamelCase(paramsObj.getString("treeCode"));
/* */ } }
/* 309 */ return ""; return "";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getTreeParentCode(JSONObject paramsObj) { public static String getTreeParentCode(JSONObject paramsObj) {
/* 320 */ if (paramsObj.containsKey("treeParentCode")) if (paramsObj.containsKey("treeParentCode"))
/* */ { {
/* 322 */ return StringUtils.toCamelCase(paramsObj.getString("treeParentCode")); return StringUtils.toCamelCase(paramsObj.getString("treeParentCode"));
/* */ } }
/* 324 */ return ""; return "";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static String getTreeName(JSONObject paramsObj) { public static String getTreeName(JSONObject paramsObj) {
/* 335 */ if (paramsObj.containsKey("treeName")) if (paramsObj.containsKey("treeName"))
/* */ { {
/* 337 */ return StringUtils.toCamelCase(paramsObj.getString("treeName")); return StringUtils.toCamelCase(paramsObj.getString("treeName"));
/* */ } }
/* 339 */ return ""; return "";
/* */ } }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static int getExpandColumn(GenTable genTable) { public static int getExpandColumn(GenTable genTable) {
/* 350 */ String options = genTable.getOptions(); String options = genTable.getOptions();
/* 351 */ JSONObject paramsObj = JSONObject.parseObject(options); JSONObject paramsObj = JSONObject.parseObject(options);
/* 352 */ String treeName = paramsObj.getString("treeName"); String treeName = paramsObj.getString("treeName");
/* 353 */ int num = 0; int num = 0;
/* 354 */ for (GenTableColumn column : genTable.getColumns()) { for (GenTableColumn column : genTable.getColumns()) {
/* */
/* 356 */ if (column.isList()) { if (column.isList()) {
/* */
/* 358 */ num++; num++;
/* 359 */ String columnName = column.getColumnName(); String columnName = column.getColumnName();
/* 360 */ if (columnName.equals(treeName)) { if (columnName.equals(treeName)) {
/* */ break; break;
/* */ } }
/* */ } }
/* */ } }
/* */
/* 366 */ return num; return num;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\ge\\util\VelocityUtils.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\ge\\util\VelocityUtils.class

@ -1,180 +1,180 @@
/* */ package com.archive.project.tool.swagger package com.archive.project.tool.swagger
; ;
/* */
/* */ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
/* */ import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @ApiModel("用户实体") @ApiModel("用户实体")
/* */ class UserEntity class UserEntity
/* */ { {
/* */ @ApiModelProperty("用户ID") @ApiModelProperty("用户ID")
/* */ private Integer userId; private Integer userId;
/* */ @ApiModelProperty("用户名称") @ApiModelProperty("用户名称")
/* */ private String username; private String username;
/* */ @ApiModelProperty("用户密码") @ApiModelProperty("用户密码")
/* */ private String password; private String password;
/* */ @ApiModelProperty("用户手机") @ApiModelProperty("用户手机")
/* */ private String mobile; private String mobile;
/* */
/* */ public UserEntity() {} public UserEntity() {}
/* */
/* */ public UserEntity(Integer userId, String username, String password, String mobile) { public UserEntity(Integer userId, String username, String password, String mobile) {
/* 130 */ this.userId = userId; this.userId = userId;
/* 131 */ this.username = username; this.username = username;
/* 132 */ this.password = password; this.password = password;
/* 133 */ this.mobile = mobile; this.mobile = mobile;
/* */ } }
/* */
/* */
/* */ public Integer getUserId() { public Integer getUserId() {
/* 138 */ return this.userId; return this.userId;
/* */ } }
/* */
/* */
/* */ public void setUserId(Integer userId) { public void setUserId(Integer userId) {
/* 143 */ this.userId = userId; this.userId = userId;
/* */ } }
/* */
/* */
/* */ public String getUsername() { public String getUsername() {
/* 148 */ return this.username; return this.username;
/* */ } }
/* */
/* */
/* */ public void setUsername(String username) { public void setUsername(String username) {
/* 153 */ this.username = username; this.username = username;
/* */ } }
/* */
/* */
/* */ public String getPassword() { public String getPassword() {
/* 158 */ return this.password; return this.password;
/* */ } }
/* */
/* */
/* */ public void setPassword(String password) { public void setPassword(String password) {
/* 163 */ this.password = password; this.password = password;
/* */ } }
/* */
/* */
/* */ public String getMobile() { public String getMobile() {
/* 168 */ return this.mobile; return this.mobile;
/* */ } }
/* */
/* */
/* */ public void setMobile(String mobile) { public void setMobile(String mobile) {
/* 173 */ this.mobile = mobile; this.mobile = mobile;
/* */ } }
/* */ } }
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\swagger\UserEntity.class /* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\tool\swagger\UserEntity.class

@ -107,7 +107,7 @@
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ([ /******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -277,7 +277,7 @@ if (document.readyState === "interactive" || document.readyState === "complete")
} }
/***/ }), /***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -2773,7 +2773,7 @@ const PDFPrintServiceFactory = {
exports.PDFPrintServiceFactory = PDFPrintServiceFactory; exports.PDFPrintServiceFactory = PDFPrintServiceFactory;
/***/ }), /***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -3508,7 +3508,7 @@ function moveToEndOfArray(arr, condition) {
} }
/***/ }), /***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -3765,7 +3765,7 @@ class AppOptions {
exports.AppOptions = AppOptions; exports.AppOptions = AppOptions;
/***/ }), /***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -3801,7 +3801,7 @@ const viewerCompatibilityParams = Object.freeze(compatibilityParams);
exports.viewerCompatibilityParams = viewerCompatibilityParams; exports.viewerCompatibilityParams = viewerCompatibilityParams;
/***/ }), /***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -3818,7 +3818,7 @@ if (typeof window !== "undefined" && window["pdfjs/build/pdf"]) {
module.exports = pdfjsLib; module.exports = pdfjsLib;
/***/ }), /***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -3942,7 +3942,7 @@ class PDFCursorTools {
exports.PDFCursorTools = PDFCursorTools; exports.PDFCursorTools = PDFCursorTools;
/***/ }), /***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4107,7 +4107,7 @@ function isLeftMouseReleased(event) {
} }
/***/ }), /***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4243,7 +4243,7 @@ class PDFRenderingQueue {
exports.PDFRenderingQueue = PDFRenderingQueue; exports.PDFRenderingQueue = PDFRenderingQueue;
/***/ }), /***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4625,7 +4625,7 @@ class PDFSidebar {
exports.PDFSidebar = PDFSidebar; exports.PDFSidebar = PDFSidebar;
/***/ }), /***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4736,7 +4736,7 @@ class OverlayManager {
exports.OverlayManager = OverlayManager; exports.OverlayManager = OverlayManager;
/***/ }), /***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4815,7 +4815,7 @@ class PasswordPrompt {
exports.PasswordPrompt = PasswordPrompt; exports.PasswordPrompt = PasswordPrompt;
/***/ }), /***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4971,7 +4971,7 @@ class PDFAttachmentViewer {
exports.PDFAttachmentViewer = PDFAttachmentViewer; exports.PDFAttachmentViewer = PDFAttachmentViewer;
/***/ }), /***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -5266,7 +5266,7 @@ class PDFDocumentProperties {
exports.PDFDocumentProperties = PDFDocumentProperties; exports.PDFDocumentProperties = PDFDocumentProperties;
/***/ }), /***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -5477,7 +5477,7 @@ class PDFFindBar {
exports.PDFFindBar = PDFFindBar; exports.PDFFindBar = PDFFindBar;
/***/ }), /***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -6158,7 +6158,7 @@ class PDFFindController {
exports.PDFFindController = PDFFindController; exports.PDFFindController = PDFFindController;
/***/ }), /***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -6254,7 +6254,7 @@ function getCharacterType(charCode) {
} }
/***/ }), /***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -6842,7 +6842,7 @@ function isDestArraysEqual(firstDest, secondDest) {
} }
/***/ }), /***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -7281,7 +7281,7 @@ class SimpleLinkService {
exports.SimpleLinkService = SimpleLinkService; exports.SimpleLinkService = SimpleLinkService;
/***/ }), /***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -7481,7 +7481,7 @@ class PDFOutlineViewer {
exports.PDFOutlineViewer = PDFOutlineViewer; exports.PDFOutlineViewer = PDFOutlineViewer;
/***/ }), /***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -7890,7 +7890,7 @@ class PDFPresentationMode {
exports.PDFPresentationMode = PDFPresentationMode; exports.PDFPresentationMode = PDFPresentationMode;
/***/ }), /***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -8039,7 +8039,7 @@ class PDFSidebarResizer {
exports.PDFSidebarResizer = PDFSidebarResizer; exports.PDFSidebarResizer = PDFSidebarResizer;
/***/ }), /***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -8296,7 +8296,7 @@ class PDFThumbnailViewer {
exports.PDFThumbnailViewer = PDFThumbnailViewer; exports.PDFThumbnailViewer = PDFThumbnailViewer;
/***/ }), /***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -8706,7 +8706,7 @@ class PDFThumbnailView {
exports.PDFThumbnailView = PDFThumbnailView; exports.PDFThumbnailView = PDFThumbnailView;
/***/ }), /***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -8793,7 +8793,7 @@ class PDFViewer extends _base_viewer.BaseViewer {
exports.PDFViewer = PDFViewer; exports.PDFViewer = PDFViewer;
/***/ }), /***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -9913,7 +9913,7 @@ class BaseViewer {
exports.BaseViewer = BaseViewer; exports.BaseViewer = BaseViewer;
/***/ }), /***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -10024,7 +10024,7 @@ class DefaultAnnotationLayerFactory {
exports.DefaultAnnotationLayerFactory = DefaultAnnotationLayerFactory; exports.DefaultAnnotationLayerFactory = DefaultAnnotationLayerFactory;
/***/ }), /***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -10622,7 +10622,7 @@ class PDFPageView {
exports.PDFPageView = PDFPageView; exports.PDFPageView = PDFPageView;
/***/ }), /***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -11006,7 +11006,7 @@ class DefaultTextLayerFactory {
exports.DefaultTextLayerFactory = DefaultTextLayerFactory; exports.DefaultTextLayerFactory = DefaultTextLayerFactory;
/***/ }), /***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -11324,7 +11324,7 @@ class SecondaryToolbar {
exports.SecondaryToolbar = SecondaryToolbar; exports.SecondaryToolbar = SecondaryToolbar;
/***/ }), /***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -11446,7 +11446,7 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer {
exports.PDFSinglePageViewer = PDFSinglePageViewer; exports.PDFSinglePageViewer = PDFSinglePageViewer;
/***/ }), /***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -11716,7 +11716,7 @@ class Toolbar {
exports.Toolbar = Toolbar; exports.Toolbar = Toolbar;
/***/ }), /***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -11812,7 +11812,7 @@ class ViewHistory {
exports.ViewHistory = ViewHistory; exports.ViewHistory = ViewHistory;
/***/ }), /***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -11866,7 +11866,7 @@ class GenericExternalServices extends _app.DefaultExternalServices {
_app.PDFViewerApplication.externalServices = GenericExternalServices; _app.PDFViewerApplication.externalServices = GenericExternalServices;
/***/ }), /***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -12016,7 +12016,7 @@ class BasePreferences {
exports.BasePreferences = BasePreferences; exports.BasePreferences = BasePreferences;
/***/ }), /***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -12103,7 +12103,7 @@ class DownloadManager {
exports.DownloadManager = DownloadManager; exports.DownloadManager = DownloadManager;
/***/ }), /***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -12153,7 +12153,7 @@ class GenericL10n {
exports.GenericL10n = GenericL10n; exports.GenericL10n = GenericL10n;
/***/ }), /***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -12976,7 +12976,7 @@ document.webL10n = function (window, document, undefined) {
}(window, document); }(window, document);
/***/ }), /***/ }),
/* 38 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";

Loading…
Cancel
Save