public class Field extends BaseDbBean<String>
Modifier and Type | Field and Description |
---|---|
static String |
BASE_DICTIONARY_FIELD_PATH |
static String |
BASE_DICTIONARY_SEARCH_PATH |
static String |
DATATYPE_DEFAULT |
static String |
ID |
static int |
MAX_NUMBER_SEARCH_PARAMS |
static boolean |
PUBLICLY_ACCESSIBLE_DEFAULT |
static String |
QUERY_DELIMITER |
static String |
QUERY_DELIMITER_DECODED |
static String |
QUERY_KEY |
static String |
QUERY_SEPARATOR |
static String |
SEARCHABLE_DEFAULT |
Constructor and Description |
---|
Field()
Default Constructor
|
Field(String identifier,
String classification,
String dataType,
Boolean publiclyAccessible,
Map<String,Object> translations)
Parameterized Constructor
|
Field(String identifier,
String classification,
String dataType,
Boolean publiclyAccessible,
Map<String,Object> translations,
String searchable,
List<String> locales)
Parameterized Constructor
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
changeToTranslationsMap(Map<String,String> translationsStr)
Converts a String map to a LanguageType map.
|
void |
convertAndSetId(String id) |
String |
getBeanUri() |
String |
getClassification()
Returns the Element classification value - protected, pii, or restricted - enumeration coming soon.
|
String |
getDataType()
Element data type - int, double, string.
|
String |
getIdentifier()
Returns the Field id.
|
List<String> |
getLocales() |
Boolean |
getPubliclyAccessible()
Flag specifying if the element is globally accessible by all orgs or just the creator (org).
|
static String |
getRelURL(String id)
Returns the relative base url for the given id.
|
Restriction |
getRestriction()
Further restricts the value of the field on top of what is restricted by the data type.
|
String |
getSearchable()
Flag specifying if the element is searchable .
|
Map<String,Object> |
getTranslations()
Map of ISO code to translation for the element.
|
void |
setClassification(String classification) |
void |
setDataType(String dataType) |
void |
setIdentifier(String identifier) |
void |
setLocales(List<String> locales) |
void |
setPubliclyAccessible(Boolean publiclyAccessible) |
void |
setSearchable(String searchable) |
void |
setTranslations(Map<String,Object> translations) |
compareTo, getId, getKey, getLastUpdated, getRefURL, setId, setKey, setLastUpdated, setRefURL
public static final String ID
public static final String QUERY_DELIMITER
public static final String QUERY_DELIMITER_DECODED
public static final String QUERY_SEPARATOR
public static final String QUERY_KEY
public static final int MAX_NUMBER_SEARCH_PARAMS
public static final boolean PUBLICLY_ACCESSIBLE_DEFAULT
public static final String DATATYPE_DEFAULT
public static final String BASE_DICTIONARY_FIELD_PATH
public static final String BASE_DICTIONARY_SEARCH_PATH
public static final String SEARCHABLE_DEFAULT
public Field()
public Field(String identifier, String classification, String dataType, Boolean publiclyAccessible, Map<String,Object> translations)
identifier
- unique element idclassification
- element classification valuedataType
- element data typepubliclyAccessible
- globally accessible flag.translations
- map of ISO code to translation for the elementpublic Field(String identifier, String classification, String dataType, Boolean publiclyAccessible, Map<String,Object> translations, String searchable, List<String> locales)
identifier
- unique element idclassification
- element classification valuedataType
- element data typepubliclyAccessible
- globally accessible flag.translations
- map of ISO code to translation for the elementsearchable
- flag indicating if an element is searchable or notlocales
- list of locales an element can be searched onpublic String getIdentifier()
public void setIdentifier(String identifier)
public String getClassification()
public void setClassification(String classification)
public String getDataType()
public void setDataType(String dataType)
public Restriction getRestriction()
public Boolean getPubliclyAccessible()
public void setPubliclyAccessible(Boolean publiclyAccessible)
public Map<String,Object> getTranslations()
public void convertAndSetId(String id)
convertAndSetId
in class BaseDbBean<String>
public String getSearchable()
public void setSearchable(String searchable)
public String getBeanUri()
getBeanUri
in class BaseDbBean<String>
public static Map<String,Object> changeToTranslationsMap(Map<String,String> translationsStr)
translationsStr
- is the String mapCopyright © 2018. All rights reserved.