Anonymous avatar Anonymous committed 073805a

Initial import from SourceForge

Comments (0)

Files changed (4)

src/java/com/opensymphony/workflow/spi/hibernate/HibernateCurrentStep.java

+/*
+ * Copyright (c) 2002-2003 by OpenSymphony
+ * All rights reserved.
+ */
+package com.opensymphony.workflow.spi.hibernate;
+
+
+/**
+ *
+ *
+ * @author $Author: hani $
+ * @version $Revision: 1.1.1.1 $
+ */
+public class HibernateCurrentStep extends HibernateStep {
+    //~ Constructors ///////////////////////////////////////////////////////////
+
+    public HibernateCurrentStep() {
+    }
+
+    public HibernateCurrentStep(HibernateStep step) {
+        super(step);
+    }
+}

src/java/com/opensymphony/workflow/spi/hibernate/HibernateHistoryStep.java

+/*
+ * Copyright (c) 2002-2003 by OpenSymphony
+ * All rights reserved.
+ */
+package com.opensymphony.workflow.spi.hibernate;
+
+
+/**
+ *
+ *
+ * @author $Author: hani $
+ * @version $Revision: 1.1.1.1 $
+ */
+public class HibernateHistoryStep extends HibernateStep {
+    //~ Constructors ///////////////////////////////////////////////////////////
+
+    public HibernateHistoryStep() {
+    }
+
+    public HibernateHistoryStep(HibernateStep step) {
+        super(step);
+    }
+}

src/java/com/opensymphony/workflow/spi/hibernate/HibernateStep.java

+/*
+ * Copyright (c) 2002-2003 by OpenSymphony
+ * All rights reserved.
+ */
+package com.opensymphony.workflow.spi.hibernate;
+
+import com.opensymphony.workflow.spi.Step;
+
+import java.util.Date;
+import java.util.Iterator;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * @author $Author: hani $
+ * @version $Revision: 1.1.1.1 $
+ */
+public abstract class HibernateStep implements Step {
+    //~ Instance fields ////////////////////////////////////////////////////////
+
+    Date dueDate;
+    Date finishDate;
+    Date startDate;
+    HibernateWorkflowEntry entry;
+    List previousSteps;
+    String caller;
+    String owner;
+    String status;
+    int actionId;
+    int stepId;
+    long id;
+
+    //~ Constructors ///////////////////////////////////////////////////////////
+
+    public HibernateStep() {
+    }
+
+    public HibernateStep(HibernateStep step) {
+        this.actionId = step.getActionId();
+        this.caller = step.getCaller();
+        this.finishDate = step.getFinishDate();
+        this.dueDate = step.getDueDate();
+        this.startDate = step.getStartDate();
+        this.id = step.getId();
+        this.owner = step.getOwner();
+        this.status = step.getStatus();
+        this.stepId = step.getStepId();
+        this.previousSteps = step.getPreviousSteps();
+        this.entry = step.entry;
+    }
+
+    //~ Methods ////////////////////////////////////////////////////////////////
+
+    public void setActionId(int actionId) {
+        this.actionId = actionId;
+    }
+
+    public int getActionId() {
+        return actionId;
+    }
+
+    public void setCaller(String caller) {
+        this.caller = caller;
+    }
+
+    public String getCaller() {
+        return caller;
+    }
+
+    public void setDueDate(Date dueDate) {
+        this.dueDate = dueDate;
+    }
+
+    public Date getDueDate() {
+        return dueDate;
+    }
+
+    public void setEntry(HibernateWorkflowEntry entry) {
+        this.entry = entry;
+    }
+
+    public HibernateWorkflowEntry getEntry() {
+        return entry;
+    }
+
+    public long getEntryId() {
+        return entry.getId();
+    }
+
+    public void setFinishDate(Date finishDate) {
+        this.finishDate = finishDate;
+    }
+
+    public Date getFinishDate() {
+        return finishDate;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public long getId() {
+        return id;
+    }
+
+    public void setOwner(String owner) {
+        this.owner = owner;
+    }
+
+    public String getOwner() {
+        return owner;
+    }
+
+    public long[] getPreviousStepIds() {
+        if (previousSteps == null) {
+            return new long[0];
+        }
+
+        long[] previousStepIds = new long[previousSteps.size()];
+        int i = 0;
+
+        for (Iterator iterator = previousSteps.iterator(); iterator.hasNext();) {
+            HibernateStep hibernateStep = (HibernateStep) iterator.next();
+            previousStepIds[i] = hibernateStep.getId();
+            i++;
+        }
+
+        return previousStepIds;
+    }
+
+    public void setPreviousSteps(List previousSteps) {
+        this.previousSteps = previousSteps;
+    }
+
+    public List getPreviousSteps() {
+        return previousSteps;
+    }
+
+    public void setStartDate(Date startDate) {
+        this.startDate = startDate;
+    }
+
+    public Date getStartDate() {
+        return startDate;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStepId(int stepId) {
+        this.stepId = stepId;
+    }
+
+    public int getStepId() {
+        return stepId;
+    }
+}

src/java/com/opensymphony/workflow/spi/hibernate/HibernateWorkflowEntry.java

+/*
+ * Copyright (c) 2002-2003 by OpenSymphony
+ * All rights reserved.
+ */
+package com.opensymphony.workflow.spi.hibernate;
+
+import com.opensymphony.workflow.spi.WorkflowEntry;
+
+import java.util.List;
+
+
+/**
+ *
+ *
+ * @author $Author: hani $
+ * @version $Revision: 1.1.1.1 $
+ */
+public class HibernateWorkflowEntry implements WorkflowEntry {
+    //~ Instance fields ////////////////////////////////////////////////////////
+
+    List currentSteps;
+    List historySteps;
+    String workflowName;
+    boolean initialized;
+    long id;
+
+    //~ Methods ////////////////////////////////////////////////////////////////
+
+    public void setCurrentSteps(List currentSteps) {
+        this.currentSteps = currentSteps;
+    }
+
+    public List getCurrentSteps() {
+        return currentSteps;
+    }
+
+    public void setHistorySteps(List historySteps) {
+        this.historySteps = historySteps;
+    }
+
+    public List getHistorySteps() {
+        return historySteps;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public long getId() {
+        return id;
+    }
+
+    public void setInitialized(boolean initialized) {
+        this.initialized = initialized;
+    }
+
+    public boolean isInitialized() {
+        return initialized;
+    }
+
+    public void setWorkflowName(String workflowName) {
+        this.workflowName = workflowName;
+    }
+
+    public String getWorkflowName() {
+        return workflowName;
+    }
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.