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.Collection;
22 import java.util.List;
23 import java.util.Map;
24 import java.util.Set;
25 import org.apache.commons.lang3.tuple.Pair;
26 import org.apache.syncope.core.persistence.api.entity.Any;
27 import org.apache.syncope.core.persistence.api.entity.AnyType;
28 import org.apache.syncope.core.persistence.api.entity.ExternalResource;
29 import org.apache.syncope.core.persistence.api.entity.Relationship;
30 import org.apache.syncope.core.persistence.api.entity.anyobject.AMembership;
31 import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
32 import org.apache.syncope.core.persistence.api.entity.group.Group;
33
34 public interface AnyObjectDAO extends AnyDAO<AnyObject> {
35
36 String findKey(String type, String name);
37
38 AnyObject findByName(String type, String name);
39
40 List<AnyObject> findByName(String name);
41
42
43
44
45
46
47
48
49
50
51 void securityChecks(Set<String> authRealms, String key, String realm, Collection<String> groups);
52
53
54
55
56
57
58
59 Map<AnyType, Integer> countByType();
60
61 Map<String, Integer> countByRealm(AnyType anyType);
62
63 AMembership findMembership(String key);
64
65 List<Group> findDynGroups(String key);
66
67 List<Relationship<Any<?>, AnyObject>> findAllRelationships(AnyObject anyObject);
68
69 Collection<Group> findAllGroups(AnyObject anyObject);
70
71 Collection<String> findAllGroupKeys(AnyObject anyObject);
72
73 Collection<ExternalResource> findAllResources(AnyObject anyObject);
74
75 Pair<Set<String>, Set<String>> saveAndGetDynGroupMembs(AnyObject anyObject);
76 }