Class 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 Detail

      • DefaultSuggestionBoxService

        public DefaultSuggestionBoxService()
    • Method Detail

      • 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 interface SuggestionBoxService
        Parameters:
        suggestionBox - the suggestion box on which the indexation is performed.
      • getContributionById

        public Optional<Suggestion> getContributionById​(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
        Specified by:
        getContributionById in interface org.silverpeas.core.ApplicationService
        Specified by:
        getContributionById in interface SuggestionBoxService
      • getComponentSettings

        public org.silverpeas.core.util.SettingBundle getComponentSettings()
        Specified by:
        getComponentSettings in interface org.silverpeas.core.ApplicationService
      • getComponentMessages

        public org.silverpeas.core.util.LocalizationBundle getComponentMessages​(String language)
        Specified by:
        getComponentMessages in interface org.silverpeas.core.ApplicationService
      • isRelatedTo

        public boolean isRelatedTo​(String instanceId)
        Specified by:
        isRelatedTo in interface org.silverpeas.core.ApplicationService