KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > pluto > om > PortletApplicationEntityImpl


1 /*
2  * Copyright 2004,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.cocoon.portal.pluto.om;
17
18 import org.apache.pluto.om.common.ObjectID;
19 import org.apache.pluto.om.entity.PortletApplicationEntity;
20 import org.apache.pluto.om.entity.PortletEntityList;
21 import org.apache.pluto.om.portlet.PortletApplicationDefinition;
22
23 /**
24  *
25  *
26  * @author <a HREF="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
27  *
28  * @version CVS $Id: PortletApplicationEntityImpl.java 30932 2004-07-29 17:35:38Z vgritsenko $
29  */

30 public class PortletApplicationEntityImpl
31 implements PortletApplicationEntity {
32
33     protected PortletEntityList portlets = new PortletEntityListImpl();
34
35     protected ObjectID objectId;
36
37     protected PortletApplicationDefinition pd;
38     
39     /**
40      * Constructor
41      */

42     public PortletApplicationEntityImpl(String JavaDoc id, PortletApplicationDefinition pd) {
43         this.objectId = org.apache.cocoon.portal.pluto.om.common.ObjectIDImpl.createFromString(id);
44         this.pd = pd;
45     }
46
47     /* (non-Javadoc)
48      * @see org.apache.pluto.om.entity.PortletApplicationEntity#getId()
49      */

50     public ObjectID getId() {
51         return this.objectId;
52     }
53
54     /* (non-Javadoc)
55      * @see org.apache.pluto.om.entity.PortletApplicationEntity#getPortletEntityList()
56      */

57     public PortletEntityList getPortletEntityList() {
58         return this.portlets;
59     }
60
61     /* (non-Javadoc)
62      * @see org.apache.pluto.om.entity.PortletApplicationEntity#getPortletApplicationDefinition()
63      */

64     public PortletApplicationDefinition getPortletApplicationDefinition() {
65         return this.pd;
66     }
67
68 }
69
Popular Tags