org.dspace.app.webui.components
Class RecentSubmissions

java.lang.Object
  extended by org.dspace.app.webui.components.RecentSubmissions

public class RecentSubmissions
extends java.lang.Object

Basic class for representing the set of items which are recent submissions to the archive

Author:
Richard Jones

Constructor Summary
RecentSubmissions(Item[] items)
          Construct a new RecentSubmissions object to represent the passed array of items
 
Method Summary
 int count()
          obtain the number of recent submissions available
 Item getRecentSubmission(int i)
          Get the item which is in the i'th position.
 Item[] getRecentSubmissions()
          Obtain the array of items
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecentSubmissions

public RecentSubmissions(Item[] items)
Construct a new RecentSubmissions object to represent the passed array of items

Parameters:
items -
Method Detail

count

public int count()
obtain the number of recent submissions available

Returns:
the number of items

getRecentSubmissions

public Item[] getRecentSubmissions()
Obtain the array of items

Returns:
an array of items

getRecentSubmission

public Item getRecentSubmission(int i)
Get the item which is in the i'th position. Therefore i = 1 gets the most recently submitted item, while i = 3 gets the 3rd most recently submitted item

Parameters:
i - the position of the item to retrieve
Returns:
the Item


Copyright © 2010 DuraSpace. All Rights Reserved.