Package sk.iway.iwcm.setup
Class LicenseActionService
java.lang.Object
sk.iway.iwcm.setup.LicenseActionService
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setModel
(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Prepare model attributes, based on input values.static String
updateLicense
(LicenseFormBean licenseForm, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Update WebJET license.
-
Method Details
-
updateLicense
public static String updateLicense(LicenseFormBean licenseForm, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Update WebJET license. License is not checked, but user must give correct login username and password and this user must have ADMIN role.- Parameters:
licenseForm
- - bean oontaining login and licensemodel
-request
-response
-- Returns:
- Throws:
IOException
javax.servlet.ServletException
-
setModel
public static void setModel(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Prepare model attributes, based on input values. Model will be used by page.- Parameters:
model
-request
-response
-
-