Package de.xima.fc.gui.bean.inbox
Class InboxBean.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<Postfach>
-
- de.xima.fc.gui.bean.inbox.InboxBean.EntityListModelImpl
-
- All Implemented Interfaces:
IEntityListModel<Postfach>,IEntityListModelSelectByView<Postfach>,IUpdatable,Serializable
- Enclosing class:
- InboxBean
public final class InboxBean.EntityListModelImpl extends EntityListModelSelectByView<Postfach>
- 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 voidaddNew()Sets the currently selected model to a new model.voidcreate()StringdeleteEntity(Postfach entity)Same asIEntityListModel.delete(), but takes the model to be deleted as an argument instead of deleting the currently selected model.protected Set<EViews>getAllowedViewsForSelection()Deprecated.PostfachgetNew()booleanhasEntity()booleanisMarkedDeletable()voidloadLazyData()Can be overriden to initialize lazily loaded fields on the entity.voidsetSelected(Postfach selected)After setting the selected entity to the given entity, stores this selection in theSelectionBean.voidupdate()-
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, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getName, getSelected, isDetached, isEmptyList, 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, deleteMarkedEntities, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, isEmptyList, 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
-
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<Postfach>- Overrides:
addNewin classEntityListModel<Postfach>
-
isMarkedDeletable
public boolean isMarkedDeletable()
- Specified by:
isMarkedDeletablein interfaceIEntityListModel<Postfach>- Overrides:
isMarkedDeletablein classEntityListModel<Postfach>- Returns:
trueiff every single marked entity is deletable.falseotherwise
-
deleteEntity
public String deleteEntity(Postfach entity)
Description copied from interface:IEntityListModelSame asIEntityListModel.delete(), but takes the model to be deleted as an argument instead of deleting the currently selected model.- Specified by:
deleteEntityin interfaceIEntityListModel<Postfach>- Overrides:
deleteEntityin classEntityListModel<Postfach>- Parameters:
entity- The model to be deleted.- Returns:
- A view ID of the page to show after the model was deleted.
-
hasEntity
public boolean hasEntity()
- Specified by:
hasEntityin interfaceIEntityListModel<Postfach>- Overrides:
hasEntityin classEntityListModel<Postfach>- Returns:
trueiff not #IEntityListModel.isEmptyList()or the currently selected modelIEntityListModel.isNew().
-
loadLazyData
public void loadLazyData()
Description copied from interface:IEntityListModelCan be overriden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyDatain interfaceIEntityListModel<Postfach>- Overrides:
loadLazyDatain classEntityListModel<Postfach>
-
getNew
public Postfach getNew()
- Overrides:
getNewin classEntityListModel<Postfach>
-
create
public void create()
- Overrides:
createin classEntityListModel<Postfach>
-
update
public void update()
- Overrides:
updatein classEntityListModel<Postfach>
-
setSelected
public void setSelected(Postfach 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<Postfach>- Overrides:
setSelectedin classEntityListModelSelectByView<Postfach>- Parameters:
selected- The model to be selected.
-
getAllowedViewsForSelection
@Deprecated protected Set<EViews> getAllowedViewsForSelection()
Deprecated.- Overrides:
getAllowedViewsForSelectionin classEntityListModelSelectByView<Postfach>- Returns:
- A set of views for which pre-selection (
EntityListModelSelectByView.selectDefault()) is allowed for this model. If empty, no restriction is applied.
-
-