class DWorkflowItem

Public Class Methods

find(id) click to toggle source

find org.dspace.workflow.WorkflowItem

id must be an integer

# File lib/dspace/dwork.rb, line 43
def self.find(id)
  java_import org.dspace.workflow.WorkflowItem
  return WorkflowItem.find(DSpace.context, id)
end
findAll(obj) click to toggle source

returns all instances of org.dspace.workflow.WorkflowItem if the obj parameter is nil, otherwise all instances of org.dspace.workflow.WorkflowItem associated with the the given obj

# File lib/dspace/dwork.rb, line 52
def self.findAll(obj)
  java_import org.dspace.workflow.WorkflowItem
  return DWork.findAll(obj, WorkflowItem)
end