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
package com.megatim.fdxconsultation.service.ifaces.settings;
 
import com.megatim.fdxconsultation.model.settings.DisplayOptions;
import com.mgt.rs.security.core.common.Secured;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
 
/**
 *
 * @author Gabuntu
 */
public interface DisplayOptionsRS {
 
    @GET
    @Produces({MediaType.APPLICATION_JSON})
    @Path("current")
    @Secured(action = "edition", enable = true)
    public Response current(@Context HttpHeaders headers);
 
    @POST
    @Produces({MediaType.APPLICATION_JSON})
    @Path("edit")
    @Secured(action = "edition", enable = true)
    public Response edit(@Context HttpHeaders headers, DisplayOptions displayOptions);
 
}