private User loggedInUser;
/**
- * EJB for user-login
+ * User controller
*/
- private UserLoginSessionBeanRemote loginBean;
+ @Inject
+ private JobsUserWebSessionController userController;
/**
- * Event fired when user has logged in
+ * Event being fired when user logs in
*/
@Inject
@Any
private Event<UserLoggedInEvent> loginEvent;
/**
- * Template type for pages that might be displayed in guest area and login
- * area. Default is guest area.
- */
- private String templateType = "guest"; //NOI18N
-
- /**
- * User controller
+ * EJB for user-login
*/
- @Inject
- private JobsUserWebSessionController userController;
+ private UserLoginSessionBeanRemote userLoginBean;
/**
* Flag whether the user has logged-in, set only from inside
Context context = new InitialContext();
// Try to lookup
- this.loginBean = (UserLoginSessionBeanRemote) context.lookup("java:global/jjobs-ejb/login!org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote"); //NOI18N
+ this.userLoginBean = (UserLoginSessionBeanRemote) context.lookup("java:global/jjobs-ejb/login!org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote"); //NOI18N
// Also find this
this.userPasswordHistoryBean = (UserPasswordHistorySessionBeanRemote) context.lookup(""); //NOI18N
try {
// Call bean
- User confirmedUser = this.loginBean.validateUserAccountStatus(container);
+ User confirmedUser = this.userLoginBean.validateUserAccountStatus(container);
// All fine here so set it here
this.setLoggedInUser(confirmedUser);
// Trace message
// NOISY-DEBUG System.out.println(MessageFormat.format("JobsUserLoginWebSessionBean:isUserLoggedIn: this.userLoggedIn={0} - EXIT!", this.userLoggedIn));
-
// Return it
return this.userLoggedIn;
}