View Javadoc

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;
20  import java.util.ArrayList;
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
31  {
32      protected Collection forwards = new ArrayList();
33      protected Collection portletForwards = new ArrayList();
34  
35      public int getForwardsCount()
36      {
37          return this.forwards.size();
38      }
39  
40      public void setForwards(Collection forwards)
41      {
42          this.forwards = forwards;
43      }
44  
45      public Collection 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 portletForwards)
56      {
57          this.portletForwards = portletForwards;
58      }
59  
60      public Collection getPortletForwards()
61      {
62          return this.portletForwards;
63      }
64  
65  }
66