Class TemplatesBean.TemplateBulkDeleteModel
java.lang.Object
de.xima.fc.gui.bean.templates.TemplatesBean.TemplateBulkDeleteModel
- Enclosing class:
TemplatesBean
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.
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionThe templates that are still in use and cannot be deleted.The system templates that were selected (and are scheduled to be reset).The user templates that were selected (and are scheduled to be deleted).booleanWhether the user wants to delete the selected user templates.booleanisEmpty()Checks if this model contains no templates to delete or reset.booleanisMixed()Whether the selected templates are a mix of system and user templates, i.e. whether both system and user templates were selected.booleanWhether the user wants to reset the selected system templates.voidsetDeleteUserTemplates(boolean deleteUserTemplates) Whether the user wants to delete the selected user templates.voidsetResetSystemTemplates(boolean resetSystemTemplates) Whether the user wants to reset the selected system templates.
-
Method Details
-
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
The system templates that were selected (and are scheduled to be reset).- Returns:
- The selected system templates.
-
getUserTemplates
The user templates that were selected (and are scheduled to be deleted).- Returns:
- The selected user templates.
-
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.
-