Class PublishExecutor
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractRuntimeComponentExecutor
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.PublishExecutor
-
- All Implemented Interfaces:
IPublishExecutor
,IRuntimeComponentExecutor
public class PublishExecutor extends AbstractRuntimeComponentExecutor implements IPublishExecutor
Implementation ofIPublishExecutor
.
-
-
Constructor Summary
Constructors Constructor Description PublishExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
edit(IRuntimeComponent webExtension, WebServer webServer, Publication publication, String name)
Edits publication on the web server.void
publish(IRuntimeComponent webExtension, WebServer webServer, Publication publication, InfobaseReference infobase)
Publishes publication on the given web server.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractRuntimeComponentExecutor
appendClientArguments, appendExtensionCustomization, appendInfobaseAccess, appendRuntimeClientArguments, createTempFile, executeRuntimeProcessCommand, needComponent, readRuntimeLog, splitInfobaseConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.platform.services.core.runtimes.execution.IRuntimeComponentExecutor
needComponent
-
-
-
-
Method Detail
-
publish
public void publish(IRuntimeComponent webExtension, WebServer webServer, Publication publication, InfobaseReference infobase) throws WebServerAccessException
Description copied from interface:IPublishExecutor
Publishes publication on the given web server.Also can register the given 1C:Enterprise runtime web extension on the given web server.
- Specified by:
publish
in interfaceIPublishExecutor
webServer
- the web server to publish to, cannot benull
publication
- the publication to publish, cannot benull
infobase
- the publication infobase, can benull
if unknown- Throws:
WebServerAccessException
- if publish fails
-
edit
public void edit(IRuntimeComponent webExtension, WebServer webServer, Publication publication, String name) throws WebServerAccessException
Description copied from interface:IPublishExecutor
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.
- Specified by:
edit
in interfaceIPublishExecutor
webServer
- the web server to publish to, cannot benull
publication
- the publication that contains new values for overwriting, cannot benull
name
- the name of publication for editing, cannot benull
or empty- Throws:
WebServerAccessException
- if editing fails
-
-