C# Class Glass.Mapper.Sc.DataMappers.SitecoreFieldLinkMapper

Class SitecoreFieldLinkMapper
Inheritance: AbstractSitecoreFieldMapper
Datei anzeigen Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Public Methods

Method Description
GetField ( Sitecore field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field.

GetFieldValue ( string fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field value.

SetField ( Field field, object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : void

Sets the field.

SetFieldValue ( object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : string

Sets the field value.

SitecoreFieldLinkMapper ( ) : System

Initializes a new instance of the SitecoreFieldLinkMapper class.

SitecoreFieldLinkMapper ( IUrlOptionsResolver urlOptionsResolver ) : System

Method Details

GetField() public method

Gets the field.
public GetField ( Sitecore field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
field Sitecore The field.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return object

GetFieldValue() public method

Gets the field value.
public GetFieldValue ( string fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
fieldValue string The field value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return object

SetField() public method

Sets the field.
/// No item with ID {0}. Can not update Link linkField.Formatted(newId) /// or /// No item with ID {0}. Can not update Link linkField.Formatted(newId) ///
public SetField ( Field field, object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : void
field Field The field.
value object The value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return void

SetFieldValue() public method

Sets the field value.
public SetFieldValue ( object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : string
value object The value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return string

SitecoreFieldLinkMapper() public method

Initializes a new instance of the SitecoreFieldLinkMapper class.
public SitecoreFieldLinkMapper ( ) : System
return System

SitecoreFieldLinkMapper() public method

public SitecoreFieldLinkMapper ( IUrlOptionsResolver urlOptionsResolver ) : System
urlOptionsResolver IUrlOptionsResolver
return System