C# Class Catalogue.Data.Write.VocabularyService

Inheritance: IVocabularyService
Show file Open project: jncc/topcat Class Usage Examples

Public Methods

Method Description
AddKeywordsToExistingControlledVocabs ( List keywords ) : void

Specifically for imports. Adds the keywords to existing controlled vocabs.

Insert ( Vocabulary vocab ) : VocabularyServiceResult
Update ( Vocabulary vocab ) : VocabularyServiceResult
Upsert ( Vocabulary vocab ) : VocabularyServiceResult
VocabularyService ( IDocumentSession db, IVocabularyValidator validator ) : System

Private Methods

Method Description
GroupKeywordsByVocabularyAndEnsureNoDuplicates ( List keywords ) : List>.Dictionary

Method Details

AddKeywordsToExistingControlledVocabs() public method

Specifically for imports. Adds the keywords to existing controlled vocabs.
public AddKeywordsToExistingControlledVocabs ( List keywords ) : void
keywords List
return void

Insert() public method

public Insert ( Vocabulary vocab ) : VocabularyServiceResult
vocab Catalogue.Gemini.Model.Vocabulary
return VocabularyServiceResult

Update() public method

public Update ( Vocabulary vocab ) : VocabularyServiceResult
vocab Catalogue.Gemini.Model.Vocabulary
return VocabularyServiceResult

Upsert() public method

public Upsert ( Vocabulary vocab ) : VocabularyServiceResult
vocab Catalogue.Gemini.Model.Vocabulary
return VocabularyServiceResult

VocabularyService() public method

public VocabularyService ( IDocumentSession db, IVocabularyValidator validator ) : System
db IDocumentSession
validator IVocabularyValidator
return System