Sha256: aec5a00077ea2b641f4159c014c6a6d03ae8008b7609312df4fbc278ca0db0cd

Contents?: true

Size: 557 Bytes

Versions: 21

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Workflow
    ##
    # This is a built in function for workflow, setting the +#state+
    # of the target to the Fedora +inactive+ status URI
    #
    # @param target [#state] an instance of a model with a +#state+ property;
    #   e.g. a {Hyrax::Work}
    #
    # @return [RDF::URI] the Fedora Resource Status 'inactive' term
    # @see Hyrax::ResourceStatus
    module DeactivateObject
      def self.call(target:, **)
        target.state = Hyrax::ResourceStatus::INACTIVE
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyrax-5.0.4 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.3 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.2 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.1 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.0.rc3 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.0.rc2 app/services/hyrax/workflow/deactivate_object.rb
hyrax-5.0.0.rc1 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.6.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-4.0.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-4.0.0.rc3 app/services/hyrax/workflow/deactivate_object.rb
hyrax-4.0.0.rc2 app/services/hyrax/workflow/deactivate_object.rb
hyrax-4.0.0.rc1 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.5.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-4.0.0.beta2 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.4.2 app/services/hyrax/workflow/deactivate_object.rb
hyrax-4.0.0.beta1 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.4.1 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.4.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.3.0 app/services/hyrax/workflow/deactivate_object.rb