move class

This commit is contained in:
Anton Romanov 2018-11-11 12:43:27 +04:00
parent 7cffbef9e2
commit 9380b74f67

View File

@ -1,26 +1,22 @@
package ru.ulstu.strategy.api;
package ru.ulstu.paper.service;
import org.springframework.stereotype.Service;
import ru.ulstu.core.util.DateUtils;
import ru.ulstu.paper.model.Paper;
import ru.ulstu.paper.service.PaperService;
import ru.ulstu.strategy.api.EntityCreateStrategy;
import ru.ulstu.user.model.User;
import ru.ulstu.user.service.UserService;
import java.util.Date;
import java.util.List;
@Service
public class PaperCreateStrategy extends EntityCreateStrategy<Paper> {
private static final String DEFAULT_NAME = "Статья создана автоматически";
private static final String DEFAULT_NAME = "Статья создана автоматически, т.к. у вас не найдено статей";
private static final int DEFAULT_DEADLINE_DAYS = 14;
private final PaperService paperService;
private final UserService userService;
public PaperCreateStrategy(PaperService paperService,
UserService userService) {
public PaperCreateStrategy(PaperService paperService) {
this.paperService = paperService;
this.userService = userService;
}
@Override