test_class.declarator: service
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private IdmProcessedTaskItemService service;
test_class.type: IdmProcessedTaskItemService
test_class.var_name: service
test_class.declarator: scheduledTaskService
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private IdmScheduledTaskService scheduledTaskService;
test_class.type: IdmScheduledTaskService
test_class.var_name: scheduledTaskService
test_class.declarator: longrunningService
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private IdmLongRunningTaskService longrunningService;
test_class.type: IdmLongRunningTaskService
test_class.var_name: longrunningService
test_class.file: Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/scheduler/service/impl/DefaultIdmProcessedTaskItemServiceTest.java
test_class.identifier: DefaultIdmProcessedTaskItemServiceTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @Test
  	public void datesFilter(){
  		IdmScheduledTaskDto d = getHelper().createSchedulableTask();
  		IdmProcessedTaskItemDto item = service.saveInternal(getHelper().prepareProcessedItem(d));
  		IdmProcessedTaskItemDto item2 = getHelper().prepareProcessedItem(d);
  		item2.setCreated(item.getCreated());
  		item2 = service.saveInternal(item2);
  		//
  		IdmProcessedTaskItemDto item3 = service.saveInternal(getHelper().prepareProcessedItem(d));
  		//
  		IdmProcessedTaskItemFilter filter = new IdmProcessedTaskItemFilter();
  		filter.setFrom(item.getCreated().truncatedTo(ChronoUnit.MILLIS));
  		Page<IdmProcessedTaskItemDto> result = service.find(filter,null);
  		assertTrue("#1", result.getContent().contains(item));
  		assertTrue("#2", result.getContent().contains(item2));
  		filter.setFrom(null);
  		filter.setTill(item3.getCreated().truncatedTo(ChronoUnit.MILLIS).plus(1, ChronoUnit.MILLIS));
  		result = service.find(filter,null);
  		assertTrue("#4",result.getContent().contains(item3));
  	}
test_case.class_method_signature: DefaultIdmProcessedTaskItemServiceTest.datesFilter()
test_case.full_signature: @Test public void datesFilter()
test_case.identifier: datesFilter
test_case.invocations: createSchedulableTask getHelper saveInternal prepareProcessedItem getHelper prepareProcessedItem getHelper setCreated getCreated saveInternal saveInternal prepareProcessedItem getHelper setFrom truncatedTo getCreated find assertTrue contains getContent assertTrue contains getContent setFrom setTill plus truncatedTo getCreated find assertTrue contains getContent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void datesFilter()
focal_class.declarator: repository
focal_class.modifier: private final
focal_class.original_string: private final IdmProcessedTaskItemRepository repository;
focal_class.type: IdmProcessedTaskItemRepository
focal_class.var_name: repository
focal_class.file: Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/service/impl/DefaultIdmProcessedTaskItemService.java
focal_class.identifier: DefaultIdmProcessedTaskItemService
focal_class.interfaces: implements IdmProcessedTaskItemService
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.DefaultIdmProcessedTaskItemService(IdmProcessedTaskItemRepository repository)
focal_class.full_signature: @Autowired public  DefaultIdmProcessedTaskItemService(IdmProcessedTaskItemRepository repository)
focal_class.identifier: DefaultIdmProcessedTaskItemService
focal_class.modifiers: @Autowired public
focal_class.parameters: (IdmProcessedTaskItemRepository repository)
focal_class.signature:  DefaultIdmProcessedTaskItemService(IdmProcessedTaskItemRepository repository)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.saveInternal(IdmProcessedTaskItemDto dto)
focal_class.full_signature: @Override @Transactional public IdmProcessedTaskItemDto saveInternal(IdmProcessedTaskItemDto dto)
focal_class.identifier: saveInternal
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (IdmProcessedTaskItemDto dto)
focal_class.return: IdmProcessedTaskItemDto
focal_class.signature: IdmProcessedTaskItemDto saveInternal(IdmProcessedTaskItemDto dto)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.getAuthorizableType()
focal_class.full_signature: @Override public AuthorizableType getAuthorizableType()
focal_class.identifier: getAuthorizableType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AuthorizableType
focal_class.signature: AuthorizableType getAuthorizableType()
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.toPredicates(Root<IdmProcessedTaskItem> root, CriteriaQuery<?> query,
  			CriteriaBuilder builder, IdmProcessedTaskItemFilter filter)
focal_class.full_signature: @Override protected List<Predicate> toPredicates(Root<IdmProcessedTaskItem> root, CriteriaQuery<?> query,
  			CriteriaBuilder builder, IdmProcessedTaskItemFilter filter)
focal_class.identifier: toPredicates
focal_class.modifiers: @Override protected
focal_class.parameters: (Root<IdmProcessedTaskItem> root, CriteriaQuery<?> query,
  			CriteriaBuilder builder, IdmProcessedTaskItemFilter filter)
focal_class.return: List<Predicate>
focal_class.signature: List<Predicate> toPredicates(Root<IdmProcessedTaskItem> root, CriteriaQuery<?> query,
  			CriteriaBuilder builder, IdmProcessedTaskItemFilter filter)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.deleteAllByLongRunningTask(IdmLongRunningTaskDto dto)
focal_class.full_signature: @Override @Transactional public void deleteAllByLongRunningTask(IdmLongRunningTaskDto dto)
focal_class.identifier: deleteAllByLongRunningTask
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (IdmLongRunningTaskDto dto)
focal_class.return: void
focal_class.signature: void deleteAllByLongRunningTask(IdmLongRunningTaskDto dto)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.deleteAllByScheduledTask(IdmScheduledTaskDto dto)
focal_class.full_signature: @Override @Transactional public void deleteAllByScheduledTask(IdmScheduledTaskDto dto)
focal_class.identifier: deleteAllByScheduledTask
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (IdmScheduledTaskDto dto)
focal_class.return: void
focal_class.signature: void deleteAllByScheduledTask(IdmScheduledTaskDto dto)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.deleteItem(UUID scheduledTaskId, UUID referencedEntityId)
focal_class.full_signature: @Override @Transactional public void deleteItem(UUID scheduledTaskId, UUID referencedEntityId)
focal_class.identifier: deleteItem
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (UUID scheduledTaskId, UUID referencedEntityId)
focal_class.return: void
focal_class.signature: void deleteItem(UUID scheduledTaskId, UUID referencedEntityId)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.findAllRefEntityIdsInQueueByScheduledTaskId(UUID scheduledTaskId)
focal_class.full_signature: @Override @Transactional(readOnly = true) public List<UUID> findAllRefEntityIdsInQueueByScheduledTaskId(UUID scheduledTaskId)
focal_class.identifier: findAllRefEntityIdsInQueueByScheduledTaskId
focal_class.modifiers: @Override @Transactional(readOnly = true) public
focal_class.parameters: (UUID scheduledTaskId)
focal_class.return: List<UUID>
focal_class.signature: List<UUID> findAllRefEntityIdsInQueueByScheduledTaskId(UUID scheduledTaskId)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.findQueueItems(IdmScheduledTaskDto scheduledTask, Pageable pageable)
focal_class.full_signature: @Override @Transactional(readOnly = true) public Page<IdmProcessedTaskItemDto> findQueueItems(IdmScheduledTaskDto scheduledTask, Pageable pageable)
focal_class.identifier: findQueueItems
focal_class.modifiers: @Override @Transactional(readOnly = true) public
focal_class.parameters: (IdmScheduledTaskDto scheduledTask, Pageable pageable)
focal_class.return: Page<IdmProcessedTaskItemDto>
focal_class.signature: Page<IdmProcessedTaskItemDto> findQueueItems(IdmScheduledTaskDto scheduledTask, Pageable pageable)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.findLogItems(IdmLongRunningTaskDto longRunningTask, Pageable pageable)
focal_class.full_signature: @Override @Transactional(readOnly = true) public Page<IdmProcessedTaskItemDto> findLogItems(IdmLongRunningTaskDto longRunningTask, Pageable pageable)
focal_class.identifier: findLogItems
focal_class.modifiers: @Override @Transactional(readOnly = true) public
focal_class.parameters: (IdmLongRunningTaskDto longRunningTask, Pageable pageable)
focal_class.return: Page<IdmProcessedTaskItemDto>
focal_class.signature: Page<IdmProcessedTaskItemDto> findLogItems(IdmLongRunningTaskDto longRunningTask, Pageable pageable)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.createLogItem(
  			E processedItem, 
  			OperationResult result, 
  			UUID longRunningTaskId)
focal_class.full_signature: @Override @Transactional(propagation = Propagation.REQUIRES_NEW) public IdmProcessedTaskItemDto createLogItem(
  			E processedItem, 
  			OperationResult result, 
  			UUID longRunningTaskId)
focal_class.identifier: createLogItem
focal_class.modifiers: @Override @Transactional(propagation = Propagation.REQUIRES_NEW) public
focal_class.parameters: (
  			E processedItem, 
  			OperationResult result, 
  			UUID longRunningTaskId)
focal_class.return: IdmProcessedTaskItemDto
focal_class.signature: IdmProcessedTaskItemDto createLogItem(
  			E processedItem, 
  			OperationResult result, 
  			UUID longRunningTaskId)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.createQueueItem(E processedItem, OperationResult result, UUID scheduledTaskId)
focal_class.full_signature: @Override @Transactional public IdmProcessedTaskItemDto createQueueItem(E processedItem, OperationResult result, UUID scheduledTaskId)
focal_class.identifier: createQueueItem
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (E processedItem, OperationResult result, UUID scheduledTaskId)
focal_class.return: IdmProcessedTaskItemDto
focal_class.signature: IdmProcessedTaskItemDto createQueueItem(E processedItem, OperationResult result, UUID scheduledTaskId)
focal_class.class_method_signature: DefaultIdmProcessedTaskItemService.createProcessedItemDto(E dto, OperationResult opResult)
focal_class.full_signature: private IdmProcessedTaskItemDto createProcessedItemDto(E dto, OperationResult opResult)
focal_class.identifier: createProcessedItemDto
focal_class.modifiers: private
focal_class.parameters: (E dto, OperationResult opResult)
focal_class.return: IdmProcessedTaskItemDto
focal_class.signature: IdmProcessedTaskItemDto createProcessedItemDto(E dto, OperationResult opResult)
focal_class.superclass: extends AbstractReadWriteDtoService<IdmProcessedTaskItemDto, IdmProcessedTaskItem, IdmProcessedTaskItemFilter>
focal_method.body: @Override
  	@Transactional
  	public IdmProcessedTaskItemDto saveInternal(IdmProcessedTaskItemDto dto) {
  		Assert.notNull(dto, "DTO is required.");
  		//
  		if (dto.getLongRunningTask() != null && dto.getScheduledTaskQueueOwner() != null) {
  			throw new CoreException("Item cannot be in both scheduled task queue and long running task log.");
  		}
  		if (dto.getLongRunningTask() == null && dto.getScheduledTaskQueueOwner() == null) {
  			throw new CoreException("Item must have either queue (IdmScheduledTask) or log (IdmLongRunningTask) association.");
  		}
  		return super.saveInternal(dto);
  	}
focal_method.class_method_signature: DefaultIdmProcessedTaskItemService.saveInternal(IdmProcessedTaskItemDto dto)
focal_method.full_signature: @Override @Transactional public IdmProcessedTaskItemDto saveInternal(IdmProcessedTaskItemDto dto)
focal_method.identifier: saveInternal
focal_method.invocations: notNull getLongRunningTask getScheduledTaskQueueOwner getLongRunningTask getScheduledTaskQueueOwner saveInternal
focal_method.modifiers: @Override @Transactional public
focal_method.parameters: (IdmProcessedTaskItemDto dto)
focal_method.return: IdmProcessedTaskItemDto
focal_method.signature: IdmProcessedTaskItemDto saveInternal(IdmProcessedTaskItemDto dto)