Class GrouperDataRowConfiguration
java.lang.Object
edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
edu.internet2.middleware.grouper.dataField.GrouperDataRowConfiguration
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
attributeCache, extraConfigKeys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteConfig
(boolean fromUi) delete configvoid
editConfig
(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.prefix for the properties eg: provisioner.someConfigId.protected String
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, List<String> actionsPerformed) save the attribute in an insert.static List<GrouperDataRowConfiguration>
list of configured data row configsvoid
validatePreSave
(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
-
GrouperDataRowConfiguration
public GrouperDataRowConfiguration()
-
-
Method Details
-
getConfigFileName
Description copied from class:GrouperConfigurationModuleBase
config file name to check for properties and metadata- Specified by:
getConfigFileName
in classGrouperConfigurationModuleBase
- Returns:
-
getConfigItemPrefix
Description copied from class:GrouperConfigurationModuleBase
prefix for the properties eg: provisioner.someConfigId.- Specified by:
getConfigItemPrefix
in classGrouperConfigurationModuleBase
- Returns:
- the prefix
-
getConfigIdRegex
Description copied from class:GrouperConfigurationModuleBase
config id regeg eg: ^(provisioner)\\.([^.]+)\\.(.*)$- Specified by:
getConfigIdRegex
in classGrouperConfigurationModuleBase
- Returns:
-
getConfigurationTypePrefix
Description copied from class:GrouperConfigurationModuleBase
for each type of configuration this is the prefix for eg in subsections. only ui concern in external text config.- Specified by:
getConfigurationTypePrefix
in classGrouperConfigurationModuleBase
- Returns:
-
getConfigIdThatIdentifiesThisConfig
Description copied from class:GrouperConfigurationModuleBase
config id that identified this config. either suffix and value or getConfigIdThatIdentifiesThisConfig is required, not both. eg: personLdap- Overrides:
getConfigIdThatIdentifiesThisConfig
in classGrouperConfigurationModuleBase
- Returns:
-
retrieveAllDataRowConfigurations
list of configured data row configs- Returns:
-
validatePreSave
public void validatePreSave(boolean isInsert, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) Description copied from class:GrouperConfigurationModuleBase
validations to run before saving values into db- Overrides:
validatePreSave
in classGrouperConfigurationModuleBase
-
insertConfig
public void insertConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay, List<String> actionsPerformed) Description copied from class:GrouperConfigurationModuleBase
save the attribute in an insert. Note, if theres a failure, you should see if any made it- Overrides:
insertConfig
in classGrouperConfigurationModuleBase
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)));
-
deleteConfig
public void deleteConfig(boolean fromUi) Description copied from class:GrouperConfigurationModuleBase
delete config- Overrides:
deleteConfig
in classGrouperConfigurationModuleBase
-
editConfig
public void editConfig(boolean fromUi, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay, List<String> actionsPerformed) Description copied from class:GrouperConfigurationModuleBase
save the attribute in an edit. Note, if theres a failure, you should see if any made it- Overrides:
editConfig
in classGrouperConfigurationModuleBase
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)));actionsPerformed
- add to screen so user knows what is going on
-