Interface IPublishExecutor

  • All Superinterfaces:
    IRuntimeComponentExecutor
    All Known Implementing Classes:
    PublishExecutor

    public interface IPublishExecutor
    extends IRuntimeComponentExecutor
    1C:Enterprise runtime component executor for infobase publication. Can be used to publish infobase and 1C:Enterprise installation instance or mobile application publication.
    • Method Detail

      • publish

        void publish​(IRuntimeComponent webExtension,
                     WebServer webServer,
                     Publication publication,
                     InfobaseReference infobase)
              throws WebServerAccessException
        Publishes publication on the given web server.

        Also can register the given 1C:Enterprise runtime web extension on the given web server.

        Parameters:
        webExtentions - the 1C:Enterprise runtime web extension component to publish to web server or null if not required
        webServer - the web server to publish to, cannot be null
        publication - the publication to publish, cannot be null
        infobase - the publication infobase, can be null if unknown
        Throws:
        WebServerAccessException - if publish fails
      • edit

        void edit​(IRuntimeComponent webExtension,
                  WebServer webServer,
                  Publication publication,
                  String name)
           throws WebServerAccessException
        Edits publication on the web server. Searches publication by the given name. If not exists on the server, then do nothing.

        Overwrite old publication properties to the new values from the given publication.

        Parameters:
        webExtentions - the 1C:Enterprise runtime web extension component to publish to web server or null if not required
        webServer - the web server to publish to, cannot be null
        publication - the publication that contains new values for overwriting, cannot be null
        name - the name of publication for editing, cannot be null or empty
        Throws:
        WebServerAccessException - if editing fails