Subversion Repositories eFlore/Applications.coel

Rev

Rev 268 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 268 Rev 277
Line 66... Line 66...
66
		} catch (RequestException e) {
66
		} catch (RequestException e) {
67
			e.printStackTrace();
67
			e.printStackTrace();
68
		}
68
		}
69
	}
69
	}
Line 70... Line 70...
70
	
70
	
71
	public void modifierPublication(final Rafraichissable r, String utilisateurId, Publication pubAModifier) {
71
	public void modifierPublication(String utilisateurId, Publication pubAModifier) {
72
		// Demande de toutes les structures
72
		// Demande de toutes les structures
73
    	String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
73
    	String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
Line 74... Line 74...
74
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+SERVICE_NOM+"/"+pubAModifier.getId());
74
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+SERVICE_NOM+"/"+pubAModifier.getId());
Line 106... Line 106...
106
		} catch (RequestException e) {
106
		} catch (RequestException e) {
107
			e.printStackTrace();
107
			e.printStackTrace();
108
		}
108
		}
109
	}
109
	}
Line 110... Line 110...
110
 
110
 
111
	public void ajouterPublication(Modele modele, String utilisateurId, Publication pubAModifier) {
111
	public void ajouterPublication(String utilisateurId, Publication pubAModifier) {
112
		String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
112
		String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
Line 113... Line 113...
113
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+SERVICE_NOM+"/");
113
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+SERVICE_NOM+"/");
114
 
114
 
Line 146... Line 146...
146
			e.printStackTrace();
146
			e.printStackTrace();
147
		}
147
		}
Line 148... Line 148...
148
		
148
		
Line 149... Line 149...
149
	}
149
	}
150
 
-
 
151
	public void supprimerPublication(Modele modele, String utilisateurId,
150
 
152
			String idPubs) {
151
	public void supprimerPublication(String utilisateurId, String idPubs) {
Line 153... Line 152...
153
		String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
152
		String url = ((Configuration) Registry.get(RegistreId.CONFIG)).getServiceBaseUrl();
154
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+SERVICE_NOM+"/"+utilisateurId+"/"+idPubs);
153
		RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url+SERVICE_NOM+"/"+utilisateurId+"/"+idPubs);