Class ClientResourceBean.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.common.model.data.ItemListModel<MandantRessource, Long>
de.xima.fc.gui.model.data.EntityListModel<MandantRessource>
de.xima.fc.gui.model.data.EntityListModelSelectByView<MandantRessource>
de.xima.fc.gui.bean.resource.ClientResourceBean.EntityListModelImpl
- All Implemented Interfaces:
IItemListModel<MandantRessource>, IUpdatable, IEntityListModel<MandantRessource>, IEntityListModelSelectByView<MandantRessource>, Serializable
- Enclosing class:
ClientResourceBean
public final class ClientResourceBean.EntityListModelImpl
extends EntityListModelSelectByView<MandantRessource>
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class EntityListModel
entityClass, qcmFields inherited from class ItemListModel
all, filtered, globalFilter, hasAddNewEntity, LOG, marked, selected -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Deprecated.getNew()voidCan be overridden to initialize lazily loaded fields on the entity.voidsave()Saves the currently selected model to the database.voidsetSelected(MandantRessource selected) After setting the selected entity to the given entity, stores this selection in theSelectionBean.voidupdate()Methods inherited from class EntityListModelSelectByView
getCurrentViewBean, getEntityClassKey, getSelectionBean, putSelectionToStore, readSelectionFromStore, retrieveSelection, selectDefault, storeSelectionMethods inherited from class EntityListModel
addMarked, addNew, castTo, crudCreate, crudDelete, crudRead, crudUpdate, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, findName, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getId, getMarked, getName, getSelected, hasEntity, isDetached, isDetached, isEmptyList, isHasAddNewEntity, isMarkedDeletable, isNew, isPersisted, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onSelectionChanged, onToggleSelect, performDelete, removeMarked, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateData, updateSelectedMethods inherited from class 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, msgMethods inherited from class I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefaultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IEntityListModel
addMarked, addNew, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isMarkedDeletable, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, setFiltered, setMarked, setSelectedFromMarked, updateSelectedMethods inherited from interface IUpdatable
updateData
-
Constructor Details
-
EntityListModelImpl
public EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
-
-
Method Details
-
setSelected
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<MandantRessource>- Specified by:
setSelectedin interfaceIItemListModel<MandantRessource>- Overrides:
setSelectedin classEntityListModelSelectByView<MandantRessource>- Parameters:
selected- The model to be selected.
-
getNew
- Overrides:
getNewin classEntityListModel<MandantRessource>
-
save
public void save()Description copied from interface:IItemListModelSaves the currently selected model to the database. If itIItemListModel.isNew(), creates a new entry in the database, otherwise updates the existing entry.- Specified by:
savein interfaceIEntityListModel<MandantRessource>- Specified by:
savein interfaceIItemListModel<MandantRessource>- Overrides:
savein classEntityListModel<MandantRessource>
-
update
- Overrides:
updatein classEntityListModel<MandantRessource>- Throws:
Exception
-
create
- Overrides:
createin classEntityListModel<MandantRessource>- Throws:
Exception
-
loadLazyData
public void loadLazyData()Description copied from interface:IItemListModelCan be overridden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyDatain interfaceIEntityListModel<MandantRessource>- Specified by:
loadLazyDatain interfaceIItemListModel<MandantRessource>- Overrides:
loadLazyDatain classEntityListModel<MandantRessource>
-
getAllowedViewsForSelection
Deprecated.- Overrides:
getAllowedViewsForSelectionin classEntityListModelSelectByView<MandantRessource>- Returns:
- A set of views for which pre-selection (
EntityListModelSelectByView.selectDefault()) is allowed for this model. If empty, no restriction is applied.
-