public final class TemplatesBean.EntityListModelImpl extends EntityListModelSelectByView<Textbaustein>
all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected| Constructor and Description |
|---|
EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNew()
Sets the currently selected model to a new model.
|
String |
deleteEntity(Textbaustein entity)
Deletes the given
Textbaustein if it is not being used by project actions |
void |
deleteMarkedEntities()
Deletes marked
Textbausteins that are not being used by project actions |
protected Set<EViews> |
getAllowedViewsForSelection() |
Textbaustein |
getNew() |
boolean |
isMarkedDeletable() |
void |
loadLazyData()
Can be overriden to initialize lazily loaded fields on the entity.
|
void |
save()
Saves the currently selected model to the database.
|
void |
setSelected(Textbaustein selected)
After setting the selected entity to the given entity, stores this selection in the
SelectionBean. |
getCurrentViewBean, getEntityClassKey, getSelectionBean, selectDefaultaddMarked, create, delete, delete, deleteEntity, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getSelected, hasEntity, isDetached, isEmptyList, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, update, updateData, updateSelectedaddErrorMsg, 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, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessagegetFacesContext, getLocale, rbValue, rbValue, rbValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMarked, delete, delete, deleteEntity, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, setFiltered, setMarked, setSelectedFromMarked, updateSelectedupdateDatapublic EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
protected Set<EViews> getAllowedViewsForSelection()
getAllowedViewsForSelection in class EntityListModelSelectByView<Textbaustein>EntityListModelSelectByView.selectDefault()) is allowed for this model. If empty, no
restriction is applied.public boolean isMarkedDeletable()
isMarkedDeletable in interface IEntityListModel<Textbaustein>isMarkedDeletable in class EntityListModel<Textbaustein>true iff every single marked entity is deletable. false otherwisepublic void addNew()
IEntityListModeladdNew in interface IEntityListModel<Textbaustein>addNew in class EntityListModel<Textbaustein>public Textbaustein getNew()
getNew in class EntityListModel<Textbaustein>public void save()
IEntityListModelIEntityListModel.isNew(), creates a new entry in the database,
otherwise updates the existing entry.save in interface IEntityListModel<Textbaustein>save in class EntityListModel<Textbaustein>public String deleteEntity(Textbaustein entity)
Textbaustein if it is not being used by project actionsdeleteEntity in interface IEntityListModel<Textbaustein>deleteEntity in class EntityListModel<Textbaustein>entity - The model to be deleted.public void deleteMarkedEntities()
Textbausteins that are not being used by project actionsdeleteMarkedEntities in interface IEntityListModel<Textbaustein>deleteMarkedEntities in class EntityListModel<Textbaustein>public void setSelected(Textbaustein selected)
EntityListModelSelectByViewSelectionBean. This
allows the selection to be restored when the user revisits the page (during the same session).setSelected in interface IEntityListModel<Textbaustein>setSelected in class EntityListModelSelectByView<Textbaustein>selected - The model to be selected.public void loadLazyData()
IEntityListModelloadLazyData in interface IEntityListModel<Textbaustein>loadLazyData in class EntityListModel<Textbaustein>Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.