Class JPAFormPropertyDef
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
-
- org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
-
- org.apache.syncope.core.persistence.jpa.entity.task.JPAFormPropertyDef
-
- All Implemented Interfaces:
Serializable
,Entity
,FormPropertyDef
@Entity @FormPropertyDefCheck public class JPAFormPropertyDef extends AbstractGeneratedKeyEntity implements FormPropertyDef
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static TypeReference<Map<String,String>>
ENUMVALUES_TYPEREF
protected static TypeReference<HashMap<Locale,String>>
LABEL_TYPEREF
static String
TABLE
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.entity.Entity
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
-
-
Constructor Summary
Constructors Constructor Description JPAFormPropertyDef()
-
Method Summary
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
getKey, setKey
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
checkImplementationType, checkType, equals, hashCode, toString
-
-
-
-
Field Detail
-
TABLE
public static final String TABLE
- See Also:
- Constant Field Values
-
ENUMVALUES_TYPEREF
protected static final TypeReference<Map<String,String>> ENUMVALUES_TYPEREF
-
LABEL_TYPEREF
protected static final TypeReference<HashMap<Locale,String>> LABEL_TYPEREF
-
-
Method Detail
-
setIdx
public void setIdx(int idx)
-
getMacroTask
public JPAMacroTask getMacroTask()
- Specified by:
getMacroTask
in interfaceFormPropertyDef
-
setMacroTask
public void setMacroTask(MacroTask macroTask)
- Specified by:
setMacroTask
in interfaceFormPropertyDef
-
getName
public String getName()
- Specified by:
getName
in interfaceFormPropertyDef
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceFormPropertyDef
-
getLabel
public Optional<String> getLabel(Locale locale)
- Specified by:
getLabel
in interfaceFormPropertyDef
-
getLabels
public Map<Locale,String> getLabels()
- Specified by:
getLabels
in interfaceFormPropertyDef
-
getType
public FormPropertyType getType()
- Specified by:
getType
in interfaceFormPropertyDef
-
setType
public void setType(FormPropertyType type)
- Specified by:
setType
in interfaceFormPropertyDef
-
isReadable
public boolean isReadable()
- Specified by:
isReadable
in interfaceFormPropertyDef
-
setReadable
public void setReadable(boolean readable)
- Specified by:
setReadable
in interfaceFormPropertyDef
-
isWritable
public boolean isWritable()
- Specified by:
isWritable
in interfaceFormPropertyDef
-
setWritable
public void setWritable(boolean writable)
- Specified by:
setWritable
in interfaceFormPropertyDef
-
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interfaceFormPropertyDef
-
setRequired
public void setRequired(boolean required)
- Specified by:
setRequired
in interfaceFormPropertyDef
-
getStringRegEx
public Pattern getStringRegEx()
- Specified by:
getStringRegEx
in interfaceFormPropertyDef
-
setStringRegExp
public void setStringRegExp(Pattern stringRegEx)
- Specified by:
setStringRegExp
in interfaceFormPropertyDef
-
getDatePattern
public String getDatePattern()
- Specified by:
getDatePattern
in interfaceFormPropertyDef
-
setDatePattern
public void setDatePattern(String datePattern)
- Specified by:
setDatePattern
in interfaceFormPropertyDef
-
getEnumValues
public Map<String,String> getEnumValues()
- Specified by:
getEnumValues
in interfaceFormPropertyDef
-
setEnumValues
public void setEnumValues(Map<String,String> enumValues)
- Specified by:
setEnumValues
in interfaceFormPropertyDef
-
isDropdownSingleSelection
public boolean isDropdownSingleSelection()
- Specified by:
isDropdownSingleSelection
in interfaceFormPropertyDef
-
setDropdownSingleSelection
public void setDropdownSingleSelection(boolean dropdownSingleSelection)
- Specified by:
setDropdownSingleSelection
in interfaceFormPropertyDef
-
isDropdownFreeForm
public boolean isDropdownFreeForm()
- Specified by:
isDropdownFreeForm
in interfaceFormPropertyDef
-
setDropdownFreeForm
public void setDropdownFreeForm(boolean dropdownFreeForm)
- Specified by:
setDropdownFreeForm
in interfaceFormPropertyDef
-
json2map
protected void json2map(boolean clearFirst)
-
postLoad
public void postLoad()
-
postSave
public void postSave()
-
map2json
public void map2json()
-
-