Package com.liferay.portal.kernel.search
Class DocumentImpl
Object
com.liferay.portal.kernel.search.DocumentImpl
- All Implemented Interfaces:
Document
,Serializable
,Cloneable
- Author:
- Brian Wing Shun Chan, Bruno Farache
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
addDateSortable
(String name, Date value) void
addDateSortable
(String name, Date[] values) void
Deprecated.As of Cavanaugh (7.4.x), with no direct replacementvoid
Deprecated.As of Cavanaugh (7.4.x), with no direct replacementvoid
addFile
(String name, InputStream inputStream, String fileExt) Deprecated.As of Cavanaugh (7.4.x), with no direct replacementvoid
addFile
(String name, InputStream inputStream, String fileExt, int maxStringLength) Deprecated.As of Cavanaugh (7.4.x), with no direct replacementvoid
addGeoLocation
(double latitude, double longitude) void
addGeoLocation
(String name, double latitude, double longitude) void
addKeyword
(String name, boolean value) void
addKeyword
(String name, boolean[] values) void
addKeyword
(String name, double value) void
addKeyword
(String name, double[] values) void
addKeyword
(String name, float value) void
addKeyword
(String name, float[] values) void
addKeyword
(String name, int value) void
addKeyword
(String name, int[] values) void
addKeyword
(String name, long value) void
addKeyword
(String name, long[] values) void
addKeyword
(String name, short value) void
addKeyword
(String name, short[] values) void
addKeyword
(String name, Boolean value) void
addKeyword
(String name, Boolean[] values) void
addKeyword
(String name, Double value) void
addKeyword
(String name, Double[] values) void
addKeyword
(String name, Float value) void
addKeyword
(String name, Float[] values) void
addKeyword
(String name, Integer value) void
addKeyword
(String name, Integer[] values) void
addKeyword
(String name, Long value) void
addKeyword
(String name, Long[] values) void
addKeyword
(String name, Short value) void
addKeyword
(String name, Short[] values) void
addKeyword
(String name, String value) void
addKeyword
(String name, String[] values) void
addKeyword
(String name, String value, boolean lowerCase) void
addKeywordSortable
(String name, Boolean value) void
addKeywordSortable
(String name, Boolean[] values) void
addKeywordSortable
(String name, String value) void
addKeywordSortable
(String name, String[] values) void
addLocalizedKeyword
(String name, Map<Locale, String> values) void
addLocalizedKeyword
(String name, Map<Locale, String> values, boolean lowerCase) void
addLocalizedKeyword
(String name, Map<Locale, String> values, boolean lowerCase, boolean sortable) void
addLocalizedText
(String name, Map<Locale, String> values) void
addLocalizedText
(String name, Map<Locale, String> values, boolean sortable) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
addNumber
(String name, BigDecimal value) void
addNumber
(String name, BigDecimal[] values) void
addNumberSortable
(String name, Double value) void
addNumberSortable
(String name, Double[] values) void
addNumberSortable
(String name, Float value) void
addNumberSortable
(String name, Float[] values) void
addNumberSortable
(String name, Integer value) void
addNumberSortable
(String name, Integer[] values) void
addNumberSortable
(String name, Long value) void
addNumberSortable
(String name, Long[] values) void
addNumberSortable
(String name, BigDecimal value) void
addNumberSortable
(String name, BigDecimal[] values) void
void
void
addTextSortable
(String name, String value) void
addTextSortable
(String name, String[] values) void
void
void
void
void
void
void
void
clone()
protected Field
createField
(String name) protected Field
createField
(String name, boolean sortable, String... values) protected Field
createField
(String name, String... values) protected Field
createField
(String name, Map<Locale, String> localizedValues) protected Field
createField
(String name, Map<Locale, String> localizedValues, boolean sortable) protected void
createKeywordField
(String name, String value, boolean lowerCase) protected void
createNumberField
(String name, boolean typify, Number value) protected <T extends Number & Comparable<? super T>>
voidcreateNumberField
(String name, boolean typify, T... values) protected void
createNumberField
(String name, Number value) protected <T extends Number & Comparable<? super T>>
voidcreateNumberField
(String name, T... values) protected void
createNumberFieldWithTypedSortable
(String name, Number value) protected <T extends Number & Comparable<? super T>>
voidcreateNumberFieldWithTypedSortable
(String name, T... values) protected void
createSortableKeywordField
(String name, String value) protected void
createSortableKeywordField
(String name, String[] values) protected void
createSortableNumericField
(String name, boolean typify, String value, Class<? extends Number> clazz) protected <T extends Number & Comparable<? super T>>
voidcreateSortableNumericField
(String name, boolean typify, T... values) protected void
createSortableTextField
(String name, String value) protected void
createSortableTextField
(String name, String[] values) protected Field
doGetField
(String name, boolean createIfNew) getUID()
String[]
boolean
boolean
static boolean
isSortableTextField
(String name) void
void
void
setSortableTextFields
(String[] sortableTextFields) protected void
setSortableTextFields
(Set<String> sortableTextFields) toString()
protected void
toString
(com.liferay.petra.string.StringBundler sb, Collection<Field> fields)
-
Constructor Details
-
DocumentImpl
public DocumentImpl()
-
-
Method Details
-
isSortableTextField
-
add
-
addDate
-
addDate
-
addDateSortable
- Specified by:
addDateSortable
in interfaceDocument
-
addDateSortable
- Specified by:
addDateSortable
in interfaceDocument
-
addFile
Deprecated.As of Cavanaugh (7.4.x), with no direct replacement -
addFile
Deprecated.As of Cavanaugh (7.4.x), with no direct replacement- Specified by:
addFile
in interfaceDocument
- Throws:
IOException
-
addFile
Deprecated.As of Cavanaugh (7.4.x), with no direct replacement -
addFile
@Deprecated public void addFile(String name, InputStream inputStream, String fileExt, int maxStringLength) Deprecated.As of Cavanaugh (7.4.x), with no direct replacement -
addGeoLocation
public void addGeoLocation(double latitude, double longitude) - Specified by:
addGeoLocation
in interfaceDocument
-
addGeoLocation
- Specified by:
addGeoLocation
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeyword
- Specified by:
addKeyword
in interfaceDocument
-
addKeywordSortable
- Specified by:
addKeywordSortable
in interfaceDocument
-
addKeywordSortable
- Specified by:
addKeywordSortable
in interfaceDocument
-
addKeywordSortable
- Specified by:
addKeywordSortable
in interfaceDocument
-
addKeywordSortable
- Specified by:
addKeywordSortable
in interfaceDocument
-
addLocalizedKeyword
- Specified by:
addLocalizedKeyword
in interfaceDocument
-
addLocalizedKeyword
- Specified by:
addLocalizedKeyword
in interfaceDocument
-
addLocalizedKeyword
public void addLocalizedKeyword(String name, Map<Locale, String> values, boolean lowerCase, boolean sortable) - Specified by:
addLocalizedKeyword
in interfaceDocument
-
addLocalizedText
- Specified by:
addLocalizedText
in interfaceDocument
-
addLocalizedText
- Specified by:
addLocalizedText
in interfaceDocument
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumber
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addNumberSortable
- Specified by:
addNumberSortable
in interfaceDocument
-
addText
-
addText
-
addTextSortable
- Specified by:
addTextSortable
in interfaceDocument
-
addTextSortable
- Specified by:
addTextSortable
in interfaceDocument
-
addUID
-
addUID
-
addUID
-
addUID
-
addUID
-
addUID
-
addUID
-
addUID
-
clone
-
get
-
get
-
get
-
get
-
getDate
- Specified by:
getDate
in interfaceDocument
- Throws:
ParseException
-
getField
-
getFields
-
getPortletId
- Specified by:
getPortletId
in interfaceDocument
-
getUID
-
getValues
-
hasField
-
isDocumentSortableTextField
- Specified by:
isDocumentSortableTextField
in interfaceDocument
-
remove
-
setFields
-
setSortableTextFields
- Specified by:
setSortableTextFields
in interfaceDocument
-
toString
-
createField
-
createField
-
createField
-
createField
-
createField
-
createKeywordField
-
createNumberField
-
createNumberField
protected <T extends Number & Comparable<? super T>> void createNumberField(String name, boolean typify, T... values) -
createNumberField
-
createNumberField
protected <T extends Number & Comparable<? super T>> void createNumberField(String name, T... values) -
createNumberFieldWithTypedSortable
-
createNumberFieldWithTypedSortable
protected <T extends Number & Comparable<? super T>> void createNumberFieldWithTypedSortable(String name, T... values) -
createSortableKeywordField
-
createSortableKeywordField
-
createSortableNumericField
-
createSortableNumericField
protected <T extends Number & Comparable<? super T>> void createSortableNumericField(String name, boolean typify, T... values) -
createSortableTextField
-
createSortableTextField
-
doGetField
-
setSortableTextFields
-
toString
-