In the previous session,Hersh Ajgaonkar covered the what Metadata management is in SharePoint 2010 and how it should be configured and used. Let’s go over the classes that will enable us to do the same things.TaxonomySession - > Entry Point to the Taxonomy.TermStore -> Represents the Metadata Service.
Regular groups can be created using the API.Site Collection groups are specific to the site collection. These cannot be created using the API as all the methods are marked as internal. But I will show you later how these groups are created.System groups, as the name suggest are used by the system to store keywords and Orphaned items.
Metadata Management in SharePoint 2010 The Object Model Amol Ajgaonkar firstname.lastname@example.org Twitter: @SharePointLife http://theSharePointLife.com
Taxonomy Tree Setting the default Metadata service Class overview TaxonomySession TermStore TermStoreCollection Group GroupCollection TermSet TermSetCollection Term TermCollection Structure Term Store Group Term Set Terms
Taxonomy Tree For each TermStore in TaxonomySession.TermsStores For each Group in TermStore.Groups For each TermSet in Group.TermSets For each Term in TermSet.Terms For each Term in Term.Terms
Taxonomy Tree Search Taxonomy Session Class GetTerms GetTermSets GetTermsWithCustomProperty Term Set Class GetTermsWithCustomProperty GetTerms Term Class GetTerms
CRUD operations Types of Groups Regular Site Collection System Restrictions on group creation
CRUD operations Group TermStore.CreateGroup Group.Delete TermStore.CommitAll Term Set Group.CreateTermSet TermSet.Delete Term TermSet.CreateTerm Term.Delete Rollback changes if there is an exception then call CommitAll.
Taxonomy Field Setup Custom Term Sets (Site Collection Groups) Working Is a lookup field. Looks up into the TaxonomyHidden list on root site. Name: TaxonomyHiddenList Manages all the values selected in the TaxonomyFields