com.sas.services.information.metadata
Class SubscriberDeliveryTransports

java.lang.Object
  |
  +--com.sas.services.information.metadata.SubscriberDeliveryTransports

public class SubscriberDeliveryTransports
extends Object


Field Summary
static String DELIVERY_TRANSPORT_CODE_EMAIL
          Subscription delivery transport code: EMail
static String DELIVERY_TRANSPORT_CODE_HTTP
          Subscription delivery transport code: HTTP
static String DELIVERY_TRANSPORT_CODE_NONE
          Subscription delivery transport code: None
static String DELIVERY_TRANSPORT_CODE_QUEUE
          Subscription delivery transport code: Queue
static String DELIVERY_TRANSPORT_CODE_WEBDAV
          Subscription delivery transport code: WebDAV
static int SUBSCRIPTION_TYPE_CONTENT
          Subscription type: content
static int SUBSCRIPTION_TYPE_EVENT
          Subscription type: event
 
Constructor Summary
SubscriberDeliveryTransports()
           
 
Method Summary
static String getDefaultDeliveryTransportCode(int subscriptionType)
          Gets the code for the default delivery transport for the specified subscription type.
static String getDeliveryTransportCode(int subscriptionType, int index)
          Gets the delivery transport code for the specified subscription type and transport index.
static String getDeliveryTransportResource(int subscriptionType, String deliveryTransportCode)
          Gets a localized string representing the specified delivery transport code for the specified subscription type.
static String[] getLocalizedDeliveryTransports(int subscriptionType)
          Gets an array of localized strings representing the valid delivery transports for the specified subscription type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBSCRIPTION_TYPE_CONTENT

public static final int SUBSCRIPTION_TYPE_CONTENT
Subscription type: content

SUBSCRIPTION_TYPE_EVENT

public static final int SUBSCRIPTION_TYPE_EVENT
Subscription type: event

DELIVERY_TRANSPORT_CODE_EMAIL

public static final String DELIVERY_TRANSPORT_CODE_EMAIL
Subscription delivery transport code: EMail

DELIVERY_TRANSPORT_CODE_HTTP

public static final String DELIVERY_TRANSPORT_CODE_HTTP
Subscription delivery transport code: HTTP

DELIVERY_TRANSPORT_CODE_NONE

public static final String DELIVERY_TRANSPORT_CODE_NONE
Subscription delivery transport code: None

DELIVERY_TRANSPORT_CODE_QUEUE

public static final String DELIVERY_TRANSPORT_CODE_QUEUE
Subscription delivery transport code: Queue

DELIVERY_TRANSPORT_CODE_WEBDAV

public static final String DELIVERY_TRANSPORT_CODE_WEBDAV
Subscription delivery transport code: WebDAV
Constructor Detail

SubscriberDeliveryTransports

public SubscriberDeliveryTransports()
Method Detail

getLocalizedDeliveryTransports

public static final String[] getLocalizedDeliveryTransports(int subscriptionType)
Gets an array of localized strings representing the valid delivery transports for the specified subscription type.
Parameters:
subscriptionType - The subscription type. One of SUBSCRIPTION_TYPE_EVENT or SUBSCRIPTION_TYPE_CONTENT.
Returns:
Array of localized strings representing the delivery transports.

getDeliveryTransportCode

public static final String getDeliveryTransportCode(int subscriptionType,
                                                    int index)
Gets the delivery transport code for the specified subscription type and transport index.
Parameters:
subscriptionType - The subscription type. One of SUBSCRIPTION_TYPE_EVENT or SUBSCRIPTION_TYPE_CONTENT.
index - Zero-based index to the desired transport type.
Returns:
String Code suitable for use in persisting the delivery transport type preference to the information repository.

getDefaultDeliveryTransportCode

public static final String getDefaultDeliveryTransportCode(int subscriptionType)
Gets the code for the default delivery transport for the specified subscription type.
Parameters:
subscriptionType - The subscription type. One of SUBSCRIPTION_TYPE_EVENT or SUBSCRIPTION_TYPE_CONTENT.
Returns:
String

getDeliveryTransportResource

public static final String getDeliveryTransportResource(int subscriptionType,
                                                        String deliveryTransportCode)
Gets a localized string representing the specified delivery transport code for the specified subscription type.
Parameters:
subscriptionType - The subscription type. One of SUBSCRIPTION_TYPE_EVENT or SUBSCRIPTION_TYPE_CONTENT.
deliveryTransportCode - Code representing a valid delivery transport. Valid delivery transport codes for content subscription delivery are: Valid delivery transport codes for event subscription delivery are:
Returns:
Localized resource suitable for representing the delivery transport in a user interface.




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:59