Class JPAPolicyDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Policy>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAPolicyDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected CASSPClientAppDAO
casSPClientAppDAO
protected EntityCacheDAO
entityCacheDAO
protected OIDCRPClientAppDAO
oidcRPClientAppDAO
protected RealmDAO
realmDAO
protected ExternalResourceDAO
resourceDAO
protected SAML2SPClientAppDAO
saml2SPClientAppDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAPolicyDAO(RealmDAO realmDAO, ExternalResourceDAO resourceDAO, CASSPClientAppDAO casSPClientAppDAO, OIDCRPClientAppDAO oidcRPClientAppDAO, SAML2SPClientAppDAO saml2SPClientAppDAO, EntityCacheDAO entityCacheDAO)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Policy>
voiddelete(T policy)
<T extends Policy>
List<T>find(Class<T> reference)
<T extends Policy>
Tfind(String key)
List<Policy>
findAll()
List<AccountPolicy>
findByAccountRule(Implementation accountRule)
List<PasswordPolicy>
findByPasswordRule(Implementation passwordRule)
List<PullPolicy>
findByPullCorrelationRule(Implementation correlationRule)
List<PushPolicy>
findByPushCorrelationRule(Implementation correlationRule)
List<AccountPolicy>
findByResource(ExternalResource resource)
protected static <T extends Policy>
Class<? extends AbstractPolicy>getEntityReference(Class<T> reference)
<T extends Policy>
Tsave(T policy)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
realmDAO
protected final RealmDAO realmDAO
-
resourceDAO
protected final ExternalResourceDAO resourceDAO
-
casSPClientAppDAO
protected final CASSPClientAppDAO casSPClientAppDAO
-
oidcRPClientAppDAO
protected final OIDCRPClientAppDAO oidcRPClientAppDAO
-
saml2SPClientAppDAO
protected final SAML2SPClientAppDAO saml2SPClientAppDAO
-
entityCacheDAO
protected final EntityCacheDAO entityCacheDAO
-
-
Constructor Detail
-
JPAPolicyDAO
public JPAPolicyDAO(RealmDAO realmDAO, ExternalResourceDAO resourceDAO, CASSPClientAppDAO casSPClientAppDAO, OIDCRPClientAppDAO oidcRPClientAppDAO, SAML2SPClientAppDAO saml2SPClientAppDAO, EntityCacheDAO entityCacheDAO)
-
-
Method Detail
-
getEntityReference
protected static <T extends Policy> Class<? extends AbstractPolicy> getEntityReference(Class<T> reference)
-
findByAccountRule
public List<AccountPolicy> findByAccountRule(Implementation accountRule)
- Specified by:
findByAccountRule
in interfacePolicyDAO
-
findByPasswordRule
public List<PasswordPolicy> findByPasswordRule(Implementation passwordRule)
- Specified by:
findByPasswordRule
in interfacePolicyDAO
-
findByPullCorrelationRule
public List<PullPolicy> findByPullCorrelationRule(Implementation correlationRule)
- Specified by:
findByPullCorrelationRule
in interfacePolicyDAO
-
findByPushCorrelationRule
public List<PushPolicy> findByPushCorrelationRule(Implementation correlationRule)
- Specified by:
findByPushCorrelationRule
in interfacePolicyDAO
-
findByResource
public List<AccountPolicy> findByResource(ExternalResource resource)
- Specified by:
findByResource
in interfacePolicyDAO
-
-