Line 7... |
Line 7... |
7 |
import org.tela_botanica.del.client.services.rest.async.PropositionDeterminationCallBack;
|
7 |
import org.tela_botanica.del.client.services.rest.async.PropositionDeterminationCallBack;
|
8 |
import org.tela_botanica.del.client.services.rest.async.SuppressionCommentaireCallback;
|
8 |
import org.tela_botanica.del.client.services.rest.async.SuppressionCommentaireCallback;
|
9 |
import org.tela_botanica.del.client.services.rest.async.SuppressionPropositionDeterminationCallback;
|
9 |
import org.tela_botanica.del.client.services.rest.async.SuppressionPropositionDeterminationCallback;
|
10 |
import org.tela_botanica.del.client.services.rest.async.ValidationPropositionCallback;
|
10 |
import org.tela_botanica.del.client.services.rest.async.ValidationPropositionCallback;
|
Line 11... |
Line 11... |
11 |
|
11 |
|
12 |
import com.google.gwt.http.client.RequestBuilder;
|
12 |
import org.tela_botanica.del.client.services.RequestBuilderWithCredentials;
|
Line 13... |
Line 13... |
13 |
import com.google.gwt.http.client.URL;
|
13 |
import com.google.gwt.http.client.URL;
|
14 |
|
14 |
|
Line 28... |
Line 28... |
28 |
|
28 |
|
29 |
@Override
|
29 |
@Override
|
Line 30... |
Line 30... |
30 |
public void ajouterProposition(PropositionDetermination proposition, PropositionDeterminationCallBack callback) {
|
30 |
public void ajouterProposition(PropositionDetermination proposition, PropositionDeterminationCallBack callback) {
|
31 |
|
31 |
|
Line 32... |
Line 32... |
32 |
String urlService = baseUrl+"commentaires/";
|
32 |
String urlService = baseUrl+"commentaires/";
|
33 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.PUT, urlService);
|
33 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.PUT, urlService);
|
34 |
|
34 |
|
35 |
callback.setMode(ModeRequete.AJOUT);
|
35 |
callback.setMode(ModeRequete.AJOUT);
|
Line 81... |
Line 81... |
81 |
|
81 |
|
82 |
@Override
|
82 |
@Override
|
Line 83... |
Line 83... |
83 |
public void supprimerProposition(PropositionDetermination proposition, SuppressionPropositionDeterminationCallback callback) {
|
83 |
public void supprimerProposition(PropositionDetermination proposition, SuppressionPropositionDeterminationCallback callback) {
|
84 |
|
84 |
|
Line 85... |
Line 85... |
85 |
String urlService = baseUrl+"commentaires/"+proposition.getId();
|
85 |
String urlService = baseUrl+"commentaires/"+proposition.getId();
|
86 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.DELETE, urlService);
|
86 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.DELETE, urlService);
|
87 |
|
87 |
|
88 |
callback.setMode(ModeRequete.SUPPRESSION);
|
88 |
callback.setMode(ModeRequete.SUPPRESSION);
|
Line 96... |
Line 96... |
96 |
|
96 |
|
97 |
@Override
|
97 |
@Override
|
Line 98... |
Line 98... |
98 |
public void validerProposition(PropositionDetermination proposition, ValidationPropositionCallback callback) {
|
98 |
public void validerProposition(PropositionDetermination proposition, ValidationPropositionCallback callback) {
|
99 |
|
99 |
|
Line 100... |
Line 100... |
100 |
String urlService = baseUrl+"determinations/valider-determination/"+proposition.getId();
|
100 |
String urlService = baseUrl+"determinations/valider-determination/"+proposition.getId();
|
101 |
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, urlService);
|
101 |
RequestBuilderWithCredentials rb = new RequestBuilderWithCredentials(RequestBuilderWithCredentials.POST, urlService);
|
102 |
|
102 |
|
103 |
callback.setMode(ModeRequete.MODIFICATION);
|
103 |
callback.setMode(ModeRequete.MODIFICATION);
|