Class GrouperDataFieldConfiguration
java.lang.Object
edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
edu.internet2.middleware.grouper.dataField.GrouperDataFieldConfiguration
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
attributeCache, extraConfigKeys -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteConfig(boolean fromUi) delete configvoideditConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay, List<String> actionsPerformed) save the attribute in an edit.config file name to check for properties and metadataconfig id regeg eg: ^(provisioner)\\.([^.]+)\\.(.*)$config id that identified this config. either suffix and value or getConfigIdThatIdentifiesThisConfig is required, not both. eg: personLdapprefix for the properties eg: provisioner.someConfigId.protected Stringfor each type of configuration this is the prefix for eg in subsections. only ui concern in external text config.voidinsertConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay, List<String> actionsPerformed) save the attribute in an insert.static List<GrouperDataFieldConfiguration>list of configured data field configsvoidvalidatePreSave(boolean isInsert, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) validations to run before saving values into dbMethods inherited from class edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
changeStatus, clearAttributeCache, formatIndexes, getCacheAttributePrefix, getCacheEntityAttributePrefix, getCacheGroupAttributePrefix, getCacheMembershipAttributePrefix, getConfigId, getDescription, getDocumentation, getGenericConfigId, getPropertySuffixThatIdentifiesThisConfig, getPropertyValueThatIdentifiesThisConfig, getStartWithDescription, getStartWithDocumentation, getSubSections, getTitle, isEnabled, isMultiple, listAllConfigurationsOfThisType, populateConfigurationValuesFromUi, populateValuesLabelsFromOptionValueClass, removeNoUnsedConfigs, retrieveAllConfigurations, retrieveAllConfigurationTypesHelper, retrieveAttributes, retrieveAttributesFromConfig, retrieveAttributeValueFromConfig, retrieveConfigurationConfigIds, retrieveConfigurationKeysByPrefix, retrieveExtraConfigKeys, retrieveObjectValueSubstituteMap, retrieveSuffix, retrieveText, setConfigId, showAttributeOverride
-
Constructor Details
-
GrouperDataFieldConfiguration
public GrouperDataFieldConfiguration()
-
-
Method Details
-
getConfigFileName
Description copied from class:GrouperConfigurationModuleBaseconfig file name to check for properties and metadata- Specified by:
getConfigFileNamein classGrouperConfigurationModuleBase- Returns:
-
getConfigItemPrefix
Description copied from class:GrouperConfigurationModuleBaseprefix for the properties eg: provisioner.someConfigId.- Specified by:
getConfigItemPrefixin classGrouperConfigurationModuleBase- Returns:
- the prefix
-
getConfigIdRegex
Description copied from class:GrouperConfigurationModuleBaseconfig id regeg eg: ^(provisioner)\\.([^.]+)\\.(.*)$- Specified by:
getConfigIdRegexin classGrouperConfigurationModuleBase- Returns:
-
getConfigurationTypePrefix
Description copied from class:GrouperConfigurationModuleBasefor each type of configuration this is the prefix for eg in subsections. only ui concern in external text config.- Specified by:
getConfigurationTypePrefixin classGrouperConfigurationModuleBase- Returns:
-
getConfigIdThatIdentifiesThisConfig
Description copied from class:GrouperConfigurationModuleBaseconfig id that identified this config. either suffix and value or getConfigIdThatIdentifiesThisConfig is required, not both. eg: personLdap- Overrides:
getConfigIdThatIdentifiesThisConfigin classGrouperConfigurationModuleBase- Returns:
-
retrieveAllDataFieldConfigurations
list of configured data field configs- Returns:
-
validatePreSave
public void validatePreSave(boolean isInsert, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) Description copied from class:GrouperConfigurationModuleBasevalidations to run before saving values into db- Overrides:
validatePreSavein classGrouperConfigurationModuleBase
-
insertConfig
public void insertConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay, List<String> actionsPerformed) Description copied from class:GrouperConfigurationModuleBasesave the attribute in an insert. Note, if theres a failure, you should see if any made it- Overrides:
insertConfigin classGrouperConfigurationModuleBaseerrorsToDisplay- 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)));
-
deleteConfig
public void deleteConfig(boolean fromUi) Description copied from class:GrouperConfigurationModuleBasedelete config- Overrides:
deleteConfigin classGrouperConfigurationModuleBase
-
editConfig
public void editConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay, List<String> actionsPerformed) Description copied from class:GrouperConfigurationModuleBasesave the attribute in an edit. Note, if theres a failure, you should see if any made it- Overrides:
editConfigin classGrouperConfigurationModuleBaseerrorsToDisplay- 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)));actionsPerformed- add to screen so user knows what is going on
-