Class JPATaskDAO
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.JPATaskDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityManagerprotected static final 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) 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) 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)
-
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:
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
-
findToExec
- 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) -
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:
deleteByIdin interfaceDAO<Task<?>>
-
delete
-
deleteAll
-
purgePropagations
public List<PropagationTaskTO> purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) - Specified by:
purgePropagationsin interfaceTaskDAO
-