Class JPATaskDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Task<?>>
-
- org.apache.syncope.core.persistence.jpa.dao.JPATaskDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected RealmDAO
realmDAO
protected RemediationDAO
remediationDAO
protected SecurityProperties
securityProperties
protected TaskUtilsFactory
taskUtilsFactory
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPATaskDAO(RealmDAO realmDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties)
-
Method Summary
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
realmDAO
protected final RealmDAO realmDAO
-
remediationDAO
protected final RemediationDAO remediationDAO
-
taskUtilsFactory
protected final TaskUtilsFactory taskUtilsFactory
-
securityProperties
protected final SecurityProperties securityProperties
-
-
Constructor Detail
-
JPATaskDAO
public JPATaskDAO(RealmDAO realmDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties)
-
-
Method Detail
-
exists
@Transactional(readOnly=true) public boolean exists(TaskType type, String key)
-
find
@Transactional(readOnly=true) public <T extends Task<T>> T find(TaskType type, String key)
-
findByName
@Transactional(readOnly=true) public <T extends SchedTask> Optional<T> findByName(TaskType type, String name)
- Specified by:
findByName
in interfaceTaskDAO
-
findByDelegate
public List<SchedTask> findByDelegate(Implementation delegate)
- Specified by:
findByDelegate
in interfaceTaskDAO
-
findByReconFilterBuilder
public List<PullTask> findByReconFilterBuilder(Implementation reconFilterBuilder)
- Specified by:
findByReconFilterBuilder
in interfaceTaskDAO
-
findByPullActions
public List<PullTask> findByPullActions(Implementation pullActions)
- Specified by:
findByPullActions
in interfaceTaskDAO
-
findByPushActions
public List<PushTask> findByPushActions(Implementation pushActions)
- Specified by:
findByPushActions
in interfaceTaskDAO
-
findByRealm
public List<MacroTask> findByRealm(Realm realm)
- Specified by:
findByRealm
in interfaceTaskDAO
-
findByCommand
public List<MacroTask> findByCommand(Implementation command)
- Specified by:
findByCommand
in interfaceTaskDAO
-
buildFindAllQuery
protected final <T extends Task<T>> StringBuilder buildFindAllQuery(TaskType type)
-
findToExec
public <T extends Task<T>> List<T> findToExec(TaskType type)
- Specified by:
findToExec
in interfaceTaskDAO
-
findAll
@Transactional(readOnly=true) public <T extends Task<T>> List<T> findAll(TaskType type)
-
buildFindAllQuery
protected StringBuilder buildFindAllQuery(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, boolean orderByTaskExecInfo, List<Object> parameters)
-
toOrderByStatement
protected String toOrderByStatement(Class<? extends Task<?>> beanClass, List<OrderByClause> orderByClauses)
-
findAll
public <T extends Task<T>> List<T> findAll(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, int page, int itemsPerPage, List<OrderByClause> orderByClauses)
-
count
public int count(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey)
-
save
@Transactional(rollbackFor=java.lang.Throwable.class) public <T extends Task<T>> T save(T task)
-
deleteAll
public void deleteAll(ExternalResource resource, TaskType type)
-
purgePropagations
public List<PropagationTaskTO> purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<ExternalResource> externalResources)
- Specified by:
purgePropagations
in interfaceTaskDAO
-
-