SlideShare uma empresa Scribd logo
1 de 40
Baixar para ler offline
WEBCENTER SITES GOOGLE GADGET
DEVELOPMENT TECHNIQUES
JOHN BRUNSWICK
702
•  Common Gadget Use Cases
•  Gadget Capabilities
•  Reference Architecture for Gadgets
•  Sites Server, Gadget Server and Data Sources
•  Live Development of Gadget that Surfaces Backend Data
•  General Developer Tips and Tricks
•  Q&A
OURJOURNEY
•  Understand the WebCenter Sites Gadget capabilities and
structure
•  Explain reference architecture to surface information via
the WebCenter Sites Gadget from another source system
•  Develop WebCenter Sites Gadgets that connect to
backend systems and surface data within WebCenter Sites
interface
LEARNING
OBJECTIVES
OMG! These
Gadgets are
amazing!
USE
CASES
•  Reusable Dynamic Application Component
•  Similar to “Portlets” – Client Side, Platform Agnostic
•  SDLC not tied to Content Server lifecycle
•  Resource isolation
•  “Instance configurability”
GADGET
USECASES
CAPABILITIES
GADGETIN
ACTION
GADGETIN
PREFERENCES
GADGETIN
ACTION
OPEN SOCIAL?
•  API Capabilities for
Social Networking
•  Some advanced APIs
like persistence
•  Google Gadgets are a
component within the
OpenSocial
capabilities
WHATABOUT
OPENSOCIAL?
ARCHITECTURE
•  Industry Standards
•  HTML
•  Javascript
GADGET
ARCHITECTURE
GADGET
AUTHENTICATION
GADGET
XMLDOCUMENT
STRUCTURE
GADGET
DESCRIPTOR
GADGET
BASIC
GADGET
INTERMEDIATE
•  Content area will always leverage a CDATA block for type
HTML
GADGET
FORMAT
GADGET
ASSETS
CORE GADGET
FUNCTIONALITY
1. Standard HTML header, opening tag and tag. information is
optional. Gadgets run in browser quirks mode.
2. Core gadgets JavaScript libraries and any additional libraries
specified in the gadget. The server SHOULD consolidate all
librariess into a single request to minimize the number of
HTTP requests made by the client browser. This MAY be
followed by JavaScripte required to initialize the included
libraries.
3. Results from parsing the Gadget XML file and processing
the sections that match the specified View name.
GADGET
PROCESS1
1. A single call to gadgets.util.runOnLoadHandlers().
2. Standard HTML closing tags.
3. Containers must also be able to process Data
Pipelining (Section 13) and Templating [OpenSocial­
Templating] elements in the gadget XML spec.
GADGET
PROCESS2
User Preferences
•  Set by user
•  Save information specific to a given user
Gadget Preferences
•  Set by Developer
•  Information like sizing, start node of a dynamic query
of content, etc
•  OpenSocial offers a more extensive persistence API -
http://wiki.opensocial.org/index.php?
title=The_Persistence_API
PREFERENCE
BASICS
Once you have a preference object
prefs.set(‘mypref’, ‘some value’);
or…
prefs.setArray(‘myPrefArray’, [‘Sites’, ’Content’, ‘Portal’]);
SETTING
PREFERENCES
GETTING
PREFERENCES
•  Must include <Require feature=”pubsub”/> in your
<ModulePrefs>
PUB
SUB
SITES SERVER
GADGET SERVER
DATA SOURCES
GADGET
DATA
WC Sites
Runtime
GADGET
JS Library (JQuery,
etc)
J
S
O
N
REST
Services JDBC
G
E
T
/
P
O
S
T
•  Client side JS calls into RESTful services on
server
•  Authentication via OAuth2, etc
•  Manually iterate over response object from
server
•  JQuery and other JS frameworks provide
elegant handling of the call and iteration
GADGET
DATA
TOOLS AND TIPS
CROSSSITE
SCRIPTING
DEVELOPMENT
TOOLS
•  Eclipse Plugin Includes
Gadget / Social API
Harness
•  Run HTTP Server Locally
•  Debug via Chrome
Developer Tools
DEVELOPMENT
RUNTIMETIPS
LIVE CODE
REVIEW &
DEMONSTRATION
•  WebCenter Sites Developer’s Guide for Creating Gadgets
http://docs.oracle.com/cd/E29495_01/doc.1111/
developer_guide_for_creating_gadgets_11gr1.pdf
•  Google Gadgets – Development Fundamentals
https://developers.google.com/gadgets/docs/fundamentals
•  Google Gadgets – Creating a User Interface
https://developers.google.com/gadgets/docs/ui
•  Google Gadgets – Gadgets XML Reference
https://developers.google.com/gadgets/docs/xml_reference
•  OAuth – Getting Started
http://oauth.net/
FURTHERREADING
Session 702 - Webcenter Sites Google
Gadget Development Techniques
http://www.johnbrunswick.com/2012/10/
webcenter-sites-gadget-development-concepts-
quickstart/
SOURCE
DOWNLOAD
Q&A
LET’S
CONNECT
@johnbrunswick	
  
	
  
www.johnbrunswick.com	
  
	
  
www.linkedin.com/in/johnbrunswick	
  
	
  
youtube.com/johnbrunswick	
  
	
  
profiles.google.com/johnbrunswick	
  
WWW	
  

Mais conteúdo relacionado

Semelhante a Webcenter Sites Google Gadget Development Techniques

Shindig Apachecon Asia 09
Shindig Apachecon Asia 09Shindig Apachecon Asia 09
Shindig Apachecon Asia 09Nuwan Bandara
 
Extjs3.4 Migration Notes
Extjs3.4 Migration NotesExtjs3.4 Migration Notes
Extjs3.4 Migration NotesSimoAmi
 
Treinamento S60 WRT - CETELI UFAM INDT
Treinamento S60 WRT - CETELI UFAM INDTTreinamento S60 WRT - CETELI UFAM INDT
Treinamento S60 WRT - CETELI UFAM INDTallanbezerra
 
SharePoint 2014: Where to save my data, for devs!
SharePoint 2014: Where to save my data, for devs!SharePoint 2014: Where to save my data, for devs!
SharePoint 2014: Where to save my data, for devs!Ben Steinhauser
 
CUST-2 New Client Configuration & Extension Points in Share
CUST-2 New Client Configuration & Extension Points in ShareCUST-2 New Client Configuration & Extension Points in Share
CUST-2 New Client Configuration & Extension Points in ShareAlfresco Software
 
Implemeting Sencha Ext JS in Drupal
 Implemeting Sencha Ext JS in Drupal Implemeting Sencha Ext JS in Drupal
Implemeting Sencha Ext JS in Drupaldrupalsydney
 
InterConnect 2016 Java EE 7 Overview (PEJ-5296)
InterConnect 2016 Java EE 7 Overview (PEJ-5296)InterConnect 2016 Java EE 7 Overview (PEJ-5296)
InterConnect 2016 Java EE 7 Overview (PEJ-5296)Kevin Sutter
 
Internet Explorer 8
Internet Explorer 8Internet Explorer 8
Internet Explorer 8David Chou
 
Overview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUGOverview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUGMarakana Inc.
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Anupam Ranku
 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint BeastMark Rackley
 
Drupal 7 - The Top 40 Core Modules and What They Mean for You
Drupal 7 - The Top 40 Core Modules and What They Mean for YouDrupal 7 - The Top 40 Core Modules and What They Mean for You
Drupal 7 - The Top 40 Core Modules and What They Mean for YouAcquia
 
Best Practices in Widget Development - Examples and Counterexamples
Best Practices in Widget Development  - Examples and CounterexamplesBest Practices in Widget Development  - Examples and Counterexamples
Best Practices in Widget Development - Examples and CounterexamplesROLE Project
 
Tech Talk Live on Share Extensibility
Tech Talk Live on Share ExtensibilityTech Talk Live on Share Extensibility
Tech Talk Live on Share ExtensibilityAlfresco Software
 
SPSDenver - Wrapping Your Head Around the SharePoint Beast
SPSDenver - Wrapping Your Head Around the SharePoint BeastSPSDenver - Wrapping Your Head Around the SharePoint Beast
SPSDenver - Wrapping Your Head Around the SharePoint BeastMark Rackley
 
Vincent Burckhardt - Exending Connections with OpenSocial Gadgets
Vincent Burckhardt - Exending Connections with OpenSocial GadgetsVincent Burckhardt - Exending Connections with OpenSocial Gadgets
Vincent Burckhardt - Exending Connections with OpenSocial GadgetsLetsConnect
 
Open social gadgets in ibm connections
Open social gadgets in ibm connectionsOpen social gadgets in ibm connections
Open social gadgets in ibm connectionsVincent Burckhardt
 
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...Lucidworks
 

Semelhante a Webcenter Sites Google Gadget Development Techniques (20)

Shindig Apachecon Asia 09
Shindig Apachecon Asia 09Shindig Apachecon Asia 09
Shindig Apachecon Asia 09
 
Extjs3.4 Migration Notes
Extjs3.4 Migration NotesExtjs3.4 Migration Notes
Extjs3.4 Migration Notes
 
Treinamento S60 WRT - CETELI UFAM INDT
Treinamento S60 WRT - CETELI UFAM INDTTreinamento S60 WRT - CETELI UFAM INDT
Treinamento S60 WRT - CETELI UFAM INDT
 
SharePoint 2014: Where to save my data, for devs!
SharePoint 2014: Where to save my data, for devs!SharePoint 2014: Where to save my data, for devs!
SharePoint 2014: Where to save my data, for devs!
 
CUST-2 New Client Configuration & Extension Points in Share
CUST-2 New Client Configuration & Extension Points in ShareCUST-2 New Client Configuration & Extension Points in Share
CUST-2 New Client Configuration & Extension Points in Share
 
Implemeting Sencha Ext JS in Drupal
 Implemeting Sencha Ext JS in Drupal Implemeting Sencha Ext JS in Drupal
Implemeting Sencha Ext JS in Drupal
 
InterConnect 2016 Java EE 7 Overview (PEJ-5296)
InterConnect 2016 Java EE 7 Overview (PEJ-5296)InterConnect 2016 Java EE 7 Overview (PEJ-5296)
InterConnect 2016 Java EE 7 Overview (PEJ-5296)
 
uMobile Development Strategies
uMobile Development StrategiesuMobile Development Strategies
uMobile Development Strategies
 
jQuery On Rails
jQuery On RailsjQuery On Rails
jQuery On Rails
 
Internet Explorer 8
Internet Explorer 8Internet Explorer 8
Internet Explorer 8
 
Overview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUGOverview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUG
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
 
Drupal 7 - The Top 40 Core Modules and What They Mean for You
Drupal 7 - The Top 40 Core Modules and What They Mean for YouDrupal 7 - The Top 40 Core Modules and What They Mean for You
Drupal 7 - The Top 40 Core Modules and What They Mean for You
 
Best Practices in Widget Development - Examples and Counterexamples
Best Practices in Widget Development  - Examples and CounterexamplesBest Practices in Widget Development  - Examples and Counterexamples
Best Practices in Widget Development - Examples and Counterexamples
 
Tech Talk Live on Share Extensibility
Tech Talk Live on Share ExtensibilityTech Talk Live on Share Extensibility
Tech Talk Live on Share Extensibility
 
SPSDenver - Wrapping Your Head Around the SharePoint Beast
SPSDenver - Wrapping Your Head Around the SharePoint BeastSPSDenver - Wrapping Your Head Around the SharePoint Beast
SPSDenver - Wrapping Your Head Around the SharePoint Beast
 
Vincent Burckhardt - Exending Connections with OpenSocial Gadgets
Vincent Burckhardt - Exending Connections with OpenSocial GadgetsVincent Burckhardt - Exending Connections with OpenSocial Gadgets
Vincent Burckhardt - Exending Connections with OpenSocial Gadgets
 
Open social gadgets in ibm connections
Open social gadgets in ibm connectionsOpen social gadgets in ibm connections
Open social gadgets in ibm connections
 
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
 

Último

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Último (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Webcenter Sites Google Gadget Development Techniques

  • 1. WEBCENTER SITES GOOGLE GADGET DEVELOPMENT TECHNIQUES JOHN BRUNSWICK 702
  • 2. •  Common Gadget Use Cases •  Gadget Capabilities •  Reference Architecture for Gadgets •  Sites Server, Gadget Server and Data Sources •  Live Development of Gadget that Surfaces Backend Data •  General Developer Tips and Tricks •  Q&A OURJOURNEY
  • 3. •  Understand the WebCenter Sites Gadget capabilities and structure •  Explain reference architecture to surface information via the WebCenter Sites Gadget from another source system •  Develop WebCenter Sites Gadgets that connect to backend systems and surface data within WebCenter Sites interface LEARNING OBJECTIVES
  • 6. •  Reusable Dynamic Application Component •  Similar to “Portlets” – Client Side, Platform Agnostic •  SDLC not tied to Content Server lifecycle •  Resource isolation •  “Instance configurability” GADGET USECASES
  • 12. •  API Capabilities for Social Networking •  Some advanced APIs like persistence •  Google Gadgets are a component within the OpenSocial capabilities WHATABOUT OPENSOCIAL?
  • 14. •  Industry Standards •  HTML •  Javascript GADGET ARCHITECTURE
  • 20. •  Content area will always leverage a CDATA block for type HTML GADGET FORMAT
  • 23. 1. Standard HTML header, opening tag and tag. information is optional. Gadgets run in browser quirks mode. 2. Core gadgets JavaScript libraries and any additional libraries specified in the gadget. The server SHOULD consolidate all librariess into a single request to minimize the number of HTTP requests made by the client browser. This MAY be followed by JavaScripte required to initialize the included libraries. 3. Results from parsing the Gadget XML file and processing the sections that match the specified View name. GADGET PROCESS1
  • 24. 1. A single call to gadgets.util.runOnLoadHandlers(). 2. Standard HTML closing tags. 3. Containers must also be able to process Data Pipelining (Section 13) and Templating [OpenSocial­ Templating] elements in the gadget XML spec. GADGET PROCESS2
  • 25. User Preferences •  Set by user •  Save information specific to a given user Gadget Preferences •  Set by Developer •  Information like sizing, start node of a dynamic query of content, etc •  OpenSocial offers a more extensive persistence API - http://wiki.opensocial.org/index.php? title=The_Persistence_API PREFERENCE BASICS
  • 26. Once you have a preference object prefs.set(‘mypref’, ‘some value’); or… prefs.setArray(‘myPrefArray’, [‘Sites’, ’Content’, ‘Portal’]); SETTING PREFERENCES
  • 28. •  Must include <Require feature=”pubsub”/> in your <ModulePrefs> PUB SUB
  • 30. GADGET DATA WC Sites Runtime GADGET JS Library (JQuery, etc) J S O N REST Services JDBC G E T / P O S T
  • 31. •  Client side JS calls into RESTful services on server •  Authentication via OAuth2, etc •  Manually iterate over response object from server •  JQuery and other JS frameworks provide elegant handling of the call and iteration GADGET DATA
  • 35. •  Eclipse Plugin Includes Gadget / Social API Harness •  Run HTTP Server Locally •  Debug via Chrome Developer Tools DEVELOPMENT RUNTIMETIPS
  • 37. •  WebCenter Sites Developer’s Guide for Creating Gadgets http://docs.oracle.com/cd/E29495_01/doc.1111/ developer_guide_for_creating_gadgets_11gr1.pdf •  Google Gadgets – Development Fundamentals https://developers.google.com/gadgets/docs/fundamentals •  Google Gadgets – Creating a User Interface https://developers.google.com/gadgets/docs/ui •  Google Gadgets – Gadgets XML Reference https://developers.google.com/gadgets/docs/xml_reference •  OAuth – Getting Started http://oauth.net/ FURTHERREADING
  • 38. Session 702 - Webcenter Sites Google Gadget Development Techniques http://www.johnbrunswick.com/2012/10/ webcenter-sites-gadget-development-concepts- quickstart/ SOURCE DOWNLOAD
  • 39. Q&A
  • 40. LET’S CONNECT @johnbrunswick     www.johnbrunswick.com     www.linkedin.com/in/johnbrunswick     youtube.com/johnbrunswick     profiles.google.com/johnbrunswick   WWW