com.diboot.devtools.v2.OO0O00OOOO00OO00 Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
*
* ---- 版权声明 ----
* Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。
* Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。
*
* 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。
* 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。
*
* 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底!
*
*/
package com.diboot.devtools.v2;
import com.diboot.core.exception.BusinessException;
import com.diboot.core.util.V;
import com.diboot.core.vo.Status;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
@Deprecated()
public class OO0O00OOOO00OO00 {
@Deprecated()
public static O00000O0OOO0O0OO l1l111llll1llll(String l1l1lll1ll11) {
O00000O0OOO0O0OO l11111l1l1ll = OOOO0O0OO0OO0000.llll11lllll1l1l().llll1lll111l111(true, l1l1lll1ll11);
return l11111l1l1ll;
}
@Deprecated()
public static O00OO000OOOO00O0 l1l11l111llllll(O00000O0OOO0O0OO ll11lllll111, O0O00OO000O00000 l11l111ll11l) {
O00OO000OOOO00O0 lll11111llll = new O00OO000OOOO00O0();
OOOOO00OOOO0OOOO l1l1llll1lll = new OOOOO00OOOO0OOOO();
l1l1llll1lll.setTable(ll11lllll111.getTableName());
l1l1llll1lll.setClassName(ll11lllll111.getClassName());
l1l1llll1lll.setModule(ll11lllll111.getModule());
l1l1llll1lll.setLabel(ll11lllll111.getObjName());
lll11111llll.setModel(l1l1llll1lll);
List l1lllll1111l = l11l111ll11l.l1ll11111ll1l11(ll11lllll111.getTableName());
lll11111llll.setDibootColumns(l1lllll1111l);
List ll1ll1111ll1 = null;
for (O000000O0O0OO000 llll1l1l1l1l : l1lllll1111l) {
if (llll1l1l1l1l.isHasReference()) {
OOO0OOO0O0OO00O0.lll1ll111l111ll(llll1l1l1l1l);
if (ll1ll1111ll1 == null) {
ll1ll1111ll1 = new ArrayList<>();
}
if (llll1l1l1l1l.getReferenceField() != null) {
ll1ll1111ll1.add(llll1l1l1l1l.getReferenceField());
}
}
}
if (ll1ll1111ll1 != null) {
lll11111llll.setReferenceFields(ll1ll1111ll1);
}
return lll11111llll;
}
@Deprecated()
public static String l1ll11lll111lll() throws Exception {
String l111l111llll = OO0O0OOOOO0O0O00.lllll1llll1ll1.get(OOO0OO00O00O00OO.l11llll1ll11ll1("cHJvamVjdFR5cGU="));
if (V.notEmpty(l111l111llll)) {
return l111l111llll;
}
String ll1ll1lll1l1 = OO0O0OOOOO0O0O00.llll11l1ll111l1(O0O0O0000OO0O000.LYR.VIEW) + OOO0OO00O00O00OO.l11llll1ll11ll1("cGFja2FnZS5qc29u");
File l1l11l1l1l1l = new File(ll1ll1lll1l1);
if (!l1l11l1l1l1l.exists()) {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5YmN56uv6aG555uu57G75Z6L5aSx6LSl77yM6K+35qOA5p+l5YmN56uv6aG555uu6YWN572u"));
}
return l1l111l1111l1ll(l1l11l1l1l1l);
}
@Deprecated()
public static String l1l111l1111l1ll(File ll1111ll1l1l) throws Exception {
String l1ll1ll1lll1 = FileUtils.readFileToString(ll1111ll1l1l, O0O0O0000OO0O000.CHARSET_UTF8);
if (V.isEmpty(l1ll1ll1lll1)) {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5YmN56uv6aG555uu57G75Z6L5aSx6LSl77yM6K+35qOA5p+l5YmN56uv6aG555uu6YWN572u"));
}
if (l1ll1ll1lll1.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("YW50LWRlc2lnbi12dWU="))) {
OO0O0OOOOO0O0O00.lllll1llll1ll1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("cHJvamVjdFR5cGU="), OOO0OO00O00O00OO.l11llll1ll11ll1("YW50ZHY="));
return OOO0OO00O00O00OO.l11llll1ll11ll1("YW50ZHY=");
} else if (l1ll1ll1lll1.contains(OOO0OO00O00O00OO.l11llll1ll11ll1("ZWxlbWVudC11aQ=="))) {
OO0O0OOOOO0O0O00.lllll1llll1ll1.put(OOO0OO00O00O00OO.l11llll1ll11ll1("cHJvamVjdFR5cGU="), OOO0OO00O00O00OO.l11llll1ll11ll1("ZWxlbWVudA=="));
return OOO0OO00O00O00OO.l11llll1ll11ll1("ZWxlbWVudA==");
} else {
throw new BusinessException(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("6I635Y+W5YmN56uv6aG555uu57G75Z6L5aSx6LSl77yM6K+35qOA5p+l5YmN56uv6aG555uu6YWN572u"));
}
}
@Deprecated()
public static List l11ll1ll11ll1l1(OO0O0O0O000OOOOO l1l111l1l11l, List ll111111l11l) {
List l1l1111ll111 = new ArrayList<>();
for (String l111l1ll1111 : ll111111l11l) {
String llll11ll11l1 = "", ll1l1l1l11l1 = "", l1ll1l111lll = "";
if (V.equals(l111l1ll1111, OOO0OO00O00O00OO.l11llll1ll11ll1("Q29udHJvbGxlcg=="))) {
llll11ll11l1 = OOO0OO0O00OO00O0.ll1ll1lll1l1lll(l1l111l1l11l.getClassName(), l1l111l1l11l.getModule());
ll1l1l1l11l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("Q29udHJvbGxlcg==");
} else if (V.equals(l111l1ll1111, OOO0OO00O00O00OO.l11llll1ll11ll1("U2VydmljZQ=="))) {
llll11ll11l1 = OOO0OO0O00OO00O0.l11ll1llllll1l1(l1l111l1l11l.getClassName(), l1l111l1l11l.getModule());
ll1l1l1l11l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("U2VydmljZQ==");
} else if (V.equals(l111l1ll1111, OOO0OO00O00O00OO.l11llll1ll11ll1("U2VydmljZUltcGw="))) {
llll11ll11l1 = OOO0OO0O00OO00O0.ll1l11l1lll1l1l(l1l111l1l11l.getClassName(), l1l111l1l11l.getModule());
ll1l1l1l11l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("U2VydmljZUltcGw=");
} else if (V.equals(l111l1ll1111, OOO0OO00O00O00OO.l11llll1ll11ll1("TWFwcGVy"))) {
llll11ll11l1 = OOO0OO0O00OO00O0.lll111lll111ll1(l1l111l1l11l.getClassName(), l1l111l1l11l.getModule());
ll1l1l1l11l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("TWFwcGVy");
} else if (V.equals(l111l1ll1111, OOO0OO00O00O00OO.l11llll1ll11ll1("TWFwcGVyWG1s"))) {
llll11ll11l1 = OOO0OO0O00OO00O0.l1ll111ll1l1ll1(l1l111l1l11l.getClassName(), l1l111l1l11l.getModule());
ll1l1l1l11l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("TWFwcGVyLnhtbA==");
} else if (V.equals(l111l1ll1111, OOO0OO00O00O00OO.l11llll1ll11ll1("RW50aXR5"))) {
llll11ll11l1 = OOO0OO0O00OO00O0.l1111lll1llll11(l1l111l1l11l.getClassName(), l1l111l1l11l.getModule());
ll1l1l1l11l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("RW50aXR5");
}
if (V.notEmpty(llll11ll11l1)) {
l1ll1l111lll = OO0OOOO0OOO0000O.ll111l1llllll11(llll11ll11l1);
}
if (V.notEmpty(l1ll1l111lll)) {
l1l1111ll111.add(new OOO0O00OO00000O0().setKey(ll1l1l1l11l1).setContent(l1ll1l111lll).setPath(llll11ll11l1));
}
}
return l1l1111ll111;
}
}