Kenmegne
7 days ago 23a46b4be35277e06ec89f48730eeb694e686be8
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package com.megatim.apifdxweb.service.ifaces.administration;
 
import com.megatim.apifdxweb.model.formodel.RoleFormModel;
import com.megatim.apifdxweb.service.ifaces.abstracts.AbstractFormModelIFaces;
import com.megatim.apifdxweb.service.ifaces.abstracts.AbstractGenericCrudResourceIFaces;
import com.megatim.apifdxweb.model.administration.Role;
import com.megatim.apifdxweb.model.dtos.administration.RoleDto;
 
/**
 * Interface du service JAX-RS
 *
 * @since Fri Sep 27 08:15:34 GMT+01:00 2019
 *
 */
public interface RoleRS extends AbstractGenericCrudResourceIFaces<Role, RoleDto, Long, Role>, AbstractFormModelIFaces<RoleFormModel> {
 
//    @POST
//    @Consumes({MediaType.APPLICATION_JSON})
//    @Produces({MediaType.APPLICATION_JSON})
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    @Path("validate/{id}")
//    @Secured(action = "validate")
//    public void validate(@Context HttpHeaders headers, @PathParam("id") Long id);
//
//    @POST
//    @Consumes({MediaType.APPLICATION_JSON})
//    @Produces({MediaType.APPLICATION_JSON})
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    @Path("reject/{id}")
//    @Secured(action = "reject")
//    public void reject(@Context HttpHeaders headers, @PathParam("id") Long id);
//
//    @GET
//    @Produces({MediaType.APPLICATION_JSON})
//    @SecuredAdmin
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    @Path("findbyetatoperation/{property}/{value}")
//    @Secured(action = "*")
//    public Response findByEtatOperation(@Context HttpHeaders headers, @PathParam("property") String propertyName, @PathParam("value") String propertyValue);
//
//    @POST
//    @Consumes({MediaType.APPLICATION_JSON})
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("add")
//    @Secured(action = "add")
//    @SecuredAdmin
//    @SecuredMegaAdmin
//    public Response save(@Context HttpHeaders headers, @Valid Role entity);
//
//    @POST
//    @Consumes({MediaType.APPLICATION_JSON})
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("update/{id}")
//    @Secured(action = "update")
//    @SecuredAdmin
//    @SecuredMegaAdmin
//    public Response update(@Context HttpHeaders headers, @PathParam("id") Long id, @Valid Role entity);
//
//    @POST
//    @Consumes({MediaType.APPLICATION_JSON})
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("delete/{id}")
//    @Secured(action = "delete")
//    @SecuredAdmin
//    @SecuredMegaAdmin
//    public void delete(@Context HttpHeaders headers, @PathParam("id") Long id);
//
//    @GET
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("findbyid/{id}")
//    @Secured(action = "*")
//    @SecuredAdmin
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    public Response findById(@Context HttpHeaders headers, @PathParam("id") Long id);
//
//    @GET
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("findbyoneproperty/{property}/{value}")
//    @Secured(action = "*")
//    @SecuredAdmin
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    public Response findByOneProperty(@Context HttpHeaders headers, @PathParam("property") String propertyName, @PathParam("value") String propertyValue);
//
//    @POST
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("findwithpagination/{pageNumber}/{pagesize}")
//    @Secured(action = "*")
//    @SecuredAdmin
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    public Response findWithPagination(@Context HttpHeaders headers, @PathParam("pageNumber") Integer pageNumber, @PathParam("pagesize") Integer pagesize, Role searchEntity);
//
//    @POST
//    @Produces({MediaType.APPLICATION_JSON})
//    @Secured(action = "*")
//    @SecuredAdmin
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    public Response findAll(@Context HttpHeaders headers, Role searchEntity);
//
//    @POST
//    @Produces({MediaType.APPLICATION_JSON})
//    @Path("count")
//    @Secured(action = "*")
//    @SecuredAdmin
//    @SecuredSuperAdmin
//    @SecuredMegaAdmin
//    public Long count(@Context HttpHeaders headers, Role searchEntity);
}