Sha256: 8749d8e6fb5101fff643b96996cc09864ad9d14f792119a4f20478aa158c606b

Contents?: true

Size: 493 Bytes

Versions: 56

Compression:

Stored size: 493 Bytes

Contents

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 that includes `Hyrax::Suppressible`
    #
    # @return [RDF::Vocabulary::Term] the Fedora Resource Status 'inactive' term
    module DeactivateObject
      def self.call(target:, **)
        target.state = Vocab::FedoraResourceStatus.inactive
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

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