/** * Sets an attribute in current session. * * @param name * the attribute name * @param value * the attribute value to set * @throws UnifyException * if an error occurs */ protected void setSessionAttribute(String name, Object value) throws UnifyException { unifyComponentContext.getSessionContext().setAttribute(name, value); }
private void broadcast(UserSession userSession, String attribute, Object value) throws UnifyException { if (userSession != null) { if (SessionAttributeConstants.FORCE_LOGOUT.equals(attribute)) { logOut(userSession); } userSession.getSessionContext().setAttribute(attribute, value); } }
private void setRequiredAttributes(SessionContext sessionContext) throws UnifyException { sessionContext.setAttribute(SessionAttributeConstants.UPLCOMPONENT_WRITERS, uplComponentWriterManager.getWriters(sessionContext.getPlatform())); }
@Broadcast @Override public void forceLogOut(String... sessionIds) throws UnifyException { // Force logout specific sessions in this node for (String otherSessionId : sessionIds) { logOut(otherSessionId); UserSession userSession = userSessions.get(otherSessionId); if (userSession != null) { userSession.getSessionContext().setAttribute(SessionAttributeConstants.FORCE_LOGOUT, SessionAttributeValueConstants.FORCE_LOGOUT_NO_MULTIPLE_LOGIN); } } }
page.setSessionId(pathParts.getBeanId()); pageController.setPage(page); sessionContext.setAttribute(pathParts.getBeanId(), controller); } else if (ControllerType.REMOTECALL_CONTROLLER.equals(controller.getType())) { sessionContext.setAttribute(pathParts.getActBeanName(), controller);