public final class ClientBean.EntityListModelImpl extends EntityListModelSelectByView<Mandant>
all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected
Constructor and Description |
---|
EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm) |
Modifier and Type | Method and Description |
---|---|
void |
addNew()
Sets the currently selected model to a new model.
|
void |
create() |
protected Set<EViews> |
getAllowedViewsForSelection() |
Mandant |
getNew() |
void |
save()
Saves the currently selected model to the database.
|
protected void |
selectDefault()
First attempts to retrieve the latest selection made by the user from the
SelectionBean . |
void |
setSelected(Mandant selected)
After setting the selected entity to the given entity, stores this selection in the
SelectionBean . |
void |
update() |
void |
updateData() |
getEntityClassKey
addMarked, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, loadLazyData, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateSelected
addErrorMsg, 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, getErrorMessage
getFacesContext, getLocale, rbValue, rbValue, rbValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMarked, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isMarkedDeletable, isNew, loadLazyData, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, setFiltered, setMarked, setSelectedFromMarked, updateSelected
public EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
public void updateData()
updateData
in interface IUpdatable
updateData
in class EntityListModel<Mandant>
protected void selectDefault()
EntityListModelSelectByView
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 EntityListModelSelectByView.getAllowedViewsForSelection()
. If no selection can be
found, lets the super class choose a default selection.selectDefault
in class EntityListModelSelectByView<Mandant>
public void create()
create
in class EntityListModel<Mandant>
public void save()
IEntityListModel
IEntityListModel.isNew()
, creates a new entry in the database,
otherwise updates the existing entry.save
in interface IEntityListModel<Mandant>
save
in class EntityListModel<Mandant>
public void update()
update
in class EntityListModel<Mandant>
public void addNew()
IEntityListModel
addNew
in interface IEntityListModel<Mandant>
addNew
in class EntityListModel<Mandant>
public Mandant getNew()
getNew
in class EntityListModel<Mandant>
public void setSelected(Mandant selected)
EntityListModelSelectByView
SelectionBean
. This
allows the selection to be restored when the user revisits the page (during the same session). This behavior is
restricted to the EntityListModelSelectByView.getAllowedViewsForSelection()
.setSelected
in interface IEntityListModel<Mandant>
setSelected
in class EntityListModelSelectByView<Mandant>
selected
- The model to be selected.protected Set<EViews> getAllowedViewsForSelection()
getAllowedViewsForSelection
in class EntityListModelSelectByView<Mandant>
EntityListModelSelectByView.selectDefault()
) is allowed for this model. If empty, no
restriction is applied.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.