[DS-1194] Item Level Versioning : Bamboo Test Fixes

This commit is contained in:
Fabio Bolognesi
2012-09-20 10:19:44 -07:00
parent 2b51501a26
commit 4084d675fa
2 changed files with 6 additions and 3 deletions

View File

@@ -480,10 +480,13 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
if(handle==null){
handle = DatabaseManager.create(context, "Handle");
handleId = createId(handle.getIntColumn("handle_id"));
}
if(handleId==null)
handleId = createId(handle.getIntColumn("handle_id"));
modifyHandleRecord(context, dso, handle, handleId);
return handleId;
}

View File

@@ -63,7 +63,7 @@ public class XmlWorkflowItem implements InProgressSubmission {
*/
// private ArrayList<StepRecord> activeSteps;
XmlWorkflowItem(Context context, TableRow row) throws SQLException, AuthorizeException, IOException {
XmlWorkflowItem(Context context, TableRow row) throws SQLException {
ourContext = context;
wfRow = row;
// activeSteps = new ArrayList<StepRecord>();
@@ -369,7 +369,7 @@ public class XmlWorkflowItem implements InProgressSubmission {
*
* @return workflow item corresponding to the item, or null
*/
public static XmlWorkflowItem findByItem(Context context, Item item) throws SQLException, AuthorizeException, IOException {
public static XmlWorkflowItem findByItem(Context context, Item item) throws SQLException{
TableRow row = DatabaseManager.findByUnique(context, "cwf_workflowitem", "item_id", item.getID());
XmlWorkflowItem wi = null;