Class: Kaltura::KalturaCategory

Inherits:
KalturaObjectBase 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

#admin_tagsObject

Returns the value of attribute admin_tags.



2650
2651
2652
# File 'lib/kaltura_types.rb', line 2650

def admin_tags
  @admin_tags
end

#aggregation_categoriesObject

List of aggregation channels the category belongs to



2649
2650
2651
# File 'lib/kaltura_types.rb', line 2649

def aggregation_categories
  @aggregation_categories
end

#appear_in_listObject

If category will be returned for list action.



2605
2606
2607
# File 'lib/kaltura_types.rb', line 2605

def appear_in_list
  @appear_in_list
end

#contribution_policyObject

who can assign entries to this category



2621
2622
2623
# File 'lib/kaltura_types.rb', line 2621

def contribution_policy
  @contribution_policy
end

#created_atObject

Creation date as Unix timestamp (In seconds)



2597
2598
2599
# File 'lib/kaltura_types.rb', line 2597

def created_at
  @created_at
end

#default_order_byObject

Enable client side applications to define how to sort the category child categories



2639
2640
2641
# File 'lib/kaltura_types.rb', line 2639

def default_order_by
  @default_order_by
end

#default_permission_levelObject

Default permissionLevel for new users



2613
2614
2615
# File 'lib/kaltura_types.rb', line 2613

def default_permission_level
  @default_permission_level
end

#depthObject

Returns the value of attribute depth.



2585
2586
2587
# File 'lib/kaltura_types.rb', line 2585

def depth
  @depth
end

#descriptionObject

Category description



2601
2602
2603
# File 'lib/kaltura_types.rb', line 2601

def description
  @description
end

#direct_entries_countObject

Number of entries that belong to this category directly



2617
2618
2619
# File 'lib/kaltura_types.rb', line 2617

def direct_entries_count
  @direct_entries_count
end

#direct_sub_categories_countObject

Number of direct children categories



2641
2642
2643
# File 'lib/kaltura_types.rb', line 2641

def direct_sub_categories_count
  @direct_sub_categories_count
end

#entries_countObject

Number of entries in this Category (including child categories)



2595
2596
2597
# File 'lib/kaltura_types.rb', line 2595

def entries_count
  @entries_count
end

#full_idsObject

The full ids of the Category



2593
2594
2595
# File 'lib/kaltura_types.rb', line 2593

def full_ids
  @full_ids
end

#full_nameObject

The full name of the Category



2591
2592
2593
# File 'lib/kaltura_types.rb', line 2591

def full_name
  @full_name
end

#idObject

The id of the Category



2583
2584
2585
# File 'lib/kaltura_types.rb', line 2583

def id
  @id
end

#inheritance_typeObject

If Category members are inherited from parent category or set manualy.



2609
2610
2611
# File 'lib/kaltura_types.rb', line 2609

def inheritance_type
  @inheritance_type
end

#inherited_parent_idObject

The category id that this category inherit its members and members permission (for contribution and join)



2633
2634
2635
# File 'lib/kaltura_types.rb', line 2633

def inherited_parent_id
  @inherited_parent_id
end

#is_aggregation_categoryObject

Flag indicating that the category is an aggregation category



2647
2648
2649
# File 'lib/kaltura_types.rb', line 2647

def is_aggregation_category
  @is_aggregation_category
end

#members_countObject

Number of active members for this category



2623
2624
2625
# File 'lib/kaltura_types.rb', line 2623

def members_count
  @members_count
end

#moderationObject

Moderation to add entries to this category by users that are not of permission level Manager or Moderator.



2643
2644
2645
# File 'lib/kaltura_types.rb', line 2643

def moderation
  @moderation
end

#nameObject

The name of the Category. The following characters are not allowed: ‘<’, ‘>’, ‘,’



2589
2590
2591
# File 'lib/kaltura_types.rb', line 2589

def name
  @name
end

#ownerObject

Category Owner (User id)



2615
2616
2617
# File 'lib/kaltura_types.rb', line 2615

def owner
  @owner
end

#parent_idObject

Returns the value of attribute parent_id.



2584
2585
2586
# File 'lib/kaltura_types.rb', line 2584

def parent_id
  @parent_id
end

#partner_dataObject

Can be used to store various partner related data as a string



2637
2638
2639
# File 'lib/kaltura_types.rb', line 2637

def partner_data
  @partner_data
end

#partner_idObject

Returns the value of attribute partner_id.



2586
2587
2588
# File 'lib/kaltura_types.rb', line 2586

def partner_id
  @partner_id
end

#partner_sort_valueObject

Can be used to store various partner related data as a numeric value



2635
2636
2637
# File 'lib/kaltura_types.rb', line 2635

def partner_sort_value
  @partner_sort_value
end

#pending_entries_countObject

Nunber of pending moderation entries



2645
2646
2647
# File 'lib/kaltura_types.rb', line 2645

def pending_entries_count
  @pending_entries_count
end

#pending_members_countObject

Number of pending members for this category



2625
2626
2627
# File 'lib/kaltura_types.rb', line 2625

def pending_members_count
  @pending_members_count
end

#privacyObject

defines the privacy of the entries that assigned to this category



2607
2608
2609
# File 'lib/kaltura_types.rb', line 2607

def privacy
  @privacy
end

#privacy_contextObject

Set privacy context for search entries that assiged to private and public categories. the entries will be private if the search context is set with those categories.



2627
2628
2629
# File 'lib/kaltura_types.rb', line 2627

def privacy_context
  @privacy_context
end

#privacy_contextsObject

comma separated parents that defines a privacyContext for search



2629
2630
2631
# File 'lib/kaltura_types.rb', line 2629

def privacy_contexts
  @privacy_contexts
end

#reference_idObject

Category external id, controlled and managed by the partner.



2619
2620
2621
# File 'lib/kaltura_types.rb', line 2619

def reference_id
  @reference_id
end

#statusObject

Status



2631
2632
2633
# File 'lib/kaltura_types.rb', line 2631

def status
  @status
end

#tagsObject

Category tags



2603
2604
2605
# File 'lib/kaltura_types.rb', line 2603

def tags
  @tags
end

#updated_atObject

Update date as Unix timestamp (In seconds)



2599
2600
2601
# File 'lib/kaltura_types.rb', line 2599

def updated_at
  @updated_at
end

#user_join_policyObject

Who can ask to join this category



2611
2612
2613
# File 'lib/kaltura_types.rb', line 2611

def user_join_policy
  @user_join_policy
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
# File 'lib/kaltura_types.rb', line 2722

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['parentId'] != nil
		self.parent_id = xml_element.elements['parentId'].text
	end
	if xml_element.elements['depth'] != nil
		self.depth = xml_element.elements['depth'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['fullName'] != nil
		self.full_name = xml_element.elements['fullName'].text
	end
	if xml_element.elements['fullIds'] != nil
		self.full_ids = xml_element.elements['fullIds'].text
	end
	if xml_element.elements['entriesCount'] != nil
		self.entries_count = xml_element.elements['entriesCount'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
	if xml_element.elements['tags'] != nil
		self.tags = xml_element.elements['tags'].text
	end
	if xml_element.elements['appearInList'] != nil
		self.appear_in_list = xml_element.elements['appearInList'].text
	end
	if xml_element.elements['privacy'] != nil
		self.privacy = xml_element.elements['privacy'].text
	end
	if xml_element.elements['inheritanceType'] != nil
		self.inheritance_type = xml_element.elements['inheritanceType'].text
	end
	if xml_element.elements['userJoinPolicy'] != nil
		self.user_join_policy = xml_element.elements['userJoinPolicy'].text
	end
	if xml_element.elements['defaultPermissionLevel'] != nil
		self.default_permission_level = xml_element.elements['defaultPermissionLevel'].text
	end
	if xml_element.elements['owner'] != nil
		self.owner = xml_element.elements['owner'].text
	end
	if xml_element.elements['directEntriesCount'] != nil
		self.direct_entries_count = xml_element.elements['directEntriesCount'].text
	end
	if xml_element.elements['referenceId'] != nil
		self.reference_id = xml_element.elements['referenceId'].text
	end
	if xml_element.elements['contributionPolicy'] != nil
		self.contribution_policy = xml_element.elements['contributionPolicy'].text
	end
	if xml_element.elements['membersCount'] != nil
		self.members_count = xml_element.elements['membersCount'].text
	end
	if xml_element.elements['pendingMembersCount'] != nil
		self.pending_members_count = xml_element.elements['pendingMembersCount'].text
	end
	if xml_element.elements['privacyContext'] != nil
		self.privacy_context = xml_element.elements['privacyContext'].text
	end
	if xml_element.elements['privacyContexts'] != nil
		self.privacy_contexts = xml_element.elements['privacyContexts'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['inheritedParentId'] != nil
		self.inherited_parent_id = xml_element.elements['inheritedParentId'].text
	end
	if xml_element.elements['partnerSortValue'] != nil
		self.partner_sort_value = xml_element.elements['partnerSortValue'].text
	end
	if xml_element.elements['partnerData'] != nil
		self.partner_data = xml_element.elements['partnerData'].text
	end
	if xml_element.elements['defaultOrderBy'] != nil
		self.default_order_by = xml_element.elements['defaultOrderBy'].text
	end
	if xml_element.elements['directSubCategoriesCount'] != nil
		self.direct_sub_categories_count = xml_element.elements['directSubCategoriesCount'].text
	end
	if xml_element.elements['moderation'] != nil
		self.moderation = xml_element.elements['moderation'].text
	end
	if xml_element.elements['pendingEntriesCount'] != nil
		self.pending_entries_count = xml_element.elements['pendingEntriesCount'].text
	end
	if xml_element.elements['isAggregationCategory'] != nil
		self.is_aggregation_category = xml_element.elements['isAggregationCategory'].text
	end
	if xml_element.elements['aggregationCategories'] != nil
		self.aggregation_categories = xml_element.elements['aggregationCategories'].text
	end
	if xml_element.elements['adminTags'] != nil
		self.admin_tags = xml_element.elements['adminTags'].text
	end
end