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.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/blacklight/access_controls/config.rb', line 6 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.
20 21 22 |
# File 'lib/blacklight/access_controls/config.rb', line 20 def discover_group_field @discover_group_field end |
#discover_user_field ⇒ Object
Returns the value of attribute discover_user_field.
20 21 22 |
# File 'lib/blacklight/access_controls/config.rb', line 20 def discover_user_field @discover_user_field end |
#download_group_field ⇒ Object
Returns the value of attribute download_group_field.
22 23 24 |
# File 'lib/blacklight/access_controls/config.rb', line 22 def download_group_field @download_group_field end |
#download_user_field ⇒ Object
Returns the value of attribute download_user_field.
22 23 24 |
# File 'lib/blacklight/access_controls/config.rb', line 22 def download_user_field @download_user_field end |
#read_group_field ⇒ Object
Returns the value of attribute read_group_field.
21 22 23 |
# File 'lib/blacklight/access_controls/config.rb', line 21 def read_group_field @read_group_field end |
#read_user_field ⇒ Object
Returns the value of attribute read_user_field.
21 22 23 |
# File 'lib/blacklight/access_controls/config.rb', line 21 def read_user_field @read_user_field end |
#user_model ⇒ Object
Returns the value of attribute user_model.
19 20 21 |
# File 'lib/blacklight/access_controls/config.rb', line 19 def user_model @user_model end |
Instance Method Details
#default_discover_group_field ⇒ Object
28 29 30 |
# File 'lib/blacklight/access_controls/config.rb', line 28 def default_discover_group_field 'discover_access_group_ssim' end |
#default_discover_user_field ⇒ Object
32 33 34 |
# File 'lib/blacklight/access_controls/config.rb', line 32 def default_discover_user_field 'discover_access_person_ssim' end |
#default_download_group_field ⇒ Object
44 45 46 |
# File 'lib/blacklight/access_controls/config.rb', line 44 def default_download_group_field 'download_access_group_ssim' end |
#default_download_user_field ⇒ Object
48 49 50 |
# File 'lib/blacklight/access_controls/config.rb', line 48 def default_download_user_field 'download_access_person_ssim' end |
#default_read_group_field ⇒ Object
36 37 38 |
# File 'lib/blacklight/access_controls/config.rb', line 36 def default_read_group_field 'read_access_group_ssim' end |
#default_read_user_field ⇒ Object
40 41 42 |
# File 'lib/blacklight/access_controls/config.rb', line 40 def default_read_user_field 'read_access_person_ssim' end |
#default_user_model ⇒ Object
24 25 26 |
# File 'lib/blacklight/access_controls/config.rb', line 24 def default_user_model 'User' end |