Sha256: ef70329b3565c16aa891283fd27ec10800ed7139d3138ecedaba3c4904ae852f

Contents?: true

Size: 499 Bytes

Versions: 56

Compression:

Stored size: 499 Bytes

Contents

module Hyrax
  module Workflow
    module ActivateObject
      ##
      # This is a built in function for workflow, setting the `#state`
      # of the target to the Fedora 'active' status URI
      #
      # @param target [#state] an instance of a model that includes `Hyrax::Suppressible`
      #
      # @return [RDF::Vocabulary::Term] the Fedora Resource Status 'active' term
      def self.call(target:, **)
        target.state = Vocab::FedoraResourceStatus.active
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/workflow/activate_object.rb
hyrax-2.9.5 app/services/hyrax/workflow/activate_object.rb
hyrax-2.9.4 app/services/hyrax/workflow/activate_object.rb
hyrax-2.9.3 app/services/hyrax/workflow/activate_object.rb
hyrax-2.9.2 app/services/hyrax/workflow/activate_object.rb
hyrax-2.9.1 app/services/hyrax/workflow/activate_object.rb
hyrax-2.9.0 app/services/hyrax/workflow/activate_object.rb
hyrax-2.8.0 app/services/hyrax/workflow/activate_object.rb
hyrax-2.7.2 app/services/hyrax/workflow/activate_object.rb
hyrax-2.7.1 app/services/hyrax/workflow/activate_object.rb
hyrax-2.7.0 app/services/hyrax/workflow/activate_object.rb
hyrax-2.6.0 app/services/hyrax/workflow/activate_object.rb
hyrax-3.0.0.pre.rc1 app/services/hyrax/workflow/activate_object.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/workflow/activate_object.rb
hyrax-2.5.1 app/services/hyrax/workflow/activate_object.rb
hyrax-2.5.0 app/services/hyrax/workflow/activate_object.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/workflow/activate_object.rb
hyrax-2.4.1 app/services/hyrax/workflow/activate_object.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/workflow/activate_object.rb
hyrax-2.4.0 app/services/hyrax/workflow/activate_object.rb