OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-03-14 fe21896bff9b9305df0294e0352b343e0dd4d0b9
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
package kr.wisestone.owl.service;
 
import kr.wisestone.owl.domain.AttachedFile;
import kr.wisestone.owl.domain.Issue;
import kr.wisestone.owl.domain.Workspace;
import kr.wisestone.owl.vo.AttachedFileVo;
import kr.wisestone.owl.web.condition.AttachedFileCondition;
import kr.wisestone.owl.web.form.IssueForm;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import java.util.List;
import java.util.Map;
 
public interface AttachedFileService extends AbstractService<AttachedFile, Long, JpaRepository<AttachedFile, Long>> {
 
    void addAttachedFile(List<Map<String, Object>> convertFileMaps, Issue issue, String userAccount);
 
    List<AttachedFile> addAttachedFile(List<MultipartFile> multipartFiles, Map<String, Object> content);
 
    List<AttachedFile> addAttachedFile(Workspace workspace, Issue issue, List<Map<String, Object>> files);
 
    List<AttachedFileVo> findAttachedFile(Map<String, Object> resJsonData, AttachedFileCondition condition);
 
    List<AttachedFile> findByIssueId(Long issueId);
 
    void connectIssueIdAttachedFile(Issue issue, IssueForm issueForm);
 
    AttachedFile getAttachedFile(Long attachedFileId);
 
    void removeAttachedFiles(List<Long> removeIds);
 
    void deleteWorkspaceCascadeAttachedFile(Workspace workspace);
 
    void deleteIssueCascadeAttachedFile(List<Long> issueIds, Workspace workspace);
 
    Long findUseStorage(Workspace workspace);
 
    ModelAndView checkUseWorkspaceTraffic(Long id, Model model);
 
    void deleteAttachedFileNotId();
 
    String uploadFile(Map<String, Object> convertFileMap, String awsUploadFolder, String userAccount, int totalFileCount, int uploadFileCount);
 
    void removeFile(String key, Long workspaceId);
}