Make config Serializable as it is stored in the current session - otherwise prevents clustering

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2939 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2008-05-19 15:14:27 +00:00
parent 60d3e6ce59
commit 94a897d12a
2 changed files with 10 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ package org.dspace.app.util;
import java.util.Vector; import java.util.Vector;
import java.util.Map; import java.util.Map;
import java.io.Serializable;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@@ -50,6 +51,9 @@ import org.apache.log4j.Logger;
* steps. This class represents the structure of a single 'submission-process' * steps. This class represents the structure of a single 'submission-process'
* node in the item-submission.xml configuration file. * node in the item-submission.xml configuration file.
* *
* Note: Implements Serializable as it will be saved to the current session during submission.
* Please ensure that nothing is added to this class that isn't also serializable
*
* @see org.dspace.app.util.SubmissionConfigReader * @see org.dspace.app.util.SubmissionConfigReader
* @see org.dspace.app.util.SubmissionStepConfig * @see org.dspace.app.util.SubmissionStepConfig
* *
@@ -57,7 +61,7 @@ import org.apache.log4j.Logger;
* @version $Revision$ * @version $Revision$
*/ */
public class SubmissionConfig public class SubmissionConfig implements Serializable
{ {
/** name of the item submission process */ /** name of the item submission process */
private String submissionName = null; private String submissionName = null;

View File

@@ -41,6 +41,7 @@
package org.dspace.app.util; package org.dspace.app.util;
import java.util.Map; import java.util.Map;
import java.io.Serializable;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@@ -50,13 +51,16 @@ import org.apache.log4j.Logger;
* This class represents the structure of a single 'step' node in the * This class represents the structure of a single 'step' node in the
* item-submission.xml configuration file. * item-submission.xml configuration file.
* *
* Note: Implements Serializable as it will be saved to the current session during submission.
* Please ensure that nothing is added to this class that isn't also serializable
*
* @see org.dspace.app.util.SubmissionConfigReader * @see org.dspace.app.util.SubmissionConfigReader
* @see org.dspace.app.util.SubmissionConfig * @see org.dspace.app.util.SubmissionConfig
* *
* @author Tim Donohue * @author Tim Donohue
* @version $Revision$ * @version $Revision$
*/ */
public class SubmissionStepConfig public class SubmissionStepConfig implements Serializable
{ {
/* /*
* The identifier for the Select Collection step * The identifier for the Select Collection step