All methods are now implemented (by delegating to HistoryManager)

Upgraded javadoc


git-svn-id: http://scm.dspace.org/svn/repo/trunk@217 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Peter Breton
2002-06-24 19:36:56 +00:00
parent fc621fb98d
commit c8730a5578

View File

@@ -40,7 +40,7 @@
package org.dspace.history; package org.dspace.history;
import java.sql.SQLException;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
@@ -83,87 +83,100 @@ public class HistorySubmission
EPerson user, EPerson user,
String tool) String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.CREATE, item,
// user, HistoryManager.MODIFY,
// tool); user,
tool);
} }
/** /**
* Record the fact that reviewer approved the submission of * Record the fact that reviewer approved the submission of
* WorkflowItem using tool. * WorkflowItem using tool.
* *
* @param context Current DSpace context
* @param item The WorkspaceItem * @param item The WorkspaceItem
* @param reviewer The reviewer who accepted the submission * @param reviewer The reviewer who accepted the submission
* @param tool The tool used to accept the submission * @param tool The tool used to accept the submission
*/ */
public static void reviewerAccepts(WorkflowItem item, public static void reviewerAccepts(Context context,
EPerson reviewer, WorkflowItem item,
String tool) EPerson reviewer,
String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.MODIFY, item,
// reviewer, HistoryManager.MODIFY,
// tool); reviewer,
tool);
} }
/** /**
* Record the fact that reviewer rejected the submission of WorkflowItem * Record the fact that reviewer rejected the submission of
* using tool. * WorkflowItem using tool.
* *
* @param context Current DSpace context
* @param item The WorkspaceItem * @param item The WorkspaceItem
* @param reviewer The reviewer who rejected the submission * @param reviewer The reviewer who rejected the submission
* @param tool The tool used to reject the submission * @param tool The tool used to reject the submission
*/ */
public static void reviewerRejects(WorkflowItem item, public static void reviewerRejects(Context context,
EPerson reviewer, WorkflowItem item,
String tool) EPerson reviewer,
String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.REMOVE, item,
// reviewer, HistoryManager.REMOVE,
// tool); reviewer,
tool);
} }
/** /**
* Record the fact that admin accepted the submission of WorkflowItem * Record the fact that admin accepted the submission of
* using tool. * WorkflowItem using tool.
* *
* @param context Current DSpace context
* @param item The WorkspaceItem * @param item The WorkspaceItem
* @param admin The admin who accepted the submission * @param admin The admin who accepted the submission
* @param tool The tool used to accept the submission * @param tool The tool used to accept the submission
*/ */
public static void adminAccepts(WorkflowItem item, public static void adminAccepts(Context context,
EPerson admin, WorkflowItem item,
String tool) EPerson admin,
String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.MODIFY, item,
// approver, HistoryManager.MODIFY,
// tool); admin,
tool);
} }
/** /**
* Record the fact that admin rejected the submission of WorkflowItem * Record the fact that admin rejected the submission of
* using tool. * WorkflowItem using tool.
* *
* @param context Current DSpace context
* @param item The WorkspaceItem * @param item The WorkspaceItem
* @param admin The admin who rejected the submission * @param admin The admin who rejected the submission
* @param tool The tool used to reject the submission * @param tool The tool used to reject the submission
*/ */
public static void adminRejects(WorkflowItem item, public static void adminRejects(Context context,
EPerson admin, WorkflowItem item,
String tool) EPerson admin,
String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.REMOVE, item,
// approver, HistoryManager.REMOVE,
// tool); admin,
tool);
} }
/** /**
@@ -180,11 +193,12 @@ public class HistorySubmission
EPerson editor, EPerson editor,
String tool) String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.MODIFY, item,
// approver, HistoryManager.MODIFY,
// tool); editor,
tool);
} }
/** /**
@@ -203,22 +217,33 @@ public class HistorySubmission
EPerson installer, EPerson installer,
String tool) String tool)
{ {
// HistoryManager.saveHistory HistoryManager.saveHistory
// (item, (context,
// HistoryManager.MODIFY, item,
// installer, HistoryManager.MODIFY,
// tool); installer,
// tool);
// // Installing an item changes not only the item, but also the collection
// Collection[] collections = Item.getCollections(); // Installing an item changes not only the item, but also the
// // collection
// for (int i = 0; i < collections.length; i++ ) try
// { {
// HistoryManager.saveHistory Collection[] collections = item.getCollections();
// (collections[i],
// HistoryManager.MODIFY, for (int i = 0; i < collections.length; i++ )
// installer, {
// tool); HistoryManager.saveHistory
// } (context,
collections[i],
HistoryManager.MODIFY,
installer,
tool);
}
}
catch (SQLException sqle)
{
if (log.isDebugEnabled())
log.debug("Caught SQLException " + sqle, sqle);
}
} }
} }