Class TemplatesBean.TemplateBulkDeleteModel

  • Enclosing class:
    TemplatesBean

    public static final class TemplatesBean.TemplateBulkDeleteModel
    extends Object
    Model that holds the data for the bulk delete confirmation dialog, when the user selects multiple templates and wants to delete or reset them.

    System templates must be reset, all other templates created by the user must be deleted.

    • Method Detail

      • isMixed

        public boolean isMixed()
        Whether the selected templates are a mix of system and user templates, i.e. whether both system and user templates were selected.
        Returns:
        Whether the selected templates are a mix of system and user templates.
      • getSystemTemplates

        public List<Textbaustein> getSystemTemplates()
        The system templates that were selected (and are scheduled to be reset).
        Returns:
        The selected system templates.
      • getUserTemplates

        public List<Textbaustein> getUserTemplates()
        The user templates that were selected (and are scheduled to be deleted).
        Returns:
        The selected user templates.
      • getInUseTemplates

        public List<Textbaustein> getInUseTemplates()
        The templates that are still in use and cannot be deleted.
        Returns:
        The templates that are still in use.
      • isDeleteUserTemplates

        public boolean isDeleteUserTemplates()
        Whether the user wants to delete the selected user templates.
        Returns:
        Whether the user wants to delete the selected user templates.
      • setDeleteUserTemplates

        public void setDeleteUserTemplates​(boolean deleteUserTemplates)
        Whether the user wants to delete the selected user templates.
        Parameters:
        deleteUserTemplates - Whether the user wants to delete the selected user templates.
      • isEmpty

        public boolean isEmpty()
        Checks if this model contains no templates to delete or reset.
        Returns:
        Whether this model contains no templates to delete or reset.
      • isResetSystemTemplates

        public boolean isResetSystemTemplates()
        Whether the user wants to reset the selected system templates.
        Returns:
        Whether the user wants to reset the selected system templates.
      • setResetSystemTemplates

        public void setResetSystemTemplates​(boolean resetSystemTemplates)
        Whether the user wants to reset the selected system templates.
        Parameters:
        resetSystemTemplates - Whether the user wants to reset the selected system templates.