Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 5 Rev 116
Line 45... Line 45...
45
	 * @param r
45
	 * @param r
46
	 *            le rafraichissable qui demande les données
46
	 *            le rafraichissable qui demande les données
47
	 */
47
	 */
48
	public void obtenirListeMotsCles(final Rafraichissable r) {
48
	public void obtenirListeMotsCles(final Rafraichissable r) {
49
		// on demande tous les mots clés associés à l'utilisateur
49
		// on demande tous les mots clés associés à l'utilisateur
50
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, iModele
50
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, Configuration.getServiceBaseUrl()
51
				.getConfig().getServiceBaseUrl()
-
 
52
				+ "/InventoryKeyWordList/" + iModele.getIdentifiant());
51
				+ "/InventoryKeyWordList/" + iModele.getIdentifiant());
Line 53... Line 52...
53
 
52
 
54
		try {
53
		try {
Line 90... Line 89...
90
	public void ajouterBaseDeDonnees(String motcle) {
89
	public void ajouterBaseDeDonnees(String motcle) {
91
		if (!motcle.equals("")) {
90
		if (!motcle.equals("")) {
92
			String postData = motcle;
91
			String postData = motcle;
Line 93... Line 92...
93
 
92
 
94
			// on fait un post asynchrone
93
			// on fait un post asynchrone
95
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, iModele
-
 
96
					.getConfig().getServiceBaseUrl()
94
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
97
					+ "/InventoryKeyWordList/");
95
					+ "/InventoryKeyWordList/");
98
			try {
96
			try {
Line 99... Line 97...
99
				rb.sendRequest(postData, new RequestCallback() {
97
				rb.sendRequest(postData, new RequestCallback() {
Line 178... Line 176...
178
		if (!motcle.equals("")) {
176
		if (!motcle.equals("")) {
Line 179... Line 177...
179
 
177
 
180
			String postData = "";
178
			String postData = "";
Line 181... Line 179...
181
			postData += "&action=modification" + motcle;
179
			postData += "&action=modification" + motcle;
182
 
-
 
183
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, iModele
180
 
184
					.getConfig().getServiceBaseUrl()
181
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
185
					+ "/InventoryKeyWordList/" + iModele.getIdentifiant());
182
					+ "/InventoryKeyWordList/" + iModele.getIdentifiant());
Line 186... Line 183...
186
			try {
183
			try {
Line 217... Line 214...
217
		if (!motcle.equals("")) {
214
		if (!motcle.equals("")) {
Line 218... Line 215...
218
 
215
 
219
			String postData = "";
216
			String postData = "";
Line 220... Line 217...
220
			postData += "&action=deplacement" + motcle;
217
			postData += "&action=deplacement" + motcle;
221
 
-
 
222
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, iModele
218
 
223
					.getConfig().getServiceBaseUrl()
219
			RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, Configuration.getServiceBaseUrl()
224
					+ "/InventoryKeyWordList/" + iModele.getIdentifiant());
220
					+ "/InventoryKeyWordList/" + iModele.getIdentifiant());
Line 225... Line 221...
225
			try {
221
			try {