Class ProjectTemplateBean.EntitySelectModelImpl

All Implemented Interfaces:
IEntitySelectModel<Projekt>, Serializable
Enclosing class:
ProjectTemplateBean

public final class ProjectTemplateBean.EntitySelectModelImpl extends EntitySelectModel<Projekt>
See Also:
  • Constructor Details

    • EntitySelectModelImpl

      public EntitySelectModelImpl()
  • Method Details

    • save

      public String save(String targetView, boolean addSuccessMessage, boolean addErrorMessage)
      Description copied from interface: IEntitySelectModel
      Saves the currently selected model to the database. If it IEntitySelectModel.isNew(), creates a new entry in the database, otherwise updates the existing entry. Performs a redirect to the view, if given.
      Specified by:
      save in interface IEntitySelectModel<Projekt>
      Overrides:
      save in class EntitySelectModel<Projekt>
      Parameters:
      targetView - If given, performs a redirect to this view if the action succeeds. Must be a name of Enum.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

      public String delete(String targetView)
      Description copied from interface: IEntitySelectModel
      Deletes the currently selected model from the database. If the currently selected model IEntitySelectModel.isNew(), does nothing.
      Specified by:
      delete in interface IEntitySelectModel<Projekt>
      Overrides:
      delete in class EntitySelectModel<Projekt>
      Parameters:
      targetView - The Enum.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:
      update in class EntitySelectModel<Projekt>
    • create

      protected void create()
      Overrides:
      create in class EntitySelectModel<Projekt>