Class: Kaltura::KalturaDistributionFieldConfig
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaDistributionFieldConfig
- Defined in:
- lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb
Instance Attribute Summary collapse
-
#entry_mrss_xslt ⇒ Object
An XSLT string that extracts the right value from the Kaltura entry MRSS XML.
-
#field_name ⇒ Object
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 ⇒ Object
Is this field config is the default for the distribution provider?.
-
#is_required ⇒ Object
Is the field required to have a value for submission ?.
-
#trigger_delete_on_error ⇒ Object
Is an error on this field going to trigger deletion of distributed content?.
-
#type ⇒ Object
Returns the value of attribute type.
-
#update_on_change ⇒ Object
Trigger distribution update when this field changes or not ?.
-
#update_params ⇒ Object
Entry column or metadata xpath that should trigger an update.
-
#user_friendly_field_name ⇒ Object
A string that will be shown to the user as the field name in error messages related to the current field.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#entry_mrss_xslt ⇒ Object
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.
252 253 254 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 252 def entry_mrss_xslt @entry_mrss_xslt end |
#field_name ⇒ Object
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.
247 248 249 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 247 def field_name @field_name end |
#is_default ⇒ Object
Is this field config is the default for the distribution provider?
261 262 263 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 261 def is_default @is_default end |
#is_required ⇒ Object
Is the field required to have a value for submission ?
254 255 256 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 254 def is_required @is_required end |
#trigger_delete_on_error ⇒ Object
Is an error on this field going to trigger deletion of distributed content?
263 264 265 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 263 def trigger_delete_on_error @trigger_delete_on_error end |
#type ⇒ Object
Returns the value of attribute type.
255 256 257 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 255 def type @type end |
#update_on_change ⇒ Object
Trigger distribution update when this field changes or not ?
257 258 259 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 257 def update_on_change @update_on_change end |
#update_params ⇒ Object
Entry column or metadata xpath that should trigger an update
259 260 261 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 259 def update_params @update_params end |
#user_friendly_field_name ⇒ Object
A string that will be shown to the user as the field name in error messages related to the current field
249 250 251 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 249 def user_friendly_field_name @user_friendly_field_name end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# 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 |