import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.Consumes;
import javax.ws.rs.Produces;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PUT;
import javax.ws.rs.core.MediaType;

/**
 * REST Web Service
 *
 * @author soac-sh
 */
@Path("/products")
@RolesAllowed({"ADMIN", "CUSTOMER"})
public class ProductsClass {

    @GET
    @Path("{id}")
    @Produces(MediaType.APPLICATION_XML)
    public String getProduct() {
        //TODO return proper representation object
        throw new UnsupportedOperationException();
    }

    @RolesAllowed({"ADMIN"})
    @POST
    @Produces(MediaType.APPLICATION_XML)
    public void createProduct(String content) {
        
    }
    
    @PermitAll
    @GET
    @Consumes(MediaType.APPLICATION_XML)
    public void getAllProducts(String content) {
    }
}
