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 SuggestionBoxServiceThe default implementation of theSuggestionBoxServiceinterface and of theApplicationServiceinterface.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description DefaultSuggestionBoxService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSuggestionBox(SuggestionBox box)Deletes the specified suggestion box.SuggestionBoxgetByComponentInstanceId(String componentInstanceId)org.silverpeas.kernel.bundle.LocalizationBundlegetComponentMessages(String language)org.silverpeas.kernel.bundle.SettingBundlegetComponentSettings()Optional<Suggestion>getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)voidindexSuggestionBox(SuggestionBox suggestionBox)Indexes all the validated suggestions of the specified suggestion box.booleanisRelatedTo(String instanceId)voidsaveSuggestionBox(SuggestionBox box)Saves the specified suggestion box.
-
-
-
Method Detail
-
getByComponentInstanceId
public SuggestionBox getByComponentInstanceId(String componentInstanceId)
- 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:
(String)
-
indexSuggestionBox
public void indexSuggestionBox(SuggestionBox suggestionBox)
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
public void saveSuggestionBox(SuggestionBox box)
Saves the specified suggestion box.- Specified by:
saveSuggestionBoxin interfaceSuggestionBoxService- Parameters:
box- the box to save in Silverpeas.
-
deleteSuggestionBox
public void deleteSuggestionBox(SuggestionBox box)
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
public org.silverpeas.kernel.bundle.LocalizationBundle getComponentMessages(String language)
- Specified by:
getComponentMessagesin interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
public boolean isRelatedTo(String instanceId)
- Specified by:
isRelatedToin interfaceorg.silverpeas.core.ApplicationService
-
-