01: package com.sun.portal.subscriptions.providers;
02:
03: import java.util.Hashtable;
04: import java.util.Locale;
05:
06: /**
07: * Description of the Class
08: *
09: * @author pm95875
10: * @created September 15, 2003
11: *
12: * The status of a subscriptions is introduce as a new parameter of a
13: * subscriptions.
14: * The default value will be "on", taking the stand-point that all pre-existing
15: * subscription were visible, and shall remain as is.
16: * This might introduce some rare case of end-user error if the user already
17: * reached the maximum allowed subscriptions pre-upgrade and first op tries to
18: * add a new one after upgrade.
19: */
20: public abstract class Subscription {
21: public static final String UNDEFINED_SUB = null;
22: public static final String CATEGORY_SRCH_SUB = "sunPortalCategorySubscriptions";
23: public static final String DISCUSSION_SRCH_SUB = "sunPortalDiscussionSubscriptions";
24: public static final String SAVED_SRCH_SUB = "sunPortalSavedSearch";
25: public static final String DEFAULT_STATUS = "on";
26:
27: protected String subStr;
28: protected String subType;
29:
30: /**
31: *Constructor for the Subscription object
32: */
33: public Subscription() {
34: subStr = null;
35: subType = UNDEFINED_SUB;
36: }
37:
38: /**
39: *Constructor for the Subscription object
40: */
41: public Subscription(String str) {
42: subStr = str;
43: subType = UNDEFINED_SUB;
44: }
45:
46: public abstract Object parse();
47:
48: public abstract Object execute(String server);
49:
50: public abstract Object execute();
51: }
|