|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ploin.web.faces.Base
org.ploin.web.faces.BaseMessages
org.ploin.web.faces.BaseBean
public class BaseBean
The BaseBean should extend all your ManagedBeans or your own BaseBean.
$HeadURL: https://ploinscm.de/svn/ploinFaces/trunk/src/main/java/org/ploin/web/faces/BaseBean.java $
| Constructor Summary | |
|---|---|
BaseBean()
|
|
| Method Summary | |
|---|---|
static Map |
getApplicationMap()
This method rerturns the ApplicationMap, containing some parameters. |
javax.faces.lifecycle.Lifecycle |
getCurrentDefaultLifecycleInstance()
Returns the current LifecycleInstance of the Application. |
static Integer |
getCurrentPhaseId()
Returns the current PhaseId as Integer. |
static String |
getFromViewId()
Return the viewId from where the request is comming. |
protected Integer |
getIntegerFromRequestMap(String key)
This method looks for a value in the requestMap with the given key, convert it to Integer and return the Integer value. |
static Long |
getLifecycleId()
Return the lifecycleId, which is generated by ploinFaces. |
protected Long |
getLongFromRequestMap(String key)
This method looks for a value in the requestMap with the given key, convert it to Long and return the Long value. |
static javax.servlet.http.HttpServletRequest |
getRequest()
This methode returns the HttpServlet Object |
static Map<String,String> |
getRequestMap()
Returns the Parameter-Map from the Request. |
static javax.servlet.http.HttpServletResponse |
getResponse()
This methode returns the HttpServlet Response |
static javax.servlet.http.HttpSession |
getSession()
This methode returns the HttpSession object |
protected String |
getStringFromRequestMap(String key)
This method looks for a value in the requestMap with the given key, and return the String value. |
static Object |
getValueFromApplicationMap(Object key)
This method fetch a value from the ApplicationMap with the given key. |
boolean |
removeFlow(String flowId)
removes all attributes/ManagedBeans containing to the flow from the session |
void |
setLifecycle(javax.faces.lifecycle.Lifecycle lifecycle)
Set the lifecycle. |
| Methods inherited from class org.ploin.web.faces.Base |
|---|
getApplication, getFacesContext, getLocale, getResourceBundle, getViewRoot, getViewRootId, setLocale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseBean()
| Method Detail |
|---|
public static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpSession getSession()
public static javax.servlet.http.HttpServletResponse getResponse()
public static Map getApplicationMap()
public static Object getValueFromApplicationMap(Object key)
key - - the selected key
public static Map<String,String> getRequestMap()
protected Long getLongFromRequestMap(String key)
key - - the key for the requestMap
protected Integer getIntegerFromRequestMap(String key)
key - - the key for the requestMap
protected String getStringFromRequestMap(String key)
key - - the key for the requestMap
public javax.faces.lifecycle.Lifecycle getCurrentDefaultLifecycleInstance()
public static Integer getCurrentPhaseId()
public static String getFromViewId()
public static Long getLifecycleId()
public void setLifecycle(javax.faces.lifecycle.Lifecycle lifecycle)
lifecycle - instancepublic boolean removeFlow(String flowId)
flowId - - the name of a flow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||