Class: Dor::WorkflowDs
- Inherits:
-
ActiveFedora::Datastream
- Object
- ActiveFedora::Datastream
- Dor::WorkflowDs
- Defined in:
- lib/dor/datastreams/workflow_ds.rb
Overview
Represents the datastream that just holds the location of the workflow service
Class Method Summary collapse
-
.default_attributes ⇒ Object
Called by rubydora.
Instance Method Summary collapse
-
#build_location ⇒ Object
Called before saving, but after a pid has been assigned.
Methods included from DatastreamSpecSolrizer
Methods included from SolrDocHelper
Class Method Details
.default_attributes ⇒ Object
Called by rubydora. This lets us customize the mime-type
16 17 18 |
# File 'lib/dor/datastreams/workflow_ds.rb', line 16 def self.default_attributes super.merge(mimeType: 'application/xml') end |
Instance Method Details
#build_location ⇒ Object
Called before saving, but after a pid has been assigned
9 10 11 12 13 |
# File 'lib/dor/datastreams/workflow_ds.rb', line 9 def build_location return unless new? self.dsLocation = File.join(Dor::Config.workflow.url, "dor/objects/#{pid}/workflows") end |