Interface WysiwygContentRepository
-
- All Known Implementing Classes:
WysiwygManager
public interface WysiwygContentRepository
A repository of WYSIWYG contents.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(WysiwygContent content)
Deletes the specified content in the repository.void
deleteByContribution(Contribution contribution)
Deletes all the contents of the specified contribution in the repository.WysiwygContent
getByContribution(LocalizedContribution contribution)
Gets the content related to the specified contribution.void
save(WysiwygContent content)
Saves the specified content into the repository so that it can be get later.
-
-
-
Method Detail
-
save
void save(WysiwygContent content)
Saves the specified content into the repository so that it can be get later.- Parameters:
content
- the content to save.
-
getByContribution
WysiwygContent getByContribution(LocalizedContribution contribution)
Gets the content related to the specified contribution.- Parameters:
contribution
- the contribution for which the content is asked.- Returns:
- the WYSIWYG content of the specified contribution or null if either the contribution has not yet a content or its content is not a WYSIWYG one.
-
delete
void delete(WysiwygContent content)
Deletes the specified content in the repository.- Parameters:
content
- the content to remove.
-
deleteByContribution
void deleteByContribution(Contribution contribution)
Deletes all the contents of the specified contribution in the repository. If the contribution has several WYSIWYG contents, that is one per localization for example, then all of those contents will be deleted. Otherwise only the single WYSIWYG content of the contribution, whatever its localization will be deleted.- Parameters:
contribution
- the contribution for which all the WYSIWYG contents will be deleted.
-
-