• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Spring Social, Alfresco and Spring-Social-Alfresco
 

Spring Social, Alfresco and Spring-Social-Alfresco

on

  • 576 views

Lightning talk On Alfresco and Spring Social

Lightning talk On Alfresco and Spring Social

Statistics

Views

Total Views
576
Views on SlideShare
575
Embed Views
1

Actions

Likes
1
Downloads
3
Comments
0

1 Embed 1

http://www.linkedin.com 1

Accessibility

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

    Spring Social, Alfresco and Spring-Social-Alfresco Spring Social, Alfresco and Spring-Social-Alfresco Presentation Transcript

    • 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 DropboxSpring Social FlattrSpring Social FlickrSpring Social FoursquareSpring Social GeekListSpring Social GoogleSpring Social Instagram
    • 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
    • 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 1.0 SupportJSON REST API--Site Membership--Network/Site--Tags--Comments
    • 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
    • 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");
    • 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 …
    • 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);
    • 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);
    • 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);
    • 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
    • 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