Class: Plus4uCodebase::AccessGroup
- Inherits:
-
Object
- Object
- Plus4uCodebase::AccessGroup
- Defined in:
- lib/plus4u_codebase/access_group.rb
Class Method Summary collapse
-
.add_role(group_uri, params = {}) ⇒ Object
Static methods ===================.
- .remove_role(group_uri, params = {}) ⇒ Object
Instance Method Summary collapse
-
#add_role(group_uri, params = {}) ⇒ Object
Adds role to the Group which grants access rights to the Hub or Repository.
-
#initialize(session, options = nil) ⇒ AccessGroup
constructor
A new instance of AccessGroup.
-
#remove_role(group_uri, params = {}) ⇒ Object
Adds role to the Group which grants access rights to the Hub or Repository.
Constructor Details
#initialize(session, options = nil) ⇒ AccessGroup
Returns a new instance of AccessGroup
6 7 8 |
# File 'lib/plus4u_codebase/access_group.rb', line 6 def initialize(session, = nil) @cmd = UU::OS::CMD::CommandClient.new("plus4u-codebase", session, ) end |
Class Method Details
.add_role(group_uri, params = {}) ⇒ Object
Static methods ===================
35 36 37 38 |
# File 'lib/plus4u_codebase/access_group.rb', line 35 def self.add_role(group_uri, params = {}) session = UU::OS::Security::Session.current_session self.new(session).add_role(group_uri, params) end |
.remove_role(group_uri, params = {}) ⇒ Object
40 41 42 43 |
# File 'lib/plus4u_codebase/access_group.rb', line 40 def self.remove_role(group_uri, params = {}) session = UU::OS::Security::Session.current_session self.new(session).remove_role(group_uri, params) end |
Instance Method Details
#add_role(group_uri, params = {}) ⇒ Object
Adds role to the Group which grants access rights to the Hub or Repository.
17 18 19 |
# File 'lib/plus4u_codebase/access_group.rb', line 17 def add_role(group_uri, params = {}) @cmd.invoke("AccessGroup/addRole", group_uri, parameters: params) end |
#remove_role(group_uri, params = {}) ⇒ Object
Adds role to the Group which grants access rights to the Hub or Repository.
28 29 30 |
# File 'lib/plus4u_codebase/access_group.rb', line 28 def remove_role(group_uri, params = {}) @cmd.invoke("AccessGroup/removeRole", group_uri, parameters: params) end |