Liferay 7.0-ce-m6

com.liferay.portal.search.test
Class TestOrderHelper

java.lang.Object
  extended by com.liferay.portal.search.test.TestOrderHelper

public abstract class TestOrderHelper
extends Object


Constructor Summary
protected TestOrderHelper(Group group)
           
 
Method Summary
protected  DDMStructure addDDMStructure()
           
protected  DDMTemplate addDDMTemplate(DDMStructure ddmStructure)
           
protected  void addSearchableAssetEntries(DDMStructure ddmStructure, DDMTemplate ddmTemplate)
           
protected abstract  BaseModel<?> addSearchableAssetEntry(String fieldValue, BaseModel<?> parentBaseModel, DDMStructure ddmStructure, DDMTemplate ddmTemplate, ServiceContext serviceContext)
           
protected abstract  BaseModel<?> addSearchableAssetEntryRepeatable(String[] fieldValues, BaseModel<?> parentBaseModel, DDMStructure ddmStructure, DDMTemplate ddmTemplate, ServiceContext serviceContext)
           
protected  void assertSearch(AssetEntryQuery assetEntryQuery)
           
protected  AssetEntryQuery createAssetEntryQuery(DDMStructure ddmStructure)
           
protected  AssetRendererFactory getAssetRendererFactory()
           
protected abstract  String getSearchableAssetEntryClassName()
           
protected abstract  BaseModel<?> getSearchableAssetEntryParentBaseModel(Group group, ServiceContext serviceContext)
           
protected abstract  String getSearchableAssetEntryStructureClassName()
           
protected  String getValue(AssetRenderer assetRenderer)
           
protected  String[] getValues(List<AssetEntry> assetEntries)
           
protected  Hits search(AssetEntryQuery assetEntryQuery)
           
protected  void setDDMFormFieldOptions(DDMForm ddmForm)
           
 void testOrderByDDMBooleanField()
           
 void testOrderByDDMBooleanFieldRepeatable()
           
protected  void testOrderByDDMField()
           
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 testOrderByDDMIntegerField()
           
 void testOrderByDDMIntegerFieldRepeatable()
           
 void testOrderByDDMNumberField()
           
 void testOrderByDDMNumberFieldRepeatable()
           
 void testOrderByDDMRadioField()
           
protected  void testOrderByDDMRadioField(String indexType)
           
 void testOrderByDDMRadioFieldKeyword()
           
 void testOrderByDDMTextField()
           
protected  void testOrderByDDMTextField(String indexType)
           
 void testOrderByDDMTextFieldKeyword()
           
 void testOrderByDDMTextFieldRepeatable()
           
protected static String[] toJsonArrays(String... strings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestOrderHelper

protected TestOrderHelper(Group group)
                   throws Exception
Throws:
Exception
Method Detail

testOrderByDDMBooleanField

public void testOrderByDDMBooleanField()
                                throws Exception
Throws:
Exception

testOrderByDDMBooleanFieldRepeatable

public void testOrderByDDMBooleanFieldRepeatable()
                                          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 DDMStructure addDDMStructure()
                                throws Exception
Throws:
Exception

addDDMTemplate

protected DDMTemplate addDDMTemplate(DDMStructure ddmStructure)
                              throws Exception
Throws:
Exception

addSearchableAssetEntries

protected void addSearchableAssetEntries(DDMStructure ddmStructure,
                                         DDMTemplate ddmTemplate)
                                  throws Exception
Throws:
Exception

addSearchableAssetEntry

protected abstract BaseModel<?> addSearchableAssetEntry(String fieldValue,
                                                        BaseModel<?> parentBaseModel,
                                                        DDMStructure ddmStructure,
                                                        DDMTemplate ddmTemplate,
                                                        ServiceContext serviceContext)
                                                 throws Exception
Throws:
Exception

addSearchableAssetEntryRepeatable

protected abstract BaseModel<?> addSearchableAssetEntryRepeatable(String[] fieldValues,
                                                                  BaseModel<?> parentBaseModel,
                                                                  DDMStructure ddmStructure,
                                                                  DDMTemplate ddmTemplate,
                                                                  ServiceContext serviceContext)
                                                           throws Exception
Throws:
Exception

assertSearch

protected void assertSearch(AssetEntryQuery assetEntryQuery)
                     throws Exception
Throws:
Exception

createAssetEntryQuery

protected AssetEntryQuery createAssetEntryQuery(DDMStructure ddmStructure)
                                         throws Exception
Throws:
Exception

getAssetRendererFactory

protected AssetRendererFactory getAssetRendererFactory()

getSearchableAssetEntryClassName

protected abstract String getSearchableAssetEntryClassName()

getSearchableAssetEntryParentBaseModel

protected abstract BaseModel<?> getSearchableAssetEntryParentBaseModel(Group group,
                                                                       ServiceContext serviceContext)
                                                                throws Exception
Throws:
Exception

getSearchableAssetEntryStructureClassName

protected abstract String getSearchableAssetEntryStructureClassName()

getValue

protected String getValue(AssetRenderer assetRenderer)
                   throws Exception
Throws:
Exception

getValues

protected String[] getValues(List<AssetEntry> assetEntries)
                      throws Exception
Throws:
Exception

search

protected Hits search(AssetEntryQuery assetEntryQuery)
               throws Exception
Throws:
Exception

setDDMFormFieldOptions

protected void setDDMFormFieldOptions(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

testOrderByDDMTextField

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

Liferay 7.0-ce-m6