public class SelectionBean extends AJSFContext
/user/ldapgroup or
 /system/client.AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder| Constructor and Description | 
|---|
SelectionBean()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
createKeyForCurrentView(EEntityKeySelectionType keyType,
                       Class<?> objectClass)  | 
String | 
createKeyForCurrentView(EEntityKeySelectionType keyType,
                       String additionalKey)  | 
<T,S> Optional<S> | 
getSelectedAs(String key,
             Function<String,S> backConverter)  | 
Optional<Long> | 
getSelectedAsLong(String key)  | 
Optional<String> | 
getSelectedAsString(String key)  | 
void | 
store(String key,
     de.xima.cmn.dao.interfaces.IEntity<?> valueEntity)
Stores the given value for the given key. 
 | 
void | 
store(String key,
     Long id)
Stores the given value for the given key. 
 | 
void | 
store(String selectionKey,
     String selectionValue)
Associates the given value to the given key for later retrieval. 
 | 
void | 
storeEntityIdFromUrl(EEntityKeySelectionType keyType,
                    String entityClass)
Can be used to select an entity by a URL parameter. 
 | 
void | 
storeEntityIdFromUrlClient(String entityClass)  | 
void | 
storeEntityIdFromUrlProject(String entityClass)  | 
void | 
storeEntityIdFromUrlSystem(String entityClass)  | 
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, ucaddErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessagepublic void storeEntityIdFromUrlSystem(String entityClass)
public void storeEntityIdFromUrlClient(String entityClass)
public void storeEntityIdFromUrlProject(String entityClass)
public void storeEntityIdFromUrl(EEntityKeySelectionType keyType, String entityClass)
f:viewAction.
 Reads the ID from the URL parameter "preselect" and stores that selection.public void store(String selectionKey, String selectionValue)
selectionKey - Key at which to the value.selectionValue - Value to store.public void store(String key, de.xima.cmn.dao.interfaces.IEntity<?> valueEntity)
key - Key at which to store the value.valueEntity - Value to store. This stores the ID of the given entity.public void store(String key, Long id)
key - Key at which to store the value.id - ID to store.public <T,S> Optional<S> getSelectedAs(String key, Function<String,S> backConverter)
key - Key for which to retrieve the stored value.backConverter - Some way of converting the stored string value to another type.public Optional<Long> getSelectedAsLong(String key)
key - Key for which to retrieve the stored value.public Optional<String> getSelectedAsString(String key)
key - Key for which to retrieve the stored value.public String createKeyForCurrentView(EEntityKeySelectionType keyType, Class<?> objectClass)
keyType - Type of the key, ie. whether the key uses the client and current project.objectClass - An additional identifier to be included in the key.EViews, the client (null
 for sadmin) and the current project (null if the view is not project-specific).public String createKeyForCurrentView(EEntityKeySelectionType keyType, String additionalKey)
keyType - Type of the key, ie. whether the key uses the client and current project.additionalKey - An additional identifier to be included in the key.EViews, the client (null
 for sadmin) and the current project (null if the view is not project-specific).Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.