Class: Kaltura::KalturaMoveCategoryEntriesJobData

Inherits:
KalturaJobData show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#dest_category_full_idsObject

Destination categories fallback ids



13781
13782
13783
# File 'lib/kaltura_types.rb', line 13781

def dest_category_full_ids
  @dest_category_full_ids
end

#dest_category_idObject

Destination category id



13768
13769
13770
# File 'lib/kaltura_types.rb', line 13768

def dest_category_id
  @dest_category_id
end

#last_moved_category_entry_page_indexObject

Saves the last page index of the category entries filter pager

In case of crash the batch will restart from that point


13777
13778
13779
# File 'lib/kaltura_types.rb', line 13777

def last_moved_category_entry_page_index
  @last_moved_category_entry_page_index
end

#last_moved_category_idObject

Saves the last category id that its entries moved completely

In case of crash the batch will restart from that point


13771
13772
13773
# File 'lib/kaltura_types.rb', line 13771

def last_moved_category_id
  @last_moved_category_id
end

#last_moved_category_page_indexObject

Saves the last page index of the child categories filter pager

In case of crash the batch will restart from that point


13774
13775
13776
# File 'lib/kaltura_types.rb', line 13774

def last_moved_category_page_index
  @last_moved_category_page_index
end

#move_from_childrenObject

All entries from all child categories will be moved as well



13779
13780
13781
# File 'lib/kaltura_types.rb', line 13779

def move_from_children
  @move_from_children
end

#src_category_idObject

Source category id



13766
13767
13768
# File 'lib/kaltura_types.rb', line 13766

def src_category_id
  @src_category_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
# File 'lib/kaltura_types.rb', line 13802

def from_xml(xml_element)
  super
  if xml_element.elements['srcCategoryId'] != nil
    self.src_category_id = xml_element.elements['srcCategoryId'].text
  end
  if xml_element.elements['destCategoryId'] != nil
    self.dest_category_id = xml_element.elements['destCategoryId'].text
  end
  if xml_element.elements['lastMovedCategoryId'] != nil
    self.last_moved_category_id = xml_element.elements['lastMovedCategoryId'].text
  end
  if xml_element.elements['lastMovedCategoryPageIndex'] != nil
    self.last_moved_category_page_index = xml_element.elements['lastMovedCategoryPageIndex'].text
  end
  if xml_element.elements['lastMovedCategoryEntryPageIndex'] != nil
    self.last_moved_category_entry_page_index = xml_element.elements['lastMovedCategoryEntryPageIndex'].text
  end
  if xml_element.elements['moveFromChildren'] != nil
    self.move_from_children = xml_element.elements['moveFromChildren'].text
  end
  if xml_element.elements['destCategoryFullIds'] != nil
    self.dest_category_full_ids = xml_element.elements['destCategoryFullIds'].text
  end
end