@SessionScoped
public class PizzaUserLoginWebSessionBean extends BasePizzaController implements PizzaUserLoginWebSessionController {
+ /**
+ * Path name for guest base template
+ */
+ private static final String GUEST_BASE_TEMPLATE_NAME = "guest/guest";
+
+ /**
+ * Path name for logged-in user base template
+ */
+ private static final String USER_BASE_TEMPLATE_NAME = "login/user/user";
+
/**
* Serial number
*/
private static final long serialVersionUID = 47_828_986_719_691_592L;
+ /**
+ * Template type for pages that might be displayed in guest area and login
+ * area.
+ */
+ private String baseTemplatePathName;
+
/**
* Current password
*/
@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
*/
}
}
+ @Override
+ public String getBaseTemplatePathName () {
+ return this.baseTemplatePathName;
+ }
+
+ @Override
+ public void setBaseTemplatePathName (final String baseTemplatePathName) {
+ this.baseTemplatePathName = baseTemplatePathName;
+ }
+
@Override
public String getCurrentPassword () {
return this.currentPassword;
this.loggedInUser = loggedInUser;
}
- @Override
- public String getTemplateType () {
- return this.templateType;
- }
-
- @Override
- public void setTemplateType (final String templateType) {
- this.templateType = templateType;
- }
-
@Override
public boolean ifCurrentPasswordMatches () {
// The current password must be set and not empty