Class JPAExternalResourceDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<ExternalResource>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAExternalResourceDAO
-
- All Implemented Interfaces:
DAO<ExternalResource>
,ExternalResourceDAO
public class JPAExternalResourceDAO extends AbstractDAO<ExternalResource> implements ExternalResourceDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAO
anyObjectDAO
protected GroupDAO
groupDAO
protected PolicyDAO
policyDAO
protected RealmDAO
realmDAO
protected TaskDAO
taskDAO
protected UserDAO
userDAO
protected VirSchemaDAO
virSchemaDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAExternalResourceDAO(TaskDAO taskDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PolicyDAO policyDAO, VirSchemaDAO virSchemaDAO, RealmDAO realmDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
anyItemHaving(Implementation transformer)
ExternalResource
authFind(String key)
int
count()
void
delete(String name)
void
deleteMapping(String intAttrName)
ExternalResource
find(String name)
List<ExternalResource>
findAll()
List<ExternalResource>
findByConnInstance(String connInstance)
List<ExternalResource>
findByPolicy(Policy policy)
List<ExternalResource>
findByPropagationActions(Implementation propagationActions)
List<ExternalResource>
findByProvisionSorter(Implementation provisionSorter)
List<Provision>
findProvisionsByAuxClass(AnyTypeClass anyTypeClass)
protected StringBuilder
getByPolicyQuery(Class<? extends Policy> policyClass)
ExternalResource
save(ExternalResource resource)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
taskDAO
protected final TaskDAO taskDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
policyDAO
protected final PolicyDAO policyDAO
-
virSchemaDAO
protected final VirSchemaDAO virSchemaDAO
-
realmDAO
protected final RealmDAO realmDAO
-
-
Constructor Detail
-
JPAExternalResourceDAO
public JPAExternalResourceDAO(TaskDAO taskDAO, AnyObjectDAO anyObjectDAO, UserDAO userDAO, GroupDAO groupDAO, PolicyDAO policyDAO, VirSchemaDAO virSchemaDAO, RealmDAO realmDAO)
-
-
Method Detail
-
count
@Transactional(readOnly=true) public int count()
- Specified by:
count
in interfaceExternalResourceDAO
-
find
@Transactional(readOnly=true) public ExternalResource find(String name)
- Specified by:
find
in interfaceExternalResourceDAO
-
authFind
public ExternalResource authFind(String key)
- Specified by:
authFind
in interfaceExternalResourceDAO
-
findProvisionsByAuxClass
public List<Provision> findProvisionsByAuxClass(AnyTypeClass anyTypeClass)
- Specified by:
findProvisionsByAuxClass
in interfaceExternalResourceDAO
-
anyItemHaving
public boolean anyItemHaving(Implementation transformer)
- Specified by:
anyItemHaving
in interfaceExternalResourceDAO
-
findByConnInstance
@Transactional(readOnly=true) public List<ExternalResource> findByConnInstance(String connInstance)
- Specified by:
findByConnInstance
in interfaceExternalResourceDAO
-
findByPropagationActions
public List<ExternalResource> findByPropagationActions(Implementation propagationActions)
- Specified by:
findByPropagationActions
in interfaceExternalResourceDAO
-
findByProvisionSorter
public List<ExternalResource> findByProvisionSorter(Implementation provisionSorter)
- Specified by:
findByProvisionSorter
in interfaceExternalResourceDAO
-
getByPolicyQuery
protected StringBuilder getByPolicyQuery(Class<? extends Policy> policyClass)
-
findByPolicy
public List<ExternalResource> findByPolicy(Policy policy)
- Specified by:
findByPolicy
in interfaceExternalResourceDAO
-
findAll
@Transactional(readOnly=true) public List<ExternalResource> findAll()
- Specified by:
findAll
in interfaceExternalResourceDAO
-
save
@Transactional(rollbackFor=java.lang.Throwable.class) public ExternalResource save(ExternalResource resource)
- Specified by:
save
in interfaceExternalResourceDAO
-
deleteMapping
public void deleteMapping(String intAttrName)
- Specified by:
deleteMapping
in interfaceExternalResourceDAO
-
delete
public void delete(String name)
- Specified by:
delete
in interfaceExternalResourceDAO
-
-