Class ItemListModelSelectByView<T,​ID>

    • Constructor Detail

      • ItemListModelSelectByView

        public ItemListModelSelectByView()
    • Method Detail

      • setSelected

        public void setSelected​(T selected)
        After setting the selected entity to the given entity, stores this selection in the SelectionBean. This allows the selection to be restored when the user revisits the page (during the same session).
        Specified by:
        setSelected in interface IItemListModel<T>
        Overrides:
        setSelected in class ItemListModel<T,​ID>
        Parameters:
        selected - The model to be selected.
      • getAllowedViewsForSelection

        @Deprecated
        protected Set<EViews> getAllowedViewsForSelection()
        Deprecated.
        Returns:
        A set of views for which pre-selection (selectDefault()) is allowed for this model. If empty, no restriction is applied.
      • getSelectionTypeKey

        protected abstract String getSelectionTypeKey()
      • putSelectionToStore

        protected void putSelectionToStore​(SelectionBean selectionBean,
                                           String key,
                                           T selected)
      • readSelectionFromStore

        protected T readSelectionFromStore​(SelectionBean selectionBean,
                                           String key)
      • retrieveSelection

        protected final T retrieveSelection()
      • selectDefault

        protected void selectDefault()
        First attempts to retrieve the latest selection made by the user from the SelectionBean. Uses the current EViews and, if applicable, current client and project as the key for storing and retrieving the selected entity (ID). This pre-selection is restricted to the getAllowedViewsForSelection(). If no selection can be found, lets the super class choose a default selection.
        Overrides:
        selectDefault in class ItemListModel<T,​ID>
      • storeSelection

        protected final void storeSelection​(T selected)