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 theSuggestionBoxService
interface and of theApplicationService
interface.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description DefaultSuggestionBoxService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteSuggestionBox(SuggestionBox box)
Deletes the specified suggestion box.SuggestionBox
getByComponentInstanceId(String componentInstanceId)
org.silverpeas.core.util.LocalizationBundle
getComponentMessages(String language)
org.silverpeas.core.util.SettingBundle
getComponentSettings()
Optional<Suggestion>
getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
void
indexSuggestionBox(SuggestionBox suggestionBox)
Indexes all the validated suggestions of the specified suggestion box.boolean
isRelatedTo(String instanceId)
void
saveSuggestionBox(SuggestionBox box)
Saves the specified suggestion box.
-
-
-
Method Detail
-
getByComponentInstanceId
public SuggestionBox getByComponentInstanceId(String componentInstanceId)
- Specified by:
getByComponentInstanceId
in 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:SuggestionBoxService
Indexes all the validated suggestions of the specified suggestion box.- Specified by:
indexSuggestionBox
in 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:
saveSuggestionBox
in interfaceSuggestionBoxService
- Parameters:
box
- the box to save in Silverpeas.
-
deleteSuggestionBox
public void deleteSuggestionBox(SuggestionBox box)
Deletes the specified suggestion box.- Specified by:
deleteSuggestionBox
in interfaceSuggestionBoxService
- Parameters:
box
- the box to delete from Silverpeas.
-
getContributionById
public Optional<Suggestion> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
- Specified by:
getContributionById
in interfaceorg.silverpeas.core.ApplicationService
- Specified by:
getContributionById
in interfaceSuggestionBoxService
-
getComponentSettings
public org.silverpeas.core.util.SettingBundle getComponentSettings()
- Specified by:
getComponentSettings
in interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
public org.silverpeas.core.util.LocalizationBundle getComponentMessages(String language)
- Specified by:
getComponentMessages
in interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
public boolean isRelatedTo(String instanceId)
- Specified by:
isRelatedTo
in interfaceorg.silverpeas.core.ApplicationService
-
-