From 9380b74f67fa66ec9a59f07ffa543500b9d0b0f0 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sun, 11 Nov 2018 12:43:27 +0400 Subject: [PATCH] move class --- .../api => paper/service}/PaperCreateStrategy.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) rename src/main/java/ru/ulstu/{strategy/api => paper/service}/PaperCreateStrategy.java (68%) diff --git a/src/main/java/ru/ulstu/strategy/api/PaperCreateStrategy.java b/src/main/java/ru/ulstu/paper/service/PaperCreateStrategy.java similarity index 68% rename from src/main/java/ru/ulstu/strategy/api/PaperCreateStrategy.java rename to src/main/java/ru/ulstu/paper/service/PaperCreateStrategy.java index da457a1..d819d80 100644 --- a/src/main/java/ru/ulstu/strategy/api/PaperCreateStrategy.java +++ b/src/main/java/ru/ulstu/paper/service/PaperCreateStrategy.java @@ -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 { - 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