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 addUserWorkspace(User user, Workspace workspace, Boolean managerYn, Boolean useYn); List findUserWorkspace(Map resJsonData, UserWorkspaceCondition condition, Pageable pageable); void modifyUserWorkspace(UserWorkspaceForm userWorkspaceForm); UserWorkspace findByUserIdAndWorkspaceId(Long userId, Long workspaceId); Integer countByWorkspaceIdAndUseYn(Long workspaceId, Boolean useYn); List findByWorkspaceIdAndUseYn(Long workspaceId, Boolean useYn); List 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 findByWorkspaceId(Long workspaceId); void limitExpireUserWorkspace(Workspace workspace); }