Class BlogParameterService
java.lang.Object
fr.paris.lutece.plugins.blog.service.BlogParameterService
Blog parameter service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accepted file types for uploadGet String default editor nameGet String default editorstatic BlogParameterServiceGet the unique instance of the serviceintGet the number of mandatory tags for a blogbooleanCheck if content type is enabledbooleanCheck if upload image plugin is enabledvoidupdateAcceptedFileTypes(String strAcceptedFileTypes) Update the accepted file types for uploadvoidupdateDefaultDateEndPublishing(String strValue) Update default end publishing date from string iso datevoidupdateDefaultEditor(String strValue) Update default editorvoidupdateNumberMandatoryTags(String nbMandatoryTags) Do modify the number of mandatory tags for a blogvoidupdateUseContentType(boolean bUseContentType) Update the use content type settingvoidupdateUseUploadImagePlugin(boolean bUseUploadImagePlugin) Update the use upload image plugin setting
-
Field Details
-
DSKEY_DEFAULT_NUMBER_MANDATORY_TAGS
- See Also:
-
DSKEY_DEFAULT_DATE_END_PUBLISHING
- See Also:
-
DSKEY_DEFAULT_EDITOR
- See Also:
-
DSKEY_USE_UPLOAD_IMAGE_PLUGIN
- See Also:
-
DSKEY_USE_CONTENT_TYPE
- See Also:
-
DSKEY_ACCEPTED_FILE_TYPES
- See Also:
-
MARK_DEFAULT_NUMBER_MANDATORY_TAGS
- See Also:
-
MARK_DEFAULT_DATE_END_PUBLISHING
- See Also:
-
MARK_DEFAULT_EDITOR
- See Also:
-
MARK_USE_UPLOAD_IMAGE_PLUGIN
- See Also:
-
MARK_USE_CONTENT_TYPE
- See Also:
-
MARK_ACCEPTED_FILE_TYPES
- See Also:
-
DSKEY_DEFAULT_EDITOR_BACK_OFFICE
- See Also:
-
DEFAULT_ACCEPTED_FILE_TYPES
- See Also:
-
-
Constructor Details
-
BlogParameterService
public BlogParameterService()
-
-
Method Details
-
getInstance
Get the unique instance of the service- Returns:
- The unique instance
-
updateNumberMandatoryTags
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
Update default end publishing date from string iso date- Parameters:
strValue- date format 'yyyy-mm-dd'
-
getDefaultDateEndPublishing
Get String default editor- Returns:
- default editor
-
updateDefaultEditor
Update default editor- Parameters:
strValue- editor name
-
getDefaultBlogEditor
Get String default editor name- Returns:
- default editor name for plugin
-
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
Update the accepted file types for upload- Parameters:
strAcceptedFileTypes- the accepted file types (e.g., "image/*,.pdf,.doc")
-
getAcceptedFileTypes
Get the accepted file types for upload- Returns:
- the accepted file types string
-