class DConstants

This class wraps an org.dspace.content.Community object

Constants

ADD
ADMIN
BITSTREAM

constants corresponding to those defined in org.dspace.core.Constants

BUNDLE
COLLECTION
COMMUNITY
DEFAULT_BITSTREAM_READ
DEFAULT_ITEM_READ
DELETE
EPERSON
GROUP
ITEM
READ
REMOVE
SITE
WORKFLOW_ABORT
WORKFLOW_STEP_1
WORKFLOW_STEP_2
WORKFLOW_STEP_3
WRITE

Public Class Methods

actionStr(action_id) click to toggle source

return String for given action_id

# File lib/dspace/dconstants.rb, line 40
def self.actionStr(action_id)
    return org.dspace.core.Constants.actionText[action_id]
end
typeStr(obj_type_id) click to toggle source

returns nil or the org.dspace.content.Community object with the given id

id must be an integer

# File lib/dspace/dconstants.rb, line 34
def self.typeStr(obj_type_id)
  return org.dspace.core.Constants.typeText[obj_type_id].capitalize
end