public interface InstallContext
InstallContext
provides Task
s
and install/update UI with methods to log, get content and status.Modifier and Type | Interface and Description |
---|---|
static class |
InstallContext.Message
Log messages kept in the InstallContext.
|
static class |
InstallContext.MessagePriority
Priority for
InstallContext.Message s. |
Modifier and Type | Method and Description |
---|---|
void |
error(String message,
Throwable th) |
javax.jcr.Session |
getConfigJCRSession() |
ModuleDefinition |
getCurrentModuleDefinition()
Allows generic tasks to know what's being installed/updated.
|
int |
getExecutedTaskCount() |
javax.jcr.Session |
getJCRSession(String workspaceName) |
Map<String,List<InstallContext.Message>> |
getMessages()
A Map of messages where the key is the module name.
|
javax.jcr.Node |
getModulesNode() |
javax.jcr.Node |
getOrCreateCurrentModuleConfigNode() |
javax.jcr.Node |
getOrCreateCurrentModuleNode() |
InstallStatus |
getStatus() |
int |
getTotalTaskCount() |
boolean |
hasModulesNode() |
void |
info(String message) |
boolean |
isModuleRegistered(String moduleName) |
void |
restartNeeded(String message) |
void |
warn(String message) |
void info(String message)
void warn(String message)
void restartNeeded(String message)
int getExecutedTaskCount()
int getTotalTaskCount()
InstallStatus getStatus()
Map<String,List<InstallContext.Message>> getMessages()
boolean hasModulesNode()
javax.jcr.Node getModulesNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.Node getOrCreateCurrentModuleNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.Node getOrCreateCurrentModuleConfigNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
ModuleDefinition getCurrentModuleDefinition()
boolean isModuleRegistered(String moduleName)
javax.jcr.Session getJCRSession(String workspaceName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.Session getConfigJCRSession() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.