Package de.xima.fc.gui.bean.settings
Class ClientBean.EntityListModelImpl
- java.lang.Object
 - 
- de.xima.fc.gui.common.utils.msg.I18nUtils
 - 
- de.xima.fc.gui.common.utils.msg.MessageUtils
 - 
- de.xima.fc.gui.common.utils.msg.AMessaging
 - 
- de.xima.fc.gui.model.data.EntityListModel<T>
 - 
- de.xima.fc.gui.model.data.EntityListModelSelectByView<Mandant>
 - 
- de.xima.fc.gui.bean.settings.ClientBean.EntityListModelImpl
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 IEntityListModel<Mandant>,IEntityListModelSelectByView<Mandant>,IUpdatable,Serializable
- Enclosing class:
 - ClientBean
 
public final class ClientBean.EntityListModelImpl extends EntityListModelSelectByView<Mandant>
- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class de.xima.fc.gui.model.data.EntityListModel
all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected 
 - 
 
- 
Constructor Summary
Constructors Constructor Description EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNew()Sets the currently selected model to a new model.voidcreate()protected Set<EViews>getAllowedViewsForSelection()MandantgetNew()voidsave()Saves the currently selected model to the database.protected voidselectDefault()First attempts to retrieve the latest selection made by the user from theSelectionBean.voidsetSelected(Mandant selected)After setting the selected entity to the given entity, stores this selection in theSelectionBean.voidupdate()voidupdateData()- 
Methods inherited from class de.xima.fc.gui.model.data.EntityListModelSelectByView
getCurrentViewBean, getEntityClassKey, getSelectionBean 
- 
Methods inherited from class de.xima.fc.gui.model.data.EntityListModel
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 
- 
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
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, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg 
- 
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.gui.interfaces.data.IEntityListModel
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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
updateData
public void updateData()
- Specified by:
 updateDatain interfaceIUpdatable- Overrides:
 updateDatain classEntityListModel<Mandant>
 
- 
selectDefault
protected void selectDefault()
Description copied from class:EntityListModelSelectByViewFirst attempts to retrieve the latest selection made by the user from theSelectionBean. Uses the currentEViewsand, if applicable, current client and project as the key for storing and retrieving the selected entity (ID). This pre-selection is restricted to theEntityListModelSelectByView.getAllowedViewsForSelection(). If no selection can be found, lets the super class choose a default selection.- Overrides:
 selectDefaultin classEntityListModelSelectByView<Mandant>
 
- 
create
public void create()
- Overrides:
 createin classEntityListModel<Mandant>
 
- 
save
public void save()
Description copied from interface:IEntityListModelSaves the currently selected model to the database. If itIEntityListModel.isNew(), creates a new entry in the database, otherwise updates the existing entry.- Specified by:
 savein interfaceIEntityListModel<Mandant>- Overrides:
 savein classEntityListModel<Mandant>
 
- 
update
public void update()
- Overrides:
 updatein classEntityListModel<Mandant>
 
- 
addNew
public void addNew()
Description copied from interface:IEntityListModelSets the currently selected model to a new model. A new model is not yet persisted in the database and exists only in memory.- Specified by:
 addNewin interfaceIEntityListModel<Mandant>- Overrides:
 addNewin classEntityListModel<Mandant>
 
- 
getNew
public Mandant getNew()
- Overrides:
 getNewin classEntityListModel<Mandant>
 
- 
setSelected
public void setSelected(Mandant selected)
Description copied from class:EntityListModelSelectByViewAfter setting the selected entity to the given entity, stores this selection in theSelectionBean. This allows the selection to be restored when the user revisits the page (during the same session).- Specified by:
 setSelectedin interfaceIEntityListModel<Mandant>- Overrides:
 setSelectedin classEntityListModelSelectByView<Mandant>- Parameters:
 selected- The model to be selected.
 
- 
getAllowedViewsForSelection
protected Set<EViews> getAllowedViewsForSelection()
- Overrides:
 getAllowedViewsForSelectionin classEntityListModelSelectByView<Mandant>- Returns:
 - A set of views for which pre-selection (
EntityListModelSelectByView.selectDefault()) is allowed for this model. If empty, no restriction is applied. 
 
 - 
 
 -