1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.rest;
20
21 import java.util.List;
22 import org.apache.syncope.common.lib.to.ImplementationTO;
23 import org.apache.syncope.common.rest.api.service.ImplementationService;
24
25 public class ImplementationRestClient extends BaseRestClient {
26
27 private static final long serialVersionUID = -4111950555473526287L;
28
29 public List<ImplementationTO> list(final String type) {
30 return getService(ImplementationService.class).list(type);
31 }
32
33 public ImplementationTO read(final String type, final String key) {
34 return getService(ImplementationService.class).read(type, key);
35 }
36
37 public void create(final ImplementationTO implementation) {
38 getService(ImplementationService.class).create(implementation);
39 }
40
41 public void update(final ImplementationTO implementation) {
42 getService(ImplementationService.class).update(implementation);
43 }
44
45 public void delete(final String type, final String key) {
46 getService(ImplementationService.class).delete(type, key);
47 }
48 }