diff --git a/bot-context/bot-context-main/pom.xml b/bot-context/bot-context-main/pom.xml
index 19fc346..593fd4d 100644
--- a/bot-context/bot-context-main/pom.xml
+++ b/bot-context/bot-context-main/pom.xml
@@ -5,7 +5,7 @@
dev.struchkov.godfather
bot-context
- 0.0.27
+ 0.0.29
4.0.0
diff --git a/bot-context/bot-context-quarkus/pom.xml b/bot-context/bot-context-quarkus/pom.xml
index b429ef1..bf17448 100644
--- a/bot-context/bot-context-quarkus/pom.xml
+++ b/bot-context/bot-context-quarkus/pom.xml
@@ -5,7 +5,7 @@
dev.struchkov.godfather
bot-context
- 0.0.27
+ 0.0.29
4.0.0
diff --git a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/PersonSettingService.java b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/PersonSettingService.java
index d979fc4..7dc1df5 100644
--- a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/PersonSettingService.java
+++ b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/PersonSettingService.java
@@ -7,12 +7,12 @@ import java.util.Set;
public interface PersonSettingService {
- Uni> getAllPersonIdDisableMessages(@NotNull Set personIds);
+ Uni> getAllPersonIdDisableMessages(@NotNull Set personIds);
- Uni getStateProcessingByPersonId(@NotNull Long personId);
+ Uni getStateProcessingByPersonId(@NotNull String personId);
- Uni disableMessageProcessing(@NotNull Long personId);
+ Uni disableMessageProcessing(@NotNull String personId);
- Uni enableMessageProcessing(@NotNull Long personId);
+ Uni enableMessageProcessing(@NotNull String personId);
}
diff --git a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Pusher.java b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Pusher.java
index e219865..13cab48 100644
--- a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Pusher.java
+++ b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Pusher.java
@@ -12,6 +12,6 @@ import java.util.Map;
@FunctionalInterface
public interface Pusher {
- Uni push(Long personId, Map saveElement);
+ Uni push(String personId, Map saveElement);
}
diff --git a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Sending.java b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Sending.java
index 8c28e7d..55644d7 100644
--- a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Sending.java
+++ b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/Sending.java
@@ -18,7 +18,7 @@ public interface Sending {
* @param personId Идентификатор пользователя
* @param boxAnswer Объект с данными, которые необходимо отправить
*/
- Uni send(@NotNull Long personId, @NotNull BoxAnswer boxAnswer);
+ Uni send(@NotNull String personId, @NotNull BoxAnswer boxAnswer);
/**
* Возвращает тип объекта отправляющего ответ пользователя. В зависимости от типа ответ будет отправлен с помощью
diff --git a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/UnitPointerService.java b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/UnitPointerService.java
index 9f652b1..461eff3 100644
--- a/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/UnitPointerService.java
+++ b/bot-context/bot-context-quarkus/src/main/java/dev/struchkov/godfather/quarkus/context/service/UnitPointerService.java
@@ -13,8 +13,8 @@ public interface UnitPointerService {
Uni save(@NotNull UnitPointer unitPointer);
- Uni getUnitNameByPersonId(@NotNull Long personId);
+ Uni getUnitNameByPersonId(@NotNull String personId);
- Uni removeByPersonId(@NotNull Long personId);
+ Uni removeByPersonId(@NotNull String personId);
}
diff --git a/bot-context/bot-context-simple/pom.xml b/bot-context/bot-context-simple/pom.xml
index b2457b8..aa998ea 100644
--- a/bot-context/bot-context-simple/pom.xml
+++ b/bot-context/bot-context-simple/pom.xml
@@ -5,7 +5,7 @@
dev.struchkov.godfather
bot-context
- 0.0.27
+ 0.0.29
4.0.0
diff --git a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/PersonSettingService.java b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/PersonSettingService.java
index 887ce55..9831eff 100644
--- a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/PersonSettingService.java
+++ b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/PersonSettingService.java
@@ -7,12 +7,12 @@ import java.util.Set;
public interface PersonSettingService {
- Set getAllPersonIdDisableMessages(@NotNull Set personIds);
+ Set getAllPersonIdDisableMessages(@NotNull Set personIds);
- Optional getStateProcessingByPersonId(@NotNull Long personId);
+ Optional getStateProcessingByPersonId(@NotNull String personId);
- void disableMessageProcessing(@NotNull Long personId);
+ void disableMessageProcessing(@NotNull String personId);
- void enableMessageProcessing(@NotNull Long personId);
+ void enableMessageProcessing(@NotNull String personId);
}
diff --git a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Pusher.java b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Pusher.java
index 590df81..d934f5a 100644
--- a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Pusher.java
+++ b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Pusher.java
@@ -10,6 +10,6 @@ import java.util.Map;
@FunctionalInterface
public interface Pusher {
- void push(Long personId, Map saveElement);
+ void push(String personId, Map saveElement);
}
diff --git a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Sending.java b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Sending.java
index 9113ff1..4871eff 100644
--- a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Sending.java
+++ b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/Sending.java
@@ -17,7 +17,7 @@ public interface Sending {
* @param personId Идентификатор пользователя
* @param boxAnswer Объект с данными, которые необходимо отправить
*/
- void send(@NotNull Long personId, @NotNull BoxAnswer boxAnswer);
+ void send(@NotNull String personId, @NotNull BoxAnswer boxAnswer);
/**
* Возвращает тип объекта отправляющего ответ пользователя. В зависимости от типа ответ будет отправлен с помощью
diff --git a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/UnitPointerService.java b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/UnitPointerService.java
index d21241e..02a55e8 100644
--- a/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/UnitPointerService.java
+++ b/bot-context/bot-context-simple/src/main/java/dev/struchkov/godfather/simple/context/service/UnitPointerService.java
@@ -14,8 +14,8 @@ public interface UnitPointerService {
UnitPointer save(@NotNull UnitPointer unitPointer);
- Optional getUnitNameByPersonId(@NotNull Long personId);
+ Optional getUnitNameByPersonId(@NotNull String personId);
- void removeByPersonId(@NotNull Long personId);
+ void removeByPersonId(@NotNull String personId);
}
diff --git a/bot-context/pom.xml b/bot-context/pom.xml
index 144f5c5..bde8b8b 100644
--- a/bot-context/pom.xml
+++ b/bot-context/pom.xml
@@ -6,7 +6,7 @@
dev.struchkov.godfather
godfather-bot
- 0.0.27
+ 0.0.29
bot-context
diff --git a/bot-core/bot-core-main/pom.xml b/bot-core/bot-core-main/pom.xml
index e1fe13b..f8c3f4b 100644
--- a/bot-core/bot-core-main/pom.xml
+++ b/bot-core/bot-core-main/pom.xml
@@ -5,7 +5,7 @@
dev.struchkov.godfather
bot-core
- 0.0.27
+ 0.0.29
4.0.0
diff --git a/bot-core/bot-core-quarkus/pom.xml b/bot-core/bot-core-quarkus/pom.xml
index 13d0f4c..dc06424 100644
--- a/bot-core/bot-core-quarkus/pom.xml
+++ b/bot-core/bot-core-quarkus/pom.xml
@@ -5,7 +5,7 @@
dev.struchkov.godfather
bot-core
- 0.0.27
+ 0.0.29
4.0.0
diff --git a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java
index 7f98eb8..ad9ba80 100644
--- a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java
+++ b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/GeneralAutoResponder.java
@@ -108,7 +108,7 @@ public class GeneralAutoResponder {
messages -> {
if (checkEmpty(newMessages)) return Uni.createFrom().voidItem();
- final Set personIds = newMessages.stream()
+ final Set personIds = newMessages.stream()
.map(Message::getPersonId)
.collect(Collectors.toSet());
return personSettingService.getAllPersonIdDisableMessages(personIds)
diff --git a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java
index 996c7e3..8129ce7 100644
--- a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java
+++ b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/action/AnswerSaveAction.java
@@ -25,7 +25,7 @@ public class AnswerSaveAction implements ActionUnit preservable = answerSave.getPreservable();
- final Long personId = message.getPersonId();
+ final String personId = message.getPersonId();
final CheckSave checkSave = answerSave.getCheckSave();
if (checkNotNull(checkSave)) {
diff --git a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/PersonSettingServiceImpl.java b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/PersonSettingServiceImpl.java
index 3ca3572..1af2fb6 100644
--- a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/PersonSettingServiceImpl.java
+++ b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/PersonSettingServiceImpl.java
@@ -17,24 +17,24 @@ public class PersonSettingServiceImpl implements PersonSettingService {
}
@Override
- public Uni> getAllPersonIdDisableMessages(@NotNull Set personIds) {
+ public Uni> getAllPersonIdDisableMessages(@NotNull Set personIds) {
Inspector.isNotNull(personIds);
return personSettingRepository.findAllByAllowedProcessing(personIds);
}
@Override
- public Uni getStateProcessingByPersonId(@NotNull Long personId) {
+ public Uni getStateProcessingByPersonId(@NotNull String personId) {
return personSettingRepository.findStateByPersonId(personId);
}
@Override
- public Uni disableMessageProcessing(@NotNull Long personId) {
+ public Uni disableMessageProcessing(@NotNull String personId) {
Inspector.isNotNull(personId);
return personSettingRepository.disableMessageProcessing(personId);
}
@Override
- public Uni enableMessageProcessing(@NotNull Long personId) {
+ public Uni enableMessageProcessing(@NotNull String personId) {
Inspector.isNotNull(personId);
return personSettingRepository.enableMessageProcessing(personId);
}
diff --git a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/StorylineContextMapImpl.java b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/StorylineContextMapImpl.java
index 54585f8..3176ce0 100644
--- a/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/StorylineContextMapImpl.java
+++ b/bot-core/bot-core-quarkus/src/main/java/dev/struchkov/godfather/quarkus/core/service/StorylineContextMapImpl.java
@@ -13,15 +13,15 @@ import static dev.struchkov.haiti.utils.Inspector.isNotNull;
public class StorylineContextMapImpl implements StorylineContext {
- private final Map> map = new HashMap<>();
+ private final Map> map = new HashMap<>();
- public Uni save(@NotNull Long personId, @NotNull ContextKey> key, Object objectForSave) {
+ public Uni save(@NotNull String personId, @NotNull ContextKey> key, Object objectForSave) {
isNotNull(personId, key);
map.computeIfAbsent(personId, k -> new HashMap<>()).put(key.getValue(), objectForSave);
return Uni.createFrom().voidItem();
}
- public Uni getByKey(@NotNull Long personId, @NotNull ContextKey key) {
+ public Uni getByKey(@NotNull String personId, @NotNull ContextKey key) {
isNotNull(personId, key);
if (map.containsKey(personId)) {
final Map storage = map.get(personId);
@@ -34,23 +34,23 @@ public class StorylineContextMapImpl implements StorylineContext {
}
@Override
- public Uni getByKeyOrThrow(@NotNull Long personId, @NotNull ContextKey key) {
+ public Uni getByKeyOrThrow(@NotNull String personId, @NotNull ContextKey key) {
return getByKey(personId, key)
.onItem().ifNull().failWith(notFoundException("Не найдено значение ключа {0}, для пользователя {1}", key.getValue(), personId));
}
- public Uni