/** * Removes the specified session from any cache and then permanently deletes the session from the EIS by * delegating to {@link #doDelete}. * * @param session the session to remove from caches and permanently delete from the EIS. */ public void delete(Session session) { uncache(session); doDelete(session); }
/** * Updates the state of the given session to the EIS by first delegating to * {@link #doUpdate(org.apache.shiro.session.Session)}. If the session is a {@link ValidatingSession}, it will * be added to the cache only if it is {@link ValidatingSession#isValid()} and if invalid, will be removed from the * cache. If it is not a {@code ValidatingSession} instance, it will be added to the cache in any event. * * @param session the session object to update in the EIS. * @throws UnknownSessionException if no existing EIS session record exists with the * identifier of {@link Session#getId() session.getId()} */ public void update(Session session) throws UnknownSessionException { doUpdate(session); if (session instanceof ValidatingSession) { if (((ValidatingSession) session).isValid()) { cache(session, session.getId()); } else { uncache(session); } } else { cache(session, session.getId()); } }
/** * Removes the specified session from any cache and then permanently deletes the session from the EIS by * delegating to {@link #doDelete}. * * @param session the session to remove from caches and permanently delete from the EIS. */ public void delete(Session session) { uncache(session); doDelete(session); }
/** * Updates the state of the given session to the EIS by first delegating to * {@link #doUpdate(org.apache.shiro.session.Session)}. If the session is a {@link ValidatingSession}, it will * be added to the cache only if it is {@link ValidatingSession#isValid()} and if invalid, will be removed from the * cache. If it is not a {@code ValidatingSession} instance, it will be added to the cache in any event. * * @param session the session object to update in the EIS. * @throws UnknownSessionException if no existing EIS session record exists with the * identifier of {@link Session#getId() session.getId()} */ public void update(Session session) throws UnknownSessionException { doUpdate(session); if (session instanceof ValidatingSession) { if (((ValidatingSession) session).isValid()) { cache(session, session.getId()); } else { uncache(session); } } else { cache(session, session.getId()); } }
/** * Removes the specified session from any cache and then permanently deletes the session from the EIS by * delegating to {@link #doDelete}. * * @param session the session to remove from caches and permanently delete from the EIS. */ public void delete(Session session) { uncache(session); doDelete(session); }
/** * Updates the state of the given session to the EIS by first delegating to * {@link #doUpdate(org.apache.shiro.session.Session)}. If the session is a {@link ValidatingSession}, it will * be added to the cache only if it is {@link ValidatingSession#isValid()} and if invalid, will be removed from the * cache. If it is not a {@code ValidatingSession} instance, it will be added to the cache in any event. * * @param session the session object to update in the EIS. * @throws UnknownSessionException if no existing EIS session record exists with the * identifier of {@link Session#getId() session.getId()} */ public void update(Session session) throws UnknownSessionException { doUpdate(session); if (session instanceof ValidatingSession) { if (((ValidatingSession) session).isValid()) { cache(session, session.getId()); } else { uncache(session); } } else { cache(session, session.getId()); } }