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.
Stellt globale Funktionalität zur Verfügung
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated.Additional options forredirect(String, RedirectOptions)
.static class
Deprecated. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroySessionBean
(String name) Deprecated.Deprecated.static <T> T
static <T> T
static <T> T
Deprecated.Finds the given bean in the current scope, creating a new bean instance if it does not exist yet.static <T> T
static <T> T
static <T> T
static <T> T
findBean
(String beanName, Class<T> beanClass, javax.faces.context.FacesContext facesContext, boolean create) Deprecated.static UserContext
Deprecated.protected String
getBeanName
(Class<?> beanClass) Deprecated.UseFacesHelper.getBeanName(Class, Annotation...)
if required.protected String
getBeanName
(Object bean) Deprecated.protected String
Deprecated.Deprecated.Deprecated.protected javax.servlet.http.HttpServletRequest
Deprecated.protected javax.servlet.http.HttpServletResponse
Deprecated.javax.servlet.http.HttpSession
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
Deprecated.protected void
Deprecated.void
redirect
(IViewModel view) Deprecated.void
redirect
(IViewModel view, AJSFContext.RedirectOptions options) Deprecated.Redirects to the given view.void
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-Attributsuc()
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
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Field Details
-
localeBean
Deprecated.
-
-
Constructor Details
-
AJSFContext
public AJSFContext()Deprecated.
-
-
Method Details
-
getLocaleBean
Deprecated. -
setLocaleBean
Deprecated. -
uc
Deprecated. -
destroySessionBean
Deprecated. -
loadLazy
Deprecated. -
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
Deprecated.Methode zum Ermitteln eines Session-Attributs -
setSessionAttribute
Deprecated.Methode zum Setzen eines Session-Attributs -
getBeanName
Deprecated. -
findUserContext
Deprecated. -
findBean
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
Deprecated. -
redirect
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.
-
encodeURL
Deprecated. -
getCurrentViewBean
Deprecated. -
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.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.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.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. -
redirect
Deprecated. -
redirect
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.useredirectToDashboard(Mandant, RedirectOptions)
instead. -
redirectToDashboard
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.UseFacesHelper.getBeanName(Class, Annotation...)
if required.- Parameters:
beanClass
- Class of the bean to lookup.- Returns:
- The name of the bean.
-
@Inject
, use helper classes and static methods directly.