1 16 package org.apache.cocoon.portal.pluto.om; 17 18 import java.util.HashMap ; 19 import java.util.Iterator ; 20 import java.util.Map ; 21 22 import org.apache.pluto.om.common.ObjectID; 23 import org.apache.pluto.om.portlet.PortletApplicationDefinition; 24 import org.apache.pluto.om.portlet.PortletApplicationDefinitionList; 25 26 33 public class PortletApplicationDefinitionListImpl 34 implements PortletApplicationDefinitionList { 35 36 37 protected Map portletApplicationDefinitions; 38 39 public PortletApplicationDefinitionListImpl() { 40 this.portletApplicationDefinitions = new HashMap (); 41 } 42 43 46 public PortletApplicationDefinition get(ObjectID objectId) { 47 return (PortletApplicationDefinition)this.portletApplicationDefinitions.get(objectId); 48 } 49 50 53 public Iterator iterator() { 54 return this.portletApplicationDefinitions.values().iterator(); 55 } 56 57 60 public void add(PortletApplicationDefinition def) { 61 this.portletApplicationDefinitions.put(def.getId(), def); 62 } 63 } 64 | Popular Tags |