T - the entity typepublic class EntityListModelSelectByView<T extends ITransferableEntity> extends EntityListModel<T> implements IEntityListModelSelectByView<T>
EntityListModel and adds functionality for memorizing the currently selected entity for the
duration of the current session. When the user revisits a view, the previous selection is restored. Uses the
SelectionBean for storing the selection.all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected| Constructor and Description |
|---|
EntityListModelSelectByView(Class<T> entityClass,
de.xima.cmn.criteria.QueryCriteriaManager qcm) |
EntityListModelSelectByView(Class<T> entityClass,
de.xima.cmn.criteria.QueryCriteriaManager qcm,
EEntityKeySelectionType keyType) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<EViews> |
getAllowedViewsForSelection() |
CurrentViewBean |
getCurrentViewBean() |
String |
getEntityClassKey() |
SelectionBean |
getSelectionBean() |
protected void |
selectDefault()
First attempts to retrieve the latest selection made by the user from the
SelectionBean. |
void |
setSelected(T selected)
After setting the selected entity to the given entity, stores this selection in the
SelectionBean. |
addMarked, addNew, create, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getNew, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, loadLazyData, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, update, updateData, updateSelectedaddErrorMsg, 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, getErrorMessagegetFacesContext, getLocale, rbValue, rbValue, rbValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMarked, addNew, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isMarkedDeletable, isNew, loadLazyData, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, setFiltered, setMarked, setSelectedFromMarked, updateSelectedupdateDatapublic EntityListModelSelectByView(Class<T> entityClass, de.xima.cmn.criteria.QueryCriteriaManager qcm)
public EntityListModelSelectByView(Class<T> entityClass, de.xima.cmn.criteria.QueryCriteriaManager qcm, EEntityKeySelectionType keyType)
public void setSelected(T selected)
SelectionBean. This
allows the selection to be restored when the user revisits the page (during the same session).setSelected in interface IEntityListModel<T extends ITransferableEntity>setSelected in class EntityListModel<T extends ITransferableEntity>selected - The model to be selected.protected void selectDefault()
SelectionBean. Uses the current
EViews and, if applicable, current client and project as the key for storing and retrieving the selected
entity (ID). This pre-selection is restricted to the getAllowedViewsForSelection(). If no selection can be
found, lets the super class choose a default selection.selectDefault in class EntityListModel<T extends ITransferableEntity>public SelectionBean getSelectionBean()
public CurrentViewBean getCurrentViewBean()
public String getEntityClassKey()
getEntityClassKey in interface IEntityListModelSelectByView<T extends ITransferableEntity>SelectionBean.storeEntityIdFromUrl(EEntityKeySelectionType, String)protected Set<EViews> getAllowedViewsForSelection()
selectDefault()) is allowed for this model. If empty, no
restriction is applied.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.