Class JPATaskDAO
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.JPATaskDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EntityManager
protected static final Logger
protected final RealmSearchDAO
protected final RemediationDAO
protected final SecurityProperties
protected final TaskUtilsFactory
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT
-
Constructor Summary
ConstructorDescriptionJPATaskDAO
(RealmSearchDAO realmSearchDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected final <T extends Task<T>>
StringBuilderbuildFindAllQuery
(TaskType type) protected StringBuilder
buildFindAllQuery
(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, boolean orderByTaskExecInfo, List<Object> parameters) long
count()
long
count
(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey) void
void
void
deleteAll
(ExternalResource resource, TaskType type) void
deleteById
(String key) boolean
existsById
(String key) findAll()
findAll
(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, org.springframework.data.domain.Pageable pageable) findByCommand
(Implementation command) findByDelegate
(Implementation delegate) findByInboundActions
(Implementation inboundActions) findByName
(TaskType type, String name) findByPushActions
(Implementation pushActions) findByRealm
(Realm realm) findByReconFilterBuilder
(Implementation reconFilterBuilder) findToExec
(TaskType type) purgePropagations
(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) <T extends Task<?>>
Tsave
(T task) protected int
setParameter
(List<Object> parameters, Object parameter) protected String
toOrderByStatement
(Class<? extends Task<?>> beanClass, Stream<org.springframework.data.domain.Sort.Order> orderByClauses)
-
Field Details
-
LOG
-
realmSearchDAO
-
remediationDAO
-
taskUtilsFactory
-
securityProperties
-
entityManager
-
-
Constructor Details
-
JPATaskDAO
public JPATaskDAO(RealmSearchDAO realmSearchDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties, EntityManager entityManager)
-
-
Method Details
-
existsById
- Specified by:
existsById
in interfaceDAO<Task<?>>
-
findById
-
findByName
@Transactional(readOnly=true) public <T extends SchedTask> Optional<T> findByName(TaskType type, String name) - Specified by:
findByName
in interfaceTaskDAO
-
findById
-
findByDelegate
- Specified by:
findByDelegate
in interfaceTaskDAO
-
findByReconFilterBuilder
- Specified by:
findByReconFilterBuilder
in interfaceTaskDAO
-
findByInboundActions
- Specified by:
findByInboundActions
in interfaceTaskDAO
-
findByPushActions
- Specified by:
findByPushActions
in interfaceTaskDAO
-
findByRealm
- Specified by:
findByRealm
in interfaceTaskDAO
-
findByCommand
- Specified by:
findByCommand
in interfaceTaskDAO
-
buildFindAllQuery
-
findToExec
- Specified by:
findToExec
in interfaceTaskDAO
-
findAll
-
findAll
-
setParameter
-
buildFindAllQuery
protected StringBuilder buildFindAllQuery(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, boolean orderByTaskExecInfo, List<Object> parameters) -
toOrderByStatement
-
findAll
public <T extends Task<T>> List<T> findAll(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, org.springframework.data.domain.Pageable pageable) -
count
public long count() -
count
public long count(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey) -
save
-
delete
-
deleteById
- Specified by:
deleteById
in interfaceDAO<Task<?>>
-
delete
-
deleteAll
-
purgePropagations
public List<PropagationTaskTO> purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) - Specified by:
purgePropagations
in interfaceTaskDAO
-