Class AuthorizeAction

java.lang.Object
sk.iway.iwcm.users.AuthorizeAction

public class AuthorizeAction extends Object
Autorizácia registrovaneho navstevnika webu
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    authorize(javax.servlet.http.HttpServletRequest request, Identity user, int user_id)
    autorizovanie pouzivatela + vygenerovanie nahodneho hesla + poslanie emailu
    static boolean
    sendInfoEmail(int userId, String password, Identity approveByUser, javax.servlet.http.HttpServletRequest request)
    Posle email o registracii s menom a heslom
    static boolean
    sendInfoEmail(int userId, Identity approveByUser, javax.servlet.http.HttpServletRequest request)
     
    static String
    updateEmailText(String body, UserDetails uform, String password, javax.servlet.http.HttpServletRequest request)
    Update codes !LOGGED_USER_xxx with special codes like: !LOGGED_USER_PASSWORD! !APPROVER_USER_NAME! !APPROVER_USER_PHONE! !APPROVER_USER_EMAIL! in email text

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthorizeAction

      public AuthorizeAction()
  • Method Details

    • sendInfoEmail

      public static boolean sendInfoEmail(int userId, Identity approveByUser, javax.servlet.http.HttpServletRequest request)
    • sendInfoEmail

      public static boolean sendInfoEmail(int userId, String password, Identity approveByUser, javax.servlet.http.HttpServletRequest request)
      Posle email o registracii s menom a heslom
      Parameters:
      userId -
      password -
      request -
      Returns:
    • updateEmailText

      public static String updateEmailText(String body, UserDetails uform, String password, javax.servlet.http.HttpServletRequest request)
      Update codes !LOGGED_USER_xxx with special codes like: !LOGGED_USER_PASSWORD! !APPROVER_USER_NAME! !APPROVER_USER_PHONE! !APPROVER_USER_EMAIL! in email text
      Parameters:
      body -
      uform -
      password - - user password or null
      request -
      Returns:
    • authorize

      public static void authorize(javax.servlet.http.HttpServletRequest request, Identity user, int user_id)
      autorizovanie pouzivatela + vygenerovanie nahodneho hesla + poslanie emailu
      Parameters:
      request -
      user - - pouzivatel, ktory autorizuje
      user_id - - pouzivatel, ktoreho chceme autorizovat