NativeSubscriptionManagerGetSubscriptionsWithUserData Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Gets a list of all subscribable categories with information about subscriptions for a specific address.

Namespace: ContentStudio.Document.Subscription
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public string GetSubscriptionsWithUserData(
	ConnectionId connectionId,
	SessionId sessionId,
	SubscriptionType subscriptionType,
	string address,
	SubscriberAddressType addressType


Type: ContentStudioConnectionId
The connection id.
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
Type: ContentStudio.Document.SubscriptionSubscriptionType
Type of subscription to list.
Type: SystemString
The address of the subscriber.
Type: ContentStudio.Document.SubscriptionSubscriberAddressType
Type of address specified in the address parameter.

Return Value

Type: String

Xml which is can be a mixture of the xml returned from GetSubscribableCategories and GetSubscriptionDefinitionByAddress methods.

    <definition identifier="Guid string value"
              categoryid="Integer value"
              name="String value"
              description="String value"
              enabled="Bit value"
              subscriptiontype="Integer value">
        <!-- The subscription element is present when the
            subscriber has a subscription connected to
            this definition; otherwise, the elements is missing.-->
        <subscription subscriptionId="Guid string value"
                      subscriberAddress="String value"
                      subscriptionType="String value"
                      subscriberAddressType="String value"
                      subscriberName="String value"
                      activated="Boolean string value" />
    <!--more definition elements can follow -->
Return Xml syntax
statusInteger: The outcome of the call, always 0
statustextString: the textual outcome of the call, Always "Success"
definitionThis element represents a found category
definition/@identifierGuid: a global unique identifier of this data. This value can be used by external applications to connect a subscriber repository to a category
definition/@categoryidInteger: the Content Studio identifier of this category
definition/@nameString: the name of the category
definition/@descriptionString: a description of the category.
definition/@enabledBit: indicates whether this subscription is enabled.
definition/@subscriptiontypeInteger: the integer representation of the type of subscription.
definition/subscriptionThis element represents the subscription for the specific user on the found definition.
definition/subscription/@subscriptionIdGuid: a global unique identifier of a single subscription.
definition/subscription/@subscriberAddressString. The address of the subscription found.
definition/subscription/@subscriptionTypeString. The type of subscription. The value is the string representation one of the members of the SubscriptionType enumeration.
definition/subscription/@subscriberAddressTypeString. The type of address. The value is the string representation one of the members of the SubscriberAddressType enumeration.
definition/subscription/@subscriberNameString. The name of the subscriber of the subscription found.
definition/subscription/@activatedBoolean string; True or False. Defines whether this subscription is activated.

Note that the subscription sub-node is only present when the subscriber has a subscription on the returned definition.


GetSubscriptionsWithUserData can be used when building a "My existing and possible subscriptions" application.

This method combines the result from the GetSubscribableCategories and GetSubscriptionDefinitionByAddress methods. All found items from GetSubscriptionDefinitionByAddress are kept while any duplicates are removed from GetSubscribableCategories. The documents are joined together and sorted by name.

See Also