com.atlassian.confluence.it.global
Class SiteSearch

java.lang.Object
  extended by com.atlassian.confluence.it.global.SiteSearch

public class SiteSearch
extends java.lang.Object


Nested Class Summary
static class SiteSearch.BuiltInContentTypes
           
static class SiteSearch.DateRestriction
           
static class SiteSearch.SpecialSpaceOptions
           
 
Field Summary
static java.lang.String NO_MATCHING_USER_FOUND
           
static java.lang.String NO_RESULTS_MESSAGE
           
 
Method Summary
static SiteSearch attachmentSearch(java.lang.String query)
          This can be removed once we fix CONFDEV-16505.
static java.lang.String formatUserAsAuthorField(User test)
           
 java.lang.String getAuthorFieldError()
           
 java.lang.String getAuthorUsernameValue()
           
 java.lang.String getAuthorValue()
           
 int getNumberOfResults()
           
static java.lang.String getUrl()
           
 boolean hasNoSearchResults()
           
 boolean hasResultWithTitle(AbstractPageEntity page)
           
 boolean hasResultWithTitle(java.lang.String resultTitle)
           
 boolean isResultPresent(TitledContent content)
           
static SiteSearch search(java.lang.String query)
           
static SiteSearch search(java.lang.String query, net.sourceforge.jwebunit.junit.WebTester tester)
           
static SiteSearch search(TitledContent content)
           
static SiteSearch search(TitledContent content, net.sourceforge.jwebunit.junit.WebTester tester)
           
static SiteSearch searchContentType(java.lang.String query, java.lang.String type)
           
static SiteSearch searchContentType(java.lang.String query, java.lang.String type, net.sourceforge.jwebunit.junit.WebTester tester)
           
static SiteSearch searchInArchivedSpaces(TitledContent content)
           
static SiteSearch searchInArchivedSpaces(TitledContent content, net.sourceforge.jwebunit.junit.WebTester tester)
           
static SiteSearch searchInSpace(TitledContent content, Space space)
           
static SiteSearch searchInSpace(TitledContent content, Space space, net.sourceforge.jwebunit.junit.WebTester tester)
           
 SiteSearch setAuthor(User user)
           
 SiteSearch setContentType(java.lang.String contentType)
           
 SiteSearch setDateRestriction(SiteSearch.DateRestriction dateRestriction)
           
 SiteSearch setQueryString(java.lang.String query)
           
 SiteSearch setSpace(java.lang.String space)
           
static SiteSearch viewSearchForm()
           
static SiteSearch viewSearchForm(net.sourceforge.jwebunit.junit.WebTester tester)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_RESULTS_MESSAGE

public static final java.lang.String NO_RESULTS_MESSAGE
See Also:
Constant Field Values

NO_MATCHING_USER_FOUND

public static final java.lang.String NO_MATCHING_USER_FOUND
See Also:
Constant Field Values
Method Detail

viewSearchForm

public static SiteSearch viewSearchForm()

viewSearchForm

public static SiteSearch viewSearchForm(net.sourceforge.jwebunit.junit.WebTester tester)

search

public static SiteSearch search(java.lang.String query)

attachmentSearch

public static SiteSearch attachmentSearch(java.lang.String query)
This can be removed once we fix CONFDEV-16505. We should direct all usages of this method back to SiteSearch.search().


search

public static SiteSearch search(java.lang.String query,
                                net.sourceforge.jwebunit.junit.WebTester tester)

search

public static SiteSearch search(TitledContent content)

search

public static SiteSearch search(TitledContent content,
                                net.sourceforge.jwebunit.junit.WebTester tester)

searchInArchivedSpaces

public static SiteSearch searchInArchivedSpaces(TitledContent content)

searchInArchivedSpaces

public static SiteSearch searchInArchivedSpaces(TitledContent content,
                                                net.sourceforge.jwebunit.junit.WebTester tester)

searchInSpace

public static SiteSearch searchInSpace(TitledContent content,
                                       Space space)

searchInSpace

public static SiteSearch searchInSpace(TitledContent content,
                                       Space space,
                                       net.sourceforge.jwebunit.junit.WebTester tester)

searchContentType

public static SiteSearch searchContentType(java.lang.String query,
                                           java.lang.String type)

searchContentType

public static SiteSearch searchContentType(java.lang.String query,
                                           java.lang.String type,
                                           net.sourceforge.jwebunit.junit.WebTester tester)

getUrl

public static java.lang.String getUrl()

isResultPresent

public boolean isResultPresent(TitledContent content)

hasNoSearchResults

public boolean hasNoSearchResults()

setAuthor

public SiteSearch setAuthor(User user)

setQueryString

public SiteSearch setQueryString(java.lang.String query)

hasResultWithTitle

public boolean hasResultWithTitle(AbstractPageEntity page)

hasResultWithTitle

public boolean hasResultWithTitle(java.lang.String resultTitle)

getAuthorFieldError

public java.lang.String getAuthorFieldError()

getAuthorValue

public java.lang.String getAuthorValue()

getAuthorUsernameValue

public java.lang.String getAuthorUsernameValue()

formatUserAsAuthorField

public static java.lang.String formatUserAsAuthorField(User test)

setContentType

public SiteSearch setContentType(java.lang.String contentType)

setDateRestriction

public SiteSearch setDateRestriction(SiteSearch.DateRestriction dateRestriction)

setSpace

public SiteSearch setSpace(java.lang.String space)

getNumberOfResults

public int getNumberOfResults()


Copyright © 2003-2014 Atlassian. All Rights Reserved.