Class Search
- java.lang.Object
-
- com.adobe.cq.testing.client.components.AbstractComponent
-
- com.adobe.cq.testing.client.components.foundation.AbstractFoundationComponent
-
- com.adobe.cq.testing.client.components.foundation.Search
-
public class Search extends AbstractFoundationComponent
Wraps the Search foundation component, providing methods for editing it. See/libs/foundation/components/search
in the repository for implementation details.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROP_NEXT_TEXT
static String
PROP_NO_RESULTS_TEXT
static String
PROP_PREVIOUS_TEXT
static String
PROP_RELATED_SEARCHES_TEXT
static String
PROP_RESULT_PAGES
static String
PROP_SEARCH_BUTTON_TEXT
static String
PROP_SEARCH_IN
static String
PROP_SEARCH_TRENDS_TEXT
static String
PROP_SIMILAR_PAGES_TEXT
static String
PROP_SPELLCHECK_TEXT
static String
PROP_STATISTICS_TEXT
static String
RESOURCE_TYPE
-
Fields inherited from class com.adobe.cq.testing.client.components.AbstractComponent
changeProperties, client, componentPath, DEFAULT_LOCATION, jsonNode, location, pagePath
-
-
Constructor Summary
Constructors Constructor Description Search(ComponentClient client, String pagePath, String location, String nameHint)
The constructor stores all the component path information like parentPage, name etc.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.testing.clients.util.FormEntityBuilder
getCreateFormEntity(String order)
Adds an additional parameterparentResourceType
to get properly inherited styles.String
getResourceType()
The resource type for the component, e.g.-
Methods inherited from class com.adobe.cq.testing.client.components.AbstractComponent
create, getClient, getComponentNode, getComponentPath, getFirstChild, getLocation, getName, getNext, getNextNodePath, getPagePath, getParentPath, getPrevious, getPreviousNodePath, getProperty, getPropertyAsString, getPropertyAsStringArray, reorder, save, setProperty, setProperty
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PROP_RESULT_PAGES
public static final String PROP_RESULT_PAGES
- See Also:
- Constant Field Values
-
PROP_PREVIOUS_TEXT
public static final String PROP_PREVIOUS_TEXT
- See Also:
- Constant Field Values
-
PROP_NEXT_TEXT
public static final String PROP_NEXT_TEXT
- See Also:
- Constant Field Values
-
PROP_SEARCH_TRENDS_TEXT
public static final String PROP_SEARCH_TRENDS_TEXT
- See Also:
- Constant Field Values
-
PROP_RELATED_SEARCHES_TEXT
public static final String PROP_RELATED_SEARCHES_TEXT
- See Also:
- Constant Field Values
-
PROP_SIMILAR_PAGES_TEXT
public static final String PROP_SIMILAR_PAGES_TEXT
- See Also:
- Constant Field Values
-
PROP_SPELLCHECK_TEXT
public static final String PROP_SPELLCHECK_TEXT
- See Also:
- Constant Field Values
-
PROP_NO_RESULTS_TEXT
public static final String PROP_NO_RESULTS_TEXT
- See Also:
- Constant Field Values
-
PROP_STATISTICS_TEXT
public static final String PROP_STATISTICS_TEXT
- See Also:
- Constant Field Values
-
PROP_SEARCH_BUTTON_TEXT
public static final String PROP_SEARCH_BUTTON_TEXT
- See Also:
- Constant Field Values
-
PROP_SEARCH_IN
public static final String PROP_SEARCH_IN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Search
public Search(ComponentClient client, String pagePath, String location, String nameHint)
The constructor stores all the component path information like parentPage, name etc.- Parameters:
client
- TheFoundationClient
that's creating this instance.pagePath
- path to the page that will contain the component.location
- relative location to the parent node inside the page that will contain the component node.nameHint
- name to be used for the component node. Might get altered by the server if a naming conflict occurs. TheAbstractComponent.getName()
method will return the correct name afterAbstractComponent.create(String,int...)
has been called.
-
-
Method Detail
-
getCreateFormEntity
public org.apache.sling.testing.clients.util.FormEntityBuilder getCreateFormEntity(String order)
Adds an additional parameterparentResourceType
to get properly inherited styles.- Overrides:
getCreateFormEntity
in classAbstractComponent
- Parameters:
order
- order- Returns:
- FormEntityBuilder to be used for the create POST request.
-
getResourceType
public String getResourceType()
Description copied from class:AbstractComponent
The resource type for the component, e.g. foundation/components/text. this will be set in thesling:resourceType
property of the node.- Specified by:
getResourceType
in classAbstractComponent
- Returns:
- the resource type
-
-