Oracle Beehive
  Oracle® Beehive RESTful Web Services API Reference
  Release 2 (2.0.1.7)
  E16658-04

Contents

Overview

A DiscussionsMessageSubscription is a snapshot of concrete Subscription materialized from a generic Subscription snapshot.

DiscussionsMessageSubscription can be retrieved by calling getMaterializedSubscription from a Subscription instance.

DiscussionsMessageSubscription can be created by specifying SubscriptionTriggerType to describe what kind of content operation(s) the subscription is listening to.

SubscriptionTriggerType.ANY_CREATED_IN_ATTACHED_CONTAINER : for any DiscussionsMessage created or moved into (or under a sub-Topic of) a given Topic container that subscription is attached to.

SubscriptionTriggerType.ANY_UPDATED_IN_ATTACHED_CONTAINER : for any DiscussionsMessage updated in (or under a sub-Topic of) a given Topic container that subscription is attached to.

SubscriptionTriggerType.ANY_DELETED_IN_ATTACHED_CONTAINER : for any DiscussionsMessage deleted in (or under a sub-Topic of) a given Topic container that subscription is attached to.

Members

Name Type Description

actions

discussionsMessageSubscriptionAction[]

List of DiscussionsMessageSubscriptionAction for the DiscussionsMessageSubscription

conditions

discussionsMessageSubscriptionCondition[]

List of DiscussionsMessageSubscriptionCondition for the DiscussionsMessageSubscription

triggerType

subscriptionTriggerType

Operation type on the attached Topic container or DiscussionsMessage instance the subscription is listening to. For any DiscussionsMessage under a Topic container, the trigger types include: ANY_CREATED_IN_ATTACHED_CONTAINER, ANY_UPDATED_IN_ATTACHED_CONTAINER, ANY_DELETED_IN_ATTACHED_CONTAINER For DiscussionsMessage instance itself, the trigger types include: UPDATED_ON_ATTACHED_INSTANCE, DELETED_ON_ATTACHED_INSTANCE

Hierarchy

Inherits From

Examples

Below are examples in JSON and XML formats. All examples are shown with all inherited members. Quoting when required is part of the examples, but you must obviously populate with your own data.

XML Example

(show inherited members)

<obh:discussionsMessageSubscription xsi:type="obh:discussionsMessageSubscription" xmlns:obh="http://www.oracle.com/beehive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <obh:actions>your_discussionsMessageSubscriptionAction_0</obh:actions>
        <obh:actions>your_discussionsMessageSubscriptionAction_1</obh:actions>
        <obh:actions>your_discussionsMessageSubscriptionAction_2</obh:actions>
        <obh:conditions>your_discussionsMessageSubscriptionCondition_0</obh:conditions>
        <obh:conditions>your_discussionsMessageSubscriptionCondition_1</obh:conditions>
        <obh:conditions>your_discussionsMessageSubscriptionCondition_2</obh:conditions>
        <obh:triggerType>your_subscriptionTriggerType_0</obh:triggerType>
</obh:discussionsMessageSubscription>

JSON Example

(show inherited members)

{
    "beeType":"discussionsMessageSubscription",
        "actions":[
            { your_{http://www.oracle.com/beehive}actions_as_discussionsMessageSubscriptionAction0 },
            { your_{http://www.oracle.com/beehive}actions_as_discussionsMessageSubscriptionAction1 },
            { your_{http://www.oracle.com/beehive}actions_as_discussionsMessageSubscriptionAction2 }
        ],
        "conditions":[
            { your_{http://www.oracle.com/beehive}conditions_as_discussionsMessageSubscriptionCondition0 },
            { your_{http://www.oracle.com/beehive}conditions_as_discussionsMessageSubscriptionCondition1 },
            { your_{http://www.oracle.com/beehive}conditions_as_discussionsMessageSubscriptionCondition2 }
        ],
        "triggerType":{ your_{http://www.oracle.com/beehive}triggerType_as_subscriptionTriggerType0 }
}

XML Schema


<xs:complexType name="discussionsMessageSubscription">
    <xs:complexContent>
        <xs:extension base="tns:materializedSubscription">
            <xs:sequence>
                <xs:element maxOccurs="unbounded" minOccurs="0"
                    name="actions" type="tns:discussionsMessageSubscriptionAction"/>
                <xs:element maxOccurs="unbounded" minOccurs="0"
                    name="conditions" type="tns:discussionsMessageSubscriptionCondition"/>
                <xs:element minOccurs="0" name="triggerType" type="tns:subscriptionTriggerType"/>
            </xs:sequence>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

        

References

The following data represents the references to discussionsMessageSubscription

Referenced By Resources

Not Referenced Directly by Resources

Referenced By Representaions

Not Referenced Directly by Representations