001: /*
002: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
003: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
004: */
005: package com.sun.portal.desktop.context;
006:
007: import java.util.Iterator;
008: import java.util.List;
009: import java.util.Map;
010:
011: import java.net.URL;
012: import java.net.MalformedURLException;
013:
014: import javax.servlet.http.HttpServletRequest;
015:
016: interface PropertiesContext {
017: public void init(HttpServletRequest req);
018:
019: public void refresh();
020:
021: public String getClassName(String channel);
022:
023: public String getProviderName(String channel);
024:
025: public int getProviderVersion(String channel);
026:
027: public boolean existsChannel(String channel);
028:
029: public void createChannel(String channelName, String providerName);
030:
031: public void createContainer(String channelName, String providerName);
032:
033: public void removeChannel(String channelName);
034:
035: public void copyChannel(String srcName, String dstName);
036:
037: //
038: // properties
039: //
040:
041: public Iterator getNames(String channel);
042:
043: public Object getProperty(String channel, String key);
044:
045: public Object getProperty(String channel, String key, Object def);
046:
047: public void setProperty(String channel, String key, Object val);
048:
049: public String getStringProperty(String channel, String key);
050:
051: public String getStringProperty(String channel, String key,
052: String def);
053:
054: public String getStringProperty(String channel, String key,
055: List pflist);
056:
057: public String getStringProperty(String channel, String key,
058: List pflist, boolean exact);
059:
060: public String getStringProperty(String channel, String key,
061: String def, List pflist);
062:
063: public void setStringProperty(String channel, String key, String val);
064:
065: public void setStringProperty(String channel, String key,
066: String val, List pflist);
067:
068: public Map getCollectionProperty(String channel, String key);
069:
070: public Map getCollectionProperty(String channel, String key,
071: List pflist);
072:
073: public Map getCollectionProperty(String channel, String key, Map def);
074:
075: public Map getCollectionProperty(String channel, String key,
076: Map def, List pflist);
077:
078: public void setCollectionProperty(String channel, String key,
079: Map val);
080:
081: public void setCollectionProperty(String channel, String key,
082: Map val, List pflist);
083:
084: public void setCollectionProperty(String channel, String key,
085: List val);
086:
087: public void setCollectionProperty(String channel, String key,
088: List val, List pflist);
089:
090: public boolean getBooleanProperty(String channel, String key);
091:
092: public boolean getBooleanProperty(String channel, String key,
093: boolean def);
094:
095: public boolean getBooleanProperty(String channel, String key,
096: List pflist);
097:
098: public boolean getBooleanProperty(String channel, String key,
099: boolean def, List pflist);
100:
101: public void setBooleanProperty(String channel, String key,
102: boolean val);
103:
104: public void setBooleanProperty(String channel, String key,
105: boolean val, List pflist);
106:
107: public int getIntegerProperty(String channel, String key);
108:
109: public int getIntegerProperty(String channel, String key, int def);
110:
111: public int getIntegerProperty(String channel, String key,
112: List pflist);
113:
114: public int getIntegerProperty(String channel, String key, int def,
115: List pflist);
116:
117: public void setIntegerProperty(String channel, String key, int val);
118:
119: public void setIntegerProperty(String channel, String key, int val,
120: List pflist);
121:
122: public boolean existsStringProperty(String channel, String name);
123:
124: public boolean existsStringProperty(String channel, String name,
125: List pflist);
126:
127: public boolean existsBooleanProperty(String channel, String name);
128:
129: public boolean existsBooleanProperty(String channel, String name,
130: List pflist);
131:
132: public boolean existsIntegerProperty(String channel, String name);
133:
134: public boolean existsIntegerProperty(String channel, String name,
135: List pflist);
136:
137: public boolean existsCollectionProperty(String channel, String name);
138:
139: public boolean existsCollectionProperty(String channel,
140: String name, List pflist);
141:
142: //
143: // container channel lists
144: //
145:
146: public List getSelectedChannels(String channel);
147:
148: public List getAvailableChannels(String channel);
149:
150: public void setSelectedChannels(String channel, List sel);
151:
152: public void setAvailableChannels(String channel, List avail);
153: }
|