Class SubscriberDeliveryTransports
java.lang.Object
com.sas.services.information.metadata.SubscriberDeliveryTransports
public class SubscriberDeliveryTransports
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSubscription delivery transport code: EMailstatic final StringSubscription delivery transport code: HTTPstatic final StringSubscription delivery transport code: Nonestatic final StringSubscription delivery transport code: Queuestatic final StringSubscription delivery transport code: WebDAVstatic final intSubscription type: contentstatic final intSubscription type: event -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetDefaultDeliveryTransportCode(int subscriptionType) Gets the code for the default delivery transport for the specified subscription type.static final StringgetDeliveryTransportCode(int subscriptionType, int index) Gets the delivery transport code for the specified subscription type and transport index.static final StringgetDeliveryTransportResource(int subscriptionType, String deliveryTransportCode) Gets a localized string representing the specified delivery transport code for the specified subscription type.static final 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 Details
-
SUBSCRIPTION_TYPE_CONTENT
public static final int SUBSCRIPTION_TYPE_CONTENTSubscription type: content- See Also:
-
SUBSCRIPTION_TYPE_EVENT
public static final int SUBSCRIPTION_TYPE_EVENTSubscription type: event- See Also:
-
DELIVERY_TRANSPORT_CODE_EMAIL
public static final String DELIVERY_TRANSPORT_CODE_EMAILSubscription delivery transport code: EMail- See Also:
-
DELIVERY_TRANSPORT_CODE_HTTP
public static final String DELIVERY_TRANSPORT_CODE_HTTPSubscription delivery transport code: HTTP- See Also:
-
DELIVERY_TRANSPORT_CODE_NONE
public static final String DELIVERY_TRANSPORT_CODE_NONESubscription delivery transport code: None- See Also:
-
DELIVERY_TRANSPORT_CODE_QUEUE
public static final String DELIVERY_TRANSPORT_CODE_QUEUESubscription delivery transport code: Queue- See Also:
-
DELIVERY_TRANSPORT_CODE_WEBDAV
public static final String DELIVERY_TRANSPORT_CODE_WEBDAVSubscription delivery transport code: WebDAV- See Also:
-
-
Constructor Details
-
SubscriberDeliveryTransports
public SubscriberDeliveryTransports()
-
-
Method Details
-
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 ofSUBSCRIPTION_TYPE_EVENTorSUBSCRIPTION_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 ofSUBSCRIPTION_TYPE_EVENTorSUBSCRIPTION_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 ofSUBSCRIPTION_TYPE_EVENTorSUBSCRIPTION_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 ofSUBSCRIPTION_TYPE_EVENTorSUBSCRIPTION_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.
-