From d3c29c42755fb71ffe3f84dfa753647a234a1e64 Mon Sep 17 00:00:00 2001 From: upagge Date: Tue, 28 Apr 2020 03:56:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=20=D0=B2=20?= =?UTF-8?q?=D0=BC=D0=B0=D0=B2=D0=B5=D0=BD=D1=86=D0=B5=D0=BD=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BB=20=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D0=BB=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=BE=D0=B9=20=D1=80?= =?UTF-8?q?=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 100 +++++++++++++++++- .../sadtech/autoresponder/entity/Unit.java | 1 + .../repository/UnitPointerRepository.java | 3 +- .../repository/UnitPointerRepositoryMap.java | 1 + .../service/UnitPointerService.java | 1 - .../service/UnitPointerServiceImpl.java | 1 + .../autoresponder/util/Description.java | 2 + .../sadtech/autoresponder/util/Message.java | 1 + 8 files changed, 107 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index edcb2e4..216dc9b 100644 --- a/pom.xml +++ b/pom.xml @@ -8,6 +8,18 @@ autoresponder 1.8-RELEASE jar + + Abstract Autoresponder + Abstract implementation for processing text requests. + https://github.com/uPagge/autoresponder + + + BSD License + https://github.com/uPagge/autoresponder/blob/master/LICENSE + repo + + + @@ -22,9 +34,17 @@ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + 1.7.26 4.12 + 1.18.6 @@ -43,10 +63,88 @@ org.projectlombok lombok - 1.18.6 + ${lombok.ver} + + scm:git:https://github.com/uPagge/autoresponder.git + https://github.com/uPagge/autoresponder + scm:git:https://github.com/uPagge/autoresponder.git + + + + + release + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + + + uPagge diff --git a/src/main/java/org/sadtech/autoresponder/entity/Unit.java b/src/main/java/org/sadtech/autoresponder/entity/Unit.java index cf8900e..fffbb84 100644 --- a/src/main/java/org/sadtech/autoresponder/entity/Unit.java +++ b/src/main/java/org/sadtech/autoresponder/entity/Unit.java @@ -52,4 +52,5 @@ public abstract class Unit { this.priority = Optional.ofNullable(priority).orElse(10); this.nextUnits = nextUnits; } + } diff --git a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java index 477ef62..68a31d4 100644 --- a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java +++ b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java @@ -1,6 +1,7 @@ package org.sadtech.autoresponder.repository; import lombok.NonNull; +import org.sadtech.autoresponder.entity.Unit; import org.sadtech.autoresponder.entity.UnitPointer; import java.util.Collection; @@ -23,7 +24,7 @@ public interface UnitPointerRepository { /** * @param entityId Идентификатор пользователя - * @return Объект с последним обработанным {@link org.sadtech.autoresponder.entity.Unit} для пользователя + * @return Объект с последним обработанным {@link Unit} для пользователя */ Optional findByEntityId(@NonNull Long entityId); diff --git a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java index 6a97bd1..1d61a81 100644 --- a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java +++ b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java @@ -42,4 +42,5 @@ public class UnitPointerRepositoryMap implements UnitPointerRepository { public Optional findByEntityId(@NonNull Long entityId) { return Optional.ofNullable(unitPointerMap.get(entityId)); } + } diff --git a/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java b/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java index 8cb1bbd..a5f0fe2 100644 --- a/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java +++ b/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java @@ -27,5 +27,4 @@ public interface UnitPointerService { void edit(@NonNull Long entityId, Unit unit); - } diff --git a/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java b/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java index 996d28b..30f7fad 100644 --- a/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java +++ b/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java @@ -37,4 +37,5 @@ public class UnitPointerServiceImpl implements UnitPointerService { public boolean check(@NonNull Long entityId) { return unitPointerRepository.findByEntityId(entityId).isPresent(); } + } diff --git a/src/main/java/org/sadtech/autoresponder/util/Description.java b/src/main/java/org/sadtech/autoresponder/util/Description.java index b5c7642..d374876 100644 --- a/src/main/java/org/sadtech/autoresponder/util/Description.java +++ b/src/main/java/org/sadtech/autoresponder/util/Description.java @@ -13,5 +13,7 @@ import java.lang.annotation.Target; @Target(ElementType.FIELD) @Retention(RetentionPolicy.SOURCE) public @interface Description { + String value() default ""; + } diff --git a/src/main/java/org/sadtech/autoresponder/util/Message.java b/src/main/java/org/sadtech/autoresponder/util/Message.java index 68954b0..28e764b 100644 --- a/src/main/java/org/sadtech/autoresponder/util/Message.java +++ b/src/main/java/org/sadtech/autoresponder/util/Message.java @@ -12,4 +12,5 @@ final class Message { private Message() { throw new IllegalStateException(UTILITY_CLASS); } + }