Community Webcast:Criando Aplicativos Ricos para o SharePoint 2010 com Silverlight<br />Fabian André Gehrke<br />MCPD, MCI...
Agenda<br />Visão geral do SharePoint 2010 <br />SharePoint ClientObject Model (SharePoint + Silverlight<br />
Microsoft SharePoint 2010A Plataforma de ColaboraçãoparaCorporações e para a Web<br />Sites<br />Conectar e capacitarpesso...
Exemplos de Sites - Internet<br />
SharePoint 2010<br />demo <br />
Integração de Informações<br />Serviços Externos<br />Cliente / Usuários<br />Azure<br />???<br />ERP<br />CRM<br />BD<br ...
SharePointClient Object Model<br />API paraacessar dados do SharePoint <br />a partir de aplicativosclientes<br />
Porque um Client Object Model?<br />A criação de mais web services era cadavezmaisfrequente<br />Client Object Model provê...
As APIs de Client Object Model<br />ECMAScript<br />.NET<br />Silverlight<br />Outros mecanismos<br />
ObjetosSuportados<br />Coleções de Sites e Sites<br />Listas, Itens, Visões,  Estruturas de listas<br />Arquivos e Pastas<...
Equivalência de Objetos<br />Os objetospossuemnomesmuitoparecidosnosmodelos de servidor e cliente(ex.: SPWeb.QuickLaunchEn...
Funcionamento do Client Object Model<br />ECMAScriptControlsand Logic<br />Navegador<br />Client.svc<br />Server OM<br />J...
Visão Geral das Tecnologias de Dados<br />REST APIs<br />Silverlight<br />Listasfortementetipadas<br />ClientOM<br />Lista...
Silverlight Client Object Model<br />
Silverlight Client OM<br />Possibilita o desenvolvimento com Silverlight<br />O Silverlight poder ser utilizadoempáginas A...
Criando Silverlight Web Parts<br />Uma Web Part poder ser um host para o Silverlight<br />SharePoint possuiuma web part de...
Silverlight Client OM<br />
Silverlight + SharePoint<br />demos <br />
E Silverlight<br />Dúvidas?<br />
Referências<br />SharePoint 2010 Devoloper Training Kit http://www.microsoft.com/download/en/details.aspx?displaylang=en&i...
Upcoming SlideShare
Loading in …5
×

Community Webcast: Portal Silverlight Brasil - Criando Aplicativos Ricos Para o SharePoint 2010 com Silverlight

996 views
942 views

Published on

https://msevents.microsoft.com/CUI/EventDetail.aspx?culture=pt-BR&EventID=1032489465&CountryCode=BR

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
996
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Connect and Empower People​Making people more productive is a direct result of enabling them to access resources and knowledge regardless of where they are and what device they use, through a user experience optimized for usability and adoption.  Learn moreCut costs with a Unified Infrastructure​Driving cost efficiencies and accomplishing more with the same resources is possible through the consolidation of all the key business collaboration solutions into SharePoint 2010 and using this common platform to deploy solutions for your intranet, extranet, or for your Internet web presence.  Learn moreRapidly Respond to Business Needs​When time-to-market is key, SharePoint 2010 enables people to customize the out-of-box platform and deploy solutions that enable them to address specific business requirements quickly and in a secure manner.  Learn more Sites: Share information seamlessly and securely with employees, partners and customersComunidades: Empower people to work together in new waysConteúdo: Manage content lifecycle from creation to dispositionBusca: Find people and information anywhereInsights: Make informed business decisionsComposites: Rapidly create dynamic business solutions
  • Here we explain the basics of creating a Silverlight web part and how to create a feature that deploys the XAP file and web part. We also explain how the XAP file is loaded at run time and how web part properties may be passed to the Silverlight application.For Silverlight client installations, Microsoft SharePoint Foundation deploys Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.Runtime.dll into a special &quot;Scripts only&quot; folder of the /_layouts virtual directory named clientbin. This folder is designed to be a standard place for hosting assemblies that are used in Silverlight.
  • A cada release do SharePoint a Microsofotrecebiamais e maisrequisiçõespornovos web servicesAoinvés de criarnovos web services (e substituirosserviços ASMX porserviços WCF), foicriada um modelo de objetos de clienteO modelo de objetos de clienteprovê um nível de abstraçãoparaqueprocessosfora do servidor de SharePoint possaminteragir com o SharePoint utilizandouma API consistentemuitoparecida com a API de servidor
  • The Client Object Model contains a lot of overlap coverage with the full SharePoint API
  • The Client Object Model contains a lot of overlap coverage with the full SharePoint API
  • Similar to programming against server objects in the server context, the new client-side object models use a ClientContext object as the &quot;center of gravity&quot; for all operations. The process of obtaining and working with sites and data begins by retrieving a context object.Show the various resources and their locationsServer – Microsoft.SharePoint – [..]\\14\\ISAPI .NET – Microsoft.SharePoint.Client – [..]\\14\\ISAPISilverlight – Microsoft.SharePoint.Client.Silverlight – [..]\\14\\LAYOUTS\\ClientBinECMAScript– SP.js - [..]\\LAYOUTS
  • Este diagramamostracomo o mecanismo de transportefuncionaManage client OM = .NET / SilverlightTodas ascomunicaçõessãofeitasatravés do serviço WCF client.svcMicrosoft implemented the client OM by decorating the core SharePoint OM with attributes if it was “client aware”[ClientCallableType(Name=“Web”,[…]),[…]]public class SPWeb {}Then a code gen tool generates the client OM assemblies and JavaScriptThis ensures that there’s fidelity between all the client OM’s and the server equiv
  • By default, the managed client object models authenticate users by using their Windows credentials (DefaultCredentials). Optionally, you can change the authentication mode on the ClientContext object and specify using Forms authentication instead. A user must then supply a user name and password through properties on ClientContext. Behind the scenes, Windows SharePoint Services “14” calls the Authentication Web service, obtains the correct cookie, and then makes the necessary object model calls. To run managed client code against a Forms authentication server, you must change to Forms authentication. This requirement does not apply to the JavaScript object model.The managed client object models provide a ClientAuthenticationMode enumeration whose values are Anonymous, Default, andFormsAuthentication. To specify Forms authentication, use code similar to the following:clientContext.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;In addition to setting the authentication mode, you must specify the user name and password information, such as follows:FormsAuthenticationLoginInfoformsAuthInfo = new FormsAuthenticationLoginInfo(&quot;MyUser&quot;, &quot;MyPassword&quot;);clientContext.FormsAuthenticationLoginInfo = formsAuthInfo; Note: Currently, the account name and password in formsAuthInfo are sent in clear text, so you must use HTTPS protocol instead of HTTP.
  • Here we explain the basics of creating a Silverlight web part and how to create a feature that deploys the XAP file and web part. We also explain how the XAP file is loaded at run time and how web part properties may be passed to the Silverlight application.For Silverlight client installations, Microsoft SharePoint Foundation deploys Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.Runtime.dll into a special &quot;Scripts only&quot; folder of the /_layouts virtual directory named clientbin. This folder is designed to be a standard place for hosting assemblies that are used in Silverlight.
  • Here we explain the basics of creating a Silverlight web part and how to create a feature that deploys the XAP file and web part. We also explain how the XAP file is loaded at run time and how web part properties may be passed to the Silverlight application.For Silverlight client installations, Microsoft SharePoint Foundation deploys Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.Runtime.dll into a special &quot;Scripts only&quot; folder of the /_layouts virtual directory named clientbin. This folder is designed to be a standard place for hosting assemblies that are used in Silverlight.
  • By default, the managed client object models authenticate users by using their Windows credentials (DefaultCredentials). Optionally, you can change the authentication mode on the ClientContext object and specify using Forms authentication instead. A user must then supply a user name and password through properties on ClientContext. Behind the scenes, Windows SharePoint Services “14” calls the Authentication Web service, obtains the correct cookie, and then makes the necessary object model calls. To run managed client code against a Forms authentication server, you must change to Forms authentication. This requirement does not apply to the JavaScript object model.The managed client object models provide a ClientAuthenticationMode enumeration whose values are Anonymous, Default, andFormsAuthentication. To specify Forms authentication, use code similar to the following:clientContext.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;In addition to setting the authentication mode, you must specify the user name and password information, such as follows:FormsAuthenticationLoginInfoformsAuthInfo = new FormsAuthenticationLoginInfo(&quot;MyUser&quot;, &quot;MyPassword&quot;);clientContext.FormsAuthenticationLoginInfo = formsAuthInfo; Note: Currently, the account name and password in formsAuthInfo are sent in clear text, so you must use HTTPS protocol instead of HTTP.
  • Community Webcast: Portal Silverlight Brasil - Criando Aplicativos Ricos Para o SharePoint 2010 com Silverlight

    1. 1. Community Webcast:Criando Aplicativos Ricos para o SharePoint 2010 com Silverlight<br />Fabian André Gehrke<br />MCPD, MCITP e MCT SharePoint 2010<br />Coordenador de Projetos- KeepIT<br />http://fabiangehrke.com.br<br />http://www.twitter.com/fgehrke <br />http://sharepointersbr.wordpress.com<br />
    2. 2. Agenda<br />Visão geral do SharePoint 2010 <br />SharePoint ClientObject Model (SharePoint + Silverlight<br />
    3. 3. Microsoft SharePoint 2010A Plataforma de ColaboraçãoparaCorporações e para a Web<br />Sites<br />Conectar e capacitarpessoas<br />Comunidades<br />Composições<br />Reduzircustos com umainfraestruturaunificada<br />Responder rapidamente a necessidadesde negócio<br />Conteúdo<br />Inovação<br />Search<br />
    4. 4. Exemplos de Sites - Internet<br />
    5. 5. SharePoint 2010<br />demo <br />
    6. 6. Integração de Informações<br />Serviços Externos<br />Cliente / Usuários<br />Azure<br />???<br />ERP<br />CRM<br />BD<br />Serviços Locais<br />
    7. 7. SharePointClient Object Model<br />API paraacessar dados do SharePoint <br />a partir de aplicativosclientes<br />
    8. 8. Porque um Client Object Model?<br />A criação de mais web services era cadavezmaisfrequente<br />Client Object Model provêuma API completaaoinvés de váriosserviços<br />Disponibilizaumacamada de abstraçãopararetornarobjetos SharePoint conhecidoscomoresultados<br />Experiência de desenvolvimentoconsistente entre plataformas<br />
    9. 9. As APIs de Client Object Model<br />ECMAScript<br />.NET<br />Silverlight<br />Outros mecanismos<br />
    10. 10. ObjetosSuportados<br />Coleções de Sites e Sites<br />Listas, Itens, Visões, Estruturas de listas<br />Arquivos e Pastas<br />Web, Listas, e “List Item Property Bags”<br />Web Parts<br />Segurança<br />Tipos de conteúdo<br />Templates de sites, coleções de sites e operações de coleções de sites<br />
    11. 11. Equivalência de Objetos<br />Os objetospossuemnomesmuitoparecidosnosmodelos de servidor e cliente(ex.: SPWeb.QuickLaunchEnabled = Web.QuickLaunchEnabled)<br />
    12. 12. Funcionamento do Client Object Model<br />ECMAScriptControlsand Logic<br />Navegador<br />Client.svc<br />Server OM<br />JSON Response<br />ECMAScript OM<br />XML Request<br />Proxy<br />XML Request<br />Contentdatabase<br />Proxy<br />JSON Response<br />Managed OM<br />Client OM<br />Managed Controls and Logic<br />Servidor SharePoint<br />
    13. 13. Visão Geral das Tecnologias de Dados<br />REST APIs<br />Silverlight<br />Listasfortementetipadas<br />ClientOM<br />Listasfracamentetipadas<br />Ladocliente<br />Data Platform<br />Farm<br />Site<br />List Data<br />External Lists<br />ServerOM<br />Ladoservidor<br />Listasfracamentetipadas<br />LINQ<br />Listasfortementetipadas<br />Novo no 2010<br />Melhorados<br />
    14. 14. Silverlight Client Object Model<br />
    15. 15. Silverlight Client OM<br />Possibilita o desenvolvimento com Silverlight<br />O Silverlight poder ser utilizadoempáginas ASPX ou Web parts<br />O Client OM poder ser utilizado no Silverlight paracriaraplicativospara o SharePoint<br />
    16. 16. Criando Silverlight Web Parts<br />Uma Web Part poder ser um host para o Silverlight<br />SharePoint possuiuma web part de Silverlight<br />A web part podeconterpropriedadescustomizadasparaseremenviadasao Silverlight via propriedadeInitParameters<br />O arquivo XAP poder ser instalado no dirétório LAYOUTS e carregadoem tempo de execuçãooupublicadocomo um arquivoemumabiblioteca<br />A aplicação Silverlight podeutilizar o Client OM<br />
    17. 17. Silverlight Client OM<br />
    18. 18. Silverlight + SharePoint<br />demos <br />
    19. 19. E Silverlight<br />Dúvidas?<br />
    20. 20. Referências<br />SharePoint 2010 Devoloper Training Kit http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6184<br />Silverlight 3 Toolkit Nov 2009 http://silverlight.codeplex.com/releases/view/36060<br />Exemplo utilizado no webcast http://blogs.msdn.com/b/pandrew/archive/2009/10/16/gettingstarted2010snippets8.aspx<br />
    21. 21. Community Webcast:Criando Aplicativos Ricos para o SharePoint 2010 com Silverlight<br />Fabian André Gehrke<br />MCPD, MCITP e MCT SharePoint 2010<br />Coordenador de Projetos - KeepIT<br />http://fabiangehrke.com.br<br />http://www.twitter.com/fgehrke <br />http://sharepointersbr.wordpress.com<br />

    ×