SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Online Training on SharePoint 2007 Check Training Details @Training Details Moss Experts http://manish-sharepoint.blogspot.com/
SharePoint Object Model, Web Services, Features and Solutions Moss Experts http://manish-sharepoint.blogspot.com/
Features of SharePoint Object Model SharePoint will use ASP.NET instead of ISAPI for base page execution Server Object Model for programmatic access to SharePoint data Exposing Data via XML web services for access from remote machines Managed code object model on the server Accessible via ASP.NET or any other server process Exposes almost of all of the data stored in WSS Implemented in C# Add Microsoft.SharePointdll from Program Filesommon Filesicrosoft Sharedeb Server Extensions2SAPI http://manish-sharepoint.blogspot.com/
SharePoint Object Model It gives us full access to SharePoint Only available on the server http://manish-sharepoint.blogspot.com/
Examples of what can be done with the Object Model: Add, edit, delete, and retrieve data from SharePoint Lists  Create new lists and set list metadata (e.g. the fields in a list)  Set web properties  Work with documents in document libraries.  Perform administrative tasks such as creating webs, adding users, creating roles, etc.  Pretty much any functionality in the UI can be automated through the OM! http://manish-sharepoint.blogspot.com/
Object Model Hierarchy http://manish-sharepoint.blogspot.com/
Microsoft.SharePoint.Administration : Provides administrative types and members for managing a Windows SharePoint Services deployment.  http://manish-sharepoint.blogspot.com/
The SPFarm object is the highest object within the Windows SharePoint Services object model hierarchy. The Servers property gets a collection representing all the servers in the deployment, and the Services property gets a collection representing all the services. Each SPServer object represents a physical server computer. The ServiceInstances property provides access to the set of individual service instances that run on the individual computer. An SPWebService object provides access to configuration settings for a specific logical service or application. The WebApplications property gets the collection of Web applications that run the service. An SPDatabaseServiceInstance object represents a single instance of a database service running on the server computer. Each SPWebApplication object represents a load-balanced Web application based in Internet Information Services (IIS). The SPWebApplication object provides access to credentials and other server farm wide application settings. The Sites property gets the collection of site collections within the Web application, and the ContentDatabases property collection of content databases used in the Web application.  An SPContentDatabase object inherits from the SPDatabase class and represents a database that contains user data for a SharePoint Web application.  An SPSiteCollection object represents the collection of site collections within the Web application.  http://manish-sharepoint.blogspot.com/
Microsoft.SharePoint: Provides types and members for working with a top-level site and its sub sites http://manish-sharepoint.blogspot.com/
Each SPSite object, represents a set of logically related SPWeb objects. Such a set is commonly called a "site collection Each site collection includes any number of SPWeb objects, and each object has members that can be used to manage a site, including its template and theme, as well as to access files and folders on the site.  Each SPList object has members that are used to manage the list or access items in the list. The GetItems method can be used to perform queries that return specific items. The Fields property returns an SPFieldCollection object that represents all the fields, or columns, in the list, and the Items property returns an SPListItemCollection object that represents all the items, or rows, in the list. Each SPField object has members that contain settings for the field. Each SPListItem object represents a single row in the list. http://manish-sharepoint.blogspot.com/
Example Objects Security SPGroup SPGroupCollection SPSite SPUser SPUserCollection Documents SPDocumentLibrary SPFile SPFileCollection SPFolder List Data SPField SPFieldCollection SPListCollection SPList SPListItemCollection SPListItem SPView Administration SPGlobalAdmin SPQuota SPVirtualServer http://manish-sharepoint.blogspot.com/
Accessing Data in a MOSS List Get a SPList or SPDocumentLibrary object. SPListmylist = web.Lists[“Events”]; You can then call the .Items property to get all of the items: SPListItemCollection items = mylist.Items; If you only want a subset of the items, call the GetItems method and pass a SPQuery object SPListItemCollection items = mylist.GetItems(query); http://manish-sharepoint.blogspot.com/
Full Example 	SPWeb web = SPControl.GetContextWeb(Context); 	SPList tasks = web.Lists["Tasks"]; 	SPListItemCollection items=tasks.Items; 	foreach(SPListItem item in items) 	{ 	output.Write(item["Title"].ToString() + item["Status"].ToString() + "<br>"); 	} http://manish-sharepoint.blogspot.com/
Code Example -- Enumerate sites and lists SPSitemySite = SPContext.Current.Site; SPWebCollectionsubSites = mySite.AllWebs; for (inti=0;i<subSites.Count;i++) { SPListCollection lists = subSites[i].Lists;     for (int j=0;j<lists.Count;j++)     { Response.Write(SPEncode.HtmlEncode(subSites[i].Title)              + " :: " + SPEncode.HtmlEncode(lists[j].Title) + "<BR>");     } } http://manish-sharepoint.blogspot.com/
SharePoint Web Services SharePoint have web services APIs for accessing content.  The web services layer is built on top of the server OM. Web Services are available remotely Allows manipulation of Lists, Webs, Views, List Items, etc. Functionality will be similar to server object model.    Not all OM functionality available http://manish-sharepoint.blogspot.com/
Getting Started With Web Services Create a Windows Application In Visual Studio, choose ‘Add Web Reference’ Enter http://<server>/_vti_bin/lists.asmxto access the lists web service Other services include: UserGroups.asmx – users and groups Webs.asmx – Web information Views.asmx – View information Subscription.asmx – Subscriptions http://manish-sharepoint.blogspot.com/
Feature ,[object Object]
Features make it easier to activate or deactivate functionality.
Provide scope for deployment.
 All the functionality has been grouped as bunch of features in SharePoint.http://manish-sharepoint.blogspot.com/
Feature ,[object Object]
Activate Feature

Weitere ähnliche Inhalte

Was ist angesagt?

2 workflows, search, disaster recovery
2   workflows, search, disaster recovery2   workflows, search, disaster recovery
2 workflows, search, disaster recoveryicdesktop
 
1.2 introduction
1.2   introduction 1.2   introduction
1.2 introduction icdesktop
 
Introduction to sharepoint 2010
Introduction to sharepoint 2010Introduction to sharepoint 2010
Introduction to sharepoint 2010Sachchin Annam
 
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...Ivan Sanders
 
SharePoint 2010 Basics for newbies
SharePoint 2010 Basics for newbiesSharePoint 2010 Basics for newbies
SharePoint 2010 Basics for newbiesSachchin Annam
 
Introduction To SharePoint 2010
Introduction To SharePoint 2010Introduction To SharePoint 2010
Introduction To SharePoint 2010Rishu Mehra
 
Organizing sites and topics with share point portal server
Organizing sites and topics with share point portal serverOrganizing sites and topics with share point portal server
Organizing sites and topics with share point portal serverPeak Dfer
 
So You Want to Be a SharePoint Developer - SPS Utah 2015
So You Want to Be a SharePoint Developer - SPS Utah 2015So You Want to Be a SharePoint Developer - SPS Utah 2015
So You Want to Be a SharePoint Developer - SPS Utah 2015Ryan Schouten
 
SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...
SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...
SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...Ivan Sanders
 
Practical Business Intelligence in SharePoint 2013 - Honolulu
Practical Business Intelligence in SharePoint 2013 - HonoluluPractical Business Intelligence in SharePoint 2013 - Honolulu
Practical Business Intelligence in SharePoint 2013 - HonoluluIvan Sanders
 
Share Point For Beginners V1
Share Point For Beginners V1Share Point For Beginners V1
Share Point For Beginners V1MJ Ferdous
 
Share point 2010 Fundamentals
Share point 2010 FundamentalsShare point 2010 Fundamentals
Share point 2010 Fundamentalsbalraj_s
 
What's new in SharePoint Server 2013 (End user - Admin – Developer)
What's new in SharePoint Server 2013 (End user - Admin – Developer)What's new in SharePoint Server 2013 (End user - Admin – Developer)
What's new in SharePoint Server 2013 (End user - Admin – Developer)Mahmoud Hamed Mahmoud
 
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer PlatformSoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer PlatformIvan Sanders
 
Introduction wss-3-and-moss-2007-12324
Introduction wss-3-and-moss-2007-12324Introduction wss-3-and-moss-2007-12324
Introduction wss-3-and-moss-2007-12324Mogili Venkatababu
 
10 Quick Wins - No Code
10 Quick Wins - No Code10 Quick Wins - No Code
10 Quick Wins - No CodeJoshua Haebets
 
Sharepoint 2010 overview - what it is and what it can do
Sharepoint 2010 overview - what it is and what it can doSharepoint 2010 overview - what it is and what it can do
Sharepoint 2010 overview - what it is and what it can doFaisal Masood
 

Was ist angesagt? (20)

2 workflows, search, disaster recovery
2   workflows, search, disaster recovery2   workflows, search, disaster recovery
2 workflows, search, disaster recovery
 
1.2 introduction
1.2   introduction 1.2   introduction
1.2 introduction
 
Search Server 2010
Search Server 2010Search Server 2010
Search Server 2010
 
Introduction to sharepoint 2010
Introduction to sharepoint 2010Introduction to sharepoint 2010
Introduction to sharepoint 2010
 
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
 
SharePoint 2010 Basics for newbies
SharePoint 2010 Basics for newbiesSharePoint 2010 Basics for newbies
SharePoint 2010 Basics for newbies
 
Introduction To SharePoint 2010
Introduction To SharePoint 2010Introduction To SharePoint 2010
Introduction To SharePoint 2010
 
Organizing sites and topics with share point portal server
Organizing sites and topics with share point portal serverOrganizing sites and topics with share point portal server
Organizing sites and topics with share point portal server
 
So You Want to Be a SharePoint Developer - SPS Utah 2015
So You Want to Be a SharePoint Developer - SPS Utah 2015So You Want to Be a SharePoint Developer - SPS Utah 2015
So You Want to Be a SharePoint Developer - SPS Utah 2015
 
SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...
SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...
SharePoint Saturday Los Angeles 2011 SharePoint 2010 as The Business Intellig...
 
Practical Business Intelligence in SharePoint 2013 - Honolulu
Practical Business Intelligence in SharePoint 2013 - HonoluluPractical Business Intelligence in SharePoint 2013 - Honolulu
Practical Business Intelligence in SharePoint 2013 - Honolulu
 
Share point 2010_day5
Share point 2010_day5Share point 2010_day5
Share point 2010_day5
 
App deployment
App deploymentApp deployment
App deployment
 
Share Point For Beginners V1
Share Point For Beginners V1Share Point For Beginners V1
Share Point For Beginners V1
 
Share point 2010 Fundamentals
Share point 2010 FundamentalsShare point 2010 Fundamentals
Share point 2010 Fundamentals
 
What's new in SharePoint Server 2013 (End user - Admin – Developer)
What's new in SharePoint Server 2013 (End user - Admin – Developer)What's new in SharePoint Server 2013 (End user - Admin – Developer)
What's new in SharePoint Server 2013 (End user - Admin – Developer)
 
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer PlatformSoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
 
Introduction wss-3-and-moss-2007-12324
Introduction wss-3-and-moss-2007-12324Introduction wss-3-and-moss-2007-12324
Introduction wss-3-and-moss-2007-12324
 
10 Quick Wins - No Code
10 Quick Wins - No Code10 Quick Wins - No Code
10 Quick Wins - No Code
 
Sharepoint 2010 overview - what it is and what it can do
Sharepoint 2010 overview - what it is and what it can doSharepoint 2010 overview - what it is and what it can do
Sharepoint 2010 overview - what it is and what it can do
 

Andere mochten auch

San Diego's Communication Strategy for Water 2015 Q3/Q4
San Diego's Communication Strategy for Water 2015 Q3/Q4San Diego's Communication Strategy for Water 2015 Q3/Q4
San Diego's Communication Strategy for Water 2015 Q3/Q4Julian Bergquist
 
Rapid Equity - Before & After Pictures
Rapid Equity - Before & After PicturesRapid Equity - Before & After Pictures
Rapid Equity - Before & After PicturesJulian Bergquist
 
Tribal Leadership: Culture is the Solution
Tribal Leadership: Culture is the SolutionTribal Leadership: Culture is the Solution
Tribal Leadership: Culture is the SolutionJulian Bergquist
 
SharePoint Advanced Administration with Joel Oleson, Shane Young and Mike Watson
SharePoint Advanced Administration with Joel Oleson, Shane Young and Mike WatsonSharePoint Advanced Administration with Joel Oleson, Shane Young and Mike Watson
SharePoint Advanced Administration with Joel Oleson, Shane Young and Mike WatsonJoel Oleson
 
Songon shalgaruulalt 2015 orig
Songon shalgaruulalt 2015 origSongon shalgaruulalt 2015 orig
Songon shalgaruulalt 2015 origMbg Muugii
 
Corporate Quiz @ iCube - Finals
Corporate Quiz @ iCube - FinalsCorporate Quiz @ iCube - Finals
Corporate Quiz @ iCube - FinalsUdit Anand
 
Round that passes on Biz quiz
Round that passes on Biz quizRound that passes on Biz quiz
Round that passes on Biz quizKaushik Saha
 

Andere mochten auch (12)

Lesson template
Lesson templateLesson template
Lesson template
 
Powerpoint presentation
Powerpoint presentationPowerpoint presentation
Powerpoint presentation
 
San Diego's Communication Strategy for Water 2015 Q3/Q4
San Diego's Communication Strategy for Water 2015 Q3/Q4San Diego's Communication Strategy for Water 2015 Q3/Q4
San Diego's Communication Strategy for Water 2015 Q3/Q4
 
economics tuition
economics tuitioneconomics tuition
economics tuition
 
Rapid Equity - Before & After Pictures
Rapid Equity - Before & After PicturesRapid Equity - Before & After Pictures
Rapid Equity - Before & After Pictures
 
Republica del-ecuador
Republica del-ecuadorRepublica del-ecuador
Republica del-ecuador
 
Tribal Leadership: Culture is the Solution
Tribal Leadership: Culture is the SolutionTribal Leadership: Culture is the Solution
Tribal Leadership: Culture is the Solution
 
Vivacity finals
Vivacity finalsVivacity finals
Vivacity finals
 
SharePoint Advanced Administration with Joel Oleson, Shane Young and Mike Watson
SharePoint Advanced Administration with Joel Oleson, Shane Young and Mike WatsonSharePoint Advanced Administration with Joel Oleson, Shane Young and Mike Watson
SharePoint Advanced Administration with Joel Oleson, Shane Young and Mike Watson
 
Songon shalgaruulalt 2015 orig
Songon shalgaruulalt 2015 origSongon shalgaruulalt 2015 orig
Songon shalgaruulalt 2015 orig
 
Corporate Quiz @ iCube - Finals
Corporate Quiz @ iCube - FinalsCorporate Quiz @ iCube - Finals
Corporate Quiz @ iCube - Finals
 
Round that passes on Biz quiz
Round that passes on Biz quizRound that passes on Biz quiz
Round that passes on Biz quiz
 

Ähnlich wie Share Point Object Model

SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsMohan Arumugam
 
Wss Object Model
Wss Object ModelWss Object Model
Wss Object Modelmaddinapudi
 
Stefaan Ponnet, Fusebox
Stefaan Ponnet, FuseboxStefaan Ponnet, Fusebox
Stefaan Ponnet, Fuseboxnascomgenk
 
SharePoint Developer Education Day Palo Alto
SharePoint  Developer Education Day  Palo  AltoSharePoint  Developer Education Day  Palo  Alto
SharePoint Developer Education Day Palo Altollangit
 
Feature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVP
Feature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVPFeature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVP
Feature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVPAyman El-Hattab
 
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015Ryan Schouten
 
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio AnguloLuis Du Solier
 
Microsoft SharePoint Server 2007 Technical Overview
Microsoft SharePoint Server 2007 Technical OverviewMicrosoft SharePoint Server 2007 Technical Overview
Microsoft SharePoint Server 2007 Technical OverviewDotNetMarche
 
Share point review qustions
Share point review qustionsShare point review qustions
Share point review qustionsthan sare
 
SharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVPSharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVPAyman El-Hattab
 
Charla desarrollo de apps con sharepoint y office 365
Charla   desarrollo de apps con sharepoint y office 365Charla   desarrollo de apps con sharepoint y office 365
Charla desarrollo de apps con sharepoint y office 365Luis Valencia
 
SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewRob Windsor
 
Sharepoint 2010 enterprise content management features
Sharepoint 2010 enterprise content management featuresSharepoint 2010 enterprise content management features
Sharepoint 2010 enterprise content management featuresManish Rawat
 
SharePoint 2010 Introduction
SharePoint 2010 IntroductionSharePoint 2010 Introduction
SharePoint 2010 IntroductionVishal Gupta
 
Introduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIIntroduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIRob Windsor
 
Alfresco As SharePoint Alternative - Architecture Overview
Alfresco As SharePoint Alternative - Architecture OverviewAlfresco As SharePoint Alternative - Architecture Overview
Alfresco As SharePoint Alternative - Architecture OverviewAlfresco Software
 
SharePoint Development For Asp Net Developers
SharePoint Development For Asp Net DevelopersSharePoint Development For Asp Net Developers
SharePoint Development For Asp Net DevelopersCorey Roth
 

Ähnlich wie Share Point Object Model (20)

SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
 
Wss Object Model
Wss Object ModelWss Object Model
Wss Object Model
 
Stefaan Ponnet, Fusebox
Stefaan Ponnet, FuseboxStefaan Ponnet, Fusebox
Stefaan Ponnet, Fusebox
 
C# Unit5 Notes
C# Unit5 NotesC# Unit5 Notes
C# Unit5 Notes
 
SharePoint Developer Education Day Palo Alto
SharePoint  Developer Education Day  Palo  AltoSharePoint  Developer Education Day  Palo  Alto
SharePoint Developer Education Day Palo Alto
 
Feature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVP
Feature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVPFeature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVP
Feature and Solution Framework in SharePoint 2010, Ayman El-Hattab MVP
 
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
 
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
 
Microsoft SharePoint Server 2007 Technical Overview
Microsoft SharePoint Server 2007 Technical OverviewMicrosoft SharePoint Server 2007 Technical Overview
Microsoft SharePoint Server 2007 Technical Overview
 
Share point review qustions
Share point review qustionsShare point review qustions
Share point review qustions
 
SharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVPSharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Service Application Architecture_ Ayman El-Hattab,MVP
 
Charla desarrollo de apps con sharepoint y office 365
Charla   desarrollo de apps con sharepoint y office 365Charla   desarrollo de apps con sharepoint y office 365
Charla desarrollo de apps con sharepoint y office 365
 
SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development Overview
 
Sharepoint 2010 enterprise content management features
Sharepoint 2010 enterprise content management featuresSharepoint 2010 enterprise content management features
Sharepoint 2010 enterprise content management features
 
SharePoint 2010 Introduction
SharePoint 2010 IntroductionSharePoint 2010 Introduction
SharePoint 2010 Introduction
 
SharePoint 2010 Development
SharePoint 2010 DevelopmentSharePoint 2010 Development
SharePoint 2010 Development
 
Introduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIIntroduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST API
 
Alfresco As SharePoint Alternative - Architecture Overview
Alfresco As SharePoint Alternative - Architecture OverviewAlfresco As SharePoint Alternative - Architecture Overview
Alfresco As SharePoint Alternative - Architecture Overview
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
SharePoint Development For Asp Net Developers
SharePoint Development For Asp Net DevelopersSharePoint Development For Asp Net Developers
SharePoint Development For Asp Net Developers
 

Kürzlich hochgeladen

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 

Kürzlich hochgeladen (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Share Point Object Model

  • 1. Online Training on SharePoint 2007 Check Training Details @Training Details Moss Experts http://manish-sharepoint.blogspot.com/
  • 2. SharePoint Object Model, Web Services, Features and Solutions Moss Experts http://manish-sharepoint.blogspot.com/
  • 3. Features of SharePoint Object Model SharePoint will use ASP.NET instead of ISAPI for base page execution Server Object Model for programmatic access to SharePoint data Exposing Data via XML web services for access from remote machines Managed code object model on the server Accessible via ASP.NET or any other server process Exposes almost of all of the data stored in WSS Implemented in C# Add Microsoft.SharePointdll from Program Filesommon Filesicrosoft Sharedeb Server Extensions2SAPI http://manish-sharepoint.blogspot.com/
  • 4. SharePoint Object Model It gives us full access to SharePoint Only available on the server http://manish-sharepoint.blogspot.com/
  • 5. Examples of what can be done with the Object Model: Add, edit, delete, and retrieve data from SharePoint Lists Create new lists and set list metadata (e.g. the fields in a list) Set web properties Work with documents in document libraries. Perform administrative tasks such as creating webs, adding users, creating roles, etc. Pretty much any functionality in the UI can be automated through the OM! http://manish-sharepoint.blogspot.com/
  • 6. Object Model Hierarchy http://manish-sharepoint.blogspot.com/
  • 7. Microsoft.SharePoint.Administration : Provides administrative types and members for managing a Windows SharePoint Services deployment. http://manish-sharepoint.blogspot.com/
  • 8. The SPFarm object is the highest object within the Windows SharePoint Services object model hierarchy. The Servers property gets a collection representing all the servers in the deployment, and the Services property gets a collection representing all the services. Each SPServer object represents a physical server computer. The ServiceInstances property provides access to the set of individual service instances that run on the individual computer. An SPWebService object provides access to configuration settings for a specific logical service or application. The WebApplications property gets the collection of Web applications that run the service. An SPDatabaseServiceInstance object represents a single instance of a database service running on the server computer. Each SPWebApplication object represents a load-balanced Web application based in Internet Information Services (IIS). The SPWebApplication object provides access to credentials and other server farm wide application settings. The Sites property gets the collection of site collections within the Web application, and the ContentDatabases property collection of content databases used in the Web application. An SPContentDatabase object inherits from the SPDatabase class and represents a database that contains user data for a SharePoint Web application. An SPSiteCollection object represents the collection of site collections within the Web application. http://manish-sharepoint.blogspot.com/
  • 9. Microsoft.SharePoint: Provides types and members for working with a top-level site and its sub sites http://manish-sharepoint.blogspot.com/
  • 10. Each SPSite object, represents a set of logically related SPWeb objects. Such a set is commonly called a "site collection Each site collection includes any number of SPWeb objects, and each object has members that can be used to manage a site, including its template and theme, as well as to access files and folders on the site. Each SPList object has members that are used to manage the list or access items in the list. The GetItems method can be used to perform queries that return specific items. The Fields property returns an SPFieldCollection object that represents all the fields, or columns, in the list, and the Items property returns an SPListItemCollection object that represents all the items, or rows, in the list. Each SPField object has members that contain settings for the field. Each SPListItem object represents a single row in the list. http://manish-sharepoint.blogspot.com/
  • 11. Example Objects Security SPGroup SPGroupCollection SPSite SPUser SPUserCollection Documents SPDocumentLibrary SPFile SPFileCollection SPFolder List Data SPField SPFieldCollection SPListCollection SPList SPListItemCollection SPListItem SPView Administration SPGlobalAdmin SPQuota SPVirtualServer http://manish-sharepoint.blogspot.com/
  • 12. Accessing Data in a MOSS List Get a SPList or SPDocumentLibrary object. SPListmylist = web.Lists[“Events”]; You can then call the .Items property to get all of the items: SPListItemCollection items = mylist.Items; If you only want a subset of the items, call the GetItems method and pass a SPQuery object SPListItemCollection items = mylist.GetItems(query); http://manish-sharepoint.blogspot.com/
  • 13. Full Example SPWeb web = SPControl.GetContextWeb(Context); SPList tasks = web.Lists["Tasks"]; SPListItemCollection items=tasks.Items; foreach(SPListItem item in items) { output.Write(item["Title"].ToString() + item["Status"].ToString() + "<br>"); } http://manish-sharepoint.blogspot.com/
  • 14. Code Example -- Enumerate sites and lists SPSitemySite = SPContext.Current.Site; SPWebCollectionsubSites = mySite.AllWebs; for (inti=0;i<subSites.Count;i++) { SPListCollection lists = subSites[i].Lists; for (int j=0;j<lists.Count;j++) { Response.Write(SPEncode.HtmlEncode(subSites[i].Title) + " :: " + SPEncode.HtmlEncode(lists[j].Title) + "<BR>"); } } http://manish-sharepoint.blogspot.com/
  • 15. SharePoint Web Services SharePoint have web services APIs for accessing content. The web services layer is built on top of the server OM. Web Services are available remotely Allows manipulation of Lists, Webs, Views, List Items, etc. Functionality will be similar to server object model. Not all OM functionality available http://manish-sharepoint.blogspot.com/
  • 16. Getting Started With Web Services Create a Windows Application In Visual Studio, choose ‘Add Web Reference’ Enter http://<server>/_vti_bin/lists.asmxto access the lists web service Other services include: UserGroups.asmx – users and groups Webs.asmx – Web information Views.asmx – View information Subscription.asmx – Subscriptions http://manish-sharepoint.blogspot.com/
  • 17.
  • 18. Features make it easier to activate or deactivate functionality.
  • 19. Provide scope for deployment.
  • 20. All the functionality has been grouped as bunch of features in SharePoint.http://manish-sharepoint.blogspot.com/
  • 21.
  • 24. Show the Effects of Activation and De-Activationhttp://manish-sharepoint.blogspot.com/
  • 25.
  • 26. Solutions can be enabled or disabled.
  • 27. A solution file has a .CAB-based format but a .WSP extension.http://manish-sharepoint.blogspot.com/
  • 28.
  • 29. This file defines the list of features such as site definitions, resource files, Web Part files, and assemblies to process.
  • 30. Only the resources included in this file are processed.
  • 32. Defines the structure of the .cab file
  • 33.
  • 34. Online Training on SharePoint 2007 Check Training Details @Training Details Moss Experts http://manish-sharepoint.blogspot.com/