Class 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:
  • Field Details

    • localeBean

      @Inject protected LocaleBean localeBean
      Deprecated.
  • Constructor Details

    • AJSFContext

      public AJSFContext()
      Deprecated.
  • Method Details

    • 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 der HttpSession
      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
      Parameters:
      attribute - String der Name des Session-Attributs
      Returns:
      Object das hinterlegte Session-Attribut oder null wenn dieses nicht vorhanden ist
    • setSessionAttribute

      protected void setSessionAttribute(String attribute, Object o)
      Deprecated.
      Methode zum Setzen eines Session-Attributs
      Parameters:
      attribute - String der Name des Session-Attributs
      o - Object der Wert des zu setzenden Session-Attributs
    • getBeanName

      protected String getBeanName(Object bean)
      Deprecated.
    • 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 bean
      context - 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.
    • encodeURL

      public String encodeURL(String url)
      Deprecated.
    • getCurrentViewBean

      @Deprecated public CurrentViewBean getCurrentViewBean()
      Deprecated.
    • findCurrentView

      @Deprecated public IViewModel findCurrentView()
      Deprecated.
      Returns:
      The current EViews; or null if it could not be determined.
    • findBean

      @Deprecated public static <T> T findBean(Class<T> beanClass, javax.faces.context.FacesContext context, boolean create)
      Finds the given bean in the current scope.
      Type Parameters:
      T - Type of the bean
      Parameters:
      beanClass - Class of the bean
      context - 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)
      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)
      Finds the given bean in the current scope.
      Type Parameters:
      T - Type of the bean
      Parameters:
      beanClass - Class of the bean
      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(String beanName, Class<T> beanClass)
      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 bean
      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(String beanName, Class<T> beanClass, javax.faces.context.FacesContext facesContext)
      Finds the given bean in the current scope.
      Type Parameters:
      T - Type of the bean
      Parameters:
      beanName - Name of the bean
      beanClass - Class of the bean
      facesContext - 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)
      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 bean
      beanClass - Class of the bean
      facesContext - 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..
    • 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)
    • redirectToDashboard

      @Deprecated public void redirectToDashboard(Benutzer user, AJSFContext.RedirectOptions options)
      Redirects to the appropriate dashboard for the given user, ie. either EViews.DASHBOARD or EViews.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.
      Parameters:
      beanClass - Class of the bean to lookup.
      Returns:
      The name of the bean.