Class TestOrderHelper
java.lang.Object
com.liferay.dynamic.data.mapping.test.util.search.TestOrderHelper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTestOrderHelper(com.liferay.dynamic.data.mapping.util.DDMIndexer ddmIndexer, com.liferay.portal.kernel.model.Group group) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.dynamic.data.mapping.model.DDMStructureprotected com.liferay.dynamic.data.mapping.model.DDMTemplateaddDDMTemplate(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) protected voidaddSearchableAssetEntries(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate) protected abstract com.liferay.portal.kernel.model.BaseModel<?>addSearchableAssetEntry(String fieldValue, com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected abstract com.liferay.portal.kernel.model.BaseModel<?>addSearchableAssetEntryRepeatable(String[] fieldValues, com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected voidassertSearch(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) protected com.liferay.asset.kernel.service.persistence.AssetEntryQuerycreateAssetEntryQuery(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) protected com.liferay.asset.kernel.model.AssetRendererFactory<?>protected abstract longprotected abstract Stringprotected abstract com.liferay.portal.kernel.model.BaseModel<?>getSearchableAssetEntryParentBaseModel(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected abstract Stringprotected StringgetValue(com.liferay.asset.kernel.model.AssetRenderer<?> assetRenderer) protected String[]protected com.liferay.portal.kernel.search.Hitssearch(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) protected voidsetDDMFormFieldOptions(com.liferay.dynamic.data.mapping.model.DDMForm ddmForm) voidvoidvoidvoidprotected voidprotected voidtestOrderByDDMField(String[] unsortedValues, String[] sortedValues, String dataType, String type) protected voidtestOrderByDDMField(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) protected voidtestOrderByDDMFieldRepeatable(String[] unsortedValues, String[] sortedValues, String dataType, String type) voidvoidvoidvoidvoidprotected voidtestOrderByDDMRadioField(String indexType) protected voidtestOrderByDDMRadioField(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) voidvoidprotected voidtestOrderByDDMTextField(String indexType) voidvoidprotected static String[]toJsonArrays(String... strings)
-
Constructor Details
-
Method Details
-
testOrderByDDMBooleanField
- Throws:
Exception
-
testOrderByDDMBooleanFieldRepeatable
- Throws:
Exception
-
testOrderByDDMDateField
- Throws:
Exception
-
testOrderByDDMDateTimeField
- Throws:
Exception
-
testOrderByDDMIntegerField
- Throws:
Exception
-
testOrderByDDMIntegerFieldRepeatable
- Throws:
Exception
-
testOrderByDDMNumberField
- Throws:
Exception
-
testOrderByDDMNumberFieldRepeatable
- Throws:
Exception
-
testOrderByDDMRadioField
- Throws:
Exception
-
testOrderByDDMRadioFieldKeyword
- Throws:
Exception
-
testOrderByDDMTextField
- Throws:
Exception
-
testOrderByDDMTextFieldKeyword
- Throws:
Exception
-
testOrderByDDMTextFieldRepeatable
- Throws:
Exception
-
toJsonArrays
-
addDDMStructure
- Throws:
Exception
-
addDDMTemplate
protected com.liferay.dynamic.data.mapping.model.DDMTemplate addDDMTemplate(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) throws Exception - Throws:
Exception
-
addSearchableAssetEntries
protected void addSearchableAssetEntries(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate) throws Exception - Throws:
Exception
-
addSearchableAssetEntry
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addSearchableAssetEntry(String fieldValue, com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
addSearchableAssetEntryRepeatable
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addSearchableAssetEntryRepeatable(String[] fieldValues, com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
assertSearch
protected void assertSearch(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) throws Exception - Throws:
Exception
-
createAssetEntryQuery
protected com.liferay.asset.kernel.service.persistence.AssetEntryQuery createAssetEntryQuery(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) throws Exception - Throws:
Exception
-
getAssetRendererFactory
protected com.liferay.asset.kernel.model.AssetRendererFactory<?> getAssetRendererFactory() -
getClassNameId
protected abstract long getClassNameId() -
getSearchableAssetEntryClassName
-
getSearchableAssetEntryParentBaseModel
protected abstract com.liferay.portal.kernel.model.BaseModel<?> getSearchableAssetEntryParentBaseModel(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getSearchableAssetEntryStructureClassName
-
getValue
protected String getValue(com.liferay.asset.kernel.model.AssetRenderer<?> assetRenderer) throws Exception - Throws:
Exception
-
getValues
protected String[] getValues(List<com.liferay.asset.kernel.model.AssetEntry> assetEntries) throws Exception - Throws:
Exception
-
search
protected com.liferay.portal.kernel.search.Hits search(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) throws Exception - Throws:
Exception
-
setDDMFormFieldOptions
protected void setDDMFormFieldOptions(com.liferay.dynamic.data.mapping.model.DDMForm ddmForm) -
testOrderByDDMField
- Throws:
Exception
-
testOrderByDDMField
protected void testOrderByDDMField(String[] unsortedValues, String[] sortedValues, String dataType, String type) throws Exception - Throws:
Exception
-
testOrderByDDMField
protected void testOrderByDDMField(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) throws Exception - Throws:
Exception
-
testOrderByDDMFieldRepeatable
protected void testOrderByDDMFieldRepeatable(String[] unsortedValues, String[] sortedValues, String dataType, String type) throws Exception - Throws:
Exception
-
testOrderByDDMRadioField
- Throws:
Exception
-
testOrderByDDMRadioField
protected void testOrderByDDMRadioField(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) throws Exception - Throws:
Exception
-
testOrderByDDMTextField
- Throws:
Exception
-