开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 1.4K

javaalpha/DocSys

forked from Rainy/DocSys
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (2)
标签 (164)
master
devInt
DocSys_V2.02.36
DocSys_V2.02.35
DocSys_V2.02.34
DocSys_V2.02.33
DocSys_V2.02.32
DocSys_V2.02.31
DocSys_V2.02.30
DocSys_V2.02.29
DocSys_V2.02.28
DocSys_V2.02.27
DocSys_V2.02.26
DocSys_V2.02.25
DocSys_V2.02.24
DocSys_V2.02.23
DocSys_V2.02.22
DocSys_V2.02.21
DocSys_V2.02.20
DocSys_V2.02.19
DocSys_V2.02.18
DocSys_V2.02.17
master
分支 (2)
标签 (164)
master
devInt
DocSys_V2.02.36
DocSys_V2.02.35
DocSys_V2.02.34
DocSys_V2.02.33
DocSys_V2.02.32
DocSys_V2.02.31
DocSys_V2.02.30
DocSys_V2.02.29
DocSys_V2.02.28
DocSys_V2.02.27
DocSys_V2.02.26
DocSys_V2.02.25
DocSys_V2.02.24
DocSys_V2.02.23
DocSys_V2.02.22
DocSys_V2.02.21
DocSys_V2.02.20
DocSys_V2.02.19
DocSys_V2.02.18
DocSys_V2.02.17
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (2)
标签 (164)
master
devInt
DocSys_V2.02.36
DocSys_V2.02.35
DocSys_V2.02.34
DocSys_V2.02.33
DocSys_V2.02.32
DocSys_V2.02.31
DocSys_V2.02.30
DocSys_V2.02.29
DocSys_V2.02.28
DocSys_V2.02.27
DocSys_V2.02.26
DocSys_V2.02.25
DocSys_V2.02.24
DocSys_V2.02.23
DocSys_V2.02.22
DocSys_V2.02.21
DocSys_V2.02.20
DocSys_V2.02.19
DocSys_V2.02.18
DocSys_V2.02.17
Path.java 19.56 KB
一键复制 编辑 原始数据 按行查看 历史
13777479349 提交于 2022年08月03日 16:41 +08:00 . 【Enhancement】自动备份忽略管理实现
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748
package com.DocSystem.common;
import java.io.File;
import java.util.Date;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebApplicationContext;
import com.DocSystem.entity.Doc;
import com.DocSystem.entity.Repos;
import com.DocSystem.entity.User;
import util.ReadProperties;
import util.Encrypt.MD5;
public class Path {
public static String getDocSysWebParentPath(String localPath) {
int pos = localPath.indexOf("/DocSystem");
return localPath.substring(0, pos+1);
}
//path必须是标准格式
public static int getLevelByParentPath(String path)
{
//该函数不应该被频繁调用,如果出现频繁调用,那么应该是那里逻辑出错了,会引起系统性能问题
//Log.debug("getLevelByParentPath() path:[" + path + "]");
if(path == null || path.isEmpty())
{
//Log.debug("getLevelByParentPath() path:[" + path + "] level:" + 0);
return 0;
}
String [] paths = path.split("/");
int level = 0;
for(int i=0; i < paths.length; i++)
{
if(paths[i].isEmpty())
{
continue;
}
level++;
}
Log.debug("getLevelByParentPath() path:[" + path + "] level:" + level);
return level;
}
public static int seperatePathAndName(String entryPath, String [] result) {
if(entryPath.isEmpty())
{
//It it rootDoc
return -1;
}
String [] paths = entryPath.split("/");
int deepth = paths.length;
Log.debug("seperatePathAndName() deepth:" + deepth);
String path = "";
String name = "";
//Get Name and pathEndPos
int pathEndPos = 0;
for(int i=deepth-1; i>=0; i--)
{
name = paths[i];
if(name.isEmpty())
{
continue;
}
pathEndPos = i;
break;
}
//Get Path
int level = 0;
for(int i=0; i<pathEndPos; i++)
{
String tempName = paths[i];
if(tempName.isEmpty())
{
continue;
}
level++;
path = path + tempName + "/";
}
result[0] = path;
result[1] = name;
return level;
}
//正确格式化仓库根路径
public static String dirPathFormat(String path) {
//如果传入的Path没有带/,给他加一个
if(path == null || path.isEmpty())
{
return path;
}
String endChar = path.substring(path.length()-1, path.length());
if(!endChar.equals("/"))
{
path = path + "/";
}
return path;
}
//格式化本地路径
public static String localDirPathFormat(String path, Integer OSType) {
if(path == null || path.isEmpty())
{
path = "/";
}
else
{
path = path.replace('\\','/');
}
String [] paths = path.split("/");
char startChar = path.charAt(0);
if(startChar == '/')
{
if(OS.isWinOS(OSType))
{
path = "C:/" + buildPath(paths);
}
else
{
path = "/" + buildPath(paths);
}
}
else
{
if(OS.isWinOS(OSType))
{
if(OS.isWinDiskStr(paths[0]))
{
paths[0] = paths[0].toUpperCase();
path = buildPath(paths);
}
else
{
path = "C:/" + buildPath(paths);
}
}
else
{
if(OS.isWinDiskStr(paths[0]))
{
paths[0] = ""; //去掉盘符信息
}
path = "/" + buildPath(paths);
}
}
return path;
}
private static String buildPath(String[] paths) {
String path = "";
for(int i=0; i<paths.length; i++)
{
String subPath = paths[i];
if(!subPath.isEmpty())
{
path = path + subPath + "/";
}
}
return path;
}
//系统日志所在的目录
public static String getSystemLogParentPath(String docSysWebPath) {
if(docSysWebPath == null || docSysWebPath.isEmpty())
{
return null;
}
int pos = docSysWebPath.indexOf("/tomcat");
if(pos <= 0)
{
//return docSysWebPath + "../../../logs/"; //默认放在/docsys/logs目录
return null;
}
return docSysWebPath.substring(0, pos) + "/logs/";
}
public static String getReposTmpPathForDoc(Repos repos, Doc doc) {
String tmpDir = repos.getPath() + repos.getId() + "/tmp/doc/" + doc.getDocId() + "_" + doc.getName() + "/";
FileUtil.createDir(tmpDir);
return tmpDir;
}
public static String getReposTmpPathForPreview(Repos repos, Doc doc) {
String docLocalPath = doc.getLocalRootPath() + doc.getPath() + doc.getName();
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/preview/" + docLocalPath.hashCode() + "_" + doc.getName() + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
public static String getReposTmpPathForTextEdit(Repos repos, User login_user, boolean isRealDoc) {
if(isRealDoc)
{
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/TextEdit/" + login_user.getId() + "/RDOC/";
FileUtil.createDir(userTmpDir);
}
//VDoc
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/TextEdit/" + login_user.getId() + "/VDOC/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
public static String getReposTmpPathForDownload(Repos repos, User login_user) {
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/download/" + login_user.getId() + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
public static String getReposTmpPathForDownload(Repos repos) {
long curTime = new Date().getTime();
String tmpDir = repos.getPath() + repos.getId() + "/tmp/download/" + curTime + "/";
FileUtil.createDir(tmpDir);
return tmpDir;
}
public static String getReposTmpPathForUpload(Repos repos, User login_user) {
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/upload/" + login_user.getId() + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
//加解密临时目录,用完删除
public static String getReposTmpPathForDecrypt(Repos repos) {
long curTime = new Date().getTime();
String tmpDir = repos.getPath() + repos.getId() + "/tmp/encrypt/" + curTime + "/";
FileUtil.createDir(tmpDir);
return tmpDir;
}
//加解密临时目录,用完不删除
public static String getReposTmpPathForZipDecrypt(Repos repos, Doc doc) {
String tmpDir = repos.getPath() + repos.getId() + "/tmp/zipDecrypt/" + doc.getDocId() + "_" + doc.getName() + "/";
FileUtil.createDir(tmpDir);
return tmpDir;
}
//根据路径来获取上层路径
protected static String getParentPath(String path) {
if(path == null || path.length() < 2)
{
Log.debug("getParentPath() failed to get parentPath for path:" + path);
return null;
}
//反向查找 "/"
int pos = path.lastIndexOf("/", path.length() - 2);
if(pos == -1)
{
Log.debug("getParentPath() failed to get parentPath for path:" + path);
return null;
}
String parentPath = path.substring(0, pos+1);
Log.debug("getParentPath() parentPath:" + parentPath);
return parentPath;
}
public static String getParentPath(String path, int n, Integer OSType) {
path = localDirPathFormat(path, OSType); //首先对路径进行统一格式化
for(int i=0; i<n; i++)
{
path = getParentPath(path);
}
return path;
}
//WebPath was
public static String getWebPath(Integer OSType) {
String webPath = null;
try {
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
webPath = wac.getServletContext().getRealPath("/");
}
catch (Exception e)
{
Log.info("getWebPath() 异常,系统出现严重错误,请检查系统!!");
Log.info(e);
}
webPath = localDirPathFormat(webPath, OSType);
Log.debug("getWebPath() webPath:" + webPath);
return webPath;
}
//获取本地仓库默认存储位置(相对于仓库的存储路径)
public static String getDefaultLocalVerReposPath(String path) {
String localSvnPath = path + "DocSysVerReposes/";
return localSvnPath;
}
protected String getDocPath(Doc doc)
{
String path = doc.getPath();
if(path == null)
{
return doc.getName();
}
return path + doc.getName();
}
//获取默认的仓库根路径
public static String getDefaultReposRootPath(Integer OSType) {
String path = ReadProperties.read("docSysConfig.properties", "defaultReposStorePath");
if(OS.isWinOS(OSType))
{
if(path == null || path.isEmpty())
{
path = "C:/DocSysReposes/";
}
else
{
path = localDirPathFormat(path, OSType);
}
}
else
{
if(path == null || path.isEmpty())
{
path = "/DocSysReposes/";
}
else
{
path = localDirPathFormat(path, OSType);
}
}
return path;
}
public static String getSaleDataStorePath(Integer OSType) {
String path = null;
path = ReadProperties.read("docSysConfig.properties", "SalesDataStorePath");
if(path != null && !path.isEmpty())
{
return Path.localDirPathFormat(path, OSType);
}
switch(OSType)
{
case OS.Windows:
path = "C:/DocSysSales/";
break;
case OS.Linux:
path = "/data/DocSysSales/";
break;
case OS.MacOS:
path = "/data/DocSysSales/";
break;
}
return path;
}
public static String getSystemLogStorePath(Integer OSType) {
String path = null;
path = ReadProperties.read("docSysConfig.properties", "SystemLogStorePath");
if(path != null && !path.isEmpty())
{
return Path.localDirPathFormat(path, OSType);
}
switch(OSType)
{
case OS.Windows:
path = "C:/DocSysLog/SystemLog/";
break;
case OS.Linux:
path = "/data/DocSysLog/SystemLog/";
break;
case OS.MacOS:
path = "/data/DocSysLog/SystemLog/";
break;
}
return path;
}
public static String getReposPath(Repos repos) {
String path = repos.getPath();
return path + repos.getId() + "/";
}
//获取仓库的实文件的本地存储根路径
public static String getReposRealPath(Repos repos)
{
String reposRPath = repos.getRealDocPath();
if(reposRPath == null || reposRPath.isEmpty())
{
reposRPath = getReposPath(repos) + "data/rdata/"; //实文件系统的存储数据放在data目录下
}
//Log.debug("getReposRealPath() " + reposRPath);
return reposRPath;
}
//获取仓库的虚拟文件的本地存储根路径
public static String getReposVirtualPath(Repos repos)
{
String reposVPath = getReposPath(repos) + "data/vdata/"; //实文件系统的存储数据放在data目录下
//Log.debug("getReposVirtualPath() " + reposVPath);
return reposVPath;
}
//获取仓库的密码文件的存储路径
public static String getReposPwdPath(Repos repos)
{
String reposPwdPath = getReposPath(repos) + "data/pwd/"; //实文件系统的存储数据放在data目录下
//Log.debug("getReposPwdPath() " + reposPwdPath);
return reposPwdPath;
}
//仓库文件缓存根目录
public static String getReposTmpPath(Repos repos) {
String tmpDir = repos.getPath() + repos.getId() + "/tmp/";
return tmpDir;
}
//历史文件缓存目录,需要区分RDoc和VDoc
public static String getReposTmpPathForHistory(Repos repos, String commitId, boolean isRealDoc) {
if(isRealDoc)
{
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/History/rdata/" + commitId + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
//is VDoc
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/History/vdata/" + commitId + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
//压缩文件解压缓存目录
public static String getReposTmpPathForUnzip(Repos repos, User login_user) {
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/Unzip/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
//用户的仓库临时目录
public static String getReposTmpPathForUser(Repos repos, User login_user) {
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/User/" + login_user.getId() + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
public static String getReposTmpPathForOfficeText(Repos repos, Doc doc) {
String docLocalPath = doc.getLocalRootPath() + doc.getPath() + doc.getName();
String userTmpDir = repos.getPath() + repos.getId() + "/tmp/OfficeText/" + docLocalPath.hashCode() + "_" + doc.getName() + "/";
FileUtil.createDir(userTmpDir);
return userTmpDir;
}
//获取OfficeEditorApi的配置
public static String getOfficeEditorApi() {
String officeEditorApi = ReadProperties.read("docSysConfig.properties", "officeEditorApi");
if(officeEditorApi != null && !officeEditorApi.isEmpty())
{
return officeEditorApi.replace("\\", "/");
}
return officeEditorApi;
}
public static Integer getLogLevel() {
String logLevelString = ReadProperties.read("docSysConfig.properties", "logLevel");
if(logLevelString != null && !logLevelString.isEmpty())
{
return Integer.parseInt(logLevelString);
}
return null;
}
//系统日志的名字,可以是目录或文件
public static String getSystemLogFileName() {
String name = "";
name = ReadProperties.read("docSysConfig.properties", "SystemLogFileName");
if(name == null || "".equals(name))
{
name = "catalina.log";
}
return name;
}
public static String getVDocName(Doc doc)
{
return doc.getDocId() + "_" + doc.getName();
}
protected static String getHashId(String path)
{
String hashId = MD5.md5(path);
Log.debug("getHashId() " + hashId + " for " + path);
return hashId;
}
public static String getOfficeTextFileName(Doc doc) {
File file = new File(doc.getLocalRootPath() + doc.getPath() + doc.getName());
return "officeText_" + file.length() + "_" + file.lastModified() + ".txt";
}
public static String getPreviewFileName(Doc doc) {
File file = new File(doc.getLocalRootPath() + doc.getPath() + doc.getName());
return "preview_" + file.length() + "_" + file.lastModified() + ".pdf";
}
public static String getLocalVerReposURI(Repos repos, boolean isRealDoc) {
String localVerReposURI = null;
Integer verCtrl = null;
String localSvnPath = null;
if(isRealDoc)
{
verCtrl = repos.getVerCtrl();
localSvnPath = repos.getLocalSvnPath();
}
else
{
verCtrl = repos.getVerCtrl1();
localSvnPath = repos.getLocalSvnPath1();
}
String reposName = getVerReposName(repos,isRealDoc);
if(verCtrl == 1)
{
localVerReposURI = "file:///" + localSvnPath + reposName;
}
else
{
localVerReposURI = null;
}
return localVerReposURI;
}
public static String getLocalVerReposPath(Repos repos, boolean isRealDoc) {
String localVerReposPath = null;
String localSvnPath = null;
if(isRealDoc)
{
localSvnPath = repos.getLocalSvnPath();
}
else
{
localSvnPath = repos.getLocalSvnPath1();
}
if(localSvnPath == null || localSvnPath.isEmpty())
{
localSvnPath = repos.getPath() + "DocSysVerReposes/";
}
localSvnPath = dirPathFormat(localSvnPath);
String reposName = getVerReposName(repos,isRealDoc);
localVerReposPath = localSvnPath + reposName + "/";
return localVerReposPath;
}
public static String getVerReposName(Repos repos,boolean isRealDoc) {
String reposName = null;
if(isRealDoc)
{
reposName = getVerReposName(repos.getId(), repos.getVerCtrl(), repos.getIsRemote(), isRealDoc);
}
else
{
reposName = getVerReposName(repos.getId(), repos.getVerCtrl1(), repos.getIsRemote(), isRealDoc);
}
return reposName;
}
public static String getVerReposName(Integer reposId, Integer verCtrl, Integer isRemote, boolean isRealDoc) {
String reposName = null;
Integer id = reposId;
if(isRealDoc)
{
if(verCtrl == 1)
{
reposName = id + "_SVN_RRepos";
}
else if(verCtrl == 2)
{
if(isRemote !=null && isRemote == 1)
{
reposName = id + "_GIT_RRepos_Remote";
}
else
{
reposName = id + "_GIT_RRepos";
}
}
}
else
{
if(verCtrl == 1)
{
reposName = id + "_SVN_VRepos";
}
else if(verCtrl == 2)
{
if(isRemote != null && isRemote == 1)
{
reposName = id + "_GIT_VRepos_Remote";
}
else
{
reposName = id + "_GIT_VRepos";
}
}
}
return reposName;
}
//Build DocId by DocName
public static Long buildDocIdByName(Integer level, String parentPath, String docName)
{
String docPath = parentPath + docName;
if(docName.isEmpty())
{
if(parentPath.isEmpty())
{
return 0L;
}
docPath = parentPath.substring(0, parentPath.length()-1); //remove the last char '/'
}
Long docId = level*100000000000L + docPath.hashCode() + 102147483647L; //为了避免文件重复使用level*100000000 + docName的hashCode
return docId;
}
protected Long buildPidByPath(int level, String path)
{
if(path == null || path.isEmpty())
{
return 0L;
}
char lastChar = path.charAt(path.length()-1);
if(lastChar == '/')
{
path = path.substring(0,path.length()-1);
}
Long pid = buildDocIdByName(level-1, path, "");
return pid;
}
public static String getReposEncryptConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/encryptSetting/";
return path;
}
public static String getReposEncryptConfigFileName() {
return "encryptConfig.txt";
}
public static String getReposVersionIgnoreConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/versionIgnoreSetting/";
return path;
}
public static String getReposTextSearchConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/textSearchSetting/";
return path;
}
public static String getReposTextSearchConfigPathForRealDoc(Repos repos) {
String path = getReposPath(repos) + "data/textSearchSetting/RealDoc/";
return path;
}
public static String getReposTextSearchConfigPathForVirtualDoc(Repos repos) {
String path = getReposPath(repos) + "data/textSearchSetting/VirtualDoc/";
return path;
}
public static String getReposRemoteServerConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/remoteServerSetting/";
return path;
}
public static String getReposAutoBackupConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/autoBackupSetting/";
return path;
}
public static String getReposLocalBackupConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/autoBackupSetting/localBackup/";
return path;
}
public static String getReposRemoteBackupConfigPath(Repos repos) {
String path = getReposPath(repos) + "data/autoBackupSetting/remoteBackup/";
return path;
}
protected String getOfficeEditRootPath(Doc doc) {
String path = doc.getReposPath() + "tmp/OfficeEdit/";
return path;
}
public static String getOfficeEditPath(String dockey, Doc doc) {
String path = doc.getReposPath() + "tmp/OfficeEdit/" + dockey + "/";
return path;
}
public static String getOrgChangesPath(String dockey, Doc doc) {
String path = getOfficeEditPath(dockey, doc) + "orgChanges/";
return path;
}
public static String getChangesPath(String dockey, Doc doc) {
String path = getOfficeEditPath(dockey, doc) + "data/changes/";
return path;
}
public static String getIndexLibPathForChanges(String dockey, Doc doc) {
String path = getOfficeEditPath(dockey, doc) + "changesIndex/";
return path;
}
public String getLocalPathForSave(String dockey, Doc doc) {
String path = getOfficeEditPath(dockey, doc) + "save/";
return path;
}
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

MxsDoc是基于Web的文件管理系统,支持权限管理、历史版本管理、Office预览/编辑、WPS预览/编辑、在线解压缩、文件分享、文件加密、远程存储、远程文件推送、秒传、断点续传、智能搜索、文件备注、自动备份、一键迁移。 主要应用场景:文件管理系统、协同办公系统、电子书、知识管理系统、软件接口管理系统、自动备份软件、网页版SVN仓库、网页版GIT仓库。GPL 2.0开源协议.
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/javaalpha/DocSys.git
git@gitee.com:javaalpha/DocSys.git
javaalpha
DocSys
DocSys
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /