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 MandantgetClient()Gets the scope of the current view.WorkspaceScopegetScope()Gets the scope of the current view.IViewgetView()voidupdateCurrentClient()
-
-
-
Method Detail
-
getClient
public Mandant getClient()
Gets the scope of the current view. If the client is notnullthan it is aclientscope with that client. If the client isnullthan it is thesystemscope.- 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()
-
-