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, showAttributeOverridepublic ConfigFileName getConfigFileName()
GrouperConfigurationModuleBasegetConfigFileName in class GrouperConfigurationModuleBasepublic String getConfigItemPrefix()
GrouperConfigurationModuleBasegetConfigItemPrefix in class GrouperConfigurationModuleBasepublic String getConfigIdRegex()
GrouperConfigurationModuleBasegetConfigIdRegex in class GrouperConfigurationModuleBaseprotected String getConfigurationTypePrefix()
GrouperConfigurationModuleBasegetConfigurationTypePrefix in class GrouperConfigurationModuleBasepublic String getConfigIdThatIdentifiesThisConfig()
GrouperConfigurationModuleBasegetConfigIdThatIdentifiesThisConfig in class GrouperConfigurationModuleBasepublic static List<GshTemplateConfiguration> retrieveAllGshTemplateConfigs()
public boolean isEnabled()
isEnabled in class GrouperConfigurationModuleBasepublic 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)
GrouperConfigurationModuleBasevalidatePreSave in class GrouperConfigurationModuleBasepublic void insertConfig(boolean fromUi,
StringBuilder message,
List<String> errorsToDisplay,
Map<String,String> validationErrorsToDisplay)
GrouperConfigurationModuleBaseinsertConfig in class GrouperConfigurationModuleBaseerrorsToDisplay - 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)
GrouperConfigurationModuleBaseeditConfig in class GrouperConfigurationModuleBaseerrorsToDisplay - 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)
GrouperConfigurationModuleBasedeleteConfig in class GrouperConfigurationModuleBaseCopyright © 2016 Internet2. All rights reserved.