Class: Hyrax::EmbargoService
- Inherits:
-
RestrictionService
- Object
- RestrictionService
- Hyrax::EmbargoService
- Defined in:
- app/services/hyrax/embargo_service.rb
Class Method Summary collapse
-
.assets_under_embargo ⇒ Object
Returns all assets with embargo release date set (assumes that when lease visibility is applied to assets whose leases have expired, the lease expiration date will be removed from its metadata).
-
.assets_with_deactivated_embargoes ⇒ Object
Returns all assets that have had embargoes deactivated in the past.
-
.assets_with_expired_embargoes ⇒ Object
Returns all assets with embargo release date set to a date in the past.
- .search_state_class ⇒ Object
Methods inherited from RestrictionService
Class Method Details
.assets_under_embargo ⇒ Object
Returns all assets with embargo release date set
(assumes that when lease visibility is applied to assets
whose leases have expired, the lease expiration date will be removed from its metadata)
18 19 20 21 |
# File 'app/services/hyrax/embargo_service.rb', line 18 def builder = Hyrax::EmbargoSearchBuilder.new(self) presenters(builder) end |
.assets_with_deactivated_embargoes ⇒ Object
Returns all assets that have had embargoes deactivated in the past.
24 25 26 27 |
# File 'app/services/hyrax/embargo_service.rb', line 24 def builder = Hyrax::DeactivatedEmbargoSearchBuilder.new(self) presenters(builder) end |
.assets_with_expired_embargoes ⇒ Object
Returns all assets with embargo release date set to a date in the past
10 11 12 13 |
# File 'app/services/hyrax/embargo_service.rb', line 10 def builder = Hyrax::ExpiredEmbargoSearchBuilder.new(self) presenters(builder) end |
.search_state_class ⇒ Object
29 30 31 |
# File 'app/services/hyrax/embargo_service.rb', line 29 def search_state_class nil end |