Class: Cul::Fedora::Arm::Tasks::UpdateXmlDatastreamTask
- Inherits:
-
UpdateTask
- Object
- Task
- UpdateTask
- Cul::Fedora::Arm::Tasks::UpdateXmlDatastreamTask
- Defined in:
- lib/cul/fedora/arm/tasks.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(pid, dsId, dsLabel, dsMIME, formatURI, data) ⇒ UpdateXmlDatastreamTask
constructor
A new instance of UpdateXmlDatastreamTask.
Methods inherited from Task
Constructor Details
#initialize(pid, dsId, dsLabel, dsMIME, formatURI, data) ⇒ UpdateXmlDatastreamTask
Returns a new instance of UpdateXmlDatastreamTask.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/cul/fedora/arm/tasks.rb', line 72 def initialize(pid,dsId,dsLabel,dsMIME,formatURI,data) super(pid) @apim = :modifyDatastreamByValue @dsId = dsId @inlineData = data @args[:pid] = pid @args[:dsID] = dsId @args[:dsLabel] = dsLabel @args[:MIMEType] = dsMIME @args[:formatURI] = formatURI @args[:dsContent] = data @args[:altIDs] = [] @args[:checksumType] = 'DISABLED' @args[:checksum] = 'none' @args[:logMessage] = 'Batch update' @args[:force] = 'false' end |