public class QuickLinksConfigurationModule extends BaseModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo> implements Validable
Modifier and Type | Field and Description |
---|---|
static String |
QUICKLINKS_CONFIGURATION_KEY |
moduleState
Constructor and Description |
---|
QuickLinksConfigurationModule(File quickLinksConfigurationFile) |
QuickLinksConfigurationModule(File quickLinksConfigurationFile,
QuickLinksConfigurationInfo moduleInfo) |
QuickLinksConfigurationModule(QuickLinksConfigurationInfo 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.
|
QuickLinksConfigurationInfo |
getModuleInfo()
Obtain the associated module information.
|
boolean |
isDeleted()
Determine whether the module has been marked for deletion.
|
boolean |
isValid() |
void |
resolve(QuickLinksConfigurationModule parent,
Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> allExtensions)
Resolve the module state with the specified parent.
|
void |
setValid(boolean valid) |
finalizeChildModules, finalizeModule, getModuleState, mergeChildModules
public static final String QUICKLINKS_CONFIGURATION_KEY
public QuickLinksConfigurationModule(File quickLinksConfigurationFile)
public QuickLinksConfigurationModule(File quickLinksConfigurationFile, QuickLinksConfigurationInfo moduleInfo)
public QuickLinksConfigurationModule(QuickLinksConfigurationInfo moduleInfo)
public void resolve(QuickLinksConfigurationModule parent, Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> allExtensions) throws org.apache.ambari.server.AmbariException
StackDefinitionModule
resolve
in interface StackDefinitionModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo>
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 treeallExtensions
- collection of all extension modules in the treeorg.apache.ambari.server.AmbariException
- if resolution failspublic QuickLinksConfigurationInfo getModuleInfo()
StackDefinitionModule
getModuleInfo
in interface StackDefinitionModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo>
public boolean isDeleted()
StackDefinitionModule
isDeleted
in interface StackDefinitionModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo>
public String getId()
StackDefinitionModule
getId
in interface StackDefinitionModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo>
public boolean isValid()
isValid
in interface StackDefinitionModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo>
isValid
in interface Validable
public void setValid(boolean valid)
setValid
in interface StackDefinitionModule<QuickLinksConfigurationModule,QuickLinksConfigurationInfo>
setValid
in interface Validable
valid
- set validity flagpublic void addErrors(Collection<String> errors)
public Collection<String> getErrors()
Copyright © 2022 Apache Software Foundation. All rights reserved.