OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-10 51365e66857e4b7a1d783b0309e20e855e393ae5
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
package kr.wisestone.owl.service;
 
import kr.wisestone.owl.domain.User;
import kr.wisestone.owl.domain.UserWorkspace;
import kr.wisestone.owl.domain.Workspace;
import kr.wisestone.owl.vo.UserWorkspaceVo;
import kr.wisestone.owl.web.condition.UserWorkspaceCondition;
import kr.wisestone.owl.web.form.UserWorkspaceForm;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
 
import java.util.List;
import java.util.Map;
 
public interface UserWorkspaceService extends AbstractService<UserWorkspace, Long, JpaRepository<UserWorkspace, Long>> {
 
    UserWorkspace addUserWorkspace(User user, Workspace workspace, Boolean managerYn, Boolean useYn);
 
    List<UserWorkspaceVo> findUserWorkspace(Map<String, Object> resJsonData,
                                            UserWorkspaceCondition condition, Pageable pageable);
 
    void modifyUserWorkspace(UserWorkspaceForm userWorkspaceForm);
 
    UserWorkspace findByUserIdAndWorkspaceId(Long userId, Long workspaceId);
 
    Integer countByWorkspaceIdAndUseYn(Long workspaceId, Boolean useYn);
 
    List<UserWorkspace> findByWorkspaceIdAndUseYn(Long workspaceId, Boolean useYn);
 
    List<UserWorkspace> findByWorkspaceIdAndManagerYn(Long workspaceId, Boolean managerYn);
 
    UserWorkspace findMyWorkspace(Long userId);
 
    UserWorkspace findWorkspaceManager(Long userId);
 
    void disabledUserWorkspace(User user, Workspace workspace);
 
    UserWorkspace getUserWorkspace(Long id);
 
    boolean checkWorkspaceManager(User user);
 
    List<UserWorkspace> findByWorkspaceId(Long workspaceId);
 
    void limitExpireUserWorkspace(Workspace workspace);
}