| Package | Description |
|---|---|
| org.nuiton.wikitty | |
| org.nuiton.wikitty.entities | |
| org.nuiton.wikitty.storage |
| Modifier and Type | Method and Description |
|---|---|
static LinkedHashMap<String,FieldType> |
WikittyUtil.buildFieldMapExtension(String... definitions)
Create map from string representation.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
WikittyUtil.fromString(FieldType field,
String s)
Convert string field representation to correct value type.
|
static Object |
WikittyUtil.fromStringForExport(FieldType field,
String s)
Convert object o for export CSV/XML.
|
protected Set<Wikitty> |
WikittyClient.getWikittyForPreload(Map<String,Wikitty> available,
Wikitty w,
FieldType type,
String fqField) |
static String |
WikittyUtil.parseField(String def,
FieldType fieldType)
parse FieldType definition and return field name.
|
static String |
WikittyUtil.toStringForExport(FieldType field,
Object o)
Convert object o for export CSV/XML.
|
static String |
WikittyUtil.toStringForSearchEngine(FieldType field,
Object o)
Convert object o for indexation
|
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<String,FieldType> |
WikittyExtension.fields
fields use ordered map, to keep order insertion of field
key: field name
value: field type
|
protected LinkedHashMap<String,FieldType> |
ExtensionFactory.fields |
| Modifier and Type | Method and Description |
|---|---|
FieldType |
WikittyCopyOnWrite.getFieldType(String fqfieldName) |
FieldType |
WikittyExtension.getFieldType(String fieldName) |
FieldType |
Wikitty.getFieldType(String fqfieldName)
Return field type for the given fieldName.
|
FieldType |
WikittyImpl.getFieldType(String fqfieldName) |
FieldType |
WikittyCopyOnWrite.getFieldType(String extName,
String fieldName) |
FieldType |
Wikitty.getFieldType(String extName,
String fieldName)
Return field type for the given fieldName.
|
FieldType |
BusinessEntityImpl.getFieldType(String ext,
String fieldName) |
FieldType |
WikittyImpl.getFieldType(String extName,
String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
protected LinkedHashMap<String,FieldType> |
WikittyExtension.sortField(Map<String,FieldType> map)
Tri la map en entree suivant la valeur de TAG_FIELD_INDEX de la valeur
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ExtensionFactory.add(String fieldName,
FieldType fieldType) |
void |
WikittyExtension.addField(String fieldName,
FieldType type)
Ajoute un nouveau champs a l'extension, la liste des champs est automatiquement
trie après chaque insertion.
|
Object |
FieldTypeConstaintChecker.checkDefault(Wikitty w,
String fqfield,
FieldType type,
Object value)
Si le champs n'a pas de valeur (null) met en place la valeur par defaut
|
boolean |
FieldTypeConstaintChecker.checkMax(String fqfield,
FieldType field,
Object value,
Collection<String> errors) |
protected boolean |
FieldTypeConstaintChecker.checkMaxBigDecimal(String fqfield,
FieldType field,
Collection<BigDecimal> values,
Collection<String> errors) |
protected boolean |
FieldTypeConstaintChecker.checkMaxDate(String fqfield,
FieldType field,
Collection<Date> values,
Collection<String> errors) |
boolean |
FieldTypeConstaintChecker.checkMin(String fqfield,
FieldType field,
Object value,
Collection<String> errors) |
protected boolean |
FieldTypeConstaintChecker.checkMinBigDecimal(String fqfield,
FieldType field,
Collection<BigDecimal> values,
Collection<String> errors) |
protected boolean |
FieldTypeConstaintChecker.checkMinDate(String fqfield,
FieldType field,
Collection<Date> values,
Collection<String> errors) |
boolean |
FieldTypeConstaintChecker.checkPattern(String fqfield,
FieldType field,
Object value,
Collection<String> errors) |
Object |
FieldTypeConstaintChecker.getMax(FieldType field) |
BigDecimal |
FieldTypeConstaintChecker.getMaxAsBigDecimal(FieldType field) |
Date |
FieldTypeConstaintChecker.getMaxAsDate(FieldType field) |
Object |
FieldTypeConstaintChecker.getMin(FieldType field) |
BigDecimal |
FieldTypeConstaintChecker.getMinAsBigDecimal(FieldType field) |
Date |
FieldTypeConstaintChecker.getMinAsDate(FieldType field) |
boolean |
FieldTypeConstaintChecker.isAllowed(String fqfield,
FieldType field,
Object value,
Collection<String> errors) |
protected boolean |
FieldTypeConstaintChecker.isAllowedString(String fqfield,
FieldType field,
Collection<String> values,
Collection<String> errors) |
protected boolean |
FieldTypeConstaintChecker.isAllowedWikitty(String fqfield,
FieldType field,
Collection<String> ids,
Collection<String> errors)
allowed contient une liste d'extension possible, allowedQuery retourne
une liste d'objet possible.
|
boolean |
FieldTypeConstaintChecker.isNotNull(String fqfield,
FieldType field,
Object value,
Collection<String> errors) |
boolean |
FieldTypeConstaintChecker.isUnique(String fqfield,
FieldType field,
Object value,
Collection<String> errors)
Vrai si la collection ne contient pas de doublon.
|
boolean |
FieldTypeConstaintChecker.isValid(String fqfield,
FieldType field,
Object value,
Collection<String> errors)
check all contraints
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
WikittyExtension.addField(Map<String,FieldType> newFields)
Cette methode ne doit-etre utilise que par des methodes qui tri par la
suite la Map de champs, car celle-ci ne le fait pas
|
protected LinkedHashMap<String,FieldType> |
WikittyExtension.sortField(Map<String,FieldType> map)
Tri la map en entree suivant la valeur de TAG_FIELD_INDEX de la valeur
|
| Constructor and Description |
|---|
WikittyExtension(String name,
String version,
LinkedHashMap<String,FieldType> fields) |
WikittyExtension(String name,
String version,
Map<String,String> tagValues,
List<String> requires,
LinkedHashMap<String,FieldType> fields) |
WikittyExtension(String name,
String version,
Map<String,String> tagValues,
String[] requires,
LinkedHashMap<String,FieldType> fields) |
WikittyExtension(String name,
String version,
Map<String,String> tagValues,
String requires,
LinkedHashMap<String,FieldType> fields) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Object> |
WikittySearchEngineInMemory.WikittyQueryVisitorCheckCondition.convert(FieldType type,
Object o)
Converti o en une list de valeur compatible avec type
|
Copyright © 2009–2015 CodeLutin. All rights reserved.