public class GshTemplateConfiguration extends GrouperConfigurationModuleBase
attributeCache, extraConfigKeys
Constructor and Description |
---|
GshTemplateConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
changeStatus(boolean enable,
StringBuilder message,
List<String> errorsToDisplay,
Map<String,String> validationErrorsToDisplay)
change status of config to disable/enable
|
void |
deleteConfig(boolean fromUi)
delete config
|
void |
editConfig(boolean fromUi,
StringBuilder message,
List<String> errorsToDisplay,
Map<String,String> validationErrorsToDisplay)
save the attribute in an edit.
|
ConfigFileName |
getConfigFileName()
config file name to check for properties and metadata
|
String |
getConfigIdRegex()
config id regeg eg: ^(provisioner)\\.([^.]+)\\.(.*)$
|
String |
getConfigIdThatIdentifiesThisConfig()
config id that identified this config.
|
String |
getConfigItemPrefix()
prefix for the properties eg: provisioner.
|
protected String |
getConfigurationTypePrefix()
for each type of configuration this is the prefix for eg in subsections.
|
void |
insertConfig(boolean fromUi,
StringBuilder message,
List<String> errorsToDisplay,
Map<String,String> validationErrorsToDisplay)
save the attribute in an insert.
|
boolean |
isEnabled()
is the config enabled or not
|
static List<GshTemplateConfiguration> |
retrieveAllGshTemplateConfigs()
list of configured gsh template configs
|
void |
validatePreSave(boolean isInsert,
List<String> errorsToDisplay,
Map<String,String> validationErrorsToDisplay)
validations to run before saving values into db
|
clearAttributeCache, formatIndexes, getCacheAttributePrefix, getCacheEntityAttributePrefix, getCacheFieldPrefix, getCacheGroupAttributePrefix, getConfigId, getDescription, getGenericConfigId, getPropertySuffixThatIdentifiesThisConfig, getPropertyValueThatIdentifiesThisConfig, getSubSections, getTitle, isMultiple, listAllConfigurationsOfThisType, populateConfigurationValuesFromUi, populateValuesLabelsFromOptionValueClass, retrieveAllConfigurations, retrieveAllConfigurationTypesHelper, retrieveAttributes, retrieveConfigurationConfigIds, retrieveConfigurationKeysByPrefix, retrieveExtraConfigKeys, retrieveObjectValueSubstituteMap, retrieveSuffix, setConfigId, showAttributeOverride
public ConfigFileName getConfigFileName()
GrouperConfigurationModuleBase
getConfigFileName
in class GrouperConfigurationModuleBase
public String getConfigItemPrefix()
GrouperConfigurationModuleBase
getConfigItemPrefix
in class GrouperConfigurationModuleBase
public String getConfigIdRegex()
GrouperConfigurationModuleBase
getConfigIdRegex
in class GrouperConfigurationModuleBase
protected String getConfigurationTypePrefix()
GrouperConfigurationModuleBase
getConfigurationTypePrefix
in class GrouperConfigurationModuleBase
public String getConfigIdThatIdentifiesThisConfig()
GrouperConfigurationModuleBase
getConfigIdThatIdentifiesThisConfig
in class GrouperConfigurationModuleBase
public static List<GshTemplateConfiguration> retrieveAllGshTemplateConfigs()
public boolean isEnabled()
isEnabled
in class GrouperConfigurationModuleBase
public void changeStatus(boolean enable, StringBuilder message, List<String> errorsToDisplay, Map<String,String> validationErrorsToDisplay)
enable
- message
- errorsToDisplay
- validationErrorsToDisplay
- public void validatePreSave(boolean isInsert, List<String> errorsToDisplay, Map<String,String> validationErrorsToDisplay)
GrouperConfigurationModuleBase
validatePreSave
in class GrouperConfigurationModuleBase
public void insertConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String,String> validationErrorsToDisplay)
GrouperConfigurationModuleBase
insertConfig
in class GrouperConfigurationModuleBase
errorsToDisplay
- call from ui: guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error, message.toString()));validationErrorsToDisplay
- call from ui: guiResponseJs.addAction(GuiScreenAction.newValidationMessage(GuiMessageType.error, validationKey,
validationErrorsToDisplay.get(validationKey)));public void editConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String,String> validationErrorsToDisplay)
GrouperConfigurationModuleBase
editConfig
in class GrouperConfigurationModuleBase
errorsToDisplay
- call from ui: guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error, message.toString()));validationErrorsToDisplay
- call from ui: guiResponseJs.addAction(GuiScreenAction.newValidationMessage(GuiMessageType.error, validationKey,
validationErrorsToDisplay.get(validationKey)));public void deleteConfig(boolean fromUi)
GrouperConfigurationModuleBase
deleteConfig
in class GrouperConfigurationModuleBase
Copyright © 2016 Internet2. All rights reserved.