public final void logout ( ) { if ( this . sessionAttributes . containsKey ( UserAttributesSet . CONTEXTMAPKEY ) ) { try { UsageRegistry . store ( ) ; ( ( UserAttributesSet ) this . sessionAttributes . get ( UserAttributesSet . CONTEXTMAPKEY ) ) . storeInDb ( ) ; AccessCache . clean4Person ( Context . getThreadContext ( ) . getPersonId ( ) ) ; } catch ( final EFapsException e ) { EFapsSession . LOG . error ( "Error on logout" , e ) ; } finally { this . sessionAttributes . clear ( ) ; removeAttribute ( EFapsSession . LOGIN_ATTRIBUTE_NAME ) ; invalidate ( ) ; } } closeContext ( ) ; this . userName = null ; }
Logs a user out and stores the UserAttribues in the eFaps database .