C# Class Kartverket.MetadataEditor.Models.MetadataService

Show file Open project: kartverket/MetadataEditor Class Usage Examples

Public Methods

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

Private Methods

Method Description
AddKeywordForService ( string distributionProtocol, List keywordsOther ) : List
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
GetServiceKeyword ( string distributionProtocol ) : string
GetServiceType ( string distributionProtocol ) : string
LogEventsDebug ( string log ) : void
LogEventsError ( string log, Exception ex ) : void
ParseSearchResults ( int offset, int limit, SearchResultsType results ) : MetadataIndexViewModel
ReIndexOperatesOn ( MetadataViewModel metadata ) : void
RemoveCache ( MetadataViewModel metadata ) : void
SetDefaultValuesOnMetadata ( SimpleMetadata metadata ) : void
UpdateMetadataFromModel ( MetadataViewModel model, SimpleMetadata metadata ) : void
createMetadataForFeature ( SimpleMetadata parentMetadata, List selectedKeywordsFromParent, WfsLayerViewModel layerModel ) : SimpleMetadata
createMetadataForLayer ( SimpleMetadata parentMetadata, List selectedKeywordsFromParent, WmsLayerViewModel layerModel ) : SimpleMetadata
getQualitySpecifications ( MetadataViewModel model, SimpleMetadata metadata ) : void
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 ) : MetadataViewModel
uuid string
return MetadataViewModel

GetMyMetadata() public method

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

MetadataService() public method

public MetadataService ( ) : System
return System

MetadataService() public method

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

SaveMetadataAsXml() public method

public SaveMetadataAsXml ( MetadataViewModel model ) : System.Stream
model MetadataViewModel
return System.Stream

SaveMetadataModel() public method

public SaveMetadataModel ( MetadataViewModel model, string username ) : void
model MetadataViewModel
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