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/searchin the repository for implementation details.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_NEXT_TEXTstatic StringPROP_NO_RESULTS_TEXTstatic StringPROP_PREVIOUS_TEXTstatic StringPROP_RELATED_SEARCHES_TEXTstatic StringPROP_RESULT_PAGESstatic StringPROP_SEARCH_BUTTON_TEXTstatic StringPROP_SEARCH_INstatic StringPROP_SEARCH_TRENDS_TEXTstatic StringPROP_SIMILAR_PAGES_TEXTstatic StringPROP_SPELLCHECK_TEXTstatic StringPROP_STATISTICS_TEXTstatic StringRESOURCE_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.FormEntityBuildergetCreateFormEntity(String order)Adds an additional parameterparentResourceTypeto get properly inherited styles.StringgetResourceType()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- TheFoundationClientthat'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 parameterparentResourceTypeto get properly inherited styles.- Overrides:
getCreateFormEntityin classAbstractComponent- Parameters:
order- order- Returns:
- FormEntityBuilder to be used for the create POST request.
-
getResourceType
public String getResourceType()
Description copied from class:AbstractComponentThe resource type for the component, e.g. foundation/components/text. this will be set in thesling:resourceTypeproperty of the node.- Specified by:
getResourceTypein classAbstractComponent- Returns:
- the resource type
-
-