Class TemplateSaveRequest


  • public class TemplateSaveRequest
    extends Object
    Request for saving a template
    • Constructor Detail

      • TemplateSaveRequest

        public TemplateSaveRequest()
        Create an empty instance
      • TemplateSaveRequest

        public TemplateSaveRequest​(Template template)
        Create an instance with the given template
        Parameters:
        template - template
    • Method Detail

      • getTemplate

        public Template getTemplate()
        Template to be saved
        Returns:
        the template
      • setTemplate

        public void setTemplate​(Template template)
        Set the template to be saved
        Parameters:
        template - the template to set
      • isUnlock

        public boolean isUnlock()
        True, if the template shall be unlocked after saving, false if not
        Returns:
        true to unlock
      • setUnlock

        public void setUnlock​(boolean unlock)
        Set true to unlock the template after saving
        Parameters:
        true - to unlock
      • isSyncPages

        public boolean isSyncPages()
        True to synchronize the pages while saving the template, false if not
        Returns:
        true to synchronize pages
      • setSyncPages

        public void setSyncPages​(boolean syncPages)
        Set true to synchronize the pages while saving the template, false to not synchronize
        Parameters:
        syncPages - true to synchronize pages
      • getSync

        public List<String> getSync()
        Optional list of tags in pages to synchronize (if syncPages is true). If left empty, all tags will be synchronized.
        Returns:
        list of tag names
      • setSync

        public void setSync​(List<String> sync)
        Set tag names to synchronize
        Parameters:
        sync - list of tag names
      • isForceSync

        public boolean isForceSync()
        True to force synchronization of incompatible tags in pages (if syncPages is true)
        Returns:
        true to force sync
      • setForceSync

        public void setForceSync​(boolean forceSync)
        Set force sync flag
        Parameters:
        forceSync - flag
      • getDelete

        public List<String> getDelete()
        List of tag names to be deleted from the template
        Returns:
        list of tag names to be deleted
      • setDelete

        public void setDelete​(List<String> delete)
        Get the list of tagnames to be deleted from the template
        Parameters:
        list - of tag names to be deleted