public interface BestBetsService
| Modifier and Type | Method and Description |
|---|---|
int |
addBestBet(@NonNull SearchCAConfigurationModel searchConfiguration,
@NonNull BestBetPayloadDTO bestBetPayload)
Adds a best bet entry in saas admin.
|
void |
addBestBets(@NonNull SearchCAConfigurationModel searchConfiguration,
@NonNull List<BestBetPayloadDTO> bestBetPayloadList)
Adds a list of best bet entry in saas admin.
|
void |
deleteBestBet(@NonNull SearchCAConfigurationModel searchConfiguration,
int bestBetId)
Deletes the best bet entry with the specified id.
|
List<BestBetDTO> |
getBestBets(@NonNull SearchCAConfigurationModel searchConfiguration)
Gets the list of all best bets entries.
|
void |
publishBestBetsForProject(@NonNull SearchCAConfigurationModel searchConfiguration,
int projectId)
Published the best bets for the specified project.
|
void |
updateBestBet(@NonNull SearchCAConfigurationModel searchConfiguration,
int bestBetId,
@NonNull BestBetPayloadDTO bestBetPayload)
Updates the best bet entry with the specified id.
|
int addBestBet(@NonNull
@NonNull SearchCAConfigurationModel searchConfiguration,
@NonNull
@NonNull BestBetPayloadDTO bestBetPayload)
searchConfiguration - sling model accessing context aware search configurations (i.e client and index).bestBetPayload - object containing details for the best bet.IllegalArgumentException - exception thrown when blank client argument is passedIllegalStateException - exception thrown when according action is not specifiedBestBetsActionFailedException - exception thrown when the add action has failed or request execution has
failedvoid addBestBets(@NonNull
@NonNull SearchCAConfigurationModel searchConfiguration,
@NonNull
@NonNull List<BestBetPayloadDTO> bestBetPayloadList)
searchConfiguration - sling model accessing context aware search configurations (i.e client and index).bestBetPayloadList - a list of objects containing best bet details.IllegalArgumentException - exception thrown when blank client argument is passedIllegalStateException - exception thrown when according action is not specifiedBestBetsActionFailedException - exception thrown when the add action has failed or request execution has
failedvoid updateBestBet(@NonNull
@NonNull SearchCAConfigurationModel searchConfiguration,
int bestBetId,
@NonNull
@NonNull BestBetPayloadDTO bestBetPayload)
searchConfiguration - sling model accessing context aware search configurations (i.e client and index).bestBetId - id of the best bet that is updated.bestBetPayload - best bet details to be updated.IllegalArgumentException - exception thrown when blank client argument is passedIllegalStateException - exception thrown when according action is not specifiedBestBetsActionFailedException - exception thrown when the update action has failed or request execution has
failedvoid deleteBestBet(@NonNull
@NonNull SearchCAConfigurationModel searchConfiguration,
int bestBetId)
searchConfiguration - sling model accessing context aware search configurations (i.e client and index).bestBetId - the id of the best bet that should be deleted.IllegalArgumentException - exception thrown when blank client argument is passedIllegalStateException - exception thrown when according action is not specifiedBestBetsActionFailedException - exception thrown when the delete action has failed or request execution has
failed.void publishBestBetsForProject(@NonNull
@NonNull SearchCAConfigurationModel searchConfiguration,
int projectId)
searchConfiguration - sling model accessing context aware search configurations (i.e client and index).projectId - id of the project whose best bets should be publishedIllegalArgumentException - exception thrown when blank client argument is passedIllegalStateException - exception thrown when according action is not specifiedBestBetsActionFailedException - exception thrown when the publishing action has failed or request execution
has failedList<BestBetDTO> getBestBets(@NonNull @NonNull SearchCAConfigurationModel searchConfiguration)
searchConfiguration - sling model accessing context aware search configurations (i.e client and index).IllegalArgumentException - exception thrown when blank client argument is passedIllegalStateException - exception thrown when according action is not specifiedBestBetsActionFailedException - exception thrown when the request execution has failed.Copyright © 2023. All rights reserved.