|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstallContext
The InstallContext
provides Task
s
and install/update UI with methods to log, get content and status.
Nested Class Summary | |
---|---|
static class |
InstallContext.Message
Log messages kept in the InstallContext. |
static class |
InstallContext.MessagePriority
Priority for InstallContext.Message s. |
Method Summary | |
---|---|
void |
error(java.lang.String message,
java.lang.Throwable th)
|
HierarchyManager |
getConfigHierarchyManager()
|
ModuleDefinition |
getCurrentModuleDefinition()
Allows generic tasks to know what's being installed/updated. |
int |
getExecutedTaskCount()
|
HierarchyManager |
getHierarchyManager(java.lang.String workspace)
|
java.util.Map<java.lang.String,java.util.List<InstallContext.Message>> |
getMessages()
A Map of messages where the key is the module name. |
Content |
getModulesNode()
|
Content |
getOrCreateCurrentModuleConfigNode()
|
Content |
getOrCreateCurrentModuleNode()
|
InstallStatus |
getStatus()
|
int |
getTotalTaskCount()
|
boolean |
hasModulesNode()
|
void |
info(java.lang.String message)
|
boolean |
isModuleRegistered(java.lang.String moduleName)
|
void |
restartNeeded(java.lang.String message)
|
void |
warn(java.lang.String message)
|
Method Detail |
---|
void info(java.lang.String message)
void warn(java.lang.String message)
void error(java.lang.String message, java.lang.Throwable th)
void restartNeeded(java.lang.String message)
int getExecutedTaskCount()
int getTotalTaskCount()
InstallStatus getStatus()
java.util.Map<java.lang.String,java.util.List<InstallContext.Message>> getMessages()
HierarchyManager getHierarchyManager(java.lang.String workspace)
HierarchyManager getConfigHierarchyManager()
boolean hasModulesNode()
Content getModulesNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Content getOrCreateCurrentModuleNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Content getOrCreateCurrentModuleConfigNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
ModuleDefinition getCurrentModuleDefinition()
boolean isModuleRegistered(java.lang.String moduleName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |