KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > services > forward > configuration > impl > ForwardsConfigurationImpl


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 at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * 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 and
14  * limitations under the License.
15  */

16
17 package org.apache.jetspeed.services.forward.configuration.impl;
18
19 import java.util.Collection JavaDoc;
20 import java.util.ArrayList JavaDoc;
21
22 import org.apache.jetspeed.services.forward.configuration.ForwardsConfiguration;
23
24 /**
25  * Forwards Configuration Implementation
26  *
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  */

30 public class ForwardsConfigurationImpl implements ForwardsConfiguration, java.io.Serializable JavaDoc
31 {
32     protected Collection JavaDoc forwards = new ArrayList JavaDoc();
33     protected Collection JavaDoc portletForwards = new ArrayList JavaDoc();
34
35     public int getForwardsCount()
36     {
37         return this.forwards.size();
38     }
39
40     public void setForwards(Collection JavaDoc forwards)
41     {
42         this.forwards = forwards;
43     }
44
45     public Collection JavaDoc getForwards()
46     {
47         return this.forwards;
48     }
49
50     public int getPortletForwardsCount()
51     {
52         return this.forwards.size();
53     }
54
55     public void setPortletForwards(Collection JavaDoc portletForwards)
56     {
57         this.portletForwards = portletForwards;
58     }
59
60     public Collection JavaDoc getPortletForwards()
61     {
62         return this.portletForwards;
63     }
64
65 }
66
67
Popular Tags