suguk activity feed

29
SharePoint 2010 extending the activity feed [email protected] Principal Solutions Architect at Content and Code Wes Hackett @weshackett http://weshackett.com

Upload: wes-hackett

Post on 01-Jun-2015

1.893 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Suguk activity feed

SharePoint 2010extending the activity feed

[email protected]

Principal Solutions Architect at Content and Code

Wes Hackett

@weshackett http://weshackett.com

Page 2: Suguk activity feed

agenda

introductionZoomIn

out of the boxZoomIn

architectureZoomIn

developmentZoomIn

extensibilityZoomIn

known issuesZoomIn

questionsZoomIn

useful linksZoomIn

ZoomIn

Page 3: Suguk activity feed

ZoomIn

introduction

Page 4: Suguk activity feed

introductionaims of this session

examine the native SharePoint 2010 activity feed

describe how to extend it with custom activity types walkthrough a demo scenario

Page 5: Suguk activity feed

ZoomIn

out of the box

Page 6: Suguk activity feed

out of the boxactivity feed types

consolidatedthe consolidated feed is all the activity events being generated by colleaguesshown on the Newsfeed page

publishedThe published feed is all the activity events generated by that individualshown on the profile page

Page 7: Suguk activity feed

out of the boxnewsfeed page

newsfeed pagethis is a picture of the native newsfeed page

Page 8: Suguk activity feed

out of the boxactivity types

new membership sharing interests tagging by my colleague note board post tagging with my interests rating status message new colleague

Page 9: Suguk activity feed

out of the boxactivity types continued

job title change manager change new blog post workplace anniversary profile update upcoming birthday birthday upcoming workplace anniversary

Page 10: Suguk activity feed

out of the boxatom feeds

consolidatedthe consolidated feed are all the activity events being generated by colleagueshttp://<MySiteHost>/_layouts/activityfeed.aspx?consolidated=true

publishedthe published feed are the activity events being generated by an individualhttp://<MySiteHost>/_layouts/activityfeed.aspx?publisher=<accountname>

no web services

Page 11: Suguk activity feed

out of the boxOutlook 2010 integration

Outlook 2010 has the ability to display the SharePoint Activity Feed

configure using the Outlook 2010 Social Connector

Page 12: Suguk activity feed

ZoomIn

architecture

Page 13: Suguk activity feed

architecture

web partor

ATOM

activityobject model

gatherertimerjobs

user profile

user profile

social

? user interface

custom

source

Page 14: Suguk activity feed

ZoomIn

development

Page 15: Suguk activity feed

developmenttools and assemblies

tools Visual Studio 2010 + CKSDev ULSViewer

assemblies Microsoft.Office.Server Microsoft.Office.Server.UserProfiles

Page 16: Suguk activity feed

ZoomIn

extensibility

Page 17: Suguk activity feed

scenariosuggestions box

allow a user to make a suggestion on a site

promote this suggestion to their colleagues

NB: code example only NOT production ready

Page 18: Suguk activity feed

scenarioarchitecture

web partor

ATOM

activityobject model

suggestions

gatherertimerjob

gatherertimerjobs

user profile

user profile

social

user interface

suggestions list source

Page 19: Suguk activity feed

scenariosome prep

content type and site columnsprovides structure to the data

list definitionprovides a type of list with the content type and event receiver pre-bound

list instance in a siteprovides an instance for users to add suggestions

Page 20: Suguk activity feed

scenariosolution overview

list event receiverthis registers items for processing by the timer jobone technique, others might use SPQuery or change log approaches

timer jobprocesses the work items and passes them into the custom gathereruse a timer job for scale and security reasons, native approach

custom gathererthis is the element where activities are handledalso registers and unregisters the custom activity application

Page 21: Suguk activity feed

scenariolist event handler

item added event creates a ScheduledWorkItem with the

information about the list item you can confirm it has worked by

checking the Content database table ‘ScheduledWorkItems’

Page 22: Suguk activity feed

scenarioActivity application

register the Activity Application register the Activity Types

add activity templates

Farm scoped feature needs to be admin on the UPA

Page 23: Suguk activity feed

scenariotimer job

adds each work item into the gatherer

responsible for repeating the processing logic on a schedule

Page 24: Suguk activity feed

scenariocustom gatherer

provides the SPListItem to ProcessingItem conversion

provides the create activity event from ProcessingItem

publishes the activity events publishes the activity events to the

authors colleagues

Page 25: Suguk activity feed

ZoomIn

known issues

Page 26: Suguk activity feed

known issuesit isn’t Facebook

missing methodsmost of the ‘remove’ methods have not been implementedeg. ActivityApplicationsCollection.Remove throws an exception ‘NotImplementedException’

permissionssome actions require an elevated stateActivityEvent.CreateActivityEvent method requires ‘Full Control’ to the UPA

no ‘likes’ and ‘comments’there is no API in place to support ‘likes’ and ‘comments’ a-la Facebookrestrictive API means to create advanced functionality needs other services

Page 27: Suguk activity feed

ZoomIn

questions

Page 28: Suguk activity feed

ZoomIn

useful links

Page 29: Suguk activity feed

useful links

root of the MSDN namespace referencebit.ly/Ae6hAPindex of the SharePoint SDK articlesbit.ly/pn8t24 extending Activity Feed with ECM databit.ly/kWujgLthe native templatesbit.ly/zQC6K9