@Override public void removeAttribute(String name, int scope) { wrapped.removeAttribute(name, scope); }
@Override public void removeAttribute(String name) { wrapped.removeAttribute(name); }
@Override public void removeAttribute(String name) { session.removeAttribute(name); }
public void finish(PortletSession portletSession) { portletSession.removeAttribute( PERCENT + _progressId, PortletSession.APPLICATION_SCOPE); }
/** * Removes the object bound with the specified name and the given scope from * this session. If the session does not have an object bound with the * specified name, this method does nothing. * * @param name * the name of the object to be removed from this session * @param scope * session scope of this attribute * * @exception java.lang.IllegalStateException * if this method is called on a session which has been * invalidated * @exception java.lang.IllegalArgumentException * if name is <code>null</code>. * @see PortletSession#removeAttribute(String, int) * @see PortletSession#PORTLET_SCOPE * @see PortletSession#APPLICATION_SCOPE * * @since 7.6 */ public void removeAttribute(String name, int scope) { session.removeAttribute(name, scope); }
public void clearProgress() { _portletSession.removeAttribute(_getPercentAttributeName()); }
public void removeValue(String name) { session.removeAttribute(name); }
/** * @see javax.servlet.http.HttpSession#removeValue(String) * @deprecated */ @Deprecated public void removeValue(final String arg0) { portletSession.removeAttribute(arg0); }
private void cleanUp(PortletRequest request) { PortletSession session = request.getPortletSession(); session.removeAttribute(PermissionsManagerConstants.groupSelectionServantKey); session.removeAttribute(PermissionsManagerConstants.groupSelectionActiveKey); session.removeAttribute(PermissionsManagerConstants.invokeGroupsSelectionKey); groupsManagerServant.reset(request); }
public static void clearDebugOutput(PortletRequest request) { PortletSession pSession = request.getPortletSession(true); pSession.removeAttribute("debug.print"); }
/** {@inheritDoc} */ public void clear() { Iterator<String> keys = keySet().iterator(); while (keys.hasNext()) { session.removeAttribute(keys.next()); } }
/** * Centralizes the calls to session - to clear the BrowserIterator from the * temp storage. * * @param data * The turbine rundata context for this request. * */ protected void clearBrowserIterator(PortletRequest request) { request.getPortletSession().removeAttribute(BROWSER_ACTION_KEY); }
public static final void cancel(PortletRequest request, String messageName) { String key = messageName; request.getPortletSession().removeAttribute(key, PortletSession.PORTLET_SCOPE); }
public void clear() { if (sessionExists()) { Iterator keys = keySet().iterator(); while (keys.hasNext()) { session.removeAttribute((String) keys.next()); } } }
public String actionBeforeView(ActionRequest request, ActionResponse response, MultiPageModel mpm) throws PortletException, IOException { request.getPortletSession(true).removeAttribute(ApacheModel.WEB_APP_SESSION_KEY); return getMode(); }
public static final Object consume(PortletRequest request, String messageName) { String key = messageName; Object object = request.getPortletSession().getAttribute(key, PortletSession.PORTLET_SCOPE); // consume it request.getPortletSession().removeAttribute(key, PortletSession.PORTLET_SCOPE); return object; }
public Object remove(Object key) { if (sessionExists()) { String skey = key(key); Object previous = session.getAttribute(skey); session.removeAttribute(skey); return (previous); } else { return (null); } }
public static final Object consume(PortletRequest request, String portletTopic, String messageName) { String key = portletTopic + ":" + messageName; Object object = request.getPortletSession().getAttribute(key, PortletSession.APPLICATION_SCOPE); // consume it request.getPortletSession().removeAttribute(key, PortletSession.APPLICATION_SCOPE); return object; }
@Override public void render(RenderRequest request, RenderResponse response) throws PortletException, IOException { @SuppressWarnings("unchecked") SoftReference<List<CommonMessage>> msgRef = (SoftReference<List<CommonMessage>>) request.getPortletSession().getAttribute(COMMON_MESSAGES); if (null != msgRef && null != msgRef.get()) { request.setAttribute(COMMON_MESSAGES, msgRef.get()); } request.getPortletSession().removeAttribute(COMMON_MESSAGES); request.setAttribute(FMT_LOCALE, request.getLocale()); super.render(request, response); }
private void checkIfGroupSelectionRequested(PortletRequest request) { PortletSession session = request.getPortletSession(); Boolean invokeGroupSelection = (Boolean)session.getAttribute( PermissionsManagerConstants.invokeGroupsSelectionKey); if (invokeGroupSelection == null) { invokeGroupSelection = Boolean.FALSE; } if (invokeGroupSelection) { session.setAttribute(PermissionsManagerConstants.groupSelectionActiveKey, Boolean.TRUE); session.removeAttribute(PermissionsManagerConstants.invokeGroupsSelectionKey); setServantAttributes(request); } }