C# Class Kartverket.MetadataEditor.Models.SimpleMetadataService

Show file Open project: kartverket/MetadataEditor Class Usage Examples

Public Methods

Method Description
GetAllMetadata ( string searchString, int offset, int limit ) : MetadataIndexViewModel
GetMetadataModel ( string uuid ) : SimpleMetadataViewModel
GetMyMetadata ( string organizationName, int offset, int limit ) : MetadataIndexViewModel
SaveMetadataModel ( SimpleMetadataViewModel model, string username ) : void
SearchMetadata ( string organizationName, string searchString, int offset, int limit ) : MetadataIndexViewModel
SimpleMetadataService ( ) : System
SimpleMetadataService ( GeoNorgeAPI.GeoNorge geonorge ) : System

Private Methods

Method Description
ConvertCoordinateWithCommaToPoint ( string input ) : string
CreateAdditionalHeadersWithUsername ( string username, string published = "" ) : string>.Dictionary
CreateDictionaryOfEnglishKeywords ( List keywords ) : string>.Dictionary
CreateListOfKeywords ( string selectedKeywords ) : List
CreateListOfKeywords ( List input ) : List
CreateMetadata ( MetadataCreateViewModel model, string username ) : string
CreateMetadataForFeature ( string uuid, List layers, string keywords, string username ) : List
CreateMetadataForLayers ( string uuid, List layers, string keywords, string username ) : List
DeleteMetadata ( string uuid, string username ) : void
LogEventsDebug ( string log ) : void
LogEventsError ( string log, Exception ex ) : void
ParseSearchResults ( int offset, int limit, SearchResultsType results ) : MetadataIndexViewModel
SetDefaultValuesOnMetadata ( SimpleMetadata metadata ) : void
UpdateMetadataFromModel ( SimpleMetadataViewModel model, SimpleMetadata metadata ) : void
createMetadataForFeature ( SimpleMetadata parentMetadata, List selectedKeywordsFromParent, WfsLayerViewModel layerModel ) : SimpleMetadata
createMetadataForLayer ( SimpleMetadata parentMetadata, List selectedKeywordsFromParent, WmsLayerViewModel layerModel ) : SimpleMetadata
stripPrefixFromKeyword ( string input ) : string

Method Details

GetAllMetadata() public method

public GetAllMetadata ( string searchString, int offset, int limit ) : MetadataIndexViewModel
searchString string
offset int
limit int
return MetadataIndexViewModel

GetMetadataModel() public method

public GetMetadataModel ( string uuid ) : SimpleMetadataViewModel
uuid string
return SimpleMetadataViewModel

GetMyMetadata() public method

public GetMyMetadata ( string organizationName, int offset, int limit ) : MetadataIndexViewModel
organizationName string
offset int
limit int
return MetadataIndexViewModel

SaveMetadataModel() public method

public SaveMetadataModel ( SimpleMetadataViewModel model, string username ) : void
model SimpleMetadataViewModel
username string
return void

SearchMetadata() public method

public SearchMetadata ( string organizationName, string searchString, int offset, int limit ) : MetadataIndexViewModel
organizationName string
searchString string
offset int
limit int
return MetadataIndexViewModel

SimpleMetadataService() public method

public SimpleMetadataService ( ) : System
return System

SimpleMetadataService() public method

public SimpleMetadataService ( GeoNorgeAPI.GeoNorge geonorge ) : System
geonorge GeoNorgeAPI.GeoNorge
return System