KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > deliver > portal > om > PortletWindowImpl


1 /* ===============================================================================
2 *
3 * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4 *
5 * ===============================================================================
6 *
7 * Copyright (C)
8 *
9 * This program is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License version 2, as published by the
11 * Free Software Foundation. See the file LICENSE.html for more information.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19 * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20 *
21 * ===============================================================================
22 */

23 package org.infoglue.deliver.portal.om;
24
25 import org.apache.pluto.om.common.ObjectID;
26 import org.apache.pluto.om.entity.PortletEntity;
27 import org.apache.pluto.om.window.PortletWindow;
28
29 /**
30  * @author jand
31  *
32  */

33 public class PortletWindowImpl implements PortletWindow {
34
35     private String JavaDoc id;
36     private PortletEntity portletEntity;
37     private String JavaDoc logicName;
38     
39     /**
40      *
41      */

42     public PortletWindowImpl(String JavaDoc id, PortletEntity portletEntity) {
43         this.id = id;
44         this.portletEntity = portletEntity;
45     }
46     
47     
48     /* (non-Javadoc)
49      * @see org.apache.pluto.om.window.PortletWindow#getId()
50      */

51     public ObjectID getId() {
52         return org.apache.pluto.portalImpl.util.ObjectID.createFromString(id);
53     }
54
55     /* (non-Javadoc)
56      * @see org.apache.pluto.om.window.PortletWindow#getPortletEntity()
57      */

58     public PortletEntity getPortletEntity() {
59         return portletEntity;
60     }
61
62     public String JavaDoc toString(){
63         StringBuffer JavaDoc buffer = new StringBuffer JavaDoc();
64         buffer.append("PortletWindowImpl[ id:");
65         buffer.append(this.id.toString());
66         buffer.append(" portletEntity.id:");
67         buffer.append(this.portletEntity.getId());
68         buffer.append("]");
69         
70         return buffer.toString();
71     }
72
73     public void setPortletEntity(PortletEntity entity) {
74         this.portletEntity = entity;
75     }
76
77     /**
78      * @return Returns the logicName.
79      */

80     public String JavaDoc getLogicName() {
81         return logicName;
82     }
83     
84     /**
85      * @param logicName The logicName to set.
86      */

87     public void setLogicName(String JavaDoc logicName) {
88         this.logicName = logicName;
89     }
90 }
91
Popular Tags