@Override public void logout() { identity.logout(); RpcContext.getHttpSession().invalidate(); }
@Override public void logout() { identity.logout(); RpcContext.getHttpSession().invalidate(); }
@PostConstruct protected void init() { // By default, enable the register of data set definitions stored into the deployment folder. ServletContext servletContext = RpcContext.getHttpSession().getServletContext(); if (!dataSetDefDeployer.isRunning() && servletContext != null) { String dir = servletContext.getRealPath("WEB-INF/datasets"); if (dir != null && new File(dir).exists()) { dir = dir.replaceAll("\\\\", "/"); dataSetDefDeployer.deploy(dir); } } }
@PostConstruct protected void init() { // By default, enable the register of data set definitions stored into the deployment folder. ServletContext servletContext = RpcContext.getHttpSession().getServletContext(); if (!dataSetDefDeployer.isRunning() && servletContext != null) { String dir = servletContext.getRealPath("WEB-INF/datasets"); if (dir != null && new File(dir).exists()) { dir = dir.replaceAll("\\\\", "/"); dataSetDefDeployer.deploy(dir); } } }
@PostConstruct protected void init() { // By default, enable the register of data set definitions stored into the deployment folder. ServletContext servletContext = RpcContext.getHttpSession().getServletContext(); if (!dataSetDefDeployer.isRunning() && servletContext != null) { String dir = servletContext.getRealPath("WEB-INF/datasets"); if (dir != null && new File(dir).exists()) { dir = dir.replaceAll("\\\\", "/"); dataSetDefDeployer.deploy(dir); } } }
@PostConstruct protected void init() { // By default, enable the register of data set definitions stored into the deployment folder. ServletContext servletContext = RpcContext.getHttpSession().getServletContext(); if (!dataSetDefDeployer.isRunning() && servletContext != null) { String dir = servletContext.getRealPath("WEB-INF/datasets"); if (dir != null && new File(dir).exists()) { dir = dir.replaceAll("\\\\", "/"); dataSetDefDeployer.deploy(dir); } } }
/** * Updates the user's session to track all currently held locks so we can * release locks on session expiry. * @param lockInfo the lock to update * @param remove true to remove the lock, false to add it */ private void updateSession(final LockInfo lockInfo, boolean remove) { final HttpSession session = RpcContext.getHttpSession(); @SuppressWarnings("unchecked") Set<LockInfo> locks = (Set<LockInfo>) session.getAttribute(LOCK_SESSION_ATTRIBUTE_NAME); if (remove) { if (locks != null) { locks.remove(lockInfo); } } else { if (locks == null) { locks = new HashSet<LockInfo>(); } locks.add(lockInfo); session.setAttribute(LOCK_SESSION_ATTRIBUTE_NAME, locks); } }