Class JPAPolicyDAO
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.JPAPolicyDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CASSPClientAppDAOprotected final EntityCacheDAOprotected final EntityManagerprotected static final Loggerprotected final OIDCRPClientAppDAOprotected final RealmDAOprotected final ExternalResourceDAOprotected final SAML2SPClientAppDAOFields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT -
Constructor Summary
ConstructorsConstructorDescriptionJPAPolicyDAO(RealmDAO realmDAO, ExternalResourceDAO resourceDAO, CASSPClientAppDAO casSPClientAppDAO, OIDCRPClientAppDAO oidcRPClientAppDAO, SAML2SPClientAppDAO saml2SPClientAppDAO, EntityCacheDAO entityCacheDAO, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()voidvoiddeleteById(String key) booleanexistsById(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:
existsByIdin interfaceDAO<Policy>
-
findById
-
findById
-
count
public long count() -
findAll
-
findAll
-
findByAccountRule
- Specified by:
findByAccountRulein interfacePolicyDAO
-
findByPasswordRule
- Specified by:
findByPasswordRulein interfacePolicyDAO
-
findByInboundCorrelationRule
- Specified by:
findByInboundCorrelationRulein interfacePolicyDAO
-
findByPushCorrelationRule
- Specified by:
findByPushCorrelationRulein interfacePolicyDAO
-
findByResource
- Specified by:
findByResourcein interfacePolicyDAO
-
save
-
delete
-
deleteById
- Specified by:
deleteByIdin interfaceDAO<Policy>
-