Class: Openfire::Service::User

Inherits:
Base
  • Object
show all
Defined in:
lib/openfire/service/user.rb

Defined Under Namespace

Classes: HTTPException, IllegalArgumentException, InvalidResponseException, RequestNotAuthorisedException, UserAlreadyExistsException, UserNotFoundException, UserServiceDisabledException

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Openfire::Service::Base

Instance Method Details

#add_user!(opts) ⇒ Object



22
23
24
# File 'lib/openfire/service/user.rb', line 22

def add_user!(opts)
  submit_request(opts.merge(:type => :add))
end

#delete_user!(opts) ⇒ Object



26
27
28
# File 'lib/openfire/service/user.rb', line 26

def delete_user!(opts)
  submit_request(opts.merge(:type => :delete))
end

#lock_user!(opts) ⇒ Object



34
35
36
# File 'lib/openfire/service/user.rb', line 34

def lock_user!(opts)
  submit_request(opts.merge(:type => :disable))
end

#unlock_user!(opts) ⇒ Object



38
39
40
# File 'lib/openfire/service/user.rb', line 38

def unlock_user!(opts)
  submit_request(opts.merge(:type => :enable))
end

#update_user!(opts) ⇒ Object



30
31
32
# File 'lib/openfire/service/user.rb', line 30

def update_user!(opts)
  submit_request(opts.merge(:type => :update))
end