|
|
@ -7,6 +7,7 @@ import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.CoreConstants; |
|
|
|
import com.fr.stable.CoreConstants; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.workspace.server.repository.tabledata.TableDataRepository; |
|
|
|
import com.fr.workspace.server.repository.tabledata.TableDataRepository; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
@ -22,6 +23,7 @@ import java.util.Map; |
|
|
|
* Created on 2024/9/8 |
|
|
|
* Created on 2024/9/8 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class FileCAFILE extends FileNodeFILE{ |
|
|
|
public class FileCAFILE extends FileNodeFILE{ |
|
|
|
|
|
|
|
public static final String ROOT = ProjectConstants.CERTIFICATES_DIRECTORY; |
|
|
|
private List<FileCAFILE> children = new ArrayList<>(); |
|
|
|
private List<FileCAFILE> children = new ArrayList<>(); |
|
|
|
private boolean builded = false; |
|
|
|
private boolean builded = false; |
|
|
|
private String id = StringUtils.EMPTY; |
|
|
|
private String id = StringUtils.EMPTY; |
|
|
@ -132,6 +134,13 @@ public class FileCAFILE extends FileNodeFILE{ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
for (Map.Entry<String, FileCAFILE> entry : tree.entrySet()) { |
|
|
|
|
|
|
|
if (entry.getKey().endsWith(ROOT)) { |
|
|
|
|
|
|
|
root = entry.getValue(); |
|
|
|
|
|
|
|
root.setId(StableUtils.pathJoin(ProjectConstants.RESOURCES_NAME, ProjectConstants.CERTIFICATES_DIRECTORY)); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return root; |
|
|
|
return root; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -144,8 +153,15 @@ public class FileCAFILE extends FileNodeFILE{ |
|
|
|
return new FileCAFILE(fileNode, true, bean.getId()); |
|
|
|
return new FileCAFILE(fileNode, true, bean.getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
FileNode fileNode = new FileNode(); |
|
|
|
|
|
|
|
fileNode.setEnvPath(s); |
|
|
|
|
|
|
|
fileNode.setDirectory(true); |
|
|
|
|
|
|
|
return new FileCAFILE(fileNode, true, ROOT); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public String prefix() { |
|
|
|
|
|
|
|
return FILEFactory.FILE_CA_PREFIX; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|