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.DelegationTO;
23 import org.apache.syncope.common.rest.api.service.DelegationService;
24
25 public class DelegationRestClient extends BaseRestClient {
26
27 private static final long serialVersionUID = -381814125643246243L;
28
29 public void delete(final String key) {
30 getService(DelegationService.class).delete(key);
31 }
32
33 public DelegationTO read(final String key) {
34 return getService(DelegationService.class).read(key);
35 }
36
37 public void update(final DelegationTO applicationTO) {
38 getService(DelegationService.class).update(applicationTO);
39 }
40
41 public void create(final DelegationTO applicationTO) {
42 getService(DelegationService.class).create(applicationTO);
43 }
44
45 public List<DelegationTO> list() {
46 return getService(DelegationService.class).list();
47 }
48 }