Class TestOrderHelper
java.lang.Object
com.liferay.dynamic.data.mapping.test.util.search.TestOrderHelper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TestOrderHelper
(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.DDMStructure
protected com.liferay.dynamic.data.mapping.model.DDMTemplate
addDDMTemplate
(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) protected void
addSearchableAssetEntries
(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 void
assertSearch
(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) protected com.liferay.asset.kernel.service.persistence.AssetEntryQuery
createAssetEntryQuery
(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) protected com.liferay.asset.kernel.model.AssetRendererFactory<?>
protected abstract long
protected abstract String
protected abstract com.liferay.portal.kernel.model.BaseModel<?>
getSearchableAssetEntryParentBaseModel
(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected abstract String
protected String
getValue
(com.liferay.asset.kernel.model.AssetRenderer<?> assetRenderer) protected String[]
protected com.liferay.portal.kernel.search.Hits
search
(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) protected void
setDDMFormFieldOptions
(com.liferay.dynamic.data.mapping.model.DDMForm ddmForm) void
void
void
void
protected void
protected void
testOrderByDDMField
(String[] unsortedValues, String[] sortedValues, String dataType, String type) protected void
testOrderByDDMField
(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) protected void
testOrderByDDMFieldRepeatable
(String[] unsortedValues, String[] sortedValues, String dataType, String type) void
void
void
void
void
protected void
testOrderByDDMRadioField
(String indexType) protected void
testOrderByDDMRadioField
(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) void
void
protected void
testOrderByDDMTextField
(String indexType) void
void
protected 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
-