Skip navigation links
SAP NetWeaver 7.50 SP 13 KMC

Package com.sapportals.wcm.service.ice.subscriber

Represents the syndicator part of the ICE service.

See: Description

Package com.sapportals.wcm.service.ice.subscriber Description

Represents the syndicator part of the ICE service.

Package Specification

The graphic gives an overview of the most important interfaces that are available for the subscriber part of the content exchange service. The central interface for the subscriber is ISubscriberConfig. It stores information about the subscriber and enables access to information about syndicators. As information about syndicators and their offers is an essential prerequisite for setting up subscriptions, an ISubSyndicator object is available to store details about the syndicator and to enable the creation of subscriptions. Individual subscriptions are represented by an ISubSubscription object.

If the name of an interface has the prefix sub, this indicates that it is associated with the subscriber side of the content exchange service. For example ISubSubscription stores information about a subscription which is important from the perspective of the subscriber, whereas ISynSubscription stores information which is important from the perspective of the syndicator.

The class diagram shows the main interfaces related to the subscriber.

The interfaces shown have the following purpose:

In addition to the interfaces for the subscriber summarized above, there are also interfaces to deal with lists of syndicators or subscriptions. For example, ISubSubscriptionList and ISubSubscriptionIterator define methods to deal with lists of subscriptions. ISubSyndicatorList and ISubSyndicatorIterator define methods to deal with lists of syndicators.

Code Samples

// 1: getting the subscriber part
IICEService iceService = (IICEService)ResourceFactory.getInstance().getServiceFactory().getService(IICEService.ICE_SERVICE);
ISubscriberConfig config = iceService.getSubscriberConfig();

// 2: register the syndicator "dpa"
UUID syndicatorUUID = <unique identifier of the syndicator>;
URL url = <URL of the syndicator>;
ISubSyndicator syndicator = config.createSyndicator("dpa", "News Provider", syndicatorUUID, url, resourceContext);

// 3: create a subscription
UUID subscriptionId = <identifier of the subscription>
String offerId = <identifier of the offer to subscribe to>
RID destinationRID = <RID of the collection where to put the content of the subscription>
ISubSubscription subscription =
  syndicator.createSubscription("News Subscription", subscriptionId, String offerId, deliverPolicy, destinationRID, resourceContext);

// NOTE:
// This subscription will be established only locally. The syndicator has to create it on his side, too.
// Use the package com.sapportals.wcm.protocol.ice, if you want to establish a subscription on the syndicator
// over a HTTP connection.

Related Documentation

com.sapportals.wcm.service.ice.syndicator
com.sapportals.wcm.service.ice

Skip navigation links
SAP NetWeaver 7.50 SP 13 KMC

Copyright 2018 SAP AG Complete Copyright Notice