| | |
| | | */ |
| | | public class MngPermission { |
| | | |
| | | public static final int USER_PERMISSION_MNG_WORKSPACE = 4096; // WORK SPACE 관리 1000000000000 |
| | | public static final int USER_PERMISSION_MNG_PROJECT = 2048; // 프로젝트 관리 0100000000000 |
| | | public static final int USER_PERMISSION_MNG_USER = 1024; // USER 관리 0010000000000 |
| | | public static final int USER_PERMISSION_MNG_ISSUE_STATUS = 512; // ISSUE SETTING 관리 0001000000000 |
| | | public static final int USER_PERMISSION_MNG_WORKFLOW = 256; // WORK FLOW 관리 0000100000000 |
| | | public static final int USER_PERMISSION_MNG_CUSTOME_FIELD = 128; // 사용자정의 필드 관리 0000010000000 |
| | | public static final int USER_PERMISSION_MNG_ISSUE_TYPE = 64; // ISSUE TYPE 관리 0000000100000 |
| | | public static final int USER_PERMISSION_MNG_NOTICE = 32; // ISSUE TYPE 관리 0000000010000 |
| | | public static final int USER_PERMISSION_MNG_FAQ = 16; // FAQ 관리 0000000001000 |
| | | public static final int USER_PERMISSION_MNG_QNA = 8; // 공지사항 관리 0000000000100 |
| | | public static final int USER_PERMISSION_MNG_EVENT = 4; // 공지사항 관리 0000000000010 |
| | | public static final int USER_PERMISSION_MNG_GUIDE = 2; // 사용자 알림 관리 0000000000001 |
| | | public static final int USER_PERMISSION_MNG_ISSUE_PROJECT_ALL = 16384; // 전체 이슈 프로젝트 보기 |
| | | public static final int USER_PERMISSION_MNG_PARTNER = 8192; // 업체/ISP/호스팅 관리 10000000000000 |
| | | public static final int USER_PERMISSION_MNG_WORKSPACE = 4096; // WORK SPACE 관리 01000000000000 |
| | | public static final int USER_PERMISSION_MNG_PROJECT = 2048; // 프로젝트 관리 00100000000000 |
| | | public static final int USER_PERMISSION_MNG_API = 1024; // API 관리 00010000000000 |
| | | public static final int USER_PERMISSION_MNG_ISSUE_STATUS = 512; // ISSUE SETTING 관리 00001000000000 |
| | | public static final int USER_PERMISSION_MNG_WORKFLOW = 256; // WORK FLOW 관리 000000100000000 |
| | | public static final int USER_PERMISSION_MNG_CUSTOME_FIELD = 128; // 사용자정의 필드 관리 00000010000000 |
| | | public static final int USER_PERMISSION_MNG_ISSUE_TYPE = 64; // ISSUE TYPE 관리 00000000100000 |
| | | public static final int USER_PERMISSION_MNG_NOTICE = 32; // ISSUE TYPE 관리 00000000010000 |
| | | public static final int USER_PERMISSION_MNG_FAQ = 16; // FAQ 관리 00000000001000 |
| | | public static final int USER_PERMISSION_MNG_QNA = 8; // 공지사항 관리 00000000000100 |
| | | public static final int USER_PERMISSION_MNG_EVENT = 4; // 공지사항 관리 00000000000010 |
| | | public static final int USER_PERMISSION_MNG_GUIDE = 2; // 사용자 알림 관리 00000000000001 |
| | | public static final int USER_PERMISSION_MNG_NONE = 0; // |
| | | |
| | | public static final int USER_PERMISSION_MNG_ISSUE_SETTING = (USER_PERMISSION_MNG_ISSUE_STATUS | USER_PERMISSION_MNG_WORKFLOW | |
| | |
| | | |
| | | public static int makeAllPermission() |
| | | { |
| | | int nPermission = (USER_PERMISSION_MNG_WORKSPACE | |
| | | USER_PERMISSION_MNG_PROJECT | |
| | | USER_PERMISSION_MNG_USER | |
| | | return (USER_PERMISSION_MNG_ISSUE_PROJECT_ALL | |
| | | USER_PERMISSION_MNG_PARTNER | |
| | | USER_PERMISSION_MNG_WORKSPACE | |
| | | USER_PERMISSION_MNG_PROJECT | |
| | | USER_PERMISSION_MNG_API | |
| | | USER_PERMISSION_MNG_NOTICE | |
| | | USER_PERMISSION_MNG_FAQ | |
| | | USER_PERMISSION_MNG_QNA | |
| | | USER_PERMISSION_MNG_EVENT | |
| | | USER_PERMISSION_MNG_GUIDE | |
| | | USER_PERMISSION_MNG_ISSUE_SETTING); |
| | | |
| | | return nPermission; |
| | | } |
| | | |
| | | public static int makeSubAllPermission() |
| | | { |
| | | int nPermission = (/*USER_PERMISSION_MNG_WORKSPACE |*/ |
| | | USER_PERMISSION_MNG_USER | USER_PERMISSION_MNG_NOTICE | |
| | | return (/*USER_PERMISSION_MNG_WORKSPACE |*/ |
| | | USER_PERMISSION_MNG_ISSUE_PROJECT_ALL | |
| | | USER_PERMISSION_MNG_API | USER_PERMISSION_MNG_NOTICE | |
| | | USER_PERMISSION_MNG_FAQ | USER_PERMISSION_MNG_QNA | |
| | | USER_PERMISSION_MNG_EVENT | USER_PERMISSION_MNG_GUIDE | |
| | | USER_PERMISSION_MNG_ISSUE_SETTING); |
| | | } |
| | | |
| | | return nPermission; |
| | | // 이슈 시스템 권한 (상태, 워크플로우, 사용자 정의 필드, 이슈유형 포함) |
| | | public static int makeIssuePermission() |
| | | { |
| | | return (USER_PERMISSION_MNG_ISSUE_STATUS | |
| | | USER_PERMISSION_MNG_WORKFLOW | |
| | | USER_PERMISSION_MNG_CUSTOME_FIELD | |
| | | USER_PERMISSION_MNG_ISSUE_TYPE); |
| | | } |
| | | } |