Class JPATaskDAO
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.JPATaskDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityManagerprotected static final org.slf4j.Loggerprotected final RealmSearchDAOprotected final RemediationDAOprotected final SecurityPropertiesprotected final TaskUtilsFactoryFields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT -
Constructor Summary
ConstructorsConstructorDescriptionJPATaskDAO(RealmSearchDAO realmSearchDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected final <T extends Task<T>>
StringBuilderbuildFindAllQuery(TaskType type) protected StringBuilderbuildFindAllQuery(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, boolean orderByTaskExecInfo, List<Object> parameters) longcount()longcount(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey) longcountToExec(TaskType type) voidvoidvoiddeleteAll(ExternalResource resource, TaskType type) voiddeleteById(String key) booleanexistsById(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, org.springframework.data.domain.Pageable pageable) purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) <T extends Task<?>>
Tsave(T task) protected intsetParameter(List<Object> parameters, Object parameter) protected StringtoOrderByStatement(Class<? extends Task<?>> beanClass, Stream<org.springframework.data.domain.Sort.Order> orderByClauses, String prefix)
-
Field Details
-
LOG
protected static final org.slf4j.Logger 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:
existsByIdin interfaceDAO<Task<?>>
-
findById
-
findByName
@Transactional(readOnly=true) public <T extends SchedTask> Optional<T> findByName(TaskType type, String name) - Specified by:
findByNamein interfaceTaskDAO
-
findById
-
findByDelegate
- Specified by:
findByDelegatein interfaceTaskDAO
-
findByReconFilterBuilder
- Specified by:
findByReconFilterBuilderin interfaceTaskDAO
-
findByInboundActions
- Specified by:
findByInboundActionsin interfaceTaskDAO
-
findByPushActions
- Specified by:
findByPushActionsin interfaceTaskDAO
-
findByRealm
- Specified by:
findByRealmin interfaceTaskDAO
-
findByCommand
- Specified by:
findByCommandin interfaceTaskDAO
-
buildFindAllQuery
-
countToExec
- Specified by:
countToExecin interfaceTaskDAO
-
toOrderByStatement
-
findToExec
public <T extends Task<T>> List<T> findToExec(TaskType type, org.springframework.data.domain.Pageable pageable) - Specified by:
findToExecin interfaceTaskDAO
-
findAll
-
findAll
-
setParameter
-
buildFindAllQuery
protected StringBuilder buildFindAllQuery(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, boolean orderByTaskExecInfo, List<Object> parameters) -
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:
deleteByIdin interfaceDAO<Task<?>>
-
delete
-
deleteAll
-
purgePropagations
public List<PropagationTaskTO> purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) - Specified by:
purgePropagationsin interfaceTaskDAO
-