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

Class SitecoreInfoMapper
Inheritance: AbstractDataMapper
Mostrar archivo Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Public Methods

Method Description
CanHandle ( AbstractPropertyConfiguration configuration, Context context ) : bool

Indicates that the data mapper will mapper to and from the property

MapToCms ( AbstractDataMappingContext mappingContext ) : void

Maps data from the .Net property value to the CMS value

MapToProperty ( AbstractDataMappingContext mappingContext ) : object

Maps data from the CMS value to the .Net property value

Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void

Sets up the data mapper for a particular property

SitecoreInfoMapper ( ) : System

Initializes a new instance of the SitecoreInfoMapper class.

SitecoreInfoMapper ( IMediaUrlOptionsResolver mediaUrlOptionsResolver, IUrlOptionsResolver urlOptionsResolver ) : System

Method Details

CanHandle() public method

Indicates that the data mapper will mapper to and from the property
public CanHandle ( AbstractPropertyConfiguration configuration, Context context ) : bool
configuration Glass.Mapper.Configuration.AbstractPropertyConfiguration The configuration.
context Context The context.
return bool

MapToCms() public method

Maps data from the .Net property value to the CMS value
/// Can't set DisplayName. Value is not of type System.String /// or /// Can't set Name. Value is not of type System.String /// or /// You can not save SitecoreInfo {0}.Formatted(scConfig.Type) /// You can not set an empty or null Item name
public MapToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext The mapping context.
return void

MapToProperty() public method

Maps data from the CMS value to the .Net property value
SitecoreInfoType {0} not supported.Formatted(scConfig.Type)
public MapToProperty ( AbstractDataMappingContext mappingContext ) : object
mappingContext AbstractDataMappingContext The mapping context.
return object

Setup() public method

Sets up the data mapper for a particular property
public Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void
args Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs The args.
return void

SitecoreInfoMapper() public method

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

SitecoreInfoMapper() public method

public SitecoreInfoMapper ( IMediaUrlOptionsResolver mediaUrlOptionsResolver, IUrlOptionsResolver urlOptionsResolver ) : System
mediaUrlOptionsResolver IMediaUrlOptionsResolver
urlOptionsResolver IUrlOptionsResolver
return System