Module: CurationConcern::WithAccessRight
- Extended by:
- ActiveSupport::Concern
- Included in:
- GenericFile
- Defined in:
- app/repository_models/curation_concern/with_access_right.rb
Instance Method Summary collapse
- #authenticated_only_access? ⇒ Boolean
- #open_access? ⇒ Boolean
- #open_access_with_embargo_release_date? ⇒ Boolean
- #private_access? ⇒ Boolean
- #under_embargo? ⇒ Boolean
Instance Method Details
#authenticated_only_access? ⇒ Boolean
21 22 23 |
# File 'app/repository_models/curation_concern/with_access_right.rb', line 21 def authenticated_only_access? access_rights.authenticated_only? end |
#open_access? ⇒ Boolean
13 14 15 |
# File 'app/repository_models/curation_concern/with_access_right.rb', line 13 def open_access? access_rights.open_access? end |
#open_access_with_embargo_release_date? ⇒ Boolean
17 18 19 |
# File 'app/repository_models/curation_concern/with_access_right.rb', line 17 def access_rights. end |
#private_access? ⇒ Boolean
25 26 27 |
# File 'app/repository_models/curation_concern/with_access_right.rb', line 25 def private_access? access_rights.private? end |
#under_embargo? ⇒ Boolean
9 10 11 |
# File 'app/repository_models/curation_concern/with_access_right.rb', line 9 def @under_embargo ||= rightsMetadata. end |