move class
This commit is contained in:
parent
7cffbef9e2
commit
9380b74f67
@ -1,26 +1,22 @@
|
|||||||
package ru.ulstu.strategy.api;
|
package ru.ulstu.paper.service;
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ru.ulstu.core.util.DateUtils;
|
import ru.ulstu.core.util.DateUtils;
|
||||||
import ru.ulstu.paper.model.Paper;
|
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.model.User;
|
||||||
import ru.ulstu.user.service.UserService;
|
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class PaperCreateStrategy extends EntityCreateStrategy<Paper> {
|
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 static final int DEFAULT_DEADLINE_DAYS = 14;
|
||||||
private final PaperService paperService;
|
private final PaperService paperService;
|
||||||
private final UserService userService;
|
|
||||||
|
|
||||||
public PaperCreateStrategy(PaperService paperService,
|
public PaperCreateStrategy(PaperService paperService) {
|
||||||
UserService userService) {
|
|
||||||
this.paperService = paperService;
|
this.paperService = paperService;
|
||||||
this.userService = userService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
Loading…
Reference in New Issue
Block a user