Class BlogParameterService

java.lang.Object
fr.paris.lutece.plugins.blog.service.BlogParameterService

public class BlogParameterService extends Object
Blog parameter service.
  • Field Details

  • Constructor Details

    • BlogParameterService

      public BlogParameterService()
  • Method Details

    • getInstance

      public static BlogParameterService getInstance()
      Get the unique instance of the service
      Returns:
      The unique instance
    • updateNumberMandatoryTags

      public void updateNumberMandatoryTags(String nbMandatoryTags)
      Do modify the number of mandatory tags for a blog
      Parameters:
      nbMandatoryTags -
    • getNumberMandatoryTags

      public int getNumberMandatoryTags()
      Get the number of mandatory tags for a blog
      Returns:
      numberMandatoryTags
    • updateDefaultDateEndPublishing

      public void updateDefaultDateEndPublishing(String strValue)
      Update default end publishing date from string iso date
      Parameters:
      strValue - date format 'yyyy-mm-dd'
    • getDefaultDateEndPublishing

      public Date getDefaultDateEndPublishing()
      Get String default editor
      Returns:
      default editor
    • updateDefaultEditor

      public void updateDefaultEditor(String strValue)
      Update default editor
      Parameters:
      strValue - editor name
    • getDefaultBlogEditor

      public String getDefaultBlogEditor()
      Get String default editor name
      Returns:
      default editor name for plugin
    • getBlogEditor

      public String getBlogEditor()
      Get the editor set in the advanced parameters of the plugin
      Returns:
      the editor name, empty when none is set
    • updateUseUploadImagePlugin

      public void updateUseUploadImagePlugin(boolean bUseUploadImagePlugin)
      Update the use upload image plugin setting
      Parameters:
      bUseUploadImagePlugin - true to enable, false to disable
    • isUseUploadImagePlugin

      public boolean isUseUploadImagePlugin()
      Check if upload image plugin is enabled
      Returns:
      true if enabled, false otherwise
    • updateUseContentType

      public void updateUseContentType(boolean bUseContentType)
      Update the use content type setting
      Parameters:
      bUseContentType - true to enable, false to disable
    • isUseContentType

      public boolean isUseContentType()
      Check if content type is enabled
      Returns:
      true if enabled, false otherwise
    • updateAcceptedFileTypes

      public void updateAcceptedFileTypes(String strAcceptedFileTypes)
      Update the accepted file types for upload
      Parameters:
      strAcceptedFileTypes - the accepted file types (e.g., "image/*,.pdf,.doc")
    • getAcceptedFileTypes

      public String getAcceptedFileTypes()
      Get the accepted file types for upload
      Returns:
      the accepted file types string