public class ThemeModule extends BaseModule<ThemeModule,ThemeInfo> implements Validable
| Modifier and Type | Field and Description |
|---|---|
static String |
THEME_KEY |
moduleState| Constructor and Description |
|---|
ThemeModule(File themeFile) |
ThemeModule(File themeFile,
ThemeInfo moduleInfo) |
ThemeModule(ThemeInfo moduleInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String error) |
void |
addErrors(Collection<String> errors) |
Collection<String> |
getErrors() |
String |
getId()
Obtain the id of the module.
|
ThemeInfo |
getModuleInfo()
Obtain the associated module information.
|
boolean |
isDeleted()
Determine whether the module has been marked for deletion.
|
boolean |
isValid() |
void |
resolve(ThemeModule parent,
Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> extensions)
Resolve the module state with the specified parent.
|
void |
setValid(boolean valid) |
finalizeChildModules, finalizeModule, getModuleState, mergeChildModulespublic static final String THEME_KEY
public ThemeModule(File themeFile)
public ThemeModule(ThemeInfo moduleInfo)
public void resolve(ThemeModule parent, Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> extensions) throws org.apache.ambari.server.AmbariException
StackDefinitionModuleresolve in interface StackDefinitionModule<ThemeModule,ThemeInfo>parent - the parent that this module will be merged withallStacks - collection of all stack modules in the treecommonServices - collection of all common service modules in the treeextensions - collection of all extension modules in the treeorg.apache.ambari.server.AmbariException - if resolution failspublic ThemeInfo getModuleInfo()
StackDefinitionModulegetModuleInfo in interface StackDefinitionModule<ThemeModule,ThemeInfo>public boolean isDeleted()
StackDefinitionModuleisDeleted in interface StackDefinitionModule<ThemeModule,ThemeInfo>public String getId()
StackDefinitionModulegetId in interface StackDefinitionModule<ThemeModule,ThemeInfo>public boolean isValid()
isValid in interface StackDefinitionModule<ThemeModule,ThemeInfo>isValid in interface Validablepublic void setValid(boolean valid)
setValid in interface StackDefinitionModule<ThemeModule,ThemeInfo>setValid in interface Validablevalid - set validity flagpublic void addErrors(Collection<String> errors)
public Collection<String> getErrors()
Copyright © 2022 Apache Software Foundation. All rights reserved.