Examples of logUserActivity()


Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

          HttpSession session = request.getSession(true);
          session.setAttribute(PortalReservedParameters.SESSION_KEY_SUBJECT, subject);
        }
        else
        {
          audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_FAILURE, "ShibbolethFilter");
          request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);
        }
      }
      else
      {
View Full Code Here

Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

        UserContentCacheManager userContentCacheManager = (UserContentCacheManager)cm.getComponent("userContentCacheManager");
        userContentCacheManager.evictUserContentCache(username, session.getId());
        AuditActivity audit = (AuditActivity)cm.getComponent("org.apache.jetspeed.audit.AuditActivity");
        if (audit != null)
        {
            audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "Active Authentication");
        }
       
        response.sendRedirect(response.encodeURL(destination));
    }
View Full Code Here

Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

            success = false;
          }
        }
        if (success)
        {
          audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "ShibbolethFilter");
          PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
              cm.getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
          if (authenticationConfiguration.isCreateNewSessionOnLogin() && httpSession != null && !httpSession.isNew())
          {
            request.getSession().invalidate();
View Full Code Here

Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

          HttpSession session = request.getSession(true);
          session.setAttribute(PortalReservedParameters.SESSION_KEY_SUBJECT, subject);
        }
        else
        {
          audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_FAILURE, "ShibbolethFilter");
          request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);
        }
      }
      else
      {
View Full Code Here

Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

                try{
                  authUser = authProvider.authenticate(username, password)
                }
                catch (SecurityException e)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_FAILURE, "PortalFilter");                   
                    request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);
        }
                if (authUser != null)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "PortalFilter");
View Full Code Here

Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_FAILURE, "PortalFilter");                   
                    request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);
        }
                if (authUser != null)
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "PortalFilter");
                    PortalAuthenticationConfiguration authenticationConfiguration = (PortalAuthenticationConfiguration)
                        cm.getComponent("org.apache.jetspeed.administration.PortalAuthenticationConfiguration");
                    if (authenticationConfiguration.isCreateNewSessionOnLogin() && httpSession != null && !httpSession.isNew())
                    {
                        request.getSession().invalidate();
View Full Code Here

Examples of org.apache.jetspeed.audit.AuditActivity.logUserActivity()

                    session.setAttribute(PortalReservedParameters.SESSION_KEY_SUBJECT, subject);
                    //System.out.println("*** login session = " + session);
                }
                else
                {
                    audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_FAILURE, "PortalFilter");                   
                    request.getSession().setAttribute(LoginConstants.ERRORCODE, LoginConstants.ERROR_INVALID_PASSWORD);                   
                }
            }
            else
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.