@ Override public boolean isGuest ( ) { String userName = ( String ) getAttribute ( IPerson . USERNAME ) ; boolean isGuestUsername = PersonFactory . getGuestUsernames ( ) . contains ( userName ) ; boolean isAuthenticated = m_securityContext != null && m_securityContext . isAuthenticated ( ) ; return isGuestUsername && ! isAuthenticated ; }
Determines whether or not this person is a guest user .