1 | /* |
2 | * Copyright 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 | package org.apache.pluto.driver.services.portal; |
17 | |
18 | import java.util.ArrayList; |
19 | import java.util.Collection; |
20 | |
21 | /** |
22 | * @author <a href="ddewolf@apache.org">David H. DeWolf</a> |
23 | */ |
24 | public class PageConfig { |
25 | |
26 | private String name; |
27 | private String uri; |
28 | private Collection portletIds; |
29 | private int orderNumber; |
30 | |
31 | public PageConfig() { |
32 | this.portletIds = new ArrayList(); |
33 | } |
34 | |
35 | public String getName() { |
36 | return name; |
37 | } |
38 | |
39 | public void setName(String name) { |
40 | this.name = name; |
41 | } |
42 | |
43 | public String getUri() { |
44 | return uri; |
45 | } |
46 | |
47 | public void setUri(String uri) { |
48 | this.uri = uri; |
49 | } |
50 | |
51 | public Collection getPortletIds() { |
52 | return portletIds; |
53 | } |
54 | |
55 | public void setPortletIds(Collection ids) { |
56 | this.portletIds = ids; |
57 | } |
58 | |
59 | public void addPortlet(String contextPath, String portletName, String id) { |
60 | // IU_MOD--START |
61 | portletIds.add(PortletWindowConfig.createPortletId(contextPath, portletName, id)); |
62 | } |
63 | |
64 | void setOrderNumber(int number) { |
65 | this.orderNumber = number; |
66 | } |
67 | |
68 | int getOrderNumber() { |
69 | return orderNumber; |
70 | } |
71 | |
72 | |
73 | } |