@Override public void setAttribute(String name, Object object) { wrapped.setAttribute(name, object); }
@Override public void setAttribute(String key, Object value) { if (mPortletContext != null) { mPortletContext.setAttribute(key, value); } }
/** * @see javax.servlet.ServletContext#setAttribute(String, * Object) */ public void setAttribute(String arg0, Object arg1) { portletContext.setAttribute(arg0, arg1); }
public static void setAttribute(Object context, String key, Object value) { PortletContext portletContext = (PortletContext) context; portletContext.setAttribute(key, value); } }
@Override protected void setAttribute(String key, Object value) { _portletContext.setAttribute(key, value); }
public void setAttribute(String key, Object value) { context.setAttribute(key, value); } };
@Override public void setValue(String name, Object value) { context.setAttribute(name, value); }
public Object setValue(Object obj) { context.setAttribute(key.toString(), obj); return value; } });
public Object setValue(Object obj) { context.setAttribute(key.toString(), obj); return value; } });
/** {@inheritDoc} */ public void putAll(Map<? extends String, ? extends Object> map) { Iterator<? extends String> keys = map.keySet().iterator(); while (keys.hasNext()) { String key = keys.next(); context.setAttribute(key, map.get(key)); } }
public void setAttribute(String name, Object object) { getWrapped().setAttribute(name, object); } }
/** * Internal method to set application-scope parameter namespaced by portlet name. * * @param name * @param value */ private void setBridgeParameter(String name, Object value) { if (null != value) { StringBuilder attributeName = new StringBuilder(Bridge.BRIDGE_PACKAGE_PREFIX); attributeName.append(getPortletName()).append('.').append(name); getPortletContext().setAttribute(attributeName.toString(), value); } }
/** * Start nuxeo command service. * * @param ctx the ctx * @throws Exception the exception */ public static void startNuxeoCommandService(PortletContext ctx) throws Exception { INuxeoService nuxeoService = (INuxeoService)ctx.getAttribute("NuxeoService"); INuxeoCommandService nuxeoCommandService = nuxeoService.startNuxeoCommandService(ctx); ctx.setAttribute("nuxeoCommandService", nuxeoCommandService); }
public Object setValue(Object value) { Object oldValue = getValue(); portletContext.setAttribute(getKey(), value); return oldValue; } }
@Override public Object get(String name, ObjectFactory<?> objectFactory) { Object scopedObject = this.portletContext.getAttribute(name); if (scopedObject == null) { scopedObject = objectFactory.getObject(); this.portletContext.setAttribute(name, scopedObject); } return scopedObject; }
public Object get(String name, ObjectFactory<?> objectFactory) { Object scopedObject = this.portletContext.getAttribute(name); if (scopedObject == null) { scopedObject = objectFactory.getObject(); this.portletContext.setAttribute(name, scopedObject); } return scopedObject; }
public Map getInitParameterMap() { if (initParameterMap == null) { if ((initParameterMap = (Map) portletContext .getAttribute(INIT_PARAMETER_MAP_ATTRIBUTE)) == null) { initParameterMap = new PortletInitParameterMap(portletContext); portletContext.setAttribute(INIT_PARAMETER_MAP_ATTRIBUTE, initParameterMap); } } return initParameterMap; }
public Object put(Object key, Object value) { if (value == null) { return (remove(key)); } String skey = key(key); Object previous = context.getAttribute(skey); context.setAttribute(skey, value); return (previous); }
/** {@inheritDoc} */ public Object put(String key, Object value) { if (value == null) { return (remove(key)); } String skey = key(key); Object previous = context.getAttribute(skey); context.setAttribute(skey, value); return (previous); }
@Override public BridgeConfig getBridgeConfig(PortletConfig portletConfig) { PortletContext portletContext = portletConfig.getPortletContext(); BridgeConfig bridgeConfig = (BridgeConfig) portletContext.getAttribute(BRIDGE_CONFIG); if (bridgeConfig == null) { bridgeConfig = new BridgeConfigImpl(portletConfig); portletContext.setAttribute(BRIDGE_CONFIG, bridgeConfig); } return bridgeConfig; }