Class DefaultBusinessEventSubscriptionService
- All Implemented Interfaces:
BatchService<BusinessEventSubscriptionServiceBatch>,BusinessEventSubscriptionService
This service enables the caller to create a subscription for business events for a given subscriber. A subscription is required to activate the events so they are delivered to the event queue where they can be read. The information sent in the request as a payload is used to maintain a business events subscription, make the appropriate checks for restricted values and authorizations. Once an event subscription is maintained, the system displays a success or failure message in the response. # .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | CA_BEH_SUBSCRIPTION_SRV |
| API Version: | 1.2.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | OpenText Business Event Integration(SAP_COM_0007), Business Event Handling Integration (Obsolete)(SAP_COM_0121) |
| Scope Items: | Business Event Handling(1NN) |
| Authentication Methods: | x509 |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.BusinessEventSubscriptionService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingBusinessEventSubscriptionService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createSubscriptionMaintain(SubscriptionMaintain subscriptionMaintain) Deprecated.Create a newSubscriptionMaintainentity and save it to the S/4HANA system.Deprecated.Fetch multipleSubscriptionMaintainentities.Deprecated.Fetch multipleSubscriptionReadentities.getSubscriptionMaintainByKey(String busEventSubscriberCode, String sAPObjectType, String sAPObjectTaskCode) Deprecated.Fetch a singleSubscriptionMaintainentity using key fields.getSubscriptionReadByKey(String busEventSubscriberCode, String sAPObjectType, String sAPObjectTaskCode) Deprecated.Fetch a singleSubscriptionReadentity using key fields.updateSubscriptionMaintain(SubscriptionMaintain subscriptionMaintain) Deprecated.Update an existingSubscriptionMaintainentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultBusinessEventSubscriptionService
public DefaultBusinessEventSubscriptionService()Deprecated.Creates a service usingBusinessEventSubscriptionService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
@Nonnull public DefaultBusinessEventSubscriptionService withServicePath(@Nonnull String servicePath) Deprecated.Description copied from interface:BusinessEventSubscriptionServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceBusinessEventSubscriptionService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<BusinessEventSubscriptionServiceBatch>
-
getAllSubscriptionMaintain
Deprecated.Description copied from interface:BusinessEventSubscriptionServiceFetch multipleSubscriptionMaintainentities.- Specified by:
getAllSubscriptionMaintainin interfaceBusinessEventSubscriptionService- Returns:
- A fluent helper to fetch multiple
SubscriptionMaintainentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSubscriptionMaintainByKey
@Nonnull public SubscriptionMaintainByKeyFluentHelper getSubscriptionMaintainByKey(String busEventSubscriberCode, String sAPObjectType, String sAPObjectTaskCode) Deprecated.Description copied from interface:BusinessEventSubscriptionServiceFetch a singleSubscriptionMaintainentity using key fields.- Specified by:
getSubscriptionMaintainByKeyin interfaceBusinessEventSubscriptionService- Parameters:
busEventSubscriberCode- Subscriber IDConstraints: Not nullable, Maximum length: 4
sAPObjectType- SAP Object TypeConstraints: Not nullable, Maximum length: 30
sAPObjectTaskCode- SAP Object Task CodeConstraints: Not nullable, Maximum length: 18
- Returns:
- A fluent helper to fetch a single
SubscriptionMaintainentity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
createSubscriptionMaintain
@Nonnull public SubscriptionMaintainCreateFluentHelper createSubscriptionMaintain(@Nonnull SubscriptionMaintain subscriptionMaintain) Deprecated.Description copied from interface:BusinessEventSubscriptionServiceCreate a newSubscriptionMaintainentity and save it to the S/4HANA system.- Specified by:
createSubscriptionMaintainin interfaceBusinessEventSubscriptionService- Parameters:
subscriptionMaintain-SubscriptionMaintainentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
SubscriptionMaintainentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateSubscriptionMaintain
@Nonnull public SubscriptionMaintainUpdateFluentHelper updateSubscriptionMaintain(@Nonnull SubscriptionMaintain subscriptionMaintain) Deprecated.Description copied from interface:BusinessEventSubscriptionServiceUpdate an existingSubscriptionMaintainentity and save it to the S/4HANA system.- Specified by:
updateSubscriptionMaintainin interfaceBusinessEventSubscriptionService- Parameters:
subscriptionMaintain-SubscriptionMaintainentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SubscriptionMaintainentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSubscriptionRead
Deprecated.Description copied from interface:BusinessEventSubscriptionServiceFetch multipleSubscriptionReadentities.- Specified by:
getAllSubscriptionReadin interfaceBusinessEventSubscriptionService- Returns:
- A fluent helper to fetch multiple
SubscriptionReadentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSubscriptionReadByKey
@Nonnull public SubscriptionReadByKeyFluentHelper getSubscriptionReadByKey(String busEventSubscriberCode, String sAPObjectType, String sAPObjectTaskCode) Deprecated.Description copied from interface:BusinessEventSubscriptionServiceFetch a singleSubscriptionReadentity using key fields.- Specified by:
getSubscriptionReadByKeyin interfaceBusinessEventSubscriptionService- Parameters:
busEventSubscriberCode- Subscriber IDConstraints: Not nullable, Maximum length: 4
sAPObjectType- SAP Object TypeConstraints: Not nullable, Maximum length: 30
sAPObjectTaskCode- SAP Object Task CodeConstraints: Not nullable, Maximum length: 18
- Returns:
- A fluent helper to fetch a single
SubscriptionReadentity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-