Class Neo4jTaskDAO
java.lang.Object
org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
org.apache.syncope.core.persistence.neo4j.dao.Neo4jTaskDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Logger
protected final NodeValidator
protected final RealmSearchDAO
protected final RemediationDAO
protected final SecurityProperties
protected final TaskUtilsFactory
Fields inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
neo4jClient, neo4jTemplate
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT
-
Constructor Summary
ConstructorDescriptionNeo4jTaskDAO
(RealmSearchDAO realmSearchDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator) -
Method Summary
Modifier and TypeMethodDescriptionlong
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) static String
execRelationship
(TaskType type) 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) protected StringBuilder
query
(TaskType type, TaskUtils taskUtils, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, Map<String, Object> parameters) <T extends Task<?>>
Tsave
(T task) protected String
toOrderByStatement
(Class<? extends Task<?>> beanClass, Stream<org.springframework.data.domain.Sort.Order> orderByClauses) Methods inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
cascadeDelete, deleteRelationship, findById, findByRelationship, findByRelationship, toList, toOptional
-
Field Details
-
LOG
-
realmSearchDAO
-
remediationDAO
-
taskUtilsFactory
-
securityProperties
-
nodeValidator
-
-
Constructor Details
-
Neo4jTaskDAO
public Neo4jTaskDAO(RealmSearchDAO realmSearchDAO, RemediationDAO remediationDAO, TaskUtilsFactory taskUtilsFactory, SecurityProperties securityProperties, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator)
-
-
Method Details
-
execRelationship
-
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
-
findToExec
- Specified by:
findToExec
in interfaceTaskDAO
-
findAll
-
findAll
-
query
protected StringBuilder query(TaskType type, TaskUtils taskUtils, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, Map<String, Object> parameters) -
count
public long count() -
count
public long count(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey) -
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) -
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
-