1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.util;
1819//standard java stuff20import java.util.Map;
21import java.util.Iterator;
2223/***24 * Defines a standard object configuration25 * A Config provides the parameters passed in the current request as well26 * 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 */31publicinterfaceConfig32 {
3334/***35 Returns the name for this configuration36 */37public String getName();
3839/***40 Sets the name of this configuration41 */42publicvoid setName(String name);
4344/***45 Used to define a Portlet's parameters.46 */47publicvoid setInitParameters( Map init_params );
4849/***50 Used to override Portlet's parameters.51 */52publicvoid addInitParameters( Map init_params );
5354/***55 Retrieves the PortletController parameters56 */57public Map getInitParameters();
5859/***60 Used to define a PortletController's parameter.if value is null, removes61 the key from the stored properties62 */63publicvoid setInitParameter(String name, Object value);
6465/***66 Returns a parameter (or null) that was given the controller.67 */68public String getInitParameter(String name);
6970/***71 Returns a parameter (or defaultValue) that was given the controller.72 */73public String getInitParameter(String name, String defaultValue);
7475/***76 Returns the parameter names of this Config.77 */78public Iterator getInitParameterNames();
7980 }