Class ViewContextBean

  • All Implemented Interfaces:
    Serializable

    @Named
    @ViewScoped
    public class ViewContextBean
    extends Object
    implements Serializable
    View scoped bean allowing access to data of the current view.
    Since:
    8.0.0
    Author:
    XIMA Media GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • ViewContextBean

        public ViewContextBean()
    • Method Detail

      • getClient

        public Mandant getClient()
        Gets the scope of the current view. If the client is not null than it is a client scope with that client. If the client is null than it is the system scope.
        Returns:
        The scope of the current view.
        See Also:
        getScope()
      • getScope

        public WorkspaceScope getScope()
        Gets the scope of the current view. Either a client scope if the client is not null, or the system scope.
        Returns:
        The scope of the current view.
      • getView

        public IView getView()
        Returns:
        the current view.
      • updateCurrentClient

        public void updateCurrentClient()