Class DefaultSuggestionBoxService
java.lang.Object
org.silverpeas.components.suggestionbox.model.DefaultSuggestionBoxService
- All Implemented Interfaces:
SuggestionBoxService,org.silverpeas.core.ApplicationService
@Service
@Named("suggestionBoxService")
public class DefaultSuggestionBoxService
extends Object
implements SuggestionBoxService
The default implementation of the
SuggestionBoxService interface and of the
ApplicationService interface.- Author:
- mmoquillon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the specified suggestion box.getByComponentInstanceId(String componentInstanceId) org.silverpeas.kernel.bundle.LocalizationBundlegetComponentMessages(String language) org.silverpeas.kernel.bundle.SettingBundlegetContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) voidindexSuggestionBox(SuggestionBox suggestionBox) Indexes all the validated suggestions of the specified suggestion box.booleanisRelatedTo(String instanceId) voidSaves the specified suggestion box.
-
Constructor Details
-
DefaultSuggestionBoxService
public DefaultSuggestionBoxService()
-
-
Method Details
-
getByComponentInstanceId
- Specified by:
getByComponentInstanceIdin interfaceSuggestionBoxService- Parameters:
componentInstanceId- the identifier of a suggestion box instance.- Returns:
- the suggestion box belonging to the specified component instance.
- See Also:
-
indexSuggestionBox
Description copied from interface:SuggestionBoxServiceIndexes all the validated suggestions of the specified suggestion box.- Specified by:
indexSuggestionBoxin interfaceSuggestionBoxService- Parameters:
suggestionBox- the suggestion box on which the indexation is performed.
-
saveSuggestionBox
Saves the specified suggestion box.- Specified by:
saveSuggestionBoxin interfaceSuggestionBoxService- Parameters:
box- the box to save in Silverpeas.
-
deleteSuggestionBox
Deletes the specified suggestion box.- Specified by:
deleteSuggestionBoxin interfaceSuggestionBoxService- Parameters:
box- the box to delete from Silverpeas.
-
getContributionById
public Optional<Suggestion> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) - Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService- Specified by:
getContributionByIdin interfaceSuggestionBoxService
-
getComponentSettings
public org.silverpeas.kernel.bundle.SettingBundle getComponentSettings()- Specified by:
getComponentSettingsin interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
- Specified by:
getComponentMessagesin interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
- Specified by:
isRelatedToin interfaceorg.silverpeas.core.ApplicationService
-