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, AbstractFormModelIFaces { // @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); }