com.atlassian.confluence.it.dashboard
Class WebDashboard

java.lang.Object
  extended by com.atlassian.confluence.it.dashboard.WebDashboard
All Implemented Interfaces:
Dashboard

public class WebDashboard
extends java.lang.Object
implements Dashboard

Confluence dashboard information retrieved from the web interface via a WebTester.


Constructor Summary
protected WebDashboard(net.sourceforge.jwebunit.junit.WebTester webTester)
           
 
Method Summary
static WebDashboard getDashboard(net.sourceforge.jwebunit.junit.WebTester webTester)
           
 int getItemsWithMatchingTitle(java.lang.String title)
          Returns the number of recently updated items with the given title.
 RecentlyUpdatedChangeSet getRecentUpdate(int index)
          Returns the recently updated change-set at the specified index on the dashboard, or null if such an item does not exist.
 java.util.List<RecentlyUpdatedChangeSet> getRecentUpdates()
          Returns the recently updated content from the dashboard as RecentlyUpdatedChangeSet objects in the order they appear on the dashboard.
 java.util.Date getRequestTime()
          Returns the request timestamp inserted by the server in a meta tag in the HTML header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDashboard

protected WebDashboard(net.sourceforge.jwebunit.junit.WebTester webTester)
Method Detail

getDashboard

public static WebDashboard getDashboard(net.sourceforge.jwebunit.junit.WebTester webTester)

getRecentUpdates

public java.util.List<RecentlyUpdatedChangeSet> getRecentUpdates()
Description copied from interface: Dashboard
Returns the recently updated content from the dashboard as RecentlyUpdatedChangeSet objects in the order they appear on the dashboard.

Specified by:
getRecentUpdates in interface Dashboard
Returns:
a list of RecentlyUpdatedChangeSet objects.

getRecentUpdate

public RecentlyUpdatedChangeSet getRecentUpdate(int index)
Description copied from interface: Dashboard
Returns the recently updated change-set at the specified index on the dashboard, or null if such an item does not exist. An index of zero indicates the first (i.e. most recent) changeset on the list.

Specified by:
getRecentUpdate in interface Dashboard
Parameters:
index - the zero-based index of the recently updated change-set on dashboard to return.
Returns:
the recently updated change-set on the dashboard with the specified index, or null if one does not exist.

getRequestTime

public java.util.Date getRequestTime()
Description copied from interface: Dashboard
Returns the request timestamp inserted by the server in a meta tag in the HTML header. Useful for checking times on recent updates. Returns null if the meta tag is not found.

Specified by:
getRequestTime in interface Dashboard

getItemsWithMatchingTitle

public int getItemsWithMatchingTitle(java.lang.String title)
Returns the number of recently updated items with the given title.



Copyright © 2003-2011 Atlassian. All Rights Reserved.