Package de.xima.fc.gui.bean.project
Class ProjectTemplateBean.EntitySelectModelImpl
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.EntitySelectModel<Projekt>
de.xima.fc.gui.bean.project.ProjectTemplateBean.EntitySelectModelImpl
- All Implemented Interfaces:
IEntitySelectModel<Projekt>,Serializable
- Enclosing class:
- ProjectTemplateBean
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.gui.model.data.EntitySelectModel
entityClass, selected -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.xima.fc.gui.model.data.EntitySelectModel
addNew, delete, ec, getDao, getNew, getSelected, isDetached, isNew, loadLazyData, redirect, save, save, setSelected, setSelectedById, 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, rbValueOrDefault
-
Constructor Details
-
EntitySelectModelImpl
public EntitySelectModelImpl()
-
-
Method Details
-
save
Description copied from interface:IEntitySelectModelSaves the currently selected model to the database. If itIEntitySelectModel.isNew(), creates a new entry in the database, otherwise updates the existing entry. Performs a redirect to the view, if given.- Specified by:
savein interfaceIEntitySelectModel<Projekt>- Overrides:
savein classEntitySelectModel<Projekt>- Parameters:
targetView- If given, performs a redirect to this view if the action succeeds. Must be a name ofEnum.name(), or a relative link.addSuccessMessage- Whether a success message is added to the faces context (in case of success).addErrorMessage- Whether an error message is added to the faces context (in case of an error).- Returns:
- Outcome for the redirection.
-
delete
Description copied from interface:IEntitySelectModelDeletes the currently selected model from the database. If the currently selected modelIEntitySelectModel.isNew(), does nothing.- Specified by:
deletein interfaceIEntitySelectModel<Projekt>- Overrides:
deletein classEntitySelectModel<Projekt>- Parameters:
targetView- TheEnum.name()of a view whose view ID is returned after this operation completes successfully. Can also be a relative path, in which case that path is returned.- Returns:
- A view ID of the page to show after the model was deleted.
-
update
protected void update()- Overrides:
updatein classEntitySelectModel<Projekt>
-
create
protected void create()- Overrides:
createin classEntitySelectModel<Projekt>
-