| | |
| | | import cn.hutool.core.util.StrUtil; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/service/impl/DockingFtpServiceImpl.class */ |
| | | public class DockingFtpServiceImpl implements IDockingFtpService { |
| | | private static final Logger log = LoggerFactory.getLogger(DockingFtpServiceImpl.class); |
| | | private final ITransferDirectoryService transferDirectoryService; |
| | |
| | | this.wsRelationTdService = wsRelationTdService; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | public FtpDirectoryVO readDirectory(String path) { |
| | | List<EntityInfoVO> list = findByDirectoryPath(path); |
| | | return FtpDirectoryVO.builder().path(path).list(list).build(); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | public String readFile(String path) { |
| | | Long workstationId = getWorkstationByPath(); |
| | | TransferDirectory transferDirectory = getTransferDirectoryByPath(workstationId); |
| | |
| | | return ""; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | public EntityInfoVO getByPath(String path) { |
| | | TransferDirectoryFile transferDirectoryFile = getTransferDirectoryFileByPath(path); |
| | | return (EntityInfoVO) Optional.ofNullable(transferDirectoryFile.getId()).map(c -> { |
| | |
| | | }).orElse(new EntityInfoVO()); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | public EntityInfoVO createFile(String path, HttpServletRequest request) { |
| | | Long workstationId = getWorkstationByPath(); |
| | | if (Func.isBlank(path)) { |
| | |
| | | }, DncEnums.CurrentVersion.YES.getCode()));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public boolean renameFile(String oldFileName, String newFileName) { |
| | | Long workstationId = getWorkstationByPath(); |
| | |
| | | }));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | public boolean deleteFile(String filename) { |
| | | Long workstationId = getWorkstationByPath(); |
| | | DncFixedSpace dncFixedSpace = getDirectoryName(filename, workstationId); |
| | |
| | | return this.transferDirectoryFileService.removeById(directoryFile); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDockingFtpService |
| | | |
| | | public Integer getOrderCwd(String path) { |
| | | Long workstationId = getWorkstationByPath(); |
| | | Long ftpNodeParentId = getFtpNodeParentId(path, workstationId); |