Interface SuggestionBoxService
- All Superinterfaces:
org.silverpeas.core.ApplicationService
- All Known Implementing Classes:
DefaultSuggestionBoxService
public interface SuggestionBoxService
extends org.silverpeas.core.ApplicationService
A business service to provide a high level interface in the management of the suggestion boxes
and of the suggestions.
This service isn't intended to be used as such but within the business objects SuggestionBox and Suggestion. All the operations requiring interaction with other business services or persistence repositories are delegated to this service by the SuggestionBox objects and by the Suggestion objects.
- Author:
- mmoquillon
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the specified suggestion box.static SuggestionBoxServiceget()Gets an object of this interface.getByComponentInstanceId(String componentInstanceId) getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) voidindexSuggestionBox(SuggestionBox suggestionBox) Indexes all the validated suggestions of the specified suggestion box.voidSaves the specified suggestion box.Methods inherited from interface org.silverpeas.core.ApplicationService
getComponentMessages, getComponentSettings, isRelatedTo
-
Method Details
-
get
Gets an object of this interface. The default implementation is used.- Returns:
- a SuggestionBoxService object.
-
getContributionById
Optional<Suggestion> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) - Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService
-
getByComponentInstanceId
- Parameters:
componentInstanceId- the identifier of a suggestion box instance.- Returns:
- the suggestion box belonging to the specified component instance.
- See Also:
-
indexSuggestionBox
Indexes all the validated suggestions of the specified suggestion box.- Parameters:
suggestionBox- the suggestion box on which the indexation is performed.
-
saveSuggestionBox
Saves the specified suggestion box.- Parameters:
box- the box to save in Silverpeas.
-
deleteSuggestionBox
Deletes the specified suggestion box.- Parameters:
box- the box to delete from Silverpeas.
-