@ProviderType
public class Field
extends Object
implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Field.NestedFieldBuilder |
Modifier and Type | Field and Description |
---|---|
static String |
ANY |
static String |
ARTICLE_ID |
static String |
ASSET_CATEGORY_ID |
static String |
ASSET_CATEGORY_IDS |
static String |
ASSET_CATEGORY_TITLE |
static String |
ASSET_CATEGORY_TITLES |
static String |
ASSET_PARENT_CATEGORY_ID |
static String |
ASSET_PARENT_CATEGORY_IDS |
static String |
ASSET_TAG_IDS |
static String |
ASSET_TAG_NAMES |
static String |
ASSET_VOCABULARY_ID |
static String |
ASSET_VOCABULARY_IDS |
static String |
CAPTION |
static String |
CATEGORY_ID |
static String |
CLASS_NAME_ID |
static String |
CLASS_PK |
static String |
CLASS_TYPE_ID |
static String |
COMMENTS |
static String |
COMPANY_ID |
static String |
CONTENT |
static String |
CREATE_DATE |
static String |
DEFAULT_LANGUAGE_ID |
static String |
DESCRIPTION |
static String |
DISPLAY_DATE |
static String |
ENTRY_CLASS_NAME |
static String |
ENTRY_CLASS_PK |
static String |
EXPIRATION_DATE |
static String |
FOLDER_ID |
static String |
GEO_LOCATION |
static String |
GROUP_ID |
static String |
GROUP_ROLE_ID |
static String |
HIDDEN |
static String |
KEYWORD_SEARCH |
static String[] |
KEYWORDS |
static String |
LANGUAGE_ID |
static String |
LAYOUT_UUID |
static String |
MODIFIED_DATE |
static String |
NAME |
static String |
NODE_ID |
static String |
ORGANIZATION_ID |
static String |
PORTLET_ID
Deprecated.
As of Wilberforce (7.0.x), replaced by
ENTRY_CLASS_NAME |
static String |
PRIORITY |
static String |
PROPERTIES |
static String |
PUBLISH_DATE |
static String |
RATINGS
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static String |
RELATED_ENTRY |
static String |
REMOVED_BY_USER_NAME |
static String |
REMOVED_DATE |
static String |
ROLE_ID |
static String |
ROOT_ENTRY_CLASS_NAME |
static String |
ROOT_ENTRY_CLASS_PK |
static String |
SCOPE_GROUP_ID |
static String |
SNIPPET |
static String |
SORTABLE_FIELD_SUFFIX |
static String |
SPELL_CHECK_WORD |
static String |
STAGING_GROUP |
static String |
STATUS |
static String |
SUBTITLE |
static String |
TITLE |
static String |
TREE_PATH |
static String |
TYPE |
static String |
UID |
static String[] |
UNSCORED_FIELD_NAMES |
static String |
URL |
static String |
USER_GROUP_ID |
static String |
USER_ID |
static String |
USER_NAME |
static String |
VERSION |
static String |
VIEW_ACTION_ID |
static String |
VIEW_COUNT
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
Constructor and Description |
---|
Field(String name) |
Field(String name,
Map<Locale,String> localizedValues) |
Field(String name,
String value) |
Field(String name,
String[] values) |
Modifier and Type | Method and Description |
---|---|
void |
addField(Field field) |
float |
getBoost()
Deprecated.
As of Wilberforce (7.0.x), replaced by
Query.getBoost() |
Date[] |
getDates() |
List<Field> |
getFields() |
GeoLocationPoint |
getGeoLocationPoint() |
static String |
getLocalizedName(Locale locale,
String name) |
static String |
getLocalizedName(String languageId,
String name) |
Map<Locale,String> |
getLocalizedValues() |
String |
getName() |
Class<? extends Number> |
getNumericClass() |
Field |
getParentField() |
static String |
getSortableFieldName(String name) |
static String |
getSortFieldName(Sort sort,
String scoreFieldName) |
static String |
getUID(String portletId,
String field1) |
static String |
getUID(String portletId,
String field1,
String field2) |
static String |
getUID(String portletId,
String field1,
String field2,
String field3) |
static String |
getUID(String portletId,
String field1,
String field2,
String field3,
String field4) |
String |
getValue() |
String[] |
getValues() |
boolean |
hasChildren() |
boolean |
isArray() |
boolean |
isDate() |
boolean |
isLocalized() |
boolean |
isNested() |
boolean |
isNumeric() |
boolean |
isSortable() |
static boolean |
isSortableFieldName(String name) |
boolean |
isTokenized() |
void |
setBoost(float boost)
Deprecated.
As of Wilberforce (7.0.x), replaced by
Query.setBoost(float) |
void |
setDates(Date[] dates) |
void |
setGeoLocationPoint(GeoLocationPoint geoLocationPoint) |
void |
setLocalizedValues(Map<Locale,String> localizedValues) |
void |
setName(String name) |
void |
setNumeric(boolean numeric) |
void |
setNumericClass(Class<? extends Number> numericClass) |
void |
setParentField(Field parentField) |
void |
setSortable(boolean sortable) |
void |
setTokenized(boolean tokenized) |
void |
setValue(String value) |
void |
setValues(String[] values) |
protected void |
validate(String name) |
static boolean |
validateFieldName(String name) |
public static final String ANY
public static final String ARTICLE_ID
public static final String ASSET_CATEGORY_ID
public static final String ASSET_CATEGORY_IDS
public static final String ASSET_CATEGORY_TITLE
public static final String ASSET_CATEGORY_TITLES
public static final String ASSET_PARENT_CATEGORY_ID
public static final String ASSET_PARENT_CATEGORY_IDS
public static final String ASSET_TAG_IDS
public static final String ASSET_TAG_NAMES
public static final String ASSET_VOCABULARY_ID
public static final String ASSET_VOCABULARY_IDS
public static final String CAPTION
public static final String CATEGORY_ID
public static final String CLASS_NAME_ID
public static final String CLASS_PK
public static final String CLASS_TYPE_ID
public static final String COMMENTS
public static final String COMPANY_ID
public static final String CONTENT
public static final String CREATE_DATE
public static final String DEFAULT_LANGUAGE_ID
public static final String DESCRIPTION
public static final String DISPLAY_DATE
public static final String ENTRY_CLASS_NAME
public static final String ENTRY_CLASS_PK
public static final String EXPIRATION_DATE
public static final String FOLDER_ID
public static final String GEO_LOCATION
public static final String GROUP_ID
public static final String GROUP_ROLE_ID
public static final String HIDDEN
public static final String KEYWORD_SEARCH
public static final String[] KEYWORDS
public static final String LANGUAGE_ID
public static final String LAYOUT_UUID
public static final String MODIFIED_DATE
public static final String NAME
public static final String NODE_ID
public static final String ORGANIZATION_ID
@Deprecated public static final String PORTLET_ID
ENTRY_CLASS_NAME
public static final String PRIORITY
public static final String PROPERTIES
public static final String PUBLISH_DATE
@Deprecated public static final String RATINGS
public static final String RELATED_ENTRY
public static final String REMOVED_BY_USER_NAME
public static final String REMOVED_DATE
public static final String ROLE_ID
public static final String ROOT_ENTRY_CLASS_NAME
public static final String ROOT_ENTRY_CLASS_PK
public static final String SCOPE_GROUP_ID
public static final String SNIPPET
public static final String SORTABLE_FIELD_SUFFIX
public static final String SPELL_CHECK_WORD
public static final String STAGING_GROUP
public static final String STATUS
public static final String SUBTITLE
public static final String TITLE
public static final String TREE_PATH
public static final String TYPE
public static final String UID
public static final String[] UNSCORED_FIELD_NAMES
public static final String URL
public static final String USER_GROUP_ID
public static final String USER_ID
public static final String USER_NAME
public static final String VERSION
public static final String VIEW_ACTION_ID
@Deprecated public static final String VIEW_COUNT
public Field(String name)
public Field(String name, Map<Locale,String> localizedValues)
public Field(String name, String value)
public Field(String name, String[] values)
public static String getLocalizedName(Locale locale, String name)
public static String getLocalizedName(String languageId, String name)
public static String getSortableFieldName(String name)
public static String getSortFieldName(Sort sort, String scoreFieldName)
public static String getUID(String portletId, String field1)
public static String getUID(String portletId, String field1, String field2)
public static String getUID(String portletId, String field1, String field2, String field3)
public static String getUID(String portletId, String field1, String field2, String field3, String field4)
public static boolean isSortableFieldName(String name)
public static boolean validateFieldName(String name)
public void addField(Field field)
@Deprecated public float getBoost()
Query.getBoost()
public Date[] getDates()
public List<Field> getFields()
public GeoLocationPoint getGeoLocationPoint()
public Map<Locale,String> getLocalizedValues()
public String getName()
public Class<? extends Number> getNumericClass()
public Field getParentField()
public String getValue()
public String[] getValues()
public boolean hasChildren()
public boolean isArray()
public boolean isDate()
public boolean isLocalized()
public boolean isNested()
public boolean isNumeric()
public boolean isSortable()
public boolean isTokenized()
@Deprecated public void setBoost(float boost)
Query.setBoost(float)
public void setDates(Date[] dates)
public void setGeoLocationPoint(GeoLocationPoint geoLocationPoint)
public void setLocalizedValues(Map<Locale,String> localizedValues)
public void setName(String name)
public void setNumeric(boolean numeric)
public void setNumericClass(Class<? extends Number> numericClass)
public void setParentField(Field parentField)
public void setSortable(boolean sortable)
public void setTokenized(boolean tokenized)
public void setValue(String value)
public void setValues(String[] values)
protected void validate(String name)