Package org.nuxeo.ecm.admin.operation
Class HotReloadStudioSnapshot
- java.lang.Object
-
- org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot
-
public class HotReloadStudioSnapshot extends Object
Operation to trigger a Hot reload of the Studio Snapshot package. You must be an administrator to trigger it.- Since:
- 8.2
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEPENDENCY_MISMATCH
protected static String
ERROR
static String
ID
protected static String
IN_PROGRESS
protected org.nuxeo.connect.packages.PackageManager
pm
protected CoreSession
session
protected static String
SUCCESS
protected static boolean
updateInProgress
protected boolean
validate
-
Constructor Summary
Constructors Constructor Description HotReloadStudioSnapshot()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
hotReloadPackage(org.nuxeo.connect.data.DownloadablePackage remotePkg)
protected static Blob
jsonHelper(String status, String message, List<String> dependencies)
protected static void
performTask(org.nuxeo.connect.update.task.Task task)
protected static void
removePackage(org.nuxeo.connect.update.PackageUpdateService pus, org.nuxeo.connect.update.LocalPackage pkg)
Blob
run()
protected static boolean
setInProgress(boolean inProgress)
protected boolean
shouldValidate()
-
-
-
Field Detail
-
IN_PROGRESS
protected static final String IN_PROGRESS
- See Also:
- Constant Field Values
-
SUCCESS
protected static final String SUCCESS
- See Also:
- Constant Field Values
-
ERROR
protected static final String ERROR
- See Also:
- Constant Field Values
-
DEPENDENCY_MISMATCH
protected static final String DEPENDENCY_MISMATCH
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
updateInProgress
protected static volatile boolean updateInProgress
-
session
protected CoreSession session
-
pm
protected org.nuxeo.connect.packages.PackageManager pm
-
validate
protected boolean validate
-
-
Method Detail
-
setInProgress
protected static boolean setInProgress(boolean inProgress)
-
shouldValidate
protected boolean shouldValidate()
-
hotReloadPackage
public Blob hotReloadPackage(org.nuxeo.connect.data.DownloadablePackage remotePkg)
-
removePackage
protected static void removePackage(org.nuxeo.connect.update.PackageUpdateService pus, org.nuxeo.connect.update.LocalPackage pkg) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
performTask
protected static void performTask(org.nuxeo.connect.update.task.Task task) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
-