mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 11:33:11 +00:00
[DS-1194] Item Level Versioning : Bamboo Test Fixes
This commit is contained in:
@@ -480,10 +480,13 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
|
|||||||
|
|
||||||
if(handle==null){
|
if(handle==null){
|
||||||
handle = DatabaseManager.create(context, "Handle");
|
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);
|
modifyHandleRecord(context, dso, handle, handleId);
|
||||||
|
|
||||||
return handleId;
|
return handleId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ public class XmlWorkflowItem implements InProgressSubmission {
|
|||||||
*/
|
*/
|
||||||
// private ArrayList<StepRecord> activeSteps;
|
// private ArrayList<StepRecord> activeSteps;
|
||||||
|
|
||||||
XmlWorkflowItem(Context context, TableRow row) throws SQLException, AuthorizeException, IOException {
|
XmlWorkflowItem(Context context, TableRow row) throws SQLException {
|
||||||
ourContext = context;
|
ourContext = context;
|
||||||
wfRow = row;
|
wfRow = row;
|
||||||
// activeSteps = new ArrayList<StepRecord>();
|
// activeSteps = new ArrayList<StepRecord>();
|
||||||
@@ -369,7 +369,7 @@ public class XmlWorkflowItem implements InProgressSubmission {
|
|||||||
*
|
*
|
||||||
* @return workflow item corresponding to the item, or null
|
* @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());
|
TableRow row = DatabaseManager.findByUnique(context, "cwf_workflowitem", "item_id", item.getID());
|
||||||
|
|
||||||
XmlWorkflowItem wi = null;
|
XmlWorkflowItem wi = null;
|
||||||
|
Reference in New Issue
Block a user