前言

本文完全原创,转载请说明出处,希望对大家有用。

  在SharePoint开发中,通常我们会将数据存储在列表,文档库或者直接存到数据库。但涉及到数据的层级结构时,用列表等存储实现并不是一件简单的事情,这时候就可以使用SharePoint的另外一种存储数据的方式:托管元数据。

  托管元数据为SharePoint提供了统一的术语库,企业用户可以将各种日常使用的术语存放在托管元数据。托管元数据的另外一个重要特点是树型结构,比较典型的应用时企业的组织架构,将企业组织架构按照层级结构存放到托管元数据中,通过遍历元数据树输出企业组织信息。

 本文着重对开发过程中对托管元数据的操作进行总结,如何配置Managed Metadata Service(托管元数据服务)请查看官方文档,本文不做描述。

阅读目录

正文

 认识托管元数据存储结构

在使用Managed Metadata前,我们先看一下数据的存储结构,在Managed Metadata中,结构类型分为Term Store(容器)、Group、Term set和Term。

它们的关系可以用下图表示:

Managed Metadata Service

  • Term Store

    • Group

      • Term Set

        • Term

Group节点只能创建Term Set节点,Term Set节点只能创建Term节点,Term节点可以继续创建Term子节点。

这就是Managed Metadata得数据存储结构,接下来看下如何管理元数据。

路径:Site Settings->Term store management

Term store management是SharePoint自带的托管元数据管理页面,打开Term store management

如图:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABCcAAAH6CAIAAAC7z7GlAAAgAElEQVR4nO3dP2gcab4vbgUn2PCEE9zkwg3Owi+4hhNcw01WcIMVOBjBBsfgYBAbHMQEgzjBIDZZhINFTDA0ExjhYEATGORgwBsMaJMBnWDADgw9gUEOHHTgoAIFHUzw/QVay+2ut956u7uq/0jPhwfTalW99dbbbbk+3ZK1FbX87tuXzOT33w9XPodNZN0smnUDYGnqF72yzGzV71r5c2LjuKCxbhZtzVk3AJZ/nS2T0To64ILGulm0NWfdAFj+dbZMRuvogAsa62bR1px1A2D519kyGa2jAy5orJtFW3PWDYDlX2fLZLSODrigsW4Wbc1ZNwCWf50tk9E6OuCCxrpZtDVn3QBY/nW2TEbr6IALGutm0dacdQNg+dfZMhmtowMuaKybRVtz1g2A5V9ny2S0jg64oLFuFm3NW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o/71ffLDqV3q99T/5U5+KrN70+CZkZtmmDmLwhEyi9B0CrMesfwsCh+dkkek5BGsb5x/zhQ+aoUzLNylfJKZR7Z1lUqew5mTTf7NKjyv/I6tWzatZ360nhZ8pr9uTbvP9PiWrEnmnvJdCk+n5O9v+d/xuedZ/gVtjlWqsl9hFln2+R5KKKR1iET0+dPkkxcQO7WXqep3Tu2YvKfp6i3571B+98l9kyM33ajvssi/oMmN86eQmXPhHFoH2WmojoWPSMn8Z132pmdX6wqXP2cWnGThNskxW5/DmZNNPhub1ir/59Re9b+2mUOXj9btgmcWOb90ySd505Tyuy/tb2LJWWcWs+nZ0vTEm2+emafiHOuWP+XWAZtuNM22/IFLrhg00TpEIpbSOgrvbPqwavhan//3snD35Dj566rWD1vHnONE5j5i5p6SXVrnP+vurevQ+njNusLlS734JPNLXTjzkodgjgEnLxDrO+ZXr2nLqcu4qfHLF3aRBS9/tuQfmsxD1vrILvNv4kwHavowc+gFT7bwgVjka2bm6VHydyT/iJdPqfWpApO0DpGIHn6uY6f24txOwwtLUxdA9euhqZGr5i/6yWud/O5NE5vcuGTarZ/NnFH+lOvzb51z8iHI3FOyQXJ5mx7fzInMdApND0TJ82GR58zck2xdjfwqlaxh/uons1b5U0j+1UiuQGb18g9Erws+08NafhZNo63wb2LTQ5M8kaZB6g/lHCebP2LrU3HWdZvaJr8a9Y3rn03+dct/tmnM5BMS6rQOkQi/JfD2muPfQv98Qud6/Zvo7yxsBK1DJELruHWaXibsdhcgbzl/E/21hY2gdYhEaB0AAH3SOkQitA4AgD5pHSIRWgcAQJ/q3eH/B/7wm+8bbzA+AAAAAElFTkSuQmCC" alt="" width="700" height="333" />

我们可以看到在当前的网站集中,有一个Managed Metadata Service(Term Store),在此节点下有5个子节点。

在虚线上方的是自定义的Group(Portal等),展开Portal Group后,如图:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPYAAAFjCAIAAACBrGHbAAAVyElEQVR4nO2dsWsbTRqH/SdcmeKa6+5Kw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0GFPbptkfXjrjsiLmge6J78m+C3pdBnCml9SYnInPpBVM3WKEyq00uK4yb7kFqc7orhdmFLspqsxcYsVHpf+qK2ei331edwZkXPSoep0kJ7kLKVlzz5aeqFaenSunMbWXFpWcV7V9xUVlPo+2iG/HrZv+jI26H0aUT/mgGZ7vx/kSI3yWcP2RKyV3FpZVrVbzoHFZTXH+VVb8DC12U5qOGY8SHhu5Hp/eu4/zVbh+0Wi8arTedOEdK+FjiTCnNA4nfVOSVVixdmpXJb7O6VQ+heO+pe9O8BE3Fsy5KWpN1dVZgxJ9+0jQPOtNQhJEIIzENRf/Ea75CRD1YBUMVJ6LB2cQPhR+K/qnXePl609MBtmKu4o2XrwffJv1Tb+9Fa9NzARZjruJEtPeitfccfoNSGK04AOWB4oA5UBwwB4oD5kBxwBwoDpgDxQFzoDhgjhGKI8kEWB9GKI4kE2B9mKF4XUkm6r8vtPIRbb+1tX6MuF+8fJIJzTuby/tRtIese9nT921XPoGs28S3DSOifsonmZAeq1uuwCIMougp6cqaFd9mjIjdrDDJxFK9fsyLonLpdJ1Qnaz6dD+KPhXt01etDuHJqtecsNWYEYFfLskE6akpPciqVHRSqJ8VFJd2uNR5WtAyc8udsNWYoXi5JBNJ1EusdDFLn5LVs6JDKq644hT1KOo1GIovYcRGpXySifSxulJ/wS4zSm5Xua5XMkr5rqzGiF83SyaZII21bVGjfjRrFU9X7sj20IrOdXrTnLb+iItvdbpSTNhqjPjQsGSSCVAhULwmkGSiZrgu4WSs4oQkE6AizFUcSSZAJZirOCHJBKgCoxUHoDxQHDAHigPmQHHAHCgOmAPFAXOgOGAOFAfMgeKAOVAcMAeKA+ZAccAcKA6YU43ineMgLqhBTW01mmAVB8yRKv5/O6OqT5T0FkAAAAAASUVORK5CYII=" alt="" />

可以看到在Portal节点下是Department等Term Set节点,再下一层就是Term节点,如在部门(Department)节点下存储各个部门,以及各部门下的子部门。

这是SharePoint server 2010自带的管理界面,这里我们为了说明元数据存储结构简单介绍一下,接下来是我们开发过程中真正使用元数据的方法。

 托管元数据操作

读数据

using (SPSite site = new SPSite(SiteUrl))
{
TaxonomySession taxonomySession = new TaxonomySession(site);
TermStore termStore = taxonomySession.DefaultSiteCollectionTermStore;
Group group = termStore.Groups[termgroup];
TermSet termSet = group.TermSets[termSet_Department];
}

代码解释:

  TaxonomySession:获取当前网站集下的 TermStore上下文环境

  TermStore->Group->TermSet:根据层级结构取得最终的termset

  DefaultSiteCollectionTermStore:默认的TermStore,可以使用taxonomySession.TermStore[""]修改为指定的TermStore

  获取TermSet后,就可以通过其Terms属性获取此节点下的所有Terms。

修改term数据

在读取termset以后,下一步尝试修改term,加入以下代码:

    Term term= termSet.Terms["IT"];
term.Name = "MIT";
termStore.CommitAll();

代码解释:

  获取名为“IT”的Term

  现在将Name修改为MIT

  提交所有更改

 注意修改元数据需要有相应的权限,同时需要注意的是修改后由于TimerJob的原因,可能会有一些延迟。

 读取父节点、子节点
          if (!term.IsRoot)
{
Term parent = term.Parent;
}
TermCollection child_terms = term.Terms;

代码解释:

  term.IsRoot:判断是否为根节点

  term.Parent:如果非根节点,则找到上级节点

  term.Terms:找到此节点下的所有下级节点

复制、合并、移动节点

  复制:

    Term term= termSet.Terms["MIT"];
term.Copy(true);
termStore.CommitAll();

Term.Copy方法会将此节点复制一份名称"Copy of MIT"为保存到当前的TermSet中,参数指定为true则复制会包括子节点。同样TermSet也可以复制,不需要指定参数,方法会自动将其中的子节点也复制,子节点是作为原节点的复用(Reuse)节点存在,复用节点可以通过Source属性访问原节点。

  合并:

    Term term = termSet.Terms["MIT"];
Term term4Merge=termSet.Terms["HR"];
term.Merge(term4Merge);
termStore.CommitAll();

Merge方法只能针对同样是Source Term的2个节点,也就是说之前复制后的复用节点是不能合并的。上述代码会将term合并到term4Merge。

  移动:

    Term term = termSet.Terms["HR"];
Term term4Move=termSet.Terms["Account"];
term.Move(term4Move);
termStore.CommitAll();

Move方法应该是最常用到的方法。

Term和Term Set都可以移动,Term可以移动到其他在此Term Store的Term节点或Term Set下,Term Set可以移动到此Term Store的Group节点下。

Move方法可以让用户更加自由的移动节点,假设有这样一个需求,用户需要维护企业组织架构,如上述事例中:HR部门需要移动到Account部门下。使用Move方法,可以方便的将HR部门的所有其他组织一起移动到Account部门节点下,免去了重复添加的过程。甚至可以在页面中以拖拽的方式实现,为用户呈现更加直观友好的页面。

TaxonomyHiddenList

在SharePoint站点中,有一个隐藏的TaxonomyHiddenList,可以通过/Lists/TaxonomyHiddenList/AllItems.aspx访问。TaxonomyHiddenList的item对应TaxonomyFieldType字段的值,TaxonomyFieldType字段被赋值后,就会对应的在TaxonomyHiddenList产生一条记录,用来记录TaxonomyField的详细信息,所以TaxonomyFieldType字段也是LookUp字段类型。

自定义TaxonomyFieldType字段

在SharePoint界面中新建TaxonomyFieldType字段无其他需要注意的,主要看下在SharePoint项目中新建TaxonomyFieldType字段。

以下是TaxonomyFieldType字段的定义:

  <Field ID="{47539D90-EB9B-45A5-8591-68077530FD92}" Name="Field_TaxonomyDemo" StaticName="Field_TaxonomyDemo" DisplayName="TaxonomyDemo" Required="FALSE" Group="Custom group" Type="TaxonomyFieldType">
<Customization>
<ArrayOfProperty>
<Property>
<Name>TextField</Name>
<Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{78FF1668-CDDB-4645-8BED-FC2179944F5F}</Value>
</Property>
</ArrayOfProperty>
</Customization>
</Field>
<Field ID="{78FF1668-CDDB-4645-8BED-FC2179944F5F}" Name="Field_TaxonomyDemoTaxHTField0" Type="Note" DisplayName="TaxonomyDemoTaxHTField0" StaticName="Field_TaxonomyDemoTaxHTField0" ShowInViewForms="FALSE" Required="FALSE" Hidden="TRUE" CanToggleHidden="TRUE"/>

Field_TaxonomyDemo字段这个字段是TaxonomyFieldType类型,需要注意的是在此字段中,需要引用下面的Field_TaxonomyDemoTaxHTField0字段作为其TextField属性字段。

总结

作为数据管理的一种方法,个人认为SharePoint Managed Metadata好处多多,在实际应用中也有很多方便之处。

SharePoint Managed Metadata的总结大概就是这些了,希望对读者有所帮助,有任何疑问请及时与我讨论。

SharePoint Managed Metadata 使用总结的更多相关文章

  1. The Managed Metadata Service or Connection is currently not available 分类: Sharepoint 2015-07-09 13:28 5人阅读 评论(0) 收藏

    Does the following error message looks familiar to you? (When you go to Site Actions –> Site Sett ...

  2. "Value does not fall within the expected range" with managed metadata fields

      From: http://geekswithblogs.net/claraoscura/archive/2011/01/21/143569.aspx The problem: I have an ...

  3. How to create Managed Metadata Column

    This article introduce how to create/use managed metadata column from List. First, we need to config ...

  4. The Managed Metadata Service or Connection is currently not available

    Does the following error message looks familiar to you?  when you go to site Actions -> Site Sett ...

  5. 如何同时修改SharePoint帐号和AD帐号的密码 - 批量修改SharePoint Managed Account

    cls if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq ...

  6. CSOM中如何取到managed metadata类型字段的类型信息

    Field.fieldTypeKind返回的是Invalid [解决方法] There is no "Metadata" type of field in the SP.Field ...

  7. SharePoint 2013 Create taxonomy field

    创建taxonomy field之前我们首先来学习一下如果创建termSet,原因是我们所创建的taxonomy field需要关联到termSet. 简单介绍一下Taxonomy Term Stor ...

  8. SharePoint 2013 如何使用TaxonomyWebTaggingControl 控件

    在该文章中,我将介绍如何使用TaxonomyWebTaggingControl控件, 首先我相信您已经在SharePoint Managed Metadata Service里定义Term Sets, ...

  9. 在 SharePoint Server 2016 本地环境中设置 OneDrive for Business

    建议补丁 建议在sharepoint2016打上KB3127940补丁,补丁下载地址 https://support.microsoft.com/zh-cn/kb/3127940 当然不打,也可以用O ...

随机推荐

  1. hadoop修改

    https://github.com/medcl/elasticsearch-analysis-ik/releases hadoop-/etc/hadoop/core-site.xml <con ...

  2. 彻底清除Linux centos minerd木马 实战  跟redis的设置有关

    top -c把cpu占用最多的进程找出来: Tasks: total, running, sleeping, stopped, zombie Cpu(s): 72.2%us, 5.9%sy, 0.0% ...

  3. inline函数出现 undefined reference 错误

    原因:你把inline函数的implementation放到cpp文件里肯定要报这个错误 正确的做法:把inline函数的声明和实现都放到header里,例如 // declaration: retu ...

  4. Python 元祖的操作

    注意:元祖定义后不可修改,单个元祖后面必须加逗号,否则认为是字符串:tuple = ('apple',) 1.定义元祖 tuple = ('apple','banana','grape','orang ...

  5. GPIO 输入—按键检测

    这里要用到一定的模电知识.电容两端电压不能突变,电感两端电流不能突变.这里利用了电容的放电延时实现硬件消抖.按键按下会有抖动,波形有毛刺,使得高低电平显现不明显,而按键按下时,电容放电一下,马上又被充 ...

  6. 一款基于jQuery的全屏广告图片焦点图

    之前为大家分享了很多jQuery焦点图插件.今天我们要介绍的这款jQuery全屏广告图片焦点图插件也非常不错,图片切换时有淡出淡出的动画效果,并且也相当流畅.效果图如下: 在线预览   源码下载 实现 ...

  7. js鼠标触发事件集合

    转载自:http://blog.sina.com.cn/s/blog_627002d101010yb7.html 事件 浏览器支持 解说 一般事件 onclick IE3.N2 鼠标点击时触发此事件 ...

  8. 编写自己的代码库(javascript常用实例的实现与封装)

    https://segmentfault.com/a/1190000010225928

  9. 常用jar命令

    JAR包是Java中所特有一种压缩文档.存储格式格式就是.zip包.但是与ZIP包不同的地方是,生成JAR包时候,会自动添加一个META-INF\MANIFEST.MF文件 命令参数jar {c t ...

  10. 源码分享!!!world文档转换为JPG图片

    http://bbs.csdn.net/topics/390055515 —————————————————————————————————————————————————— 基本思路是:先将worl ...