-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/DKE-Data/agrirouter-sdk-java …
…into releases/2.x
- Loading branch information
Showing
45 changed files
with
946 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
agrirouter-sdk-java-api/src/main/java/com/dke/data/agrirouter/api/env/Environment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...router-sdk-java-api/src/main/java/com/dke/data/agrirouter/api/service/RequestLogging.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 24 additions & 1 deletion
25
...rc/main/java/com/dke/data/agrirouter/api/service/messaging/http/DeleteMessageService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
package com.dke.data.agrirouter.api.service.messaging.http; | ||
|
||
import com.dke.data.agrirouter.api.dto.onboard.OnboardingResponse; | ||
import com.dke.data.agrirouter.api.messaging.HttpAsyncMessageSendingResult; | ||
import com.dke.data.agrirouter.api.service.parameters.DeleteMessageParameters; | ||
|
||
public interface DeleteMessageService extends MessagingService<DeleteMessageParameters> {} | ||
public interface DeleteMessageService extends MessagingService<DeleteMessageParameters> { | ||
|
||
/** | ||
* Delete all messages in the feed. The function will delete all messages based on the time | ||
* interval of 4 weeks (which is the maximum of time the messages are stored within the | ||
* agrirouter). | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
String sendMessageToDeleteAll(OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* Delete all messages in the feed. The function will delete all messages based on the time | ||
* interval of 4 weeks (which is the maximum of time the messages are stored within the | ||
* agrirouter). | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
HttpAsyncMessageSendingResult sendMessageToDeleteAllAsync(OnboardingResponse onboardingResponse); | ||
} |
38 changes: 37 additions & 1 deletion
38
...rc/main/java/com/dke/data/agrirouter/api/service/messaging/http/ListEndpointsService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,41 @@ | ||
package com.dke.data.agrirouter.api.service.messaging.http; | ||
|
||
import com.dke.data.agrirouter.api.dto.onboard.OnboardingResponse; | ||
import com.dke.data.agrirouter.api.messaging.HttpAsyncMessageSendingResult; | ||
import com.dke.data.agrirouter.api.service.parameters.ListEndpointsParameters; | ||
|
||
public interface ListEndpointsService extends MessagingService<ListEndpointsParameters> {} | ||
public interface ListEndpointsService extends MessagingService<ListEndpointsParameters> { | ||
|
||
/** | ||
* List all endpoints with a route to the dedicated endpoint. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
String sendMessageToListAllWithExistingRoute(OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* List all endpoints for the account, even those that do not have a route. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
String sendMessageToListAll(OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* List all endpoints with a route to the dedicated endpoint. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
HttpAsyncMessageSendingResult sendMessageToListAllWithExistingRouteAsync( | ||
OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* List all endpoints for the account, even those that do not have a route. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
HttpAsyncMessageSendingResult sendMessageToListAllAsync(OnboardingResponse onboardingResponse); | ||
} |
24 changes: 23 additions & 1 deletion
24
...in/java/com/dke/data/agrirouter/api/service/messaging/http/MessageHeaderQueryService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
package com.dke.data.agrirouter.api.service.messaging.http; | ||
|
||
import agrirouter.feed.response.FeedResponse; | ||
import com.dke.data.agrirouter.api.dto.onboard.OnboardingResponse; | ||
import com.dke.data.agrirouter.api.messaging.HttpAsyncMessageSendingResult; | ||
import com.dke.data.agrirouter.api.service.messaging.encoding.MessageDecoder; | ||
import com.dke.data.agrirouter.api.service.parameters.MessageQueryParameters; | ||
|
||
public interface MessageHeaderQueryService | ||
extends MessagingService<MessageQueryParameters>, | ||
MessageDecoder<FeedResponse.HeaderQueryResponse> {} | ||
MessageDecoder<FeedResponse.HeaderQueryResponse> { | ||
|
||
/** | ||
* Query all message headers as default function. The query will be based on a time period since | ||
* message ID filtering or sender filtering can be achieved using the default message sending. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
String sendMessageToQueryAll(OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* Query all message headers as async default function. The query will be based on a time period | ||
* since message ID filtering or sender filtering can be achieved using the default message | ||
* sending. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
HttpAsyncMessageSendingResult sendMessageToQueryAllAsync(OnboardingResponse onboardingResponse); | ||
} |
23 changes: 22 additions & 1 deletion
23
...src/main/java/com/dke/data/agrirouter/api/service/messaging/http/MessageQueryService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
package com.dke.data.agrirouter.api.service.messaging.http; | ||
|
||
import agrirouter.feed.response.FeedResponse; | ||
import com.dke.data.agrirouter.api.dto.onboard.OnboardingResponse; | ||
import com.dke.data.agrirouter.api.messaging.HttpAsyncMessageSendingResult; | ||
import com.dke.data.agrirouter.api.service.messaging.encoding.MessageDecoder; | ||
import com.dke.data.agrirouter.api.service.parameters.MessageQueryParameters; | ||
|
||
public interface MessageQueryService | ||
extends MessagingService<MessageQueryParameters>, | ||
MessageDecoder<FeedResponse.MessageQueryResponse> {} | ||
MessageDecoder<FeedResponse.MessageQueryResponse> { | ||
|
||
/** | ||
* Query all messages as default function. The query will be based on a time period since message | ||
* ID filtering or sender filtering can be achieved using the default message sending. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
String sendMessageToQueryAll(OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* Query all messages as async default function. The query will be based on a time period since | ||
* message ID filtering or sender filtering can be achieved using the default message sending. | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
HttpAsyncMessageSendingResult sendMessageToQueryAllAsync(OnboardingResponse onboardingResponse); | ||
} |
25 changes: 24 additions & 1 deletion
25
...rc/main/java/com/dke/data/agrirouter/api/service/messaging/mqtt/DeleteMessageService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
package com.dke.data.agrirouter.api.service.messaging.mqtt; | ||
|
||
import com.dke.data.agrirouter.api.dto.onboard.OnboardingResponse; | ||
import com.dke.data.agrirouter.api.messaging.MqttAsyncMessageSendingResult; | ||
import com.dke.data.agrirouter.api.service.parameters.DeleteMessageParameters; | ||
|
||
public interface DeleteMessageService extends MessagingService<DeleteMessageParameters> {} | ||
public interface DeleteMessageService extends MessagingService<DeleteMessageParameters> { | ||
|
||
/** | ||
* Delete all messages in the feed. The function will delete all messages based on the time | ||
* interval of 4 weeks (which is the maximum of time the messages are stored within the | ||
* agrirouter). | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
String sendMessageToDeleteAll(OnboardingResponse onboardingResponse); | ||
|
||
/** | ||
* Delete all messages in the feed. The function will delete all messages based on the time | ||
* interval of 4 weeks (which is the maximum of time the messages are stored within the | ||
* agrirouter). | ||
* | ||
* @param onboardingResponse The onboard response for the endpoint. | ||
* @return The message ID. | ||
*/ | ||
MqttAsyncMessageSendingResult sendMessageToDeleteAllAsync(OnboardingResponse onboardingResponse); | ||
} |
Oops, something went wrong.