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