diff --git a/repository/src/main/resources/alfresco/messages/ootbee-support-tools.properties b/repository/src/main/resources/alfresco/messages/ootbee-support-tools.properties
index b5bd79a5..7e35151a 100644
--- a/repository/src/main/resources/alfresco/messages/ootbee-support-tools.properties
+++ b/repository/src/main/resources/alfresco/messages/ootbee-support-tools.properties
@@ -54,4 +54,7 @@ ootbee-support-tools.command-console.subsystems.listProperties.description=Lists
ootbee-support-tools.command-console.subsystems.setProperty.description=Modifies the value of a property in a subsystem instance
ootbee-support-tools.command-console.subsystems.setProperties.description=Modifies the values of multiple properties in a subsystem instance
ootbee-support-tools.command-console.subsystems.removeProperties.description=Removes a list of properties in a subsystem instance (does not reset to their default configured values)
-ootbee-support-tools.command-console.subsystems.revert.description=Resets all properties in a subsystem instance to their default configured values
\ No newline at end of file
+ootbee-support-tools.command-console.subsystems.revert.description=Resets all properties in a subsystem instance to their default configured values
+ootbee-support-tools.command-console.subsystems.stop.description=Stops an subsystem instance, if running
+ootbee-support-tools.command-console.subsystems.start.description=Starts an subsystem instance, if stopped
+ootbee-support-tools.command-console.subsystems.restart.description=Restarts an subsystem instance, if running
\ No newline at end of file
diff --git a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_de.properties b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_de.properties
index c7b0fff6..ea922eed 100644
--- a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_de.properties
+++ b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_de.properties
@@ -54,4 +54,7 @@ ootbee-support-tools.command-console.subsystems.listProperties.description=Liste
ootbee-support-tools.command-console.subsystems.setProperty.description=\u00C4ndert den Wert einer Einstellung einer Subsystem-Instanz.
ootbee-support-tools.command-console.subsystems.setProperties.description=\u00C4ndert die Werte mehrerer Einstellungen einer Subsystem-Instanz.
ootbee-support-tools.command-console.subsystems.removeProperties.description=Entfernt mehrere Einstellungen einer Subsystem-Instanz (kein Zur\u00fccksetzen auf Standardwerte.
-ootbee-support-tools.command-console.subsystems.revert.description=Setzt alle Einstellungen einer Subsystem-Instanz auf die Standardwerte zur\u00fcck.
\ No newline at end of file
+ootbee-support-tools.command-console.subsystems.revert.description=Setzt alle Einstellungen einer Subsystem-Instanz auf die Standardwerte zur\u00fcck.
+ootbee-support-tools.command-console.subsystems.stop.description=Stops an subsystem instance, if running
+ootbee-support-tools.command-console.subsystems.start.description=Starts an subsystem instance, if stopped
+ootbee-support-tools.command-console.subsystems.restart.description=Restarts an subsystem instance, if running
\ No newline at end of file
diff --git a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_en.properties b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_en.properties
index b5bd79a5..7e35151a 100644
--- a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_en.properties
+++ b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_en.properties
@@ -54,4 +54,7 @@ ootbee-support-tools.command-console.subsystems.listProperties.description=Lists
ootbee-support-tools.command-console.subsystems.setProperty.description=Modifies the value of a property in a subsystem instance
ootbee-support-tools.command-console.subsystems.setProperties.description=Modifies the values of multiple properties in a subsystem instance
ootbee-support-tools.command-console.subsystems.removeProperties.description=Removes a list of properties in a subsystem instance (does not reset to their default configured values)
-ootbee-support-tools.command-console.subsystems.revert.description=Resets all properties in a subsystem instance to their default configured values
\ No newline at end of file
+ootbee-support-tools.command-console.subsystems.revert.description=Resets all properties in a subsystem instance to their default configured values
+ootbee-support-tools.command-console.subsystems.stop.description=Stops an subsystem instance, if running
+ootbee-support-tools.command-console.subsystems.start.description=Starts an subsystem instance, if stopped
+ootbee-support-tools.command-console.subsystems.restart.description=Restarts an subsystem instance, if running
\ No newline at end of file
diff --git a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_es.properties b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_es.properties
index 3670d605..ed19d07f 100644
--- a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_es.properties
+++ b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_es.properties
@@ -54,4 +54,7 @@ ootbee-support-tools.command-console.subsystems.listProperties.description=Lista
ootbee-support-tools.command-console.subsystems.setProperty.description=Modifica el valor de una propiedad en una instancia de un subsistema
ootbee-support-tools.command-console.subsystems.setProperties.description=Modifica los valores de propiedades m\u00FAltiples en una instancia de un subsistema
ootbee-support-tools.command-console.subsystems.removeProperties.description=Elimina una lista de propiedades en una instancia de un subsistema, pero no las devuelve a su valor configurado por defecto
-ootbee-support-tools.command-console.subsystems.revert.description=Recupera todas las propiedades en una instancia de un subsistema a sus valores configurados por defecto
\ No newline at end of file
+ootbee-support-tools.command-console.subsystems.revert.description=Recupera todas las propiedades en una instancia de un subsistema a sus valores configurados por defecto
+ootbee-support-tools.command-console.subsystems.stop.description=Stops an subsystem instance, if running
+ootbee-support-tools.command-console.subsystems.start.description=Starts an subsystem instance, if stopped
+ootbee-support-tools.command-console.subsystems.restart.description=Restarts an subsystem instance, if running
\ No newline at end of file
diff --git a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_it.properties b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_it.properties
index 26f17ac8..05492ab9 100644
--- a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_it.properties
+++ b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_it.properties
@@ -54,4 +54,7 @@ ootbee-support-tools.command-console.subsystems.listProperties.description=Lists
ootbee-support-tools.command-console.subsystems.setProperty.description=Modifies the value of a property in a subsystem instance
ootbee-support-tools.command-console.subsystems.setProperties.description=Modifies the values of multiple properties in a subsystem instance
ootbee-support-tools.command-console.subsystems.removeProperties.description=Removes a list of properties in a subsystem instance (does not reset to their default configured values)
-ootbee-support-tools.command-console.subsystems.revert.description=Resets all properties in a subsystem instance to their default configured values
\ No newline at end of file
+ootbee-support-tools.command-console.subsystems.revert.description=Resets all properties in a subsystem instance to their default configured values
+ootbee-support-tools.command-console.subsystems.stop.description=Stops an subsystem instance, if running
+ootbee-support-tools.command-console.subsystems.start.description=Starts an subsystem instance, if stopped
+ootbee-support-tools.command-console.subsystems.restart.description=Restarts an subsystem instance, if running
\ No newline at end of file
diff --git a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_pt.properties b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_pt.properties
index de5f07b8..4a2505f7 100644
--- a/repository/src/main/resources/alfresco/messages/ootbee-support-tools_pt.properties
+++ b/repository/src/main/resources/alfresco/messages/ootbee-support-tools_pt.properties
@@ -55,3 +55,6 @@ ootbee-support-tools.command-console.subsystems.setProperty.description=Modifica
ootbee-support-tools.command-console.subsystems.setProperties.description=Modifica o valor de m\u00faltiplas propriedades de uma inst\u00e2ncia de um susbsistema
ootbee-support-tools.command-console.subsystems.removeProperties.description=Remove uma lista de propriedades em uma inst\u00e2nia de um subsistema (n\u00e3o reajusta seus valores para os valores padr\u00e3o)
ootbee-support-tools.command-console.subsystems.revert.description=Reajusta todas as propriedades de uma inst\u00e2ncia de um subsistema para seus valores padr\u00e3o
+ootbee-support-tools.command-console.subsystems.stop.description=Para uma inst\u00e2ncia de um subsistema, se estiver em execu\u00e7\u00e3o
+ootbee-support-tools.command-console.subsystems.start.description=Inicia uma inst\u00e2ncia de um subsistema, se estiver parado
+ootbee-support-tools.command-console.subsystems.restart.description=Reinicia uma inst\u00e2ncia de um subsistema, se estiver em execu\u00e7\u00e3o
diff --git a/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.desc.xml b/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.desc.xml
index f96500e5..4e6e7386 100644
--- a/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.desc.xml
+++ b/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.desc.xml
@@ -9,6 +9,9 @@
/ootbee/admin/command-console/subsystems/setProperties
/ootbee/admin/command-console/subsystems/removeProperties
/ootbee/admin/command-console/subsystems/revert
+ /ootbee/admin/command-console/subsystems/stop
+ /ootbee/admin/command-console/subsystems/start
+ /ootbee/admin/command-console/subsystems/restart
OOTBee Support Tools
any
json
diff --git a/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.ftl b/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.ftl
index dd7bfa74..d174d4b8 100644
--- a/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.ftl
+++ b/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.ftl
@@ -45,7 +45,13 @@ Copyright (C) 2005 - 2020 Alfresco Software Limited.
"\t${msg("ootbee-support-tools.command-console.subsystems.removeProperties.description")}",
"",
"revert ",
- "\t${msg("ootbee-support-tools.command-console.subsystems.revert.description")}"
+ "\t${msg("ootbee-support-tools.command-console.subsystems.revert.description")}",
+ "stop ",
+ "\t${msg("ootbee-support-tools.command-console.subsystems.stop.description")}",
+ "start ",
+ "\t${msg("ootbee-support-tools.command-console.subsystems.start.description")}",
+ "restart ",
+ "\t${msg("ootbee-support-tools.command-console.subsystems.restart.description")}"
<#break>
<#case "listInstances">
<#list subsystemInstances as subsystemInstance>
@@ -138,6 +144,33 @@ Copyright (C) 2005 - 2020 Alfresco Software Limited.
<#else>
"${msg("ootbee-support-tools.command-console.subsystems.error.instanceIdRequired")}"
#if>
+ <#break>
+ <#case "stop">
+ <#if requestedInstanceId?? && subsystemInstance??>
+ <@renderSubsystemInstanceRow subsystemInstance />
+ <#elseif requestedInstanceId??>
+ "${msg("ootbee-support-tools.command-console.subsystems.error.unknownInstance", requestedInstanceId)}"
+ <#else>
+ "${msg("ootbee-support-tools.command-console.subsystems.error.instanceIdRequired")}"
+ #if>
+ <#break>
+ <#case "start">
+ <#if requestedInstanceId?? && subsystemInstance??>
+ <@renderSubsystemInstanceRow subsystemInstance />
+ <#elseif requestedInstanceId??>
+ "${msg("ootbee-support-tools.command-console.subsystems.error.unknownInstance", requestedInstanceId)}"
+ <#else>
+ "${msg("ootbee-support-tools.command-console.subsystems.error.instanceIdRequired")}"
+ #if>
+ <#break>
+ <#case "restart">
+ <#if requestedInstanceId?? && subsystemInstance??>
+ <@renderSubsystemInstanceRow subsystemInstance />
+ <#elseif requestedInstanceId??>
+ "${msg("ootbee-support-tools.command-console.subsystems.error.unknownInstance", requestedInstanceId)}"
+ <#else>
+ "${msg("ootbee-support-tools.command-console.subsystems.error.instanceIdRequired")}"
+ #if>
<#break>
#switch>
]
diff --git a/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.js b/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.js
index 133bccf6..d73e9fc6 100644
--- a/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.js
+++ b/repository/src/main/resources/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/command-console-plugins/subsystem-commands.post.json.js
@@ -414,6 +414,58 @@ function revert(reqArgs)
}
}
+function stop(reqArgs)
+{
+ var factoryOrManager;
+
+ if (reqArgs.length >= 1)
+ {
+ model.requestedInstanceId = reqArgs[0];
+ factoryOrManager = resolveSubsystemInstance(model.requestedInstanceId);
+
+ if (factoryOrManager)
+ {
+ model.subsystemInstance = toInstance(factoryOrManager);
+ factoryOrManager.stop();
+ }
+ }
+}
+
+function start(reqArgs)
+{
+ var factoryOrManager;
+
+ if (reqArgs.length >= 1)
+ {
+ model.requestedInstanceId = reqArgs[0];
+ factoryOrManager = resolveSubsystemInstance(model.requestedInstanceId);
+
+ if (factoryOrManager)
+ {
+ model.subsystemInstance = toInstance(factoryOrManager);
+ factoryOrManager.start();
+ }
+ }
+}
+
+function restart(reqArgs)
+{
+ var factoryOrManager;
+
+ if (reqArgs.length >= 1)
+ {
+ model.requestedInstanceId = reqArgs[0];
+ factoryOrManager = resolveSubsystemInstance(model.requestedInstanceId);
+
+ if (factoryOrManager)
+ {
+ model.subsystemInstance = toInstance(factoryOrManager);
+ factoryOrManager.stop();
+ factoryOrManager.start();
+ }
+ }
+}
+
function main()
{
var service, reqBody, reqArgs, argIdx;
@@ -452,6 +504,15 @@ function main()
case 'revert':
revert(reqArgs);
break;
+ case 'stop':
+ stop(reqArgs);
+ break;
+ case 'start':
+ start(reqArgs);
+ break;
+ case 'restart':
+ restart(reqArgs);
+ break;
case 'help': // no-op
break;
default: