Method: Crowd.add_role
- Defined in:
- lib/crowd.rb
.add_role(name, description, is_active) ⇒ Object
Add Role
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/crowd.rb', line 361 def self.add_role(name, description, is_active) response = authenticated_connection do role = SOAPRole.new(nil, is_active, nil, nil, description, nil, nil, nil, name) arg = AddRole.new(@@application_token, role) server.addRole(arg) end case response when AddRoleResponse return true when ObjectNotFoundException return AuthenticationObjectNotFoundException else raise AuthenticationException, response end end |