Class Neo4jTaskDAO
java.lang.Object
org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
org.apache.syncope.core.persistence.neo4j.dao.Neo4jTaskDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Loggerprotected final NodeValidatorprotected final RealmSearchDAOprotected final RemediationDAOprotected final SecurityPropertiesprotected final TaskUtilsFactoryFields inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
neo4jClient, neo4jTemplateFields inherited from interface org.apache.syncope.core.persistence.api.dao.DAO
DEFAULT_SORT -
Constructor Summary
ConstructorsConstructorDescriptionNeo4jTaskDAO(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 TypeMethodDescriptionlongcount()longcount(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey) voidvoidvoiddeleteAll(ExternalResource resource, TaskType type) voiddeleteById(String key) static StringexecRelationship(TaskType type) 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) protected StringBuilderquery(TaskType type, TaskUtils taskUtils, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, Map<String, Object> parameters) <T extends Task<?>>
Tsave(T task) protected StringtoOrderByStatement(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:
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
-
findToExec
- Specified by:
findToExecin 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:
deleteByIdin interfaceDAO<Task<?>>
-
delete
-
deleteAll
-
purgePropagations
public List<PropagationTaskTO> purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) - Specified by:
purgePropagationsin interfaceTaskDAO
-