C# Class AIMS_BD_IATI.WebAPI.Controllers.IATIImportController

Inheritance: ApiController
Exibir arquivo Open project: BD-IATI/edi

Public Methods

Method Description
IATIImportController ( ) : AIMS_BD_IATI.DAL
ToMinifiedIatiActivitiesModel ( List iatiActivities, bool includeTransactions = false, bool includeChilds = false, bool includeMatched = false ) : List
ToMinifiedIatiActivityModel ( iatiactivity iatiActivity, bool includeTransactions = false, bool includeChilds = false, bool includeMatched = false ) : iatiactivityModel
ToMinifiedProjectFieldMapModel ( List projectFieldMapModels ) : List
ToMinifiedProjectMapModel ( ProjectMapModel projectMapModel ) : ProjectMapModelMinified

Protected Methods

Method Description
GuessAgency ( participatingorg org, bool isFilterByType ) : void
getEditDistance ( string a, string b ) : int

Private Methods

Method Description
AssignActivities ( List activities ) : int?
CalculateHierarchyMatching ( ) : HeirarchyModel
CreateNewExecutingAgency ( participatingorg org ) : ExecutingAgencyLookupItem
FilterDP ( List _iOrgs ) : List
GetAllFundSources ( ) : List
GetAllImplementingOrg ( FilterBDModel filterDBModel ) : iOrgs
GetExecutingAgencyTypes ( ) : List
GetFundSources ( ) : List
GetGeneralPreferences ( ) : ProjectFieldMapModel
GetHierarchyData ( DPLookupItem dp ) : HeirarchyModel
GetMatchedProjectByIatiIdentifier ( string iatiIdentifier ) : ProjectFieldMapModel
GetMatchedProjects ( List relevantActivies, List AimsProjects ) : IEnumerable
GetProjectsToMap ( ProjectFieldMapModel GeneralPreference ) : ProjectMapModelMinified
ImportProjects ( ProjectMapModelMinified projectMapModel ) : int?
MergeToSingleActivity ( List iatiActivities ) : iatiactivity
SaveActivityPreferences ( ProjectFieldMapModel activityPreferences ) : int?
SaveGeneralPreferences ( ProjectFieldMapModel generalPreferences ) : int?
SetIgnoreActivity ( Log log ) : int?
SetStatics ( ) : void
SubmitActivities ( List relevantActivies ) : ProjectMapModelMinified
SubmitHierarchy ( HeirarchyModel heirarchyModel ) : FilterBDModel
SubmitManualMatching ( ProjectMapModel projectMapModel ) : bool
SubmitManualMatchingUsingDropdown ( ProjectMapModelMinified projectMapModel ) : bool
UnlinkProject ( ProjectFieldMapModelMinified matchedProject ) : bool
UpdateActivities ( List clientActivities, List sessionActivities ) : void
UpdateTransactionByForce ( Log log ) : int?

Method Details

GuessAgency() protected method

protected GuessAgency ( participatingorg org, bool isFilterByType ) : void
org participatingorg
isFilterByType bool
return void

IATIImportController() public method

public IATIImportController ( ) : AIMS_BD_IATI.DAL
return AIMS_BD_IATI.DAL

ToMinifiedIatiActivitiesModel() public method

public ToMinifiedIatiActivitiesModel ( List iatiActivities, bool includeTransactions = false, bool includeChilds = false, bool includeMatched = false ) : List
iatiActivities List
includeTransactions bool
includeChilds bool
includeMatched bool
return List

ToMinifiedIatiActivityModel() public method

public ToMinifiedIatiActivityModel ( iatiactivity iatiActivity, bool includeTransactions = false, bool includeChilds = false, bool includeMatched = false ) : iatiactivityModel
iatiActivity iatiactivity
includeTransactions bool
includeChilds bool
includeMatched bool
return AIMS_BD_IATI.Library.Parser.ParserIATIv2.iatiactivityModel

ToMinifiedProjectFieldMapModel() public method

public ToMinifiedProjectFieldMapModel ( List projectFieldMapModels ) : List
projectFieldMapModels List
return List

ToMinifiedProjectMapModel() public method

public ToMinifiedProjectMapModel ( ProjectMapModel projectMapModel ) : ProjectMapModelMinified
projectMapModel AIMS_DB_IATI.WebAPI.Models.IATIImport.ProjectMapModel
return AIMS_DB_IATI.WebAPI.Models.IATIImport.ProjectMapModelMinified

getEditDistance() protected method

protected getEditDistance ( string a, string b ) : int
a string
b string
return int