class RubyAem::Resources::Path
Path
class contains API calls related to managing an AEM path.
Public Class Methods
new(client, name)
click to toggle source
Initialise a path.
@param client RubyAem::Client
@param name the name of the path, e.g. /etc/designs @return new RubyAem::Resources::Path
instance
# File lib/ruby_aem/resources/path.rb, line 24 def initialize(client, name) @client = client @call_params = { name: name } end
Public Instance Methods
activate(ignore_deactivated, only_modified)
click to toggle source
Activate a path.
@param ignore_deactivated if true, then deactivated items in the path will not be activated @param only_modified if true, then only modified items in the path will be activated @return RubyAem::Result
# File lib/ruby_aem/resources/path.rb, line 36 def activate(ignore_deactivated, only_modified) @call_params[:ignoredeactivated] = ignore_deactivated @call_params[:onlymodified] = only_modified @client.call(self.class, __callee__.to_s, @call_params) end
delete()
click to toggle source
Delete a path.
@return RubyAem::Result
# File lib/ruby_aem/resources/path.rb, line 46 def delete # The path parameter will be combined with the name parameter # in order to delete the full path. @call_params[:path] = @call_params[:name] @client.call(self.class, __callee__.to_s, @call_params) end