Class TestOrderHelper

java.lang.Object
com.liferay.dynamic.data.mapping.test.util.search.TestOrderHelper

public abstract class TestOrderHelper extends Object
  • Constructor Details

    • TestOrderHelper

      protected TestOrderHelper(com.liferay.dynamic.data.mapping.util.DDMIndexer ddmIndexer, com.liferay.portal.kernel.model.Group group) throws Exception
      Throws:
      Exception
  • Method Details

    • testOrderByDDMBooleanField

      public void testOrderByDDMBooleanField() throws Exception
      Throws:
      Exception
    • testOrderByDDMBooleanFieldRepeatable

      public void testOrderByDDMBooleanFieldRepeatable() throws Exception
      Throws:
      Exception
    • testOrderByDDMDateField

      public void testOrderByDDMDateField() throws Exception
      Throws:
      Exception
    • testOrderByDDMDateTimeField

      public void testOrderByDDMDateTimeField() throws Exception
      Throws:
      Exception
    • testOrderByDDMIntegerField

      public void testOrderByDDMIntegerField() throws Exception
      Throws:
      Exception
    • testOrderByDDMIntegerFieldRepeatable

      public void testOrderByDDMIntegerFieldRepeatable() throws Exception
      Throws:
      Exception
    • testOrderByDDMNumberField

      public void testOrderByDDMNumberField() throws Exception
      Throws:
      Exception
    • testOrderByDDMNumberFieldRepeatable

      public void testOrderByDDMNumberFieldRepeatable() throws Exception
      Throws:
      Exception
    • testOrderByDDMRadioField

      public void testOrderByDDMRadioField() throws Exception
      Throws:
      Exception
    • testOrderByDDMRadioFieldKeyword

      public void testOrderByDDMRadioFieldKeyword() throws Exception
      Throws:
      Exception
    • testOrderByDDMTextField

      public void testOrderByDDMTextField() throws Exception
      Throws:
      Exception
    • testOrderByDDMTextFieldKeyword

      public void testOrderByDDMTextFieldKeyword() throws Exception
      Throws:
      Exception
    • testOrderByDDMTextFieldRepeatable

      public void testOrderByDDMTextFieldRepeatable() throws Exception
      Throws:
      Exception
    • toJsonArrays

      protected static String[] toJsonArrays(String... strings)
    • addDDMStructure

      protected com.liferay.dynamic.data.mapping.model.DDMStructure addDDMStructure() throws Exception
      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

      protected abstract String 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

      protected abstract String 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

      protected void testOrderByDDMField() throws Exception
      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

      protected void testOrderByDDMRadioField(String indexType) throws Exception
      Throws:
      Exception
    • testOrderByDDMRadioField

      protected void testOrderByDDMRadioField(String[] unsortedValues, String[] sortedValues, String dataType, String indexType, String type) throws Exception
      Throws:
      Exception
    • testOrderByDDMTextField

      protected void testOrderByDDMTextField(String indexType) throws Exception
      Throws:
      Exception