Class: Blacklight::AccessControls::Config
- Inherits:
-
Object
- Object
- Blacklight::AccessControls::Config
- Defined in:
- lib/blacklight/access_controls/config.rb
Instance Attribute Summary collapse
-
#discover_group_field ⇒ Object
Returns the value of attribute discover_group_field.
-
#discover_user_field ⇒ Object
Returns the value of attribute discover_user_field.
-
#download_group_field ⇒ Object
Returns the value of attribute download_group_field.
-
#download_user_field ⇒ Object
Returns the value of attribute download_user_field.
-
#read_group_field ⇒ Object
Returns the value of attribute read_group_field.
-
#read_user_field ⇒ Object
Returns the value of attribute read_user_field.
-
#user_model ⇒ Object
Returns the value of attribute user_model.
Instance Method Summary collapse
- #default_discover_group_field ⇒ Object
- #default_discover_user_field ⇒ Object
- #default_download_group_field ⇒ Object
- #default_download_user_field ⇒ Object
- #default_read_group_field ⇒ Object
- #default_read_user_field ⇒ Object
- #default_user_model ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/blacklight/access_controls/config.rb', line 5 def initialize @user_model = default_user_model @discover_group_field = default_discover_group_field @discover_user_field = default_discover_user_field @read_group_field = default_read_group_field @read_user_field = default_read_user_field @download_group_field = default_download_group_field @download_user_field = default_download_user_field end |
Instance Attribute Details
#discover_group_field ⇒ Object
Returns the value of attribute discover_group_field.
19 20 21 |
# File 'lib/blacklight/access_controls/config.rb', line 19 def discover_group_field @discover_group_field end |
#discover_user_field ⇒ Object
Returns the value of attribute discover_user_field.
19 20 21 |
# File 'lib/blacklight/access_controls/config.rb', line 19 def discover_user_field @discover_user_field end |
#download_group_field ⇒ Object
Returns the value of attribute download_group_field.
21 22 23 |
# File 'lib/blacklight/access_controls/config.rb', line 21 def download_group_field @download_group_field end |
#download_user_field ⇒ Object
Returns the value of attribute download_user_field.
21 22 23 |
# File 'lib/blacklight/access_controls/config.rb', line 21 def download_user_field @download_user_field end |
#read_group_field ⇒ Object
Returns the value of attribute read_group_field.
20 21 22 |
# File 'lib/blacklight/access_controls/config.rb', line 20 def read_group_field @read_group_field end |
#read_user_field ⇒ Object
Returns the value of attribute read_user_field.
20 21 22 |
# File 'lib/blacklight/access_controls/config.rb', line 20 def read_user_field @read_user_field end |
#user_model ⇒ Object
Returns the value of attribute user_model.
18 19 20 |
# File 'lib/blacklight/access_controls/config.rb', line 18 def user_model @user_model end |
Instance Method Details
#default_discover_group_field ⇒ Object
27 28 29 |
# File 'lib/blacklight/access_controls/config.rb', line 27 def default_discover_group_field 'discover_access_group_ssim' end |
#default_discover_user_field ⇒ Object
31 32 33 |
# File 'lib/blacklight/access_controls/config.rb', line 31 def default_discover_user_field 'discover_access_person_ssim' end |
#default_download_group_field ⇒ Object
43 44 45 |
# File 'lib/blacklight/access_controls/config.rb', line 43 def default_download_group_field 'download_access_group_ssim' end |
#default_download_user_field ⇒ Object
47 48 49 |
# File 'lib/blacklight/access_controls/config.rb', line 47 def default_download_user_field 'download_access_person_ssim' end |
#default_read_group_field ⇒ Object
35 36 37 |
# File 'lib/blacklight/access_controls/config.rb', line 35 def default_read_group_field 'read_access_group_ssim' end |
#default_read_user_field ⇒ Object
39 40 41 |
# File 'lib/blacklight/access_controls/config.rb', line 39 def default_read_user_field 'read_access_person_ssim' end |
#default_user_model ⇒ Object
23 24 25 |
# File 'lib/blacklight/access_controls/config.rb', line 23 def default_user_model 'User' end |