|
|
|
@ -2,35 +2,37 @@ package com.mousetech.gourmetj; |
|
|
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
|
import java.io.UnsupportedEncodingException; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
|
|
import com.mousetech.gourmetj.persistence.model.Recipe; |
|
|
|
|
import com.mousetech.gourmetj.persistence.service.RecipeService; |
|
|
|
|
|
|
|
|
|
import jakarta.annotation.PostConstruct; |
|
|
|
|
import jakarta.enterprise.context.RequestScoped; |
|
|
|
|
import jakarta.faces.event.AjaxBehaviorEvent; |
|
|
|
|
import jakarta.faces.model.DataModel; |
|
|
|
|
import jakarta.faces.model.ListDataModel; |
|
|
|
|
import jakarta.faces.view.ViewScoped; |
|
|
|
|
import jakarta.inject.Inject; |
|
|
|
|
import jakarta.inject.Named; |
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import com.mousetech.gourmetj.persistence.model.Recipe; |
|
|
|
|
import com.mousetech.gourmetj.persistence.service.RecipeService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Main control panel backing bean. |
|
|
|
|
* |
|
|
|
|
* The rare and fabled RequestScope, which is otherwise |
|
|
|
|
* useless 90% of the time. Here we maintain no session |
|
|
|
|
* state. so we can better support the session timeout |
|
|
|
|
* for editing functions. |
|
|
|
|
* |
|
|
|
|
* @author timh |
|
|
|
|
* @since Jun 28, 2012 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
@Named |
|
|
|
|
@ViewScoped |
|
|
|
|
@RequestScoped |
|
|
|
|
public class AdminMainBean implements Serializable { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|