6
6
import org .lfenergy .compas .scl .SCL ;
7
7
import org .lfenergy .compas .scl .data .model .SclType ;
8
8
import org .lfenergy .compas .scl .data .model .Version ;
9
- import org .lfenergy .compas .scl .data .rest .Constants ;
10
9
import org .lfenergy .compas .scl .data .rest .model .*;
11
10
import org .lfenergy .compas .scl .data .service .CompasSclDataService ;
12
11
@@ -71,7 +70,7 @@ public GetResponse findByUUID(@PathParam(TYPE_PATH_PARAM) SclType type,
71
70
@ Produces (MediaType .APPLICATION_XML )
72
71
public GetResponse findByUUIDAndVersion (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
73
72
@ PathParam (ID_PATH_PARAM ) UUID id ,
74
- @ PathParam (Constants . VERSION_PATH_PARAM ) Version version ) {
73
+ @ PathParam (VERSION_PATH_PARAM ) Version version ) {
75
74
var response = new GetResponse ();
76
75
response .setScl (compasSclDataService .findByUUID (type , id , version ));
77
76
return response ;
@@ -90,7 +89,7 @@ public SCL findRawSCLByUUID(@PathParam(TYPE_PATH_PARAM) SclType type,
90
89
@ Produces (MediaType .APPLICATION_XML )
91
90
public SCL findRawSCLByUUIDAndVersion (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
92
91
@ PathParam (ID_PATH_PARAM ) UUID id ,
93
- @ PathParam (Constants . VERSION_PATH_PARAM ) Version version ) {
92
+ @ PathParam (VERSION_PATH_PARAM ) Version version ) {
94
93
return compasSclDataService .findByUUID (type , id , version );
95
94
}
96
95
@@ -117,7 +116,7 @@ public void deleteAll(@PathParam(TYPE_PATH_PARAM) SclType type,
117
116
@ Produces (MediaType .APPLICATION_XML )
118
117
public void deleteVersion (@ PathParam (TYPE_PATH_PARAM ) SclType type ,
119
118
@ PathParam (ID_PATH_PARAM ) UUID id ,
120
- @ PathParam (Constants . VERSION_PATH_PARAM ) Version version ) {
119
+ @ PathParam (VERSION_PATH_PARAM ) Version version ) {
121
120
compasSclDataService .delete (type , id , version );
122
121
}
123
122
}
0 commit comments