OWL ITS + 탐지시스템(인터넷 진흥원)
박지현
2022-02-21 174dc12380c54730014e86c8897be16389fc804f
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package kr.wisestone.owl.domain;
 
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
 
@Entity
public class Permission extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
 
    public static final String ROLE_TYPE_USER = "01";   //  일반 사용자 권한
    public static final String ROLE_TYPE_WORKSPACE_MANAGER = "02"; //  워크스페이스 관리자 권한
    public static final String ROLE_TYPE_PROJECT_JOIN = "03";   //  프로젝트 참여자 권한
    public static final String ROLE_TYPE_PROJECT_MANAGER = "04";    //  프로젝트 관리자 권한
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String name;
    private String action;
    private String roleType;
 
    @OneToMany(mappedBy="permission", cascade={CascadeType.ALL})
    private Set<SystemRolePermission> systemRolePermissions = new HashSet<>();
 
    @OneToMany(mappedBy="permission", cascade={CascadeType.ALL})
    private Set<ProjectRolePermission> projectRolePermissions = new HashSet<>();
 
    public Permission() {
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getAction() {
        return action;
    }
 
    public void setAction(String action) {
        this.action = action;
    }
 
    public String getRoleType() {
        return roleType;
    }
 
    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }
 
    public Set<SystemRolePermission> getSystemRolePermissions() {
        return systemRolePermissions;
    }
 
    public void setSystemRolePermissions(Set<SystemRolePermission> systemRolePermissions) {
        this.systemRolePermissions = systemRolePermissions;
    }
 
    public Set<ProjectRolePermission> getProjectRolePermissions() {
        return projectRolePermissions;
    }
 
    public void setProjectRolePermissions(Set<ProjectRolePermission> projectRolePermissions) {
        this.projectRolePermissions = projectRolePermissions;
    }
}