Class ConfigItemMetadata
java.lang.Object
edu.internet2.middleware.grouper.cfg.dbConfig.ConfigItemMetadata
-
Constructor Summary
-
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 enumint
number 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 valuesint
getOrder()
raw json string in the properties filegetRegex()
if this can be a list of values, this is the regexint
how many times a property should be repeatedcommon label of repeated configs that should be in a repeated blockint
if 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.boolean
if multiple values are allowed (e.g.boolean
is this property read only?boolean
if this is a required fieldboolean
if changing this property requires restart of grouperboolean
if sample propertyboolean
should this propery be saved to database?boolean
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 valuevoid
void
setCheckboxValuesFromClass
(String checkboxValuesFromClass) checkbox values, labels, and checked for checkboxesvoid
setComment
(String comment1) comments in the file about this itemvoid
setDefaultValue
(String defaultValue) default valuevoid
setDefaultValueEl
(String defaultValueEl) default value EL expressionvoid
setFormElement
(ConfigItemFormElement formElement1) must be in ConfigItemFormElement enumvoid
setIndent
(int indent) number of levels to indent in hide/showvoid
key to this value (optional)void
setMetadataError
(String metadataError1) if metadata json was converted to json successfully and validvoid
setMetadataProcessedSuccessfully
(Boolean metadataProcessedSuccessfully1) if the metadata json was processed successfullyvoid
setMultiple
(boolean multiple1) if multiple values are allowed (e.g.void
setMustExtendClass
(String mustExtendClass1) fully qualified classname that this value which is a class must extendvoid
setMustImplementInterface
(String mustImplementInterface1) fully qualified interface that this value which is a class must implementvoid
setOptionValues
(String[] optionValues) if this is a drop down, these are the acceptable valuesvoid
setOptionValuesFromClass
(String optionValuesFromClass) option values from class for dropdownsvoid
setOrder
(int order) used for ordering elementsvoid
setRawMetadataJson
(String rawMetadataJson1) raw json string in the properties filevoid
setReadOnly
(boolean readOnly) is this property read onlyvoid
if this can be a list of values, this is the regexvoid
setRepeatCount
(int repeatCount) how many times a property should be repeatedvoid
setRepeatGroup
(String repeatGroup) common label of repeated configs that should be in a repeated blockvoid
setRepeatGroupIndex
(int repeatGroupIndex) void
setRequired
(boolean required1) if this is a required fieldvoid
setRequiredEl
(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 notvoid
setRequiresRestart
(boolean requiresRestart1) if changing this property requires restart of groupervoid
setSampleKey
(String sampleKey) if commented out property, this is the sample keyvoid
setSampleValue
(String sampleValue1) an example value for the propertyvoid
setSaveToDb
(boolean saveToDb) should this propery be saved to database?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 valuevoid
if this is set, put in an expression language that can depend on other attribute suffixes to see if an item is shown or notvoid
setSubSection
(String section) put a label to group items together.void
value in config filevoid
setValueType
(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
-
-