Package de.xima.fc.gui.bean.user
Class ExternalUserClientBean.EntityListModelImpl<T extends ITransferableEntity>
- 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<ClientAuthenticator>
-
- de.xima.fc.gui.bean.user.ExternalUserClientBean.EntityListModelImpl<T>
-
- All Implemented Interfaces:
IEntityListModel<ClientAuthenticator>
,IEntityListModelSelectByView<ClientAuthenticator>
,IUpdatable
,Serializable
- Enclosing class:
- ExternalUserClientBean
public final class ExternalUserClientBean.EntityListModelImpl<T extends ITransferableEntity> extends EntityListModelSelectByView<ClientAuthenticator>
- 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 Modifier and Type Method Description String
deleteEntity(ClientAuthenticator entity)
Same asIEntityListModel.delete()
, but takes the model to be deleted as an argument instead of deleting the currently selected model.void
deleteMarkedEntities()
Deletes all marked entitiesprotected List<ClientAuthenticator>
fetchAll()
Fetches all available entities.ClientAuthenticator
getNew()
void
loadLazyData()
Can be overriden to initialize lazily loaded fields on the entity.void
save(boolean addSuccessMessage, boolean addErrorMessage)
void
setSelected(ClientAuthenticator 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
getAllowedViewsForSelection, getCurrentViewBean, getEntityClassKey, getSelectionBean, selectDefault
-
Methods inherited from class de.xima.fc.gui.model.data.EntityListModel
addMarked, addNew, create, delete, delete, deleteEntity, ec, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, 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, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue
-
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, addNew, delete, delete, deleteEntity, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isMarkedDeletable, 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
-
fetchAll
protected List<ClientAuthenticator> fetchAll()
Description copied from class:EntityListModel
Fetches all available entities. By default, this simple reads all entities matching theQueryCriteriaManager
provided in the constructor. Override this for custom logic. If you choose to override this, you may providenull
for theQueryCriteriaManager
, if you do not call this super method and do not attempt to use it yourself.- Overrides:
fetchAll
in classEntityListModel<ClientAuthenticator>
- Returns:
- List
All available entities. The order of the returned list is preserved.
-
getNew
public ClientAuthenticator getNew()
- Overrides:
getNew
in classEntityListModel<ClientAuthenticator>
-
save
public void save(boolean addSuccessMessage, boolean addErrorMessage)
- Overrides:
save
in classEntityListModel<ClientAuthenticator>
-
loadLazyData
public void loadLazyData()
Description copied from interface:IEntityListModel
Can be overriden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyData
in interfaceIEntityListModel<T extends ITransferableEntity>
- Overrides:
loadLazyData
in classEntityListModel<ClientAuthenticator>
-
setSelected
public void setSelected(ClientAuthenticator selected)
Description copied from class:EntityListModelSelectByView
After 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:
setSelected
in interfaceIEntityListModel<T extends ITransferableEntity>
- Overrides:
setSelected
in classEntityListModelSelectByView<ClientAuthenticator>
- Parameters:
selected
- The model to be selected.
-
deleteMarkedEntities
public void deleteMarkedEntities()
Description copied from interface:IEntityListModel
Deletes all marked entities- Specified by:
deleteMarkedEntities
in interfaceIEntityListModel<T extends ITransferableEntity>
- Overrides:
deleteMarkedEntities
in classEntityListModel<ClientAuthenticator>
-
deleteEntity
public String deleteEntity(ClientAuthenticator entity)
Description copied from interface:IEntityListModel
Same asIEntityListModel.delete()
, but takes the model to be deleted as an argument instead of deleting the currently selected model.- Specified by:
deleteEntity
in interfaceIEntityListModel<T extends ITransferableEntity>
- Overrides:
deleteEntity
in classEntityListModel<ClientAuthenticator>
- Parameters:
entity
- The model to be deleted.- Returns:
- A view ID of the page to show after the model was deleted.
-
-