1 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 33 public class PortletWindowImpl implements PortletWindow { 34 35 private String id; 36 private PortletEntity portletEntity; 37 private String logicName; 38 39 42 public PortletWindowImpl(String id, PortletEntity portletEntity) { 43 this.id = id; 44 this.portletEntity = portletEntity; 45 } 46 47 48 51 public ObjectID getId() { 52 return org.apache.pluto.portalImpl.util.ObjectID.createFromString(id); 53 } 54 55 58 public PortletEntity getPortletEntity() { 59 return portletEntity; 60 } 61 62 public String toString(){ 63 StringBuffer buffer = new StringBuffer (); 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 80 public String getLogicName() { 81 return logicName; 82 } 83 84 87 public void setLogicName(String logicName) { 88 this.logicName = logicName; 89 } 90 } 91 | Popular Tags |