Package de.xima.fc.gui.bean.user
Class UserRoleBean.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<Rolle>
de.xima.fc.gui.bean.user.UserRoleBean.EntityListModelImpl
- All Implemented Interfaces:
IEntityListModel<Rolle>,IEntityListModelSelectByView<Rolle>,IUpdatable,Serializable
- Enclosing class:
- UserRoleBean
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.gui.model.data.EntityListModel
all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNew()Sets the currently selected model to a new model.Deprecated.getNew()booleanvoidCan be overriden to initialize lazily loaded fields on the entity.voidsave()Saves the currently selected model to the database.voidsetSelected(Rolle 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, storeSelectionMethods inherited from class de.xima.fc.gui.model.data.EntityListModel
addMarked, create, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getName, getSelected, hasEntity, isDetached, isEmptyList, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, performDelete, removeMarked, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateData, updateSelectedMethods 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, msgMethods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.gui.interfaces.data.IEntityListModel
addMarked, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, setFiltered, setMarked, setSelectedFromMarked, updateSelectedMethods inherited from interface de.xima.fc.gui.interfaces.data.IUpdatable
updateData
-
Constructor Details
-
EntityListModelImpl
public EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
-
-
Method Details
-
update
public void update()- Overrides:
updatein classEntityListModel<Rolle>
-
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<Rolle>- Overrides:
savein classEntityListModel<Rolle>
-
isMarkedDeletable
public boolean isMarkedDeletable()- Specified by:
isMarkedDeletablein interfaceIEntityListModel<Rolle>- Overrides:
isMarkedDeletablein classEntityListModel<Rolle>- Returns:
trueiff every single marked entity is deletable.falseotherwise
-
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<Rolle>- Overrides:
addNewin classEntityListModel<Rolle>
-
getNew
- Overrides:
getNewin classEntityListModel<Rolle>
-
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<Rolle>- Overrides:
loadLazyDatain classEntityListModel<Rolle>
-
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<Rolle>- Overrides:
setSelectedin classEntityListModelSelectByView<Rolle>- Parameters:
selected- The model to be selected.
-
getAllowedViewsForSelection
Deprecated.- Overrides:
getAllowedViewsForSelectionin classEntityListModelSelectByView<Rolle>- Returns:
- A set of views for which pre-selection (
EntityListModelSelectByView.selectDefault()) is allowed for this model. If empty, no restriction is applied.
-