Class WbeFileEdition


  • @Bean
    public class WbeFileEdition
    extends Object
    In charge of the management of WBE contexts.

    The exposed signatures permits to caller to initialize a WBE edition.

    WBE services can use directly the implementation of this interface in order to get more functionality.

    Author:
    silveryocha
    • Constructor Detail

      • WbeFileEdition

        protected WbeFileEdition()
    • Method Detail

      • initializeWith

        public Optional<String> initializeWith​(javax.servlet.http.HttpServletRequest request,
                                               WbeFile file)
        Initializing a WBE edition from given data.
        Parameters:
        request - the current request from which the edition is started.
        file - a Silverpeas's WBE file.
        Returns:
        an optional URL of the Silverpeas's editor page.
      • initializeWith

        public Optional<String> initializeWith​(javax.servlet.http.HttpServletRequest request,
                                               WbeFile file,
                                               Consumer<WbeEdition.Configuration> configSetter)
        Initializing a WBE edition from given data.
        Parameters:
        request - the current request from which the edition is started.
        file - a Silverpeas's WBE file.
        configSetter - permits to configure some details of the edition.
        Returns:
        an optional URL of the Silverpeas's editor page.