mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
code style standardisation
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1151 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -216,18 +216,14 @@ public class SupervisedItem extends WorkspaceItem
|
||||
/**
|
||||
* Get items being supervised by given EPerson
|
||||
*
|
||||
* @param ep the eperson who's items to supervise we want
|
||||
* @param ep the eperson who's items to supervise we want
|
||||
* @param context the dspace context
|
||||
*
|
||||
* @return the items eperson is supervising in an array
|
||||
*/
|
||||
public static SupervisedItem[] findbyEperson(EPerson ep)
|
||||
public static SupervisedItem[] findbyEPerson(Context context, EPerson ep)
|
||||
throws SQLException
|
||||
{
|
||||
//Note that we start our own context as this method is called from a
|
||||
//JSP, which has no access to a context to pass us.
|
||||
Context context = new Context();
|
||||
context.setCurrentUser(ep);
|
||||
|
||||
List sItems = new ArrayList();
|
||||
String query = "SELECT DISTINCT workspaceitem.* " +
|
||||
"FROM workspaceitem, epersongroup2workspaceitem, " +
|
||||
|
Reference in New Issue
Block a user