org.dspace.content
Class SupervisedItem

java.lang.Object
  extended by org.dspace.content.WorkspaceItem
      extended by org.dspace.content.SupervisedItem
All Implemented Interfaces:
InProgressSubmission

public class SupervisedItem
extends WorkspaceItem

Class to handle WorkspaceItems which are being supervised. It extends the WorkspaceItem class and adds the methods required to be a Supervised Item.

Version:
$Revision: 3761 $
Author:
Richard Jones

Method Summary
static SupervisedItem[] findbyEPerson(Context context, EPerson ep)
          Get items being supervised by given EPerson
static SupervisedItem[] getAll(Context context)
          Get all workspace items which are being supervised
 Group[] getSupervisorGroups()
          Gets all the groups that are supervising a this workspace item
 Group[] getSupervisorGroups(Context c, int wi)
          Gets all the groups that are supervising a particular workspace item
 
Methods inherited from class org.dspace.content.WorkspaceItem
create, deleteAll, deleteWrapper, find, findAll, findByCollection, findByEPerson, getCollection, getID, getItem, getPageReached, getStageReached, getSubmitter, hasMultipleFiles, hasMultipleTitles, isPublishedBefore, setMultipleFiles, setMultipleTitles, setPageReached, setPublishedBefore, setStageReached, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAll

public static SupervisedItem[] getAll(Context context)
                               throws SQLException
Get all workspace items which are being supervised

Parameters:
context - the context this object exists in
Returns:
array of SupervisedItems
Throws:
SQLException

getSupervisorGroups

public Group[] getSupervisorGroups(Context c,
                                   int wi)
                            throws SQLException
Gets all the groups that are supervising a particular workspace item

Parameters:
c - the context this object exists in
wi - the ID of the workspace item
Returns:
the supervising groups in an array
Throws:
SQLException

getSupervisorGroups

public Group[] getSupervisorGroups()
                            throws SQLException
Gets all the groups that are supervising a this workspace item

Returns:
the supervising groups in an array
Throws:
SQLException

findbyEPerson

public static SupervisedItem[] findbyEPerson(Context context,
                                             EPerson ep)
                                      throws SQLException
Get items being supervised by given EPerson

Parameters:
ep - the eperson who's items to supervise we want
context - the dspace context
Returns:
the items eperson is supervising in an array
Throws:
SQLException


Copyright © 2010 DuraSpace. All Rights Reserved.