Class: Hyrax::ChangeContentDepositorService
- Inherits:
-
Object
- Object
- Hyrax::ChangeContentDepositorService
- Defined in:
- app/services/hyrax/change_content_depositor_service.rb
Class Method Summary collapse
-
.call(work, user, reset) ⇒ Object
Set the given ‘user` as the depositor of the given `work`; If `reset` is true, first remove all previous permissions.
Class Method Details
.call(work, user, reset) ⇒ Object
Set the given ‘user` as the depositor of the given `work`; If `reset` is true, first remove all previous permissions.
15 16 17 18 19 20 21 22 23 |
# File 'app/services/hyrax/change_content_depositor_service.rb', line 15 def self.call(work, user, reset) Deprecation.warn("This class will be removed in the next major release. Use Hyrax::ChangeDepositorService.call instead.") case work when ActiveFedora::Base call_af(work, user, reset) when Valkyrie::Resource call_valkyrie(work, user, reset) end end |