Class JPARealmDAO
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.JPARealmDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EntityManager
protected static final Logger
protected final ApplicationEventPublisher
protected final RealmSearchDAO
protected final RoleDAO
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.RealmDAO
NAME_PATTERN, PATH_PATTERN
-
Constructor Summary
ConstructorDescriptionJPARealmDAO
(RoleDAO roleDAO, RealmSearchDAO realmSearchDAO, ApplicationEventPublisher publisher, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
void
deleteById
(String key) boolean
existsById
(String key) findAll()
org.springframework.data.domain.Page
<? extends Realm> findAll
(org.springframework.data.domain.Pageable pageable) findByActionsContaining
(Implementation logicActions) findByPolicy
(T policy) findByResources
(ExternalResource resource) findSamePolicyChildren
(Realm realm, T policy) getRoot()
<S extends Realm>
Ssave
(S realm)
-
Field Details
-
LOG
-
roleDAO
-
realmSearchDAO
-
publisher
-
entityManager
-
-
Constructor Details
-
JPARealmDAO
public JPARealmDAO(RoleDAO roleDAO, RealmSearchDAO realmSearchDAO, ApplicationEventPublisher publisher, EntityManager entityManager)
-
-
Method Details
-
getRoot
-
existsById
- Specified by:
existsById
in interfaceDAO<Realm>
-
findById
-
findSamePolicyChildren
-
findByPolicy
- Specified by:
findByPolicy
in interfaceRealmDAO
-
findByActionsContaining
- Specified by:
findByActionsContaining
in interfaceRealmDAO
-
findByResources
- Specified by:
findByResources
in interfaceRealmDAO
-
count
public long count() -
findAll
-
findAll
public org.springframework.data.domain.Page<? extends Realm> findAll(org.springframework.data.domain.Pageable pageable) -
save
-
deleteById
- Specified by:
deleteById
in interfaceDAO<Realm>
-
delete
-