Spring-Social, Alfresco and Spring-Social-AlfrescoJared Ottley
Spring-Social, Alfresco and Spring-Social-AlfrescoJared Ottley
Spring-Social is….Not just about socialoAuth1/oAuth2 Authentication FrameworkClient API
Spring-Social is….Not just about socialoAuth1/oAuth2 Authentication FrameworkClient API
Spring-Social ModulesFacebook, Twitter, Linkedin
Spring-Social ModulesSpring Social 500pxSpring Social App.netSpring Social BitBucketSpring Social DiggSpring Social Dropbo...
Spring-Social ModulesSpring Social Intuit (Quickbooks Online)Spring Social Last.fmSpring Social Live (Windows Live)Spring ...
Spring-Social ModulesSpring Social XingSpring Social YammerSpring Social Security ModuleSpring Social Grails Plugin
Alfresco uses…Spring-Social-FacebookSpring-Social-LinkedinSpring-Social-TwitterSpring-Social-Flickr
Alfresco uses…Spring-Social-FacebookSpring-Social-LinkedinSpring-Social-TwitterSpring-Social-Flickr
Alfresco Integrations use…Spring-Social-DropboxSpring-Social-Google-Docs
Alfresco Integrations use…Spring-Social-DropboxSpring-Social-Google-Docs
Alfresco provides…4.1+ and CommunityPersistence of OAuth TokensOAuth1CredentialsStoreServiceOAuth2CredentialsStoreService
Alfresco provides…CRUD OperationsShared TokensPersonal TokensLookup by RemoteSystemId
Alfresco provides…CRUD OperationsShared TokensPersonal TokensLookup by RemoteSystemId
Spring-Social-AlfrescoA project that provides Authentication and ClientAPI to the Alfresco Public API (JSON and CMIS)CMIS ...
Spring-Social-AlfrescoA project that provides Authentication and ClientAPI to the Alfresco Public API (JSON and CMIS)CMIS ...
How ToAlfrescoConnectionFactory connectionFactory = newAlfrescoConnectionFactory(consumerKey, consumerSecret);OAuth2Parame...
How ToString authUrl =connectionFactory.getOAuthOperations().buildAuthenticateUrl(GrantType.AUTHORIZATION_CODE, parameters...
How ToConnection<Alfresco> connection =connectionFactory.createConnection(accessGrant);Alfresco alfresco = connection.getA...
How To//Get CMIS SessionSession session = alfresco.getCMISSession(network);ItemIterable<QueryResult> paginatedResults =ses...
How To//Get CMIS SessionSession session = alfresco.getCMISSession(network);ItemIterable<QueryResult> paginatedResults =ses...
No better than setUp() and tearDown()?• Fundamentally different.Thank you!http://www.springsource.org/spring-socialhttps:/...
No better than setUp() and tearDown()?• Fundamentally different.Thank you!http://www.springsource.org/spring-socialhttps:/...
Upcoming SlideShare
Loading in …5
×

Spring Social, Alfresco and Spring-Social-Alfresco

618
-1

Published on

Lightning talk On Alfresco and Spring Social

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
618
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Spring Social, Alfresco and Spring-Social-Alfresco

  1. 1. Spring-Social, Alfresco and Spring-Social-AlfrescoJared Ottley
  2. 2. Spring-Social, Alfresco and Spring-Social-AlfrescoJared Ottley
  3. 3. Spring-Social is….Not just about socialoAuth1/oAuth2 Authentication FrameworkClient API
  4. 4. Spring-Social is….Not just about socialoAuth1/oAuth2 Authentication FrameworkClient API
  5. 5. Spring-Social ModulesFacebook, Twitter, Linkedin
  6. 6. Spring-Social ModulesSpring Social 500pxSpring Social App.netSpring Social BitBucketSpring Social DiggSpring Social DropboxSpring Social FlattrSpring Social FlickrSpring Social FoursquareSpring Social GeekListSpring Social GoogleSpring Social Instagram
  7. 7. Spring-Social ModulesSpring Social Intuit (Quickbooks Online)Spring Social Last.fmSpring Social Live (Windows Live)Spring Social MisoSpring Social MixcloudSpring Social NkSpring Social SalesforceSpring Social SoundCloudSpring Social TumblrSpring Social ViadeoSpring Social VkontakteSpring Social Weibo
  8. 8. Spring-Social ModulesSpring Social XingSpring Social YammerSpring Social Security ModuleSpring Social Grails Plugin
  9. 9. Alfresco uses…Spring-Social-FacebookSpring-Social-LinkedinSpring-Social-TwitterSpring-Social-Flickr
  10. 10. Alfresco uses…Spring-Social-FacebookSpring-Social-LinkedinSpring-Social-TwitterSpring-Social-Flickr
  11. 11. Alfresco Integrations use…Spring-Social-DropboxSpring-Social-Google-Docs
  12. 12. Alfresco Integrations use…Spring-Social-DropboxSpring-Social-Google-Docs
  13. 13. Alfresco provides…4.1+ and CommunityPersistence of OAuth TokensOAuth1CredentialsStoreServiceOAuth2CredentialsStoreService
  14. 14. Alfresco provides…CRUD OperationsShared TokensPersonal TokensLookup by RemoteSystemId
  15. 15. Alfresco provides…CRUD OperationsShared TokensPersonal TokensLookup by RemoteSystemId
  16. 16. Spring-Social-AlfrescoA project that provides Authentication and ClientAPI to the Alfresco Public API (JSON and CMIS)CMIS 1.0 SupportJSON REST API--Site Membership--Network/Site--Tags--Comments
  17. 17. Spring-Social-AlfrescoA project that provides Authentication and ClientAPI to the Alfresco Public API (JSON and CMIS)CMIS 1.0 SupportJSON REST API--Site Membership--Network/Site--Tags--Comments
  18. 18. How ToAlfrescoConnectionFactory connectionFactory = newAlfrescoConnectionFactory(consumerKey, consumerSecret);OAuth2Parameters parameters = new OAuth2Parameters();parameters.setRedirectUri("http://localhost:8080/alfoauthsample/mycallback.html");parameters.setScope(Alfresco.DEFAULT_SCOPE);parameters.setState("test");
  19. 19. How ToString authUrl =connectionFactory.getOAuthOperations().buildAuthenticateUrl(GrantType.AUTHORIZATION_CODE, parameters);//Do the dance here …AccessGrant accessGrant =connectionFactory.getOAuthOperations().exchangeForAccess(accessToken, redirectUri, null);//Persist your tokens here …
  20. 20. How ToConnection<Alfresco> connection =connectionFactory.createConnection(accessGrant);Alfresco alfresco = connection.getApi();//Use Alfresco public REST API hereNetwork homeNetwork = alfresco.getHomeNetwork();Person currentUser = alfresco.getCurrentUser();Member member =alfresco.addMember(network, site, memberId, Role.SiteConsumer);
  21. 21. How To//Get CMIS SessionSession session = alfresco.getCMISSession(network);ItemIterable<QueryResult> paginatedResults =session.query(SITES_QUERY, false, paginateContext).skipTo(count).getPage();Map<String, Object> properties = new HashMap<String, Object>();properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");properties.put(PropertyIds.NAME, document.getName());parent.createDocument(properties, document.getContentStream(), VersioningState.MAJOR);
  22. 22. How To//Get CMIS SessionSession session = alfresco.getCMISSession(network);ItemIterable<QueryResult> paginatedResults =session.query(SITES_QUERY, false, paginateContext).skipTo(count).getPage();Map<String, Object> properties = new HashMap<String, Object>();properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");properties.put(PropertyIds.NAME, document.getName());parent.createDocument(properties, document.getContentStream(), VersioningState.MAJOR);
  23. 23. No better than setUp() and tearDown()?• Fundamentally different.Thank you!http://www.springsource.org/spring-socialhttps://github.com/Alfresco/spring-social-alfrescojared.ottley@alfresco.comtwitter: @jottley
  24. 24. No better than setUp() and tearDown()?• Fundamentally different.Thank you!http://www.springsource.org/spring-socialhttps://github.com/Alfresco/spring-social-alfrescojared.ottley@alfresco.comtwitter: @jottley
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×