1 33 34 package com.icesoft.faces.context.portlet; 35 36 import com.icesoft.faces.context.AbstractAttributeMap; 37 38 import javax.portlet.PortletContext; 39 import java.util.Enumeration ; 40 41 public class PortletApplicationMap extends AbstractAttributeMap { 42 43 final PortletContext portalContext; 44 45 public PortletApplicationMap(PortletContext portalContext) { 46 this.portalContext = portalContext; 47 } 48 49 52 protected Object getAttribute(String key) { 53 return portalContext.getAttribute(key); 54 } 55 56 59 protected void setAttribute(String key, Object value) { 60 portalContext.setAttribute(key, value); 61 } 62 63 66 protected void removeAttribute(String key) { 67 portalContext.removeAttribute(key); 68 } 69 70 73 protected Enumeration getAttributeNames() { 74 return portalContext.getAttributeNames(); 75 } 76 77 } 78 | Popular Tags |