class DWorkspaceItem

Public Class Methods

find(id) click to toggle source

find org.dspace.workflow.WorkspaceItem

id must be an integer

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

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

# File lib/dspace/dwork.rb, line 74
def self.findAll(obj)
  java_import org.dspace.content.WorkspaceItem
  return DWork.findAll(obj, WorkspaceItem)
end