Package de.xima.fc.gui.common.utils.msg
Class AJSFContext
- java.lang.Object
-
- de.xima.fc.gui.common.utils.msg.I18nUtils
-
- de.xima.fc.gui.common.utils.msg.MessageUtils
-
- de.xima.fc.gui.common.utils.msg.AMessaging
-
- de.xima.fc.gui.common.utils.msg.AJSFContext
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ABackendJSFContext
,AContextBean
,AppointmentFilterBean
,AppointmentScheduleBean
,CurrentViewBean
,FeedbackBean
,InboxFilterBean
,InboxProfileBean
,LoginBean
,MenuTemplateBean
,MetaFilterBean
,NotificationBean
,ProcessAttachmentBean
,ProcessExportBean
,ProcessHistoryBean
,ProcessMoveBean
,ProcessStateChangeBean
,ProcessViewBean
,ResourceContentBean
,SearchFilterBean
,SessionBean
,SupportBean
,ViewBean
,ViewFilterBean
@Deprecated public abstract class AJSFContext extends AMessaging implements Serializable
Deprecated.Inject beans directly via@Inject
, use helper classes and static methods directly.Stellt globale Funktionalität zur Verfügung- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AJSFContext.RedirectOptions
Deprecated.Additional options forredirect(String, RedirectOptions)
.static class
AJSFContext.RedirectOptionsBuilder
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected LocaleBean
localeBean
Deprecated.
-
Constructor Summary
Constructors Constructor Description AJSFContext()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
destroySessionBean(String name)
Deprecated.String
encodeURL(String url)
Deprecated.static <T> T
findBean(Class<T> beanClass)
static <T> T
findBean(Class<T> beanClass, boolean create)
static <T> T
findBean(Class<T> beanClass, javax.faces.context.FacesContext context)
Deprecated.Finds the given bean in the current scope, creating a new bean instance if it does not exist yet.static <T> T
findBean(Class<T> beanClass, javax.faces.context.FacesContext context, boolean create)
static <T> T
findBean(String beanName, Class<T> beanClass)
static <T> T
findBean(String beanName, Class<T> beanClass, javax.faces.context.FacesContext facesContext)
static <T> T
findBean(String beanName, Class<T> beanClass, javax.faces.context.FacesContext facesContext, boolean create)
IViewModel
findCurrentView()
Deprecated.static UserContext
findUserContext()
Deprecated.protected String
getBeanName(Class<?> beanClass)
Deprecated.UseFacesHelper.getBeanName(Class, Annotation...)
if required.protected String
getBeanName(Object bean)
Deprecated.protected String
getContext()
Deprecated.CurrentViewBean
getCurrentViewBean()
Deprecated.LocaleBean
getLocaleBean()
Deprecated.protected javax.servlet.http.HttpServletRequest
getRequest()
Deprecated.protected javax.servlet.http.HttpServletResponse
getResponse()
Deprecated.javax.servlet.http.HttpSession
getSession()
Deprecated.Methode zum Auslesen derHttpSession
javax.servlet.http.HttpSession
getSession(boolean create)
Deprecated.protected Object
getSessionAttribute(String attribute)
Deprecated.Methode zum Ermitteln eines Session-Attributsstatic boolean
isMasterServerContext()
Deprecated.protected void
loadLazy(Object proxy)
Deprecated.void
redirect(IViewModel view)
Deprecated.void
redirect(IViewModel view, AJSFContext.RedirectOptions options)
Deprecated.Redirects to the given view.void
redirect(String location)
Deprecated.void
redirect(String location, AJSFContext.RedirectOptions options)
Deprecated.Performs a redirect to the given location.void
redirectToDashboard(Benutzer user)
Deprecated.useredirectToDashboard(Mandant, RedirectOptions)
instead.void
redirectToDashboard(Benutzer user, AJSFContext.RedirectOptions options)
Deprecated.useredirectToDashboard(Mandant, RedirectOptions)
instead.void
redirectToDashboard(Mandant client, AJSFContext.RedirectOptions options)
Deprecated.void
setLocaleBean(LocaleBean localeBean)
Deprecated.protected void
setSessionAttribute(String attribute, Object o)
Deprecated.Methode zum Setzen eines Session-AttributsUserContext
uc()
Deprecated.-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
-
-
-
Field Detail
-
localeBean
@Inject protected LocaleBean localeBean
Deprecated.
-
-
Method Detail
-
getLocaleBean
public LocaleBean getLocaleBean()
Deprecated.
-
setLocaleBean
public void setLocaleBean(LocaleBean localeBean)
Deprecated.
-
uc
public UserContext uc()
Deprecated.
-
destroySessionBean
public void destroySessionBean(String name)
Deprecated.
-
loadLazy
protected void loadLazy(Object proxy)
Deprecated.
-
getContext
protected String getContext()
Deprecated.
-
getRequest
protected javax.servlet.http.HttpServletRequest getRequest()
Deprecated.
-
getResponse
protected javax.servlet.http.HttpServletResponse getResponse()
Deprecated.
-
getSession
public javax.servlet.http.HttpSession getSession()
Deprecated.Methode zum Auslesen derHttpSession
- Returns:
HttpSession
-
getSession
public javax.servlet.http.HttpSession getSession(boolean create)
Deprecated.
-
getSessionAttribute
protected Object getSessionAttribute(String attribute)
Deprecated.Methode zum Ermitteln eines Session-Attributs
-
setSessionAttribute
protected void setSessionAttribute(String attribute, Object o)
Deprecated.Methode zum Setzen eines Session-Attributs
-
findUserContext
public static UserContext findUserContext()
Deprecated.
-
findBean
public static <T> T findBean(Class<T> beanClass, javax.faces.context.FacesContext context)
Deprecated.Finds the given bean in the current scope, creating a new bean instance if it does not exist yet.- Type Parameters:
T
- Type of the bean- Parameters:
beanClass
- Class of the beancontext
- The current faces context.- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created..
-
isMasterServerContext
public static boolean isMasterServerContext()
Deprecated.
-
redirect
public void redirect(String location)
Deprecated.
-
redirect
public void redirect(String location, AJSFContext.RedirectOptions options)
Deprecated.Performs a redirect to the given location. Optional settings may be given to add URL parameters etc.- Parameters:
location
- Location to which to redirect. Must be a relative URL without the context path.options
- Optional settings for modifying how the redirect is performed.
-
getCurrentViewBean
@Deprecated public CurrentViewBean getCurrentViewBean()
Deprecated.
-
findCurrentView
@Deprecated public IViewModel findCurrentView()
Deprecated.- Returns:
- The current
EViews
; ornull
if it could not be determined.
-
findBean
@Deprecated public static <T> T findBean(Class<T> beanClass, javax.faces.context.FacesContext context, boolean create)
Deprecated.Finds the given bean in the current scope.- Type Parameters:
T
- Type of the bean- Parameters:
beanClass
- Class of the beancontext
- The current faces context.create
-true
to create the bean if it does not exists yet,false
otherwise.- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created..
-
findBean
@Deprecated public static <T> T findBean(Class<T> beanClass)
Deprecated.Finds the given bean in the current scope, creating a new bean instance if it does not exist yet.- Type Parameters:
T
- Type of the bean- Parameters:
beanClass
- Class of the bean- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created.
-
findBean
@Deprecated public static <T> T findBean(Class<T> beanClass, boolean create)
Deprecated.Finds the given bean in the current scope.- Type Parameters:
T
- Type of the bean- Parameters:
beanClass
- Class of the beancreate
-true
to create the bean if it does not exists yet,false
otherwise.- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created..
-
findBean
@Deprecated public static <T> T findBean(String beanName, Class<T> beanClass)
Deprecated.Finds the given bean in the current scope, creating a new bean instance if it does not exist yet.- Type Parameters:
T
- Type of the bean- Parameters:
beanName
- Name of the beanbeanClass
- Class of the bean- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created..
-
findBean
@Deprecated public static <T> T findBean(String beanName, Class<T> beanClass, javax.faces.context.FacesContext facesContext)
Deprecated.Finds the given bean in the current scope.- Type Parameters:
T
- Type of the bean- Parameters:
beanName
- Name of the beanbeanClass
- Class of the beanfacesContext
- Current faces context- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created..
-
findBean
@Deprecated public static <T> T findBean(String beanName, Class<T> beanClass, javax.faces.context.FacesContext facesContext, boolean create)
Deprecated.Finds the given bean in the current scope, creating a new bean instance if it does not exist yet.- Type Parameters:
T
- Type of the bean- Parameters:
beanName
- Name of the beanbeanClass
- Class of the beanfacesContext
- Current faces contextcreate
-true
to create the bean if it does not exists yet,false
otherwise.- Returns:
- The current instance of the bean, or
null
if the bean does not exist or could not be created..
-
redirectToDashboard
@Deprecated public void redirectToDashboard(Mandant client, AJSFContext.RedirectOptions options)
Deprecated.
-
redirect
@Deprecated public void redirect(IViewModel view)
Deprecated.
-
redirect
@Deprecated public void redirect(IViewModel view, AJSFContext.RedirectOptions options)
Deprecated.Redirects to the given view. Optional settings may be given to add URL parameters etc.- Parameters:
view
- View to which to redirect the user.options
- Optional settings for modifying how the redirect is performed.
-
redirectToDashboard
@Deprecated public void redirectToDashboard(Benutzer user)
Deprecated.useredirectToDashboard(Mandant, RedirectOptions)
instead.
-
redirectToDashboard
@Deprecated public void redirectToDashboard(Benutzer user, AJSFContext.RedirectOptions options)
Deprecated.useredirectToDashboard(Mandant, RedirectOptions)
instead.Redirects to the appropriate dashboard for the given user, ie. eitherEViews.DASHBOARD
orEViews.ADMIN_DASHBOARD
.- Parameters:
user
- User that is to be redirected to their dashboard.options
- Additional settings for modifying how the redirect is performed.
-
getBeanName
@Deprecated protected String getBeanName(Class<?> beanClass)
Deprecated.UseFacesHelper.getBeanName(Class, Annotation...)
if required.- Parameters:
beanClass
- Class of the bean to lookup.- Returns:
- The name of the bean.
-
-