@@ -33,7 +33,7 @@ public CompasSclDataResource(CompasSclDataService compasSclDataService) {
33
33
}
34
34
35
35
@ POST
36
- @ RolesAllowed ("Create" )
36
+ @ RolesAllowed (CREATE_ROLE )
37
37
@ Consumes (MediaType .APPLICATION_XML )
38
38
@ Produces (MediaType .APPLICATION_XML )
39
39
public CreateResponse create (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
@@ -45,7 +45,7 @@ public CreateResponse create(@PathParam(TYPE_PATH_PARAM) SclType type,
45
45
46
46
@ GET
47
47
@ Path ("/list" )
48
- @ RolesAllowed ("Read" )
48
+ @ RolesAllowed (READ_ROLE )
49
49
@ Produces (MediaType .APPLICATION_XML )
50
50
public ListResponse list (@ PathParam (TYPE_PATH_PARAM ) SclType type ) {
51
51
var response = new ListResponse ();
@@ -55,7 +55,7 @@ public ListResponse list(@PathParam(TYPE_PATH_PARAM) SclType type) {
55
55
56
56
@ GET
57
57
@ Path ("/{" + ID_PATH_PARAM + "}/versions" )
58
- @ RolesAllowed ("Read" )
58
+ @ RolesAllowed (READ_ROLE )
59
59
@ Produces (MediaType .APPLICATION_XML )
60
60
public VersionsResponse listVersionsByUUID (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
61
61
@ PathParam (ID_PATH_PARAM ) UUID id ) {
@@ -66,7 +66,7 @@ public VersionsResponse listVersionsByUUID(@PathParam(TYPE_PATH_PARAM) SclType t
66
66
67
67
@ GET
68
68
@ Path ("/{" + ID_PATH_PARAM + "}" )
69
- @ RolesAllowed ("Read" )
69
+ @ RolesAllowed (READ_ROLE )
70
70
@ Produces (MediaType .APPLICATION_XML )
71
71
public GetResponse findByUUID (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
72
72
@ PathParam (ID_PATH_PARAM ) UUID id ) {
@@ -77,7 +77,7 @@ public GetResponse findByUUID(@PathParam(TYPE_PATH_PARAM) SclType type,
77
77
78
78
@ GET
79
79
@ Path ("/{" + ID_PATH_PARAM + "}/{" + VERSION_PATH_PARAM + "}" )
80
- @ RolesAllowed ("Read" )
80
+ @ RolesAllowed (READ_ROLE )
81
81
@ Produces (MediaType .APPLICATION_XML )
82
82
public GetResponse findByUUIDAndVersion (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
83
83
@ PathParam (ID_PATH_PARAM ) UUID id ,
@@ -89,7 +89,7 @@ public GetResponse findByUUIDAndVersion(@PathParam(TYPE_PATH_PARAM) SclType type
89
89
90
90
@ GET
91
91
@ Path ("/{" + ID_PATH_PARAM + "}/scl" )
92
- @ RolesAllowed ("Read" )
92
+ @ RolesAllowed (READ_ROLE )
93
93
@ Produces (MediaType .APPLICATION_XML )
94
94
public String findRawSCLByUUID (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
95
95
@ PathParam (ID_PATH_PARAM ) UUID id ) {
@@ -99,7 +99,7 @@ public String findRawSCLByUUID(@PathParam(TYPE_PATH_PARAM) SclType type,
99
99
100
100
@ GET
101
101
@ Path ("/{" + ID_PATH_PARAM + "}/{" + VERSION_PATH_PARAM + "}/scl" )
102
- @ RolesAllowed ("Read" )
102
+ @ RolesAllowed (READ_ROLE )
103
103
@ Produces (MediaType .APPLICATION_XML )
104
104
public String findRawSCLByUUIDAndVersion (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
105
105
@ PathParam (ID_PATH_PARAM ) UUID id ,
@@ -110,7 +110,7 @@ public String findRawSCLByUUIDAndVersion(@PathParam(TYPE_PATH_PARAM) SclType typ
110
110
111
111
@ PUT
112
112
@ Path ("/{" + ID_PATH_PARAM + "}" )
113
- @ RolesAllowed ("Update" )
113
+ @ RolesAllowed (UPDATE_ROLE )
114
114
@ Consumes (MediaType .APPLICATION_XML )
115
115
@ Produces (MediaType .APPLICATION_XML )
116
116
public void update (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
@@ -121,7 +121,7 @@ public void update(@PathParam(TYPE_PATH_PARAM) SclType type,
121
121
122
122
@ DELETE
123
123
@ Path ("/{" + ID_PATH_PARAM + "}" )
124
- @ RolesAllowed ("Delete" )
124
+ @ RolesAllowed (DELETE_ROLE )
125
125
@ Produces (MediaType .APPLICATION_XML )
126
126
public void deleteAll (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
127
127
@ PathParam (ID_PATH_PARAM ) UUID id ) {
@@ -130,7 +130,7 @@ public void deleteAll(@PathParam(TYPE_PATH_PARAM) SclType type,
130
130
131
131
@ DELETE
132
132
@ Path ("/{" + ID_PATH_PARAM + "}/{" + VERSION_PATH_PARAM + "}" )
133
- @ RolesAllowed ("Delete" )
133
+ @ RolesAllowed (DELETE_ROLE )
134
134
@ Produces (MediaType .APPLICATION_XML )
135
135
public void deleteVersion (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
136
136
@ PathParam (ID_PATH_PARAM ) UUID id ,
0 commit comments