Package de.xima.fc.gui.common.bean
Class ViewContextBean
- java.lang.Object
-
- de.xima.fc.gui.common.bean.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 Summary
Constructors Constructor Description ViewContextBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mandant
getClient()
Gets the scope of the current view.WorkspaceScope
getScope()
Gets the scope of the current view.IView
getView()
void
updateCurrentClient()
-
-
-
Method Detail
-
getClient
public Mandant getClient()
Gets the scope of the current view. If the client is notnull
than it is aclient
scope with that client. If the client isnull
than it is thesystem
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 notnull
, or the system scope.- Returns:
- The scope of the current view.
-
getView
public IView getView()
- Returns:
- the current view.
-
updateCurrentClient
public void updateCurrentClient()
-
-