/*  Copyright (c) 2000 by Oracle Corporation. All Rights Reserved. */

package oracle.portal.provider.v2;

/**
 * Represents a subscription to the services exposed by a provider.
 */
public class ProviderSubscription 
{
    private String mSubscriptionKey;

    /**
     *  Create a new subscription using the passed subscription Id.
     *  @param subscriberKey identifier representing this portal or 
     *  subscription.<p>
     *  Subscriptions are specified at the provider instance level
     */
    public ProviderSubscription(String subscriptionKey) 
    {
        mSubscriptionKey = subscriptionKey;
    }


    /**
     *  Gets the subscription key  associated with this subscription
     *  @return subscription key for this subscription
     */
    public String getSubscriptionKey()
    {
        return mSubscriptionKey;
    }

    /**
     *  Sets the subscription key.  Used if object created via null 
     *  constructor.
     *  @param subscriptionKey the subscriptionKey
     */
    public void setSubscriptionKey(String subscriptionKey) 
    {
        mSubscriptionKey = subscriptionKey;
    }

}

