public Map<String, Object> getAttributes(int scope) { switch (scope) { case DESKTOP_SCOPE: if (_desktop != null) return _desktop.getAttributes(); break; case SESSION_SCOPE: if (_desktop != null) return _desktop.getSession().getAttributes(); break; case APPLICATION_SCOPE: if (_desktop != null) return _desktop.getWebApp().getAttributes(); case PAGE_SCOPE: return _attrs.getAttributes(); case REQUEST_SCOPE: final Execution exec = getExecution(); if (exec != null) return exec.getAttributes(); } return Collections.emptyMap(); }
case SESSION_SCOPE: if (_page != null) return _page.getDesktop().getSession().getAttributes(); return Collections.emptyMap(); case APPLICATION_SCOPE:
return sess != null ? sess.getAttributes() : Collections.EMPTY_MAP;
return self; if ("sessionScope".equals(name)) return _exec.getDesktop().getSession().getAttributes(); if ("session".equals(name)) return _exec.getDesktop().getSession();