Package de.xima.fc.gui.bean.user
Class UserBean.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<Benutzer>
-
- de.xima.fc.gui.bean.user.UserBean.EntityListModelImpl
-
- All Implemented Interfaces:
IEntityListModel<Benutzer>
,IEntityListModelSelectByView<Benutzer>
,IUpdatable
,Serializable
- Enclosing class:
- UserBean
public final class UserBean.EntityListModelImpl extends EntityListModelSelectByView<Benutzer>
- 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 Deprecated Methods Modifier and Type Method Description void
addNew()
Sets the currently selected model to a new model.void
create()
void
deleteMarkedEntities()
Deletes all marked entitiesprotected Set<EViews>
getAllowedViewsForSelection()
Deprecated.Benutzer
getNew()
void
loadLazyData()
Can be overriden to initialize lazily loaded fields on the entity.void
setSelected(Benutzer selected)
After setting the selected entity to the given entity, stores this selection in theSelectionBean
.void
update()
-
Methods inherited from class de.xima.fc.gui.model.data.EntityListModelSelectByView
getCurrentViewBean, getEntityClassKey, getSelectionBean, putSelectionToStore, readSelectionFromStore, retrieveSelection, selectDefault, storeSelection
-
Methods inherited from class de.xima.fc.gui.model.data.EntityListModel
addMarked, delete, delete, deleteEntity, deleteEntity, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getName, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, performDelete, removeMarked, save, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateData, 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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
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, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isMarkedDeletable, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, setFiltered, setMarked, setSelectedFromMarked, updateSelected
-
Methods inherited from interface de.xima.fc.gui.interfaces.data.IUpdatable
updateData
-
-
-
-
Method Detail
-
getNew
public Benutzer getNew()
- Overrides:
getNew
in classEntityListModel<Benutzer>
-
addNew
public void addNew()
Description copied from interface:IEntityListModel
Sets 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:
addNew
in interfaceIEntityListModel<Benutzer>
- Overrides:
addNew
in classEntityListModel<Benutzer>
-
setSelected
public void setSelected(Benutzer selected)
Description copied from class:EntityListModelSelectByView
After 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:
setSelected
in interfaceIEntityListModel<Benutzer>
- Overrides:
setSelected
in classEntityListModelSelectByView<Benutzer>
- Parameters:
selected
- The model to be selected.
-
loadLazyData
public void loadLazyData()
Description copied from interface:IEntityListModel
Can be overriden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyData
in interfaceIEntityListModel<Benutzer>
- Overrides:
loadLazyData
in classEntityListModel<Benutzer>
-
create
public void create()
- Overrides:
create
in classEntityListModel<Benutzer>
-
update
public void update()
- Overrides:
update
in classEntityListModel<Benutzer>
-
getAllowedViewsForSelection
@Deprecated protected Set<EViews> getAllowedViewsForSelection()
Deprecated.- Overrides:
getAllowedViewsForSelection
in classEntityListModelSelectByView<Benutzer>
- Returns:
- A set of views for which pre-selection (
EntityListModelSelectByView.selectDefault()
) is allowed for this model. If empty, no restriction is applied.
-
deleteMarkedEntities
public void deleteMarkedEntities()
Description copied from interface:IEntityListModel
Deletes all marked entities- Specified by:
deleteMarkedEntities
in interfaceIEntityListModel<Benutzer>
- Overrides:
deleteMarkedEntities
in classEntityListModel<Benutzer>
-
-