Package de.xima.fc.gui.bean.templates
Class TemplatesBean.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<Textbaustein>
-
- de.xima.fc.gui.bean.templates.TemplatesBean.EntityListModelImpl
-
- All Implemented Interfaces:
IEntityListModel<Textbaustein>,IEntityListModelSelectByView<Textbaustein>,IUpdatable,Serializable
- Enclosing class:
- TemplatesBean
public final class TemplatesBean.EntityListModelImpl extends EntityListModelSelectByView<Textbaustein>
- 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.StringdeleteEntity(Textbaustein entity)Deletes the givenTextbausteinif it is not being used by project actionsvoiddeleteMarkedEntities()Deletes all markedtemplatesthat are not being used by project actionsprotected Set<EViews>getAllowedViewsForSelection()Deprecated.TextbausteingetNew()booleanisMarkedDeletable()voidloadLazyData()Can be overriden to initialize lazily loaded fields on the entity.voidsave()Saves the currently selected model to the database.voidsetSelected(Textbaustein selected)After setting the selected entity to the given entity, stores this selection in theSelectionBean.-
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, create, delete, delete, deleteEntity, 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, update, 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, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, setFiltered, setMarked, setSelectedFromMarked, updateSelected
-
Methods inherited from interface de.xima.fc.gui.interfaces.data.IUpdatable
updateData
-
-
-
-
Method Detail
-
getAllowedViewsForSelection
@Deprecated protected Set<EViews> getAllowedViewsForSelection()
Deprecated.- Overrides:
getAllowedViewsForSelectionin classEntityListModelSelectByView<Textbaustein>- Returns:
- A set of views for which pre-selection (
EntityListModelSelectByView.selectDefault()) is allowed for this model. If empty, no restriction is applied.
-
isMarkedDeletable
public boolean isMarkedDeletable()
- Specified by:
isMarkedDeletablein interfaceIEntityListModel<Textbaustein>- Overrides:
isMarkedDeletablein classEntityListModel<Textbaustein>- 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<Textbaustein>- Overrides:
addNewin classEntityListModel<Textbaustein>
-
getNew
public Textbaustein getNew()
- Overrides:
getNewin classEntityListModel<Textbaustein>
-
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<Textbaustein>- Overrides:
savein classEntityListModel<Textbaustein>
-
deleteEntity
public String deleteEntity(Textbaustein entity)
Deletes the givenTextbausteinif it is not being used by project actions- Specified by:
deleteEntityin interfaceIEntityListModel<Textbaustein>- Overrides:
deleteEntityin classEntityListModel<Textbaustein>- Parameters:
entity- The model to be deleted.- Returns:
- A view ID of the page to show after the model was deleted.
-
deleteMarkedEntities
public void deleteMarkedEntities()
Deletes all markedtemplatesthat are not being used by project actions- Specified by:
deleteMarkedEntitiesin interfaceIEntityListModel<Textbaustein>- Overrides:
deleteMarkedEntitiesin classEntityListModel<Textbaustein>
-
setSelected
public void setSelected(Textbaustein 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<Textbaustein>- Overrides:
setSelectedin classEntityListModelSelectByView<Textbaustein>- Parameters:
selected- The model to be selected.
-
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<Textbaustein>- Overrides:
loadLazyDatain classEntityListModel<Textbaustein>
-
-