• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Building Sandboxed Solutions
 

Building Sandboxed Solutions

on

  • 1,558 views

Webcast da Copa de Talentos Microsoft sobre Sandboxed Solutions.

Webcast da Copa de Talentos Microsoft sobre Sandboxed Solutions.

Statistics

Views

Total Views
1,558
Views on SlideShare
1,554
Embed Views
4

Actions

Likes
2
Downloads
0
Comments
0

1 Embed 4

http://www.slideshare.net 4

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
  • Today we're going to cover one small part of what you need to know to be a SharePoint developer. The whole series, the rest of the nine Web casts that will be coming in the following weeks, will cover other aspects of the SharePoint world, and things that you should know to be able to develop in SharePoint. What we're going to talk about today is the Web Parts infrastructure in SharePoint, how it relates to the Web part infrastructure in ASP.NET 2.0. We'll build a Web part very quickly and easily. It will take about two minutes. We'll deploy that Web part. We'll talk about security in Web Parts, what's good access security, what does that mean, how does that impact the solutions you're going to build. We'll talk a little bit about how you can expose Web part properties, how you can get configuration information into your Web part. We'll talk about connecting Web Parts to one another so that you can take smaller Web Parts and connect them into more meaningful solutions. And we'll talk about user controls and how they fit into the Web part framework.

Building Sandboxed Solutions Building Sandboxed Solutions Presentation Transcript

  • Aguarde em instantes o webcast será realizado.
    Verifique se seu áudio está funcionando.
  • Building Sandboxed Solutions
    Marcel Medina
    Desenvolvedor SharePoint
    Microsoft Trainer
    Wagner Amorim
    Desenvolvedor SharePoint
    Done IT
  • Agenda
    Apresentação
    Palestrante e Moderador
    Objetivo do WebCast
    Introdução
    Desenvolvimento e Deploy
    Arquitetura
    Perguntas e Respostas
  • Apresentação
    Marcel Medina
    SharePoint Developer @ Practiv (NZ)
    http://sharepoint4developers.spaces.live.com
    http://sharepoint4developersnz.spaces.live.com
    http://www.canalsharepoint.com.br/marcelmedina
    Tem atuadoativamentenacomunidade SharePoint com a publicação de artigos e comomoderador no CanalSharePoint.
    Possui as seguintesCertificações Microsoft:
    MCT (2008 / 2009 / 2010)
    MCPD (Enterprise Application Developer);
    MCTS (Windows SharePoint Services 3.0 Application Development);
    MCTS (.Net Framework 2.0 Distributed Applications);
    MCTS (.Net Framework 2.0 Web Applications);
    MCTS (.Net Framework 2.0 Windows Applications);
    MCSD (For Microsoft .NET);
    MCAD (For Microsoft .NET);
    MCDBA (Microsoft SQL Server 2000).
  • Apresentação
    Wagner Amorim
    Done IT
    www.canalsharepoint.com.br
    www.doneit.com.br
    waamorim.spaces.live.com
    MCPD Web Developer
    MCTS (Windows SharePoint Services 3.0, Microsoft Office SharePoint Server 2007 - configuração e desenvolvimento);
    Líder da Comunidade Canal Sharepoint com vários artigos publicados nos sites www.linhadecodigo.com.br e www.canalsharepoint.com.br
    Tem atuado fortemente nos fóruns Microsoft TechNet e MSDN voltados para a tecnologia SharePoint.
  • Objetivo
    Este webcast terá como objetivo uma abordagem introdutória sobre Sandboxed Solutions para desenvolvedores, contemplando conceitos, desenvolvimento e deploy de Sandboxed Solutions no Sharepoint 2010.
  • Cenário Sharepoint 2007
    Desenvolvedores
    Desenvolvedores criam soluções customizadas.
    Administradores podem apenas garantir que as soluções sejam executadas utilizando CAS policies, o que é difícil controlar o que está sendo feito no código.
    Causas de problemas no Sharepoint: código customizado.
    Administradores
    Site Collection Admin
  • Cenário Sharepoint 2010
    Desenvolvedores
    Desenvolvedores criam soluções customizadas.
    Site Collection Admins fazem o deploy, ativam e implementam as customizações.
    Administradores possuem mais recursos para monitorarem as soluções nos site collections.
    Administradores
    Site Collection Admin
  • Sandboxed Solutions
    São executadas em um processo separado do w3wp, que o caracterizacomo sandbox.
    Utilização de um subset das classes do Microsoft.SharePoint
    Limitação de funcionalidadespelo Code Access Security policy.
    Deploy realizado pelo Administrador do Site Collection
    São armazenados na Solution Gallery
  • Uma Sandboxed Solution
  • Restrições do subset Microsoft.Sharepoint
    Microsoft.SharePoint
    • SPSecurity object
    • SPWorkItem e SPWorkItemCollection objects
    • SPAlertCollection.Addmethod
    • SPAlertTemplateCollection.Add method
    • SPUserSolution e SPUserSolutionCollection objects
    • SPTransformUtilities
    Microsoft.SharePoint.Utilities
    • SPUtility.SendEmail method
    • SPUtility.GetNTFullNameandEmailFromLogin method
    Microsoft.SharePoint.WebPartPages
    • SPWebPartManager object
    • SPWebPartConnection object
    • WebPartZone object
    • WebPartPage object
    • ToolPane object
    • ToolPart object
  • Code Access Security Policy
    SharePointPermission.ObjectModel
    SecurityPermission.Execution
    AspNetHostingPermission.Level = Minimal
    <trustLevel name="WSS_Sandbox" policyFile="..configwss_usercode.config" />
    Nãosãopermitidos:
    • Network access (internet, web service, WCF, REST)
    • Hard drive access
    • Registry access
    • Deploy no GAC
  • Soluções Suportadas
    List definitions
    List instances
    Onet.xml
    WebTemplate Feature element instead of Webtemp.xml
    Content Types/Fields
    Navigation
    Module/files
    Feature callouts
    Web Parts derived from WebPart
    Event receivers
    SPItemEventReceiver
    SPListEventReceiver
    SPWebEventReceiver
    Custom Actions
    Workflows
  • SoluçõesNãoSuportadas
    Custom Action groups
    HideCustomAction element
    Content Type Binding
    Web Application-scoped Features
    Farm-scoped Features
    Timer Jobs
    Visual Web Parts
  • Desenvolvendo uma Sandboxed Solution
  • Arquitetura
    FRONT END
    BACK END
    Host Service (SPUCHostService.exe)
    Execution Wrapper(Inside Application Pool)
    Worker Process
    (SPUCWorkerProcess.exe)
    IIS(W3WP.EXE)
    Proxy Process
    (SPUCWorkerProcessProxy.exe)
    Untrusted Code
    Subset Object Model
    Full Object Model
  • Arquitetura
    FRONT END
    BACK END
    Host Service (SPUCHostService.exe)
    Execution Wrapper(Inside Application Pool)
    Worker Process
    (SPUCWorkerProcess.exe)
    IIS(W3WP.EXE)
    Proxy Process
    (SPUCWorkerProcessProxy.exe)
    Untrusted Code
    Subset Object Model
    Subset-Model Request
    Full Object Model
  • Arquitetura
    FRONT END
    BACK END
    Host Service (SPUCHostService.exe)
    Execution Wrapper(Inside Application Pool)
    Worker Process
    (SPUCWorkerProcess.exe)
    IIS(W3WP.EXE)
    Proxy Process
    (SPUCWorkerProcessProxy.exe)
    Untrusted Code
    Subset Object Model
    Full-Model Request
    Full Object Model
  • Arquitetura
    FRONT END
    BACK END
    Host Service (SPUCHostService.exe)
    Execution Wrapper(Inside Application Pool)
    Worker Process
    (SPUCWorkerProcess.exe)
    IIS(W3WP.EXE)
    while(true)
    {
    //Solução com problemas
    }
    Proxy Process
    (SPUCWorkerProcessProxy.exe)
    Untrusted Code
    Subset Object Model
    Resource Wasting Call
    Full Object Model
  • Simulandouma Solution com problemas
  • Benefícios
    Segurança e estabilidade
    As soluçõessãoexecutadasem um serviçoseparado e sãoexecutadas no contexto do Site Collection.
    Monitoramentomaisefetivo.
    Agilidade no deploy de soluções
    Eliminação de processos de aprovação de código e deploy poradministradores.
  • Referências
    • Sandboxed Solutions Architecture
    http://msdn.microsoft.com/en-us/library/ee539417(office.14).aspx
    • Developing, Deploying, and Monitoring Sandboxed Solutions in SharePoint 2010
    http://msdn.microsoft.com/en-us/magazine/ee335711.aspx
    • Criando Validadores para Sandboxed Solutions
    http://sharepoint4developers.spaces.live.com/blog/cns!419BF2880E221BB9!536.entry
    • Configurando Pontos no Sandbox
    http://sharepoint4developers.spaces.live.com/blog/cns!419BF2880E221BB9!518.entry
  • P&R
    Marcel Medina
    http://sharepoint4developers.spaces.live.com
    http://sharepoint4developersnz.spaces.live.com