Class JPAPolicyDAO
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.JPAPolicyDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CASSPClientAppDAO
protected final EntityCacheDAO
protected final EntityManager
protected static final Logger
protected final OIDCRPClientAppDAO
protected final RealmDAO
protected final ExternalResourceDAO
protected final SAML2SPClientAppDAO
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT
-
Constructor Summary
ConstructorDescriptionJPAPolicyDAO
(RealmDAO realmDAO, ExternalResourceDAO resourceDAO, CASSPClientAppDAO casSPClientAppDAO, OIDCRPClientAppDAO oidcRPClientAppDAO, SAML2SPClientAppDAO saml2SPClientAppDAO, EntityCacheDAO entityCacheDAO, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
void
deleteById
(String key) boolean
existsById
(String key) findAll()
findByAccountRule
(Implementation accountRule) findByInboundCorrelationRule
(Implementation correlationRule) findByPasswordRule
(Implementation passwordRule) findByPushCorrelationRule
(Implementation correlationRule) findByResource
(ExternalResource resource) protected static <T extends Policy>
Class<? extends AbstractPolicy> getEntityReference
(Class<T> reference) <P extends Policy>
Psave
(P policy)
-
Field Details
-
LOG
-
realmDAO
-
resourceDAO
-
casSPClientAppDAO
-
oidcRPClientAppDAO
-
saml2SPClientAppDAO
-
entityCacheDAO
-
entityManager
-
-
Constructor Details
-
JPAPolicyDAO
public JPAPolicyDAO(RealmDAO realmDAO, ExternalResourceDAO resourceDAO, CASSPClientAppDAO casSPClientAppDAO, OIDCRPClientAppDAO oidcRPClientAppDAO, SAML2SPClientAppDAO saml2SPClientAppDAO, EntityCacheDAO entityCacheDAO, EntityManager entityManager)
-
-
Method Details
-
getEntityReference
protected static <T extends Policy> Class<? extends AbstractPolicy> getEntityReference(Class<T> reference) -
existsById
- Specified by:
existsById
in interfaceDAO<Policy>
-
findById
-
findById
-
count
public long count() -
findAll
-
findAll
-
findByAccountRule
- Specified by:
findByAccountRule
in interfacePolicyDAO
-
findByPasswordRule
- Specified by:
findByPasswordRule
in interfacePolicyDAO
-
findByInboundCorrelationRule
- Specified by:
findByInboundCorrelationRule
in interfacePolicyDAO
-
findByPushCorrelationRule
- Specified by:
findByPushCorrelationRule
in interfacePolicyDAO
-
findByResource
- Specified by:
findByResource
in interfacePolicyDAO
-
save
-
delete
-
deleteById
- Specified by:
deleteById
in interfaceDAO<Policy>
-