Class JPARealmDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Realm>
-
- org.apache.syncope.core.persistence.jpa.dao.JPARealmDAO
-
- Direct Known Subclasses:
ElasticsearchRealmDAO
,OpenSearchRealmDAO
public class JPARealmDAO extends AbstractDAO<Realm> implements RealmDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationEventPublisher
publisher
protected RoleDAO
roleDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.RealmDAO
NAME_PATTERN, PATH_PATTERN
-
-
Constructor Summary
Constructors Constructor Description JPARealmDAO(RoleDAO roleDAO, ApplicationEventPublisher publisher)
-
Method Summary
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
roleDAO
protected final RoleDAO roleDAO
-
publisher
protected final ApplicationEventPublisher publisher
-
-
Constructor Detail
-
JPARealmDAO
public JPARealmDAO(RoleDAO roleDAO, ApplicationEventPublisher publisher)
-
-
Method Detail
-
find
@Transactional(readOnly=true) public Realm find(String key)
-
findByFullPath
@Transactional(readOnly=true) public Realm findByFullPath(String fullPath)
- Specified by:
findByFullPath
in interfaceRealmDAO
-
findByName
public List<Realm> findByName(String name)
- Specified by:
findByName
in interfaceRealmDAO
-
findByResource
public List<Realm> findByResource(ExternalResource resource)
- Specified by:
findByResource
in interfaceRealmDAO
-
buildDescendantQuery
protected StringBuilder buildDescendantQuery(String base, String keyword, List<Object> parameters)
-
countDescendants
public int countDescendants(String base, String keyword)
- Specified by:
countDescendants
in interfaceRealmDAO
-
findDescendants
public List<Realm> findDescendants(String base, String keyword, int page, int itemsPerPage)
- Specified by:
findDescendants
in interfaceRealmDAO
-
findDescendants
public List<String> findDescendants(String base, String prefix)
- Specified by:
findDescendants
in interfaceRealmDAO
-
findSamePolicyChildren
protected <T extends Policy> List<Realm> findSamePolicyChildren(Realm realm, T policy)
-
findByPolicy
public <T extends Policy> List<Realm> findByPolicy(T policy)
- Specified by:
findByPolicy
in interfaceRealmDAO
-
findByLogicActions
public List<Realm> findByLogicActions(Implementation logicActions)
- Specified by:
findByLogicActions
in interfaceRealmDAO
-
findAncestors
public List<Realm> findAncestors(Realm realm)
- Specified by:
findAncestors
in interfaceRealmDAO
-
findChildren
public List<Realm> findChildren(Realm realm)
- Specified by:
findChildren
in interfaceRealmDAO
-
buildDescendantQuery
protected StringBuilder buildDescendantQuery(String base, List<Object> parameters)
-
findAllKeys
public List<String> findAllKeys(int page, int itemsPerPage)
- Specified by:
findAllKeys
in interfaceRealmDAO
-
-