Class: ActiveCMIS::AclEntry
- Inherits:
-
Object
- Object
- ActiveCMIS::AclEntry
- Defined in:
- lib/active_cmis/acl_entry.rb
Instance Attribute Summary collapse
-
#permissions ⇒ <String>
readonly
A frozen array of strings with the permissions.
-
#principal ⇒ String, ...
readonly
Normal users are represented with a string, a non-logged in user is known as :anonymous, the principal :world represents the group of all logged in users.
Instance Method Summary collapse
-
#direct? ⇒ Boolean
True if this is the direct representation of the ACL from the repositories point of view.
-
#initialize(principal, permissions, direct) ⇒ AclEntry
constructor
A new instance of AclEntry.
Constructor Details
#initialize(principal, permissions, direct) ⇒ AclEntry
Returns a new instance of AclEntry.
5 6 7 8 9 10 |
# File 'lib/active_cmis/acl_entry.rb', line 5 def initialize(principal, , direct) @principal = principal.freeze @permissions = .freeze @permissions.each {|p| p.freeze} @direct = direct end |
Instance Attribute Details
#permissions ⇒ <String> (readonly)
Returns A frozen array of strings with the permissions.
19 20 21 |
# File 'lib/active_cmis/acl_entry.rb', line 19 def @permissions end |
#principal ⇒ String, ... (readonly)
Normal users are represented with a string, a non-logged in user is known as :anonymous, the principal :world represents the group of all logged in users.
17 18 19 |
# File 'lib/active_cmis/acl_entry.rb', line 17 def principal @principal end |
Instance Method Details
#direct? ⇒ Boolean
True if this is the direct representation of the ACL from the repositories point of view. This means there are no hidden differences that can’t be expressed within the limitations of CMIS
22 23 24 |
# File 'lib/active_cmis/acl_entry.rb', line 22 def direct? @direct end |