C# Class Dynamite.Example.ContentOrganizer.ContentOrganizer.Routers.MyCommonRouter

TODO: Update summary.
Inheritance: ICustomRouter
Show file Open project: GSoft-SharePoint/Dynamite-2010-Example-ContentOrganizer

Public Methods

Method Description
OnSubmitFile ( EcmDocumentRoutingWeb contentOrganizerWeb, string recordSeries, string userName, Stream fileContent, Microsoft.SharePoint.RecordsRepositoryProperty properties, SPFolder finalFolder, string &resultDetails ) : CustomRouterResult

OnSubmitFile method for the content organizer

Protected Methods

Method Description
NormalizeFileName ( string fileName ) : string

Remove the Error prefix from the file name

ResolveDependencies ( ) : void

Resolve dependencies for Dynamite Helpers

SaveDocumentToDropOffLibrary ( Stream fileContent, Hashtable docProperties, SPList dropOffLibrary, string fileName, EcmDocumentRoutingWeb web, SPUser user ) : SPListItem

Save a document to the drop off library

Method Details

NormalizeFileName() protected static method

Remove the Error prefix from the file name
protected static NormalizeFileName ( string fileName ) : string
fileName string The file name
return string

OnSubmitFile() public abstract method

OnSubmitFile method for the content organizer
public abstract OnSubmitFile ( EcmDocumentRoutingWeb contentOrganizerWeb, string recordSeries, string userName, Stream fileContent, Microsoft.SharePoint.RecordsRepositoryProperty properties, SPFolder finalFolder, string &resultDetails ) : CustomRouterResult
contentOrganizerWeb EcmDocumentRoutingWeb The web.
recordSeries string Record series.
userName string Submitting user name.
fileContent System.IO.Stream File content.
properties Microsoft.SharePoint.RecordsRepositoryProperty File properties.
finalFolder SPFolder The final folder.
resultDetails string Result processing details.
return CustomRouterResult

ResolveDependencies() protected method

Resolve dependencies for Dynamite Helpers
protected ResolveDependencies ( ) : void
return void

SaveDocumentToDropOffLibrary() protected method

Save a document to the drop off library
protected SaveDocumentToDropOffLibrary ( Stream fileContent, Hashtable docProperties, SPList dropOffLibrary, string fileName, EcmDocumentRoutingWeb web, SPUser user ) : SPListItem
fileContent System.IO.Stream /// The file content ///
docProperties System.Collections.Hashtable /// The document properties ///
dropOffLibrary SPList /// Drop Off Library List instance ///
fileName string /// The file name ///
web EcmDocumentRoutingWeb /// The content organizer web. ///
user SPUser /// The user who submit the file. ///
return SPListItem