class Kaltura::KalturaDistributionFieldConfig

Attributes

entry_mrss_xslt[RW]

An XSLT string that extracts the right value from the Kaltura entry MRSS XML.

The value of the current connector field will be the one that is returned from transforming the Kaltura entry MRSS XML using this XSLT string.
field_name[RW]

A value taken from a connector field enum which associates the current configuration to that connector field

Field enum class should be returned by the provider's getFieldEnumClass function.
is_default[RW]

Is this field config is the default for the distribution provider?

is_required[RW]

Is the field required to have a value for submission ?

trigger_delete_on_error[RW]

Is an error on this field going to trigger deletion of distributed content?

type[RW]
update_on_change[RW]

Trigger distribution update when this field changes or not ?

update_params[RW]

Entry column or metadata xpath that should trigger an update

user_friendly_field_name[RW]

A string that will be shown to the user as the field name in error messages related to the current field

Public Instance Methods

from_xml(xml_element) click to toggle source
Calls superclass method Kaltura::KalturaObjectBase#from_xml
# File lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb, line 278
def from_xml(xml_element)
        super
        if xml_element.elements['fieldName'] != nil
                self.field_name = xml_element.elements['fieldName'].text
        end
        if xml_element.elements['userFriendlyFieldName'] != nil
                self.user_friendly_field_name = xml_element.elements['userFriendlyFieldName'].text
        end
        if xml_element.elements['entryMrssXslt'] != nil
                self.entry_mrss_xslt = xml_element.elements['entryMrssXslt'].text
        end
        if xml_element.elements['isRequired'] != nil
                self.is_required = xml_element.elements['isRequired'].text
        end
        if xml_element.elements['type'] != nil
                self.type = xml_element.elements['type'].text
        end
        if xml_element.elements['updateOnChange'] != nil
                self.update_on_change = xml_element.elements['updateOnChange'].text
        end
        if xml_element.elements['updateParams'] != nil
                self.update_params = KalturaClientBase.object_from_xml(xml_element.elements['updateParams'], 'KalturaString')
        end
        if xml_element.elements['isDefault'] != nil
                self.is_default = xml_element.elements['isDefault'].text
        end
        if xml_element.elements['triggerDeleteOnError'] != nil
                self.trigger_delete_on_error = xml_element.elements['triggerDeleteOnError'].text
        end
end
is_default=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb, line 271
def is_default=(val)
        @is_default = to_b(val)
end
is_required=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb, line 265
def is_required=(val)
        @is_required = val.to_i
end
trigger_delete_on_error=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb, line 274
def trigger_delete_on_error=(val)
        @trigger_delete_on_error = to_b(val)
end
update_on_change=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb, line 268
def update_on_change=(val)
        @update_on_change = to_b(val)
end