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.om.registry;
1819/***20 * Interface describing a cached parameter for a registry entry. 21 *22 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>23 * @version $Id: CachedParameter.java,v 1.2 2004/02/23 03:11:39 jford Exp $24 */25publicinterfaceCachedParameterextendsParameter26 {
2728/***29 * Determines whether to use the parameter name as part of the unique id to the portlet cache.30 * This can be used to control the lifetime of the portlet. 31 * The name is used in combination with the URL and parameter values for this portlet32 * to uniquely identify to portlet. 33 * This value can be set in the portlet registry.34 *35 * @return cached set to true if want this portlet to be cached based on the parameter name36 */37publicboolean isCachedOnName();
3839/***40 * Determines whether to use the parameter value as part of the unique id to the portlet cache.41 * This can be used to control the lifetime of the portlet. 42 * The value is used in combination with the URL and parameter names for this portlet43 * to uniquely identify to portlet. 44 * This value can be set in the portlet registry.45 *46 * @return cached set to true if want this portlet to be cached based on the parameter value47 */48publicboolean isCachedOnValue();
4950/***51 * Determines whether to use the parameter name as part of the unique id to the portlet cache.52 * This can be used to control the lifetime of the portlet. 53 * The name is used in combination with the URL and parameter values for this portlet54 * to uniquely identify to portlet. 55 * This value can be set in the portlet registry.56 *57 * @return cached Set to true if want this portlet to be cached based on the parameter name58 */59publicvoid setCachedOnName(boolean cache);
6061/***62 * Determines whether to use the parameter value as part of the unique id to the portlet cache.63 * This can be used to control the lifetime of the portlet. 64 * The value is used in combination with the URL and parameter names for this portlet65 * to uniquely identify to portlet. 66 * This value can be set in the portlet registry.67 *68 *69 * @return cached Set to true if want this portlet to be cached based on the parameter value70 */71publicvoid setCachedOnValue(boolean cache);
7273 }