1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.persistence.api.dao;
20
21 import java.util.List;
22 import java.util.Optional;
23 import org.apache.syncope.core.persistence.api.entity.Delegation;
24 import org.apache.syncope.core.persistence.api.entity.Role;
25 import org.apache.syncope.core.persistence.api.entity.user.User;
26
27 public interface DelegationDAO extends DAO<Delegation> {
28
29 Delegation find(String key);
30
31 Optional<String> findValidFor(String delegating, String delegated);
32
33 List<String> findValidDelegating(String delegated);
34
35 List<Delegation> findByDelegating(User user);
36
37 List<Delegation> findByDelegated(User user);
38
39 List<Delegation> findByRole(Role role);
40
41 List<Delegation> findAll();
42
43 Delegation save(Delegation delegation);
44
45 void delete(Delegation delegation);
46
47 void delete(String key);
48 }