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.services.forward.configuration.impl;
1819import java.util.Collection;
20import java.util.ArrayList;
2122import org.apache.jetspeed.services.forward.configuration.ForwardsConfiguration;
2324/***25 * Forwards Configuration Implementation26 *27 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>28 * @version $Id: ForwardsConfigurationImpl.java,v 1.2 2004/02/23 03:50:10 jford Exp $29 */30publicclassForwardsConfigurationImpl implements ForwardsConfiguration, java.io.Serializable
31 {
32protected Collection forwards = new ArrayList();
33protected Collection portletForwards = new ArrayList();
3435publicint getForwardsCount()
36 {
37returnthis.forwards.size();
38 }
3940publicvoid setForwards(Collection forwards)
41 {
42this.forwards = forwards;
43 }
4445public Collection getForwards()
46 {
47returnthis.forwards;
48 }
4950publicint getPortletForwardsCount()
51 {
52returnthis.forwards.size();
53 }
5455publicvoid setPortletForwards(Collection portletForwards)
56 {
57this.portletForwards = portletForwards;
58 }
5960public Collection getPortletForwards()
61 {
62returnthis.portletForwards;
63 }
6465 }
66