Sharepoint学习笔记—习题系列--70-576习题解析 -(Q49-Q51)

Question 49
You are designing a SharePoint 2010 intranet site for a corporation. Your design must meet the following requirements:
.The homepage must contain a single Web Part that displays a view of a specific document library.
.Each employee must be able to create a persistent view of the list that would be filtered, grouped, and sorted based on their selection criteria.
Which approach should you recommend?
A. Create a new page for each employee and add the document library Web Part to the page. Instruct each employee to customize an individual view of the Web Part. Then select the Make Homepage button in the Page tab on the ribbon.
B. Create the site homepage. Deploy a copy of SharePoint Designer to each employee’s computer. Instruct each employee to use SharePoint Designer to customize the site homepage, including the view of the document library.
C. Create the site homepage. Add the document library Web Part to the page, with the Allow Editing in Personal View option selected. Instruct each employee to personalize the page in the browser and to customize an individual view of the Web Part.
D. Create the site homepage. Instruct each employee to edit the homepage in the browser, adding a copy of the document library Web Part to the page. Instruct each employee to customize an individual view of the document library in the new Web Part.


解析:
  你需要设计一个Sharepoint2010公司网站,且满足如下要求:
 要求1. 主页上有一个Web Part用于显示特定的文档库
 要求2. 公司每个雇员能够创建列表的视图,此视图根据雇员选择的标准进行过滤、分组和排序。
选项A. 为每一个雇员创建一个新的页面,这很显然是不合理的作法,如果公司人员很多,流动性很大,个性化定制千差万别,这种作法简单就是恶性循环。
选项B. 为每个雇员计算机都部署Sharepoint Designer,并教会他们自己使用,这显然也是不合理的。
选项C. 创建一个主页,加入一个文档库Web Part到页面,设置此WebPart的Allow Editing in Personal View以支持雇员自定义列表视图。我们知道个性化设置是 Web 部件功能的基础。 它使用户可以对页上 Web 部件控件的布局、外观和行为进行修改或个性化设置。 个性化设置寿命较长:它们不仅在当前浏览器会话期间保留(与视图状态一样),而且还保留在长期存储中,这样用户设置也会保存下来,在以后的浏览器会话中使用。 所以,本选项通过开启Web Part的个性化设置来实现雇员对视图的控制是可行的。
选项D. 网站的主页不是哪个雇员都可以去修改的,它是系统管理员和开发人员负责的事情,所以本选项应该被排除。
因此本题答案应该选 C

参考 
http://msdn.microsoft.com/zh-cn/library/k3w2y2tf(v=vs.100).aspx
http://msdn.microsoft.com/zh-cn/library/z36h8be9(v=vs.100).aspx


Question 50
You are designing a SharePoint 2010 application that creates a content type. You need to design the application so that users are not able to change the content type from within the SharePoint 2010 user interface. Which approach should you recommend?
A. Create a content type that is read-only and deployed as a feature.
B. Create a content type that is sealed and deployed as a feature.
C. Use SharePoint Designer 2010 to create a content type and uncheck Allow Modifications.
D. Use SharePoint Designer 2010 to create a content type that is read-only.

解析:
  本题需要你避免用户有能力通过Sharepoint2010的用户界面去修改你所定义的某个内容类型。
很显然是与内容类型相关的题,SharePoint提供了一种机制,允许通过改变SPContentType或ContentType对象的ReadOnly 和Sealed属性来控制变更。因此,通过这些属性设置来阻止对内容类型的修改。
只读内容类型:用于警 告用户不应该对该内容类型进行更改。如果需要更改,用户必须关闭只读。
密封内容类型:用于更严格的控制。 无法通过SharePoint UI修改。必须是网站集管理员才可以通过OM修改成非密封。(通过 SPContentType类的Sealed属性)
   所以,只读属性是可以通过用户界面去设定的,而本题要求避免用户有能力通过用户界面去修改。所以就剩下了Sealed属性。
   选项C的作法其实也就是设置内容类型为Read Only,与选项D达到的目的一样。
因此本题答案应该选 B
参考 
http://msdn.microsoft.com/zh-cn/library/aa543504(v=office.14).aspx
http://office.microsoft.com/en-us/sharepoint-designer-help/create-and-edit-content-types-HA101774775.aspx


Question 51
You are designing a site on SharePoint 2010. You need to design the site so that it meets the following requirements:
.Contributors must be able to use the SharePoint user interface to add, remove, and delete Web Parts only in a Web Part zone named Your Web Parts.
.Only site collection owners may add, remove, and delete Web Parts in a Web Part zone named Required Web Parts.
Which approach should you recommend?
A. Create a page layout with a Web Part zone named Your Web Parts that allows customizations. Create a Web Part zone named Required Web Parts that allows customizations.
B. Create a page layout with a Web Part zone named Your Web Parts that allows customizations. Create a Web Part zone named Required Web Parts that does not allow customizations with the desired Web Parts preloaded.
C. Create a page layout with Web Part zones that do not allow customizations and grant contributors full control to the site collection.
D. Create a Web Part page with a Web Part zone named Your Web Parts that does not allow customizations. Create a Web Part zone named Required Web Parts that allows customizations.


解析:
你设计一个Sharepoint2010网站,需要满足如下要求:
要求1. 参与者可以通过Sharepoint操作界面增,删,移除名为Your Web Parts的这个Web Part Zone中的Web Part。
要求2. 只有网站集所有者才可以增,删,移除名为Web Parts的这个Web Part Zone中的Web Part。
  这是一道关于Web 部件区域的题目。
在WSS 3.0Web部件页中使用的Web Part zones必须用由Microsoft.SharePoint.WebPartPages命名空间定义的WebPartZone控件来创建,而不是标准的ASP.NET 2.0中的WebPartZone控件。Web 部件区域是一个代码段,您可将其添加到页面布局中以便内容作者可以添加、编辑或删除该区域中的 Web 部件。当页面布局包括一个或多个 Web 部件区域时,这些 Web 部件区域可供使用该布局的所有页面使用,从而使作者能够在这些页面上插入 Web 部件。如果您允许作者在页面上插入 Web 部件,那么您对用户的网站体验的控制将会降低。例如,作者可以在页面上插入目录 Web 部件,这样会公开您不希望访问者从当前页面导航到的网站部分。
 如果您希望完全控制 Web 部件在网站上的显示方式,并且希望该 Web 部件显示在某特定类型的所有页面上,请将该 Web 部件直接添加到页面布局中。如果您希望某个 Web 部件显示在网站中的所有页面上,还可以将 Web 部件直接添加到母版页中。
Web 部件区域可用于页面布局但不适用于母版页 — Web 部件区域的用途是允许作者修改 Web 部件,而作者通常不编辑母版页。
您还可以将 Web 部件区域添加到页面布局但限制其用法。例如,您可以将 Web 部件添加到某个区域中,然后设置该区域的属性以便内容作者可以编辑现有 Web 部件的属性,但不能在该区域中添加或删除 Web 部件。Web 部件区域有一组属性用于双重目的。您可以将一部分属性用于组织 Web 部件在页面上的布局和格式,将另一部分属性用于提供更高级别的保护,以防止修改(或“锁定”)该区域中的 Web 部件。
 Web 部件区域的属性可以指定是否允许内容作者:
• 通过添加、删除、移动 Web 部件或调整其大小来更改 Web 部件的布局。
• 更改所有用户的 Web 部件设置(Web 部件的共享视图)。
• 更改其个人 Web 部件设置(Web 部件的个人视图)。
 下面就是几个重要的相关属性:
 AllowLayoutChange: 指定是否可关闭、最小化、删除或还原 Web 部件区域中的 Web 部件。
如果设置为 False,则用户无法关闭、最小化、删除或还原 Web 部件区域中的 Web 部件,也无法将 Web 部件拖动到其他区域或者重新排列或移动 Web 部件区域中的 Web 部件。用户也无法添加 Web 部件目录中的 Web 部件,且影响 Web 部件区域中的 Web 部件的 UI 的若干属性将被禁用。此属性不会影响以编程方式更改布局的能力。如果设置为 True,则具有适当权限的用户可以执行这些操作。
 LockLayout: 指定是否可添加、删除、移动 Web 部件区域中的 Web 部件或调整其大小。无论 Web 部件页是在个人视图中还是共享视图中,此属性的工作方式都相同。
如果设置为 True,则 Web 部件区域中每个 Web 部件受影响的特定 Web 部件属性为:“区域(ZoneID)”、“部件顺序(PartOrder)”、“在页面上可见(IsVisible)”、“高度(Height)”、“宽度(Width)”、“允许关闭(AllowRemove)”和“IsIncluded”(“Web 部件”菜单上的“关闭”命令)。其他 Web 部件属性不受影响。如果设置为 False,则 Web 部件属性决定是否可进行修改(须具有适当的网站权限)。
  本题要求Your Web Parts的这个Web Part Zone中的Web Part可以被增,删,移除,而Web Parts的这个Web Part Zone中的Web Part则不能被增,删,移除[网站集所有者除外,网站集所有者自然]
下面分析各备选项:
选项A. Create a page layout with a Web Part zone named Your Web Parts that allows customizations. Create a Web Part zone named Required Web Parts that allows customizations. 二者都可以增,删,移除,显然不符合题目要求
选项B. Create a page layout with a Web Part zone named Your Web Parts that allows customizations. Create a Web Part zone named Required Web Parts that does not allow customizations with the desired Web Parts preloaded. 符合题目要求.
选项C. Create a page layout with Web Part zones that do not allow customizations and grant contributors full control to the site collection. 没按题目要求定义两个Web Part Zones并分别进行设置。
选项D. Create a Web Part page with a Web Part zone named Your Web Parts that does not allow customizations. Create a Web Part zone named Required Web Parts that allows customizations. 与题目的要求反着在做,应该排除。
因此本题答案应该选 B

参考 
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationprevious/thread/1193ba3d-49ad-43fe-a620-0bf76ebff9b9/
http://technet.microsoft.com/zh-cn/library/cc767506.aspx
http://msdn.microsoft.com/zh-cn/library/microsoft.sharepoint.webpartpages.webpartzone_properties.aspx
http://msdn.microsoft.com/zh-cn/library/microsoft.sharepoint.webpartpages.webpartzone_properties(v=office.12).aspx

 

posted @ 2013-10-07 06:48  wsdj  阅读(425)  评论(0编辑  收藏  举报