Class ConfigItemMetadata
java.lang.Object
edu.internet2.middleware.grouper.cfg.dbConfig.ConfigItemMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone(int repeatIndex) replace $i$ with repeat indexcheckbox values, labels, and checked for checkboxescomments in the file about this itemdefault valuedefault value EL expressionmust be in ConfigItemFormElement enumintnumber of levels to indent in hide/showgetKey()key to this value (optional)if metadata json was converted to json successfully and validif the metadata json was processed successfullyfully qualified classname that this value which is a class must extendfully qualified interface that this value which is a class must implementString[]if this is a drop down, these are the acceptable valuesintgetOrder()raw json string in the properties filegetRegex()if this can be a list of values, this is the regexinthow many times a property should be repeatedcommon label of repeated configs that should be in a repeated blockintif this is set, put in an expression language that can depend on other attribute suffixes to see if an item is required or notif commented out property, this is the sample keyan example value for the propertyif this is set, put in an expression language that can depend on other attribute suffixes to see if an item is shown or notput a label to group items together.getValue()value in config filevalue type, e.g.booleanif multiple values are allowed (e.g.booleanis this property read only?booleanif this is a required fieldbooleanif changing this property requires restart of grouperbooleanif sample propertybooleanshould this propery be saved to database?booleanif this is a password or other private field that probably shouldnt be displayed especially if the password or encrypted password is listed in the valuevoidvoidsetCheckboxValuesFromClass(String checkboxValuesFromClass) checkbox values, labels, and checked for checkboxesvoidsetComment(String comment1) comments in the file about this itemvoidsetDefaultValue(String defaultValue) default valuevoidsetDefaultValueEl(String defaultValueEl) default value EL expressionvoidsetFormElement(ConfigItemFormElement formElement1) must be in ConfigItemFormElement enumvoidsetIndent(int indent) number of levels to indent in hide/showvoidkey to this value (optional)voidsetMetadataError(String metadataError1) if metadata json was converted to json successfully and validvoidsetMetadataProcessedSuccessfully(Boolean metadataProcessedSuccessfully1) if the metadata json was processed successfullyvoidsetMultiple(boolean multiple1) if multiple values are allowed (e.g.voidsetMustExtendClass(String mustExtendClass1) fully qualified classname that this value which is a class must extendvoidsetMustImplementInterface(String mustImplementInterface1) fully qualified interface that this value which is a class must implementvoidsetOptionValues(String[] optionValues) if this is a drop down, these are the acceptable valuesvoidsetOptionValuesFromClass(String optionValuesFromClass) option values from class for dropdownsvoidsetOrder(int order) used for ordering elementsvoidsetRawMetadataJson(String rawMetadataJson1) raw json string in the properties filevoidsetReadOnly(boolean readOnly) is this property read onlyvoidif this can be a list of values, this is the regexvoidsetRepeatCount(int repeatCount) how many times a property should be repeatedvoidsetRepeatGroup(String repeatGroup) common label of repeated configs that should be in a repeated blockvoidsetRepeatGroupIndex(int repeatGroupIndex) voidsetRequired(boolean required1) if this is a required fieldvoidsetRequiredEl(String requiredEl) if this is set, put in an expression language that can depend on other attribute suffixes to see if an item is required or notvoidsetRequiresRestart(boolean requiresRestart1) if changing this property requires restart of groupervoidsetSampleKey(String sampleKey) if commented out property, this is the sample keyvoidsetSampleValue(String sampleValue1) an example value for the propertyvoidsetSaveToDb(boolean saveToDb) should this propery be saved to database?voidsetSensitive(boolean sensitive1) if this is a password or other private field that probably shouldnt be displayed especially if the password or encrypted password is listed in the valuevoidif this is set, put in an expression language that can depend on other attribute suffixes to see if an item is shown or notvoidsetSubSection(String section) put a label to group items together.voidvalue in config filevoidsetValueType(ConfigItemMetadataType valueType1) value type, e.g.
-
Constructor Details
-
ConfigItemMetadata
public ConfigItemMetadata()
-
-
Method Details
-
getKeyOrSampleKey
- Returns:
- key or sample key
-
isSampleProperty
public boolean isSampleProperty()if sample property- Returns:
- key or sample key
-
getSampleKey
if commented out property, this is the sample key- Returns:
- the sample key
-
setSampleKey
if commented out property, this is the sample key- Parameters:
sampleKey-
-
getSampleValue
an example value for the property- Returns:
- the sampleValue
-
setSampleValue
an example value for the property- Parameters:
sampleValue1- the sampleValue to set
-
isRequiresRestart
public boolean isRequiresRestart()if changing this property requires restart of grouper- Returns:
- the requiresRestart
-
setRequiresRestart
public void setRequiresRestart(boolean requiresRestart1) if changing this property requires restart of grouper- Parameters:
requiresRestart1- the requiresRestart to set
-
getMetadataProcessedSuccessfully
if the metadata json was processed successfully- Returns:
- the metadataProcessedSuccessfully
-
setMetadataProcessedSuccessfully
if the metadata json was processed successfully- Parameters:
metadataProcessedSuccessfully1- the metadataProcessedSuccessfully to set
-
getMetadataError
if metadata json was converted to json successfully and valid- Returns:
- the metadataError
-
setMetadataError
if metadata json was converted to json successfully and valid- Parameters:
metadataError1- the metadataError to set
-
getRepeatGroup
common label of repeated configs that should be in a repeated block- Returns:
-
setRepeatGroup
common label of repeated configs that should be in a repeated block- Parameters:
repeatGroup-
-
getRepeatCount
public int getRepeatCount()how many times a property should be repeated- Returns:
-
setRepeatCount
public void setRepeatCount(int repeatCount) how many times a property should be repeated- Parameters:
repeatCount-
-
getRepeatGroupIndex
public int getRepeatGroupIndex() -
setRepeatGroupIndex
public void setRepeatGroupIndex(int repeatGroupIndex) -
getOrder
public int getOrder()- Returns:
- used for ordering elements
-
setOrder
public void setOrder(int order) used for ordering elements- Parameters:
order-
-
getSubSection
put a label to group items together. if blank then all in default subsection- Returns:
-
setSubSection
put a label to group items together. if blank then all in default subsection- Parameters:
section-
-
getRawMetadataJson
raw json string in the properties file- Returns:
- the rawMetadataJson
-
setRawMetadataJson
raw json string in the properties file- Parameters:
rawMetadataJson1- the rawMetadataJson to set
-
getShowEl
if this is set, put in an expression language that can depend on other attribute suffixes to see if an item is shown or not- Returns:
-
setShowEl
if this is set, put in an expression language that can depend on other attribute suffixes to see if an item is shown or not- Parameters:
showEl-
-
getRequiredEl
if this is set, put in an expression language that can depend on other attribute suffixes to see if an item is required or not- Returns:
-
setRequiredEl
if this is set, put in an expression language that can depend on other attribute suffixes to see if an item is required or not- Parameters:
requiredEl-
-
getIndent
public int getIndent()number of levels to indent in hide/show- Returns:
-
setIndent
public void setIndent(int indent) number of levels to indent in hide/show- Parameters:
indent-
-
clone
replace $i$ with repeat index- Parameters:
repeatIndex-- Returns:
-
processMetadata
public void processMetadata() -
getValue
value in config file- Returns:
- the value
-
setValue
value in config file- Parameters:
value1- the value to set
-
isRequired
public boolean isRequired()if this is a required field- Returns:
- the required
-
setRequired
public void setRequired(boolean required1) if this is a required field- Parameters:
required1- the required to set
-
getOptionValues
if this is a drop down, these are the acceptable values- Returns:
- option values
-
setOptionValues
if this is a drop down, these are the acceptable values- Parameters:
optionValues-
-
getFormElement
must be in ConfigItemFormElement enum- Returns:
- config item form element
-
setFormElement
must be in ConfigItemFormElement enum- Parameters:
formElement1-
-
getValueType
value type, e.g. boolean, string, group, subject, integer, floating, etc- Returns:
- the valueType
-
setValueType
value type, e.g. boolean, string, group, subject, integer, floating, etc- Parameters:
valueType1- the valueType to set
-
getRegex
if this can be a list of values, this is the regex- Returns:
- the regex
-
setRegex
if this can be a list of values, this is the regex- Parameters:
regex1- the regex to set
-
isMultiple
public boolean isMultiple()if multiple values are allowed (e.g. comma separated)- Returns:
- the multiple
-
setMultiple
public void setMultiple(boolean multiple1) if multiple values are allowed (e.g. comma separated)- Parameters:
multiple1- the multiple to set
-
isSensitive
public boolean isSensitive()if this is a password or other private field that probably shouldnt be displayed especially if the password or encrypted password is listed in the value- Returns:
- the sensitive
-
setSensitive
public void setSensitive(boolean sensitive1) if this is a password or other private field that probably shouldnt be displayed especially if the password or encrypted password is listed in the value- Parameters:
sensitive1- the sensitive to set
-
getKey
key to this value (optional)- Returns:
- the key
-
setKey
key to this value (optional)- Parameters:
key1- the key to set
-
getDefaultValue
default value- Returns:
- the defaultValue
-
setDefaultValue
default value- Parameters:
defaultValue- the defaultValue to set
-
getComment
comments in the file about this item- Returns:
- the comment
-
setComment
comments in the file about this item- Parameters:
comment1- the comment to set
-
getDefaultValueEl
default value EL expression- Returns:
-
setDefaultValueEl
default value EL expression- Parameters:
defaultValueEl-
-
getMustExtendClass
fully qualified classname that this value which is a class must extend- Returns:
- the mustExtendClass
-
setMustExtendClass
fully qualified classname that this value which is a class must extend- Parameters:
mustExtendClass1- the mustExtendClass to set
-
getMustImplementInterface
fully qualified interface that this value which is a class must implement- Returns:
- the mustImplementInterface
-
setMustImplementInterface
fully qualified interface that this value which is a class must implement- Parameters:
mustImplementInterface1- the mustImplementInterface to set
-
isReadOnly
public boolean isReadOnly()is this property read only?- Returns:
-
setReadOnly
public void setReadOnly(boolean readOnly) is this property read only- Parameters:
readOnly-
-
isSaveToDb
public boolean isSaveToDb()should this propery be saved to database?- Returns:
-
setSaveToDb
public void setSaveToDb(boolean saveToDb) should this propery be saved to database?- Parameters:
readOnly-
-
getOptionValuesFromClass
- Returns:
- option values from class for dropdowns
-
setOptionValuesFromClass
option values from class for dropdowns- Parameters:
optionValuesFromClass-
-
getCheckboxValuesFromClass
checkbox values, labels, and checked for checkboxes- Returns:
-
setCheckboxValuesFromClass
checkbox values, labels, and checked for checkboxes- Parameters:
checkboxValuesFromClass-
-