C# Class SitefinityWebApp.Publishing.XmlInboundPipe

Inheritance: IPipe, IPushPipe, IPullPipe, IInboundPipe
Mostra file Open project: ContentLEAD/Brafton-Sitefinity-6-Importer

Public Methods

Method Description
CanProcessItem ( object item ) : bool
CleanUp ( string transactionName ) : void
ConvertToWraperObject ( XmlDocument item ) : WrapperObject
GetConvertedItemsForMapping ( ) : IEnumerable
GetData ( ) : IQueryable
GetDefaultSettings ( ) : PipeSettings
GetPipeSettingsShortDescription ( PipeSettings initSettings ) : string
Initialize ( PipeSettings pipeSettings ) : void
PushData ( IList items ) : void
ToPublishingPoint ( ) : void
publishNewsItems ( ) : void

Protected Methods

Method Description
CreateDefaultPipeDefinitions ( ) : IList
DeserializeXml ( string url ) : IList
GenerateItemHash ( XmlDocument item ) : string
GetDefaultMapping ( ) : List
LoadWrapperObjectItems ( ) : IList

Private Methods

Method Description
CreateImage ( System.Guid masterImageId, string albumTitle, string imageTitle, Stream imageStream, string imageExtension ) : string
DownloadRemoteImageFile ( System.Guid masterImageId, string albumTitle, string imageTitle, string uri, string imageExtension ) : string
GetAllNewsItems ( ) : List
MakeValidFileName ( string name ) : string
ModifyNewsPublicationDate ( System.Guid masterNewsId, System.DateTime pubDate ) : void
convertIdToGuid ( string id ) : System.Guid
readCategories ( string url ) : string
readContent ( string url ) : string
readImageID ( string url ) : string
readImages ( string url ) : string

Method Details

CanProcessItem() public method

public CanProcessItem ( object item ) : bool
item object
return bool

CleanUp() public method

public CleanUp ( string transactionName ) : void
transactionName string
return void

ConvertToWraperObject() public method

public ConvertToWraperObject ( XmlDocument item ) : WrapperObject
item XmlDocument
return WrapperObject

CreateDefaultPipeDefinitions() protected static method

protected static CreateDefaultPipeDefinitions ( ) : IList
return IList

DeserializeXml() protected method

protected DeserializeXml ( string url ) : IList
url string
return IList

GenerateItemHash() protected method

protected GenerateItemHash ( XmlDocument item ) : string
item XmlDocument
return string

GetConvertedItemsForMapping() public method

public GetConvertedItemsForMapping ( ) : IEnumerable
return IEnumerable

GetData() public method

public GetData ( ) : IQueryable
return IQueryable

GetDefaultMapping() protected static method

protected static GetDefaultMapping ( ) : List
return List

GetDefaultSettings() public method

public GetDefaultSettings ( ) : PipeSettings
return PipeSettings

GetPipeSettingsShortDescription() public method

public GetPipeSettingsShortDescription ( PipeSettings initSettings ) : string
initSettings PipeSettings
return string

Initialize() public method

public Initialize ( PipeSettings pipeSettings ) : void
pipeSettings PipeSettings
return void

LoadWrapperObjectItems() protected method

protected LoadWrapperObjectItems ( ) : IList
return IList

PushData() public method

public PushData ( IList items ) : void
items IList
return void

ToPublishingPoint() public method

public ToPublishingPoint ( ) : void
return void

publishNewsItems() public method

public publishNewsItems ( ) : void
return void