Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share

TDC 2010 Floripa-SC SharePoint 2010: Novidades para os desenvolvedores .net

on

  • 1,426 views

 

Statistics

Views

Total Views
1,426
Views on SlideShare
1,426
Embed Views
0

Actions

Likes
0
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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
  • Sites: SharePoint Sites delivers a single infrastructure to provide portal and collaboration capabilities across intranet, extranet, and Internet sites. Bring users together to share information, data, and expertise across organizations. Comunidades:SharePoint Communities empowers people to work together in ways that are most effective for them. Allow people to collaborate in groups, share knowledge and ideas, connect with colleagues, and find information and experts easilyConteúdo: SharePoint Content enables all users to participate in a governed, compliant content management lifecycle. SharePoint Content makes it possible to expertly balance user experience with policy and process.Busca: SharePoint Search give users the ability to find the content, information, and people they need by combining an integrated, easy-to-manage platform with best-of-breed enterprise search technology.Insights: SharePoint Insights enables users to access and interact with information across unstructured and structured data sources. Empower users to discover the right people and expertise to make better and more agile business decisionsComposites:SharePoint Composites empowers users to rapidly respond to business needs by creating their own no-code solutions on-premises or in the cloud, through a rich set of building blocks, tools, and self-service capabilities.
  • The developer experience for SharePoint 2007 has been less than ideal due to a lack of tool support, wizards and designers. Many developers coming from a background with .NET and ASP.NET development have been frustrated at the need to write batch files, work in the command line and write XML in a under-documented language know as Collaborative Application Markup Language (CAML).The functionality of Visual Studio Extensions for WSS 3.0 was much improved as it evolved from version 1.0 to 1.3. Although even the latest version does not provide an end-to-end solution for SharePoint development. Many SharePoint 2007 developers have an arsenal of community tools to accomplish many of the required tasks within SharePoint development.
  • The Visual Studio 2010 SharePoint Tools (SPT) represents a significant step forward for professional developers using SharePoint. SharePoint Explorer fallows quick exploration through a siteThis makes it possible to launch browser at specific place within siteSharePoint 2010 introduce a new project structure as well as project tmplates and project item templates. There are designers to create things like features and solution packages.One of the most appealing aspects of SPT is that it is extensibleYou can add your own custom project templates and item templatesYou can add menu commands into the Visual Studio UI.
  • 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("MyUser", "MyPassword");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 "Scripts only" 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.
  • 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
  • Can run LINQ queries against lists because the client object model does not support LINQ queries against lists.You can use LINQ in the client OM to return object (e.g., list title is not null), but you can’t return items with the client OM (e.g., all tasks whose due date is past)That’s why we need ADO.NET data services and that’s why we’re discussing it here
  • Can run LINQ queries against lists because the client object model does not support LINQ queries against lists.You can use LINQ in the client OM to return object (e.g., list title is not null), but you can’t return items with the client OM (e.g., all tasks whose due date is past)That’s why we need ADO.NET data services and that’s why we’re discussing it here

TDC 2010 Floripa-SC SharePoint 2010: Novidades para os desenvolvedores .net Presentation Transcript

  • 1. Novidades para desenvolvedores .NET
    Fabian André Gehrke
    http://www.sharepointbrasil.net
    http://www.twitter.com/fgehrke
  • 2. Agenda
    Visão geral do SharePoint 2010
    Recursos de desenvolvimento:
    Web parts
    Ribbon
    Silverlight
    ADO.NET Data Service
  • 3. Roadmap do SharePoint
    2001
    2003
    2006
    2010
  • 4. Microsoft SharePoint 2010A Plataforma de ColaboraçãoparaCorporações e para a Web
    Sites
    Conectar e capacitarpessoas
    Comunidades
    Composições
    Reduzircustos com umainfraestruturaunificada
    Conteúdo
    Inovação
    Responder rapidamente a necessidadesde negócio
    Busca
  • 5. Microsoft SharePoint 2010
    Ribbon UI
    SharePoint Workspace
    SharePoint Mobile
    Office Client and Office Web App Integration
    Standards Support
    Business Connectivity Services
    External Lists
    Workflow
    Client Object Model
    SharePoint Designer
    Visual Studio
    API Enhancements
    REST/ATOM/RSS
    InfoPath Form Services
    Sites
    Ratings
    Blogs and Wikis
    Activity Feeds
    Tagging, Tag Cloud
    Social Bookmarking
    Blogs and Wikis
    My Sites
    Activity Feeds
    Profiles and Expertise
    Org Browser
    Comunidades
    Composições
    PerformancePoint Services
    Excel Services
    Chart Web Part
    Visio Services
    Web Analytics
    SQL Server Integration
    PowerPivot
    Conteúdo
    Inovação
    Search
    Audio and Video Content Types
    Remote Blob Storage
    List Enhancements
    Enterprise Content Types
    Metadata and Navigation
    Document Sets
    Multi-stage Disposition
    Social Relevance
    Phonetic Search
    Navigation
    FAST Integration
    Enhanced Pipeline
  • 6. Exemplos de Sites - Internet
  • 7. Demo
    Olááááááá SharePoint
  • 8. Desenvolvimento no SP 2007
    A experiência com o Visual Studio é limitada
    Visual Studio Extensions for WSS
    Visual Studio Tools for Office with VS2008
    Dificuldadeemdesenvolveraplicativoscliente*
    Desenvolvedoresprecisam se preocupar com coisaschatas
    Edição manual de arquivos CAML
    Edição manual do arquivo manifest.xml
    Criação de arquivos .wspparaimplantação da solução
  • 9. Desenvolvimento no SP2010
    Experiênciarica com o usuário
    SharePoint Explorer paraexploração de sites
    Projetos e itens do SharePoint 2010
    Designer visual
    Novas API de cliente
    Benefíciosparaosdesenvolvedores SharePoint
    Abstraçãonacriação de arquivos WSP (deploy)
    Facilidade no deploy de features
    Diminuição/eliminação de utilitáriosexternos
  • 10. Ambiente de Desenvolvimento
    Utilização de desktops 64 bits
    Opções de ambiente
    Remoto
    Virtualizado
    Desenvolvimento local
    SP 2010 poder ser instalado no Windows 7 e Vista
  • 11. WebParts
  • 12. WebParts
    ASP.NET WebParts
    System.Web.UI.WebControls.WebParts.WebPart
    Modelo mais comum de desenvolvimento
    Modelos de WebParts suportados
    Standard WebPart
    Visual WebPart
    Conexão entre WebParts
    Exemplo: grid conectado a um formulário
  • 13. WebParts
    Standard WebParts:
    Modelo existente no SharePoint 2007
    O layout deve ser feito manualmente em C#
    Muitas vezes são criadas para servir de container para UserControls
    Visual WebParts:
    Novo modelo do SharePoint 2010
    Layout feito através de UserControls (ASP.NET)
    O UserControls faz parte da WebPart, não é um componente separado
  • 14. Demo
    WebParts
  • 15. Ribbon
  • 16. Ribbon
    Começou a ser usada no Office 2007
    Experiência do usuário
    Menus contextuais e destacados
    Agilidade na execução de tarefas
    Executar ações para vários itens
  • 17. Demo
    Ribbon
  • 18.
  • 19. Silverlight
    API de clientepara Silverlight (subset)
    O Silverlight poder ser utilizadoempáginas ASPX ou Web parts
    O Client OM poder ser utilizado no Silverlight paracriaraplicações SharePoint
  • 20. Criando Silverlight Web Parts
    Uma Web Part poder ser um host para o Silverlight
    SharePoint possuiuma web part de Silverlight
    A web part podeconterpropriedadescustomizadasparaseremenviadasao Silverlight via propriedadeInitParameters
    O arquivo XAP poder ser instalado no dirétorio LAYOUTS e carregadoem tempo de execução
  • 21. Funcionamento do COM
    ECMAScriptControlsand Logic
    Navegador
    Client.svc
    Server OM
    JSON Response
    ECMAScript OM
    XML Request
    Proxy
    XML Request
    Contentdatabase
    Proxy
    JSON Response
    Managed OM
    Client OM
    Managed Controls and Logic
    Servidor SharePoint
  • 22. Demo
    Silverlight
  • 23. ADO.NET Data Services
  • 24. ADO.NET Data Services
    ListData.svcprovêacesso REST
    Operações de leitura, criação, update e exclusãosãomapeadasdiretamentenosverbos HTTP GET, POST, PUT, e DELETE
    ListData.svc
    Carrega o assembly manipulador do ADO.NET Data Services
    Microsoft.SharePoint.ListDataService.dll
    Implementa a interface IDataServiceProvider
    Microsoft.SharePoint.Linq.dll
    Implementa o provider Linq to SharePoint
  • 25. ADO.NET Data Services
    Obtendo as listas do site
    http://.../_vti_bin/listdata.svc/
    Obtenção da lista Projects
    http://.../_vti_bin/listdata.svc/Projects
    Obtenção do projeto 2
    http://.../_vti_bin/listdata.svc/Projects(2)/Description
    Obtenção dos projetosordenadospelotítulo
    http://.../_vti_bin/listdata.svc/Projects?$orderby=Title
  • 26. Demo
    ADO.NET Data Services
  • 27. Dúvidas?
  • 28. Novidades para desenvolvedores .NET
    Fabian André Gehrke
    http://www.sharepointbrasil.net
    http://www.twitter.com/fgehrke