Class ScopeSelectionBean
- java.lang.Object
 - 
- de.xima.fc.gui.common.bean.security.ScopeSelectionBean
 
 
- 
- All Implemented Interfaces:
 Serializable
@Named @ViewScoped public class ScopeSelectionBean extends Object implements Serializable
Bean for switching the view scope (e.g. client scope or system scope).- Since:
 - 8.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ScopeSelectionBean() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticateWithClient(ScopeSelectionModel model)voidchangeScope()Method to change View Context depending on the selectedScopeSelectionModeland thereforeMandantvoidchangeScopeAndSaveDefaultClient(ScopeSelectionModel model)Before view Context may be changed, set clicked model as selectedStringgetNeededAuthenticationInfoMsg(ScopeSelectionModel model)StringgetRedirectUri(ScopeSelectionModel model)Set<ScopeSelectionModel>getScopeSelectionModels()List<ScopeSelectionModel>getScopeSelectionModelsWithoutNeededAuthentication()ScopeSelectionModelgetSelectedModel()voidinitScopes()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 settingsbooleanisSaveDefaultClient()booleanisShowScopeSelection()Method to verify if primefaces selectOneMenu may be hidden, if only onMandantis availablevoidsetSaveDefaultClient(boolean saveDefaultClient)voidsetSelectedModel(ScopeSelectionModel selectedModel) 
 - 
 
- 
- 
Method Detail
- 
getScopeSelectionModels
public Set<ScopeSelectionModel> getScopeSelectionModels()
 
- 
getScopeSelectionModelsWithoutNeededAuthentication
public List<ScopeSelectionModel> getScopeSelectionModelsWithoutNeededAuthentication()
 
- 
getSelectedModel
public ScopeSelectionModel getSelectedModel()
 
- 
setSelectedModel
public void setSelectedModel(ScopeSelectionModel selectedModel)
 
- 
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 onMandantis available- Returns:
 - true if multiple 
Mandantare 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
public void changeScopeAndSaveDefaultClient(ScopeSelectionModel model)
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 selectedScopeSelectionModeland thereforeMandant 
- 
authenticateWithClient
public void authenticateWithClient(ScopeSelectionModel model)
 
- 
getNeededAuthenticationInfoMsg
public String getNeededAuthenticationInfoMsg(ScopeSelectionModel model)
 
- 
getRedirectUri
public String getRedirectUri(ScopeSelectionModel model)
 
 - 
 
 -