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

Class SitecoreInfoMapper
Inheritance: AbstractDataMapper
Afficher le fichier Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

MapToCms() public méthode

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.
Résultat void

MapToProperty() public méthode

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.
Résultat object

Setup() public méthode

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.
Résultat void

SitecoreInfoMapper() public méthode

Initializes a new instance of the SitecoreInfoMapper class.
public SitecoreInfoMapper ( ) : System
Résultat System

SitecoreInfoMapper() public méthode

public SitecoreInfoMapper ( IMediaUrlOptionsResolver mediaUrlOptionsResolver, IUrlOptionsResolver urlOptionsResolver ) : System
mediaUrlOptionsResolver IMediaUrlOptionsResolver
urlOptionsResolver IUrlOptionsResolver
Résultat System