1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.util;
18
19
20 import java.util.Map;
21 import java.util.Iterator;
22
23 /***
24 * Defines a standard object configuration
25 * A Config provides the parameters passed in the current request as well
26 * as init parameters.
27 *
28 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>
29 * @version $Id: Config.java,v 1.10 2004/02/23 03:23:42 jford Exp $
30 */
31 public interface Config
32 {
33
34 /***
35 Returns the name for this configuration
36 */
37 public String getName();
38
39 /***
40 Sets the name of this configuration
41 */
42 public void setName(String name);
43
44 /***
45 Used to define a Portlet's parameters.
46 */
47 public void setInitParameters( Map init_params );
48
49 /***
50 Used to override Portlet's parameters.
51 */
52 public void addInitParameters( Map init_params );
53
54 /***
55 Retrieves the PortletController parameters
56 */
57 public Map getInitParameters();
58
59 /***
60 Used to define a PortletController's parameter.if value is null, removes
61 the key from the stored properties
62 */
63 public void setInitParameter(String name, Object value);
64
65 /***
66 Returns a parameter (or null) that was given the controller.
67 */
68 public String getInitParameter(String name);
69
70 /***
71 Returns a parameter (or defaultValue) that was given the controller.
72 */
73 public String getInitParameter(String name, String defaultValue);
74
75 /***
76 Returns the parameter names of this Config.
77 */
78 public Iterator getInitParameterNames();
79
80 }