Class ScopeSelectionBean
java.lang.Object
de.xima.fc.gui.common.bean.security.ScopeSelectionBean
- All Implemented Interfaces:
Serializable
Bean for switching the view scope (e.g. client scope or system scope).
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Method to change View Context depending on the selectedScopeSelectionModel
and thereforeMandant
void
Before view Context may be changed, set clicked model as selectedvoid
Method to initialize the list ofScopeSelectionModel
, gets called on each page reload and may be called if data changes, the list is alphabetically ordered and finishes always with system settingsboolean
boolean
Method to verify if primefaces selectOneMenu may be hidden, if only onMandant
is availablevoid
setSaveDefaultClient
(boolean saveDefaultClient) void
setSelectedModel
(ScopeSelectionModel selectedModel)
-
Constructor Details
-
ScopeSelectionBean
public ScopeSelectionBean()
-
-
Method Details
-
getScopeSelectionModels
-
getScopeSelectionModelsWithoutNeededAuthentication
-
getSelectedModel
-
setSelectedModel
-
isSaveDefaultClient
public boolean isSaveDefaultClient() -
setSaveDefaultClient
public void setSaveDefaultClient(boolean saveDefaultClient) -
isShowScopeSelection
public boolean isShowScopeSelection()Method to verify if primefaces selectOneMenu may be hidden, if only onMandant
is available- Returns:
- true if multiple
Mandant
are available
-
initScopes
public void initScopes()Method to initialize the list ofScopeSelectionModel
, gets called on each page reload and may be called if data changes, the list is alphabetically ordered and finishes always with system settings -
changeScopeAndSaveDefaultClient
Before view Context may be changed, set clicked model as selected- Parameters:
model
- which has been clicked
-
changeScope
public void changeScope()Method to change View Context depending on the selectedScopeSelectionModel
and thereforeMandant
-
authenticateWithClient
-
getNeededAuthenticationInfoMsg
-
getRedirectUri
-