Class: CurationConcerns::EmbargoService

Inherits:
RestrictionService show all
Defined in:
app/services/curation_concerns/embargo_service.rb

Class Method Summary collapse

Class Method Details

.assets_under_embargoObject

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)


17
18
19
20
# File 'app/services/curation_concerns/embargo_service.rb', line 17

def assets_under_embargo
  builder = CurationConcerns::EmbargoSearchBuilder.new(self)
  presenters(builder)
end

.assets_with_deactivated_embargoesObject

Returns all assets that have had embargoes deactivated in the past.



23
24
25
26
# File 'app/services/curation_concerns/embargo_service.rb', line 23

def assets_with_deactivated_embargoes
  builder = CurationConcerns::DeactivatedEmbargoSearchBuilder.new(self)
  presenters(builder)
end

.assets_with_expired_embargoesObject

Returns all assets with embargo release date set to a date in the past



9
10
11
12
# File 'app/services/curation_concerns/embargo_service.rb', line 9

def assets_with_expired_embargoes
  builder = CurationConcerns::ExpiredEmbargoSearchBuilder.new(self)
  presenters(builder)
end