ActivityManager ActivityManager ActivityManager Class

Definition

This object, member, or enumeration is deprecated and is not intended to be used in your code. SharePoint 2013 includes the following APIs for working with feeds: .NET client, JavaScript, REST, and server. See Work with social feeds in SharePoint 2013 to choose the API for your specific feed-related programming tasks. Contains collections of ActivityApplication and ActivityType objects, and methods to generate feeds by getting existing instances of ActivityEvent objects.

public ref class ActivityManager
public class ActivityManager
Public Class ActivityManager
Inheritance
ActivityManagerActivityManagerActivityManager

Remarks

This object is constructed from the SPServiceContext object. This is the starting point for building any custom gatherer of activity events.

Constructors

ActivityManager() ActivityManager() ActivityManager()

Creates an instance of the ActivityManager class from the current SPServiceContext.

ActivityManager(UserProfile) ActivityManager(UserProfile) ActivityManager(UserProfile)

Creates an instance of the ActivityManager class from the current SPServiceContext and for the specified user, which must be the current user.

ActivityManager(UserProfile, SPServiceContext) ActivityManager(UserProfile, SPServiceContext) ActivityManager(UserProfile, SPServiceContext)

Creates an instance of the ActivityManager class from the specified SPServiceContext and for the specified user, which must be the current user.

Properties

ActivityApplications ActivityApplications ActivityApplications

Gets a collection of ActivityApplication objects that are managed by this ActivityManager object. These ActivityApplication objects are used by gatherers to manage ActivityType objects and create ActivityTemplates objects.

ActivityPreferences ActivityPreferences ActivityPreferences

Gets a collection of ActivityPreference objects that represent the ActivityType preferences of the current user.

ActivityTypes ActivityTypes ActivityTypes

Gets a collection of ActivityType objects managed by this ActivityManager.

CultureInfo CultureInfo CultureInfo

Gets or sets the specific culture associated with this ActivityManager.

CultureName CultureName CultureName

Gets or sets the name of the culture associated with this ActivityManager.

CurrentUserEmail CurrentUserEmail CurrentUserEmail

Gets a string representing the e-mail address of the current user.

CurrentUserId CurrentUserId CurrentUserId

Gets the record identifier associated with the current user’s user profile.

CurrentUserName CurrentUserName CurrentUserName

Gets a string representing the current user’s name.

Encoding Encoding Encoding

Gets or sets the character encoding for this ActivityManager object.

MaxBatchSizeRead MaxBatchSizeRead MaxBatchSizeRead

Gets or sets the maximum number of read operations that can be batched in one transaction.

MaxBatchSizeWrite MaxBatchSizeWrite MaxBatchSizeWrite

Gets or sets the maximum number of write operations that can be batched in one transaction.

MaxEventsPerBatch MaxEventsPerBatch MaxEventsPerBatch

Gets or sets the maximum number of events that can be returned by one database transaction.

MaxEventsPerFeedJobRun MaxEventsPerFeedJobRun MaxEventsPerFeedJobRun

Gets or sets a maximum number of events for each run of a feed job.

MaxRollupSize MaxRollupSize MaxRollupSize
MaxTimeToLiveSeconds MaxTimeToLiveSeconds MaxTimeToLiveSeconds
MaxUsersPerGathererRun MaxUsersPerGathererRun MaxUsersPerGathererRun
MinEventTime MinEventTime MinEventTime
PartitionID PartitionID PartitionID
ServiceContext ServiceContext ServiceContext

Gets the SPServiceContext object associated with this ActivityManager.

UserProfileManager UserProfileManager UserProfileManager

Gets the UserProfileManager object associated with this ActivityManager.

Methods

Dispose() Dispose() Dispose()

Releases unmanaged resources used by this ActivityManager.

GetActivitiesByMe() GetActivitiesByMe() GetActivitiesByMe()

Gets an ActivityEventsCollection containing all activity events published by the current user.

GetActivitiesByMe(Privacy) GetActivitiesByMe(Privacy) GetActivitiesByMe(Privacy)

Gets an ActivityEventsCollection object containing all activity events published by the current user that match the specified privacy level.

GetActivitiesByMe(DateTime) GetActivitiesByMe(DateTime) GetActivitiesByMe(DateTime)

Gets an ActivityEventsCollection object containing all activity events published by the current user after a specified time.

GetActivitiesByMe(Privacy, DateTime) GetActivitiesByMe(Privacy, DateTime) GetActivitiesByMe(Privacy, DateTime)

Gets an ActivityEventsCollection containing all activity events published by the current user that match the specified privacy level and that have occurred after the specified DateTime object.

GetActivitiesByMe(Privacy, Int32) GetActivitiesByMe(Privacy, Int32) GetActivitiesByMe(Privacy, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, published by the current user that match the specified privacy level.

GetActivitiesByMe(Privacy, DateTime, Int32) GetActivitiesByMe(Privacy, DateTime, Int32) GetActivitiesByMe(Privacy, DateTime, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, published by the current user that match the specified privacy level and that have occurred after the specified DateTime object.

GetActivitiesByUser(String, DateTime, Int32) GetActivitiesByUser(String, DateTime, Int32) GetActivitiesByUser(String, DateTime, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, published by the user with the specified name after a specified time.

GetActivitiesByUser(UserProfile, DateTime, Int32) GetActivitiesByUser(UserProfile, DateTime, Int32) GetActivitiesByUser(UserProfile, DateTime, Int32)

Gets an ActivityEventsCollection object containing all activity events, up to a specified maximum number, published by the specified user that have been published after the specified DateTime.

GetActivitiesByUser(String, Int32) GetActivitiesByUser(String, Int32) GetActivitiesByUser(String, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number.

GetActivitiesByUser(String, DateTime) GetActivitiesByUser(String, DateTime) GetActivitiesByUser(String, DateTime)

Gets an ActivityEventsCollection object containing all activity events published by the user with the specified name after a specified time.

GetActivitiesByUser(UserProfile, DateTime) GetActivitiesByUser(UserProfile, DateTime) GetActivitiesByUser(UserProfile, DateTime)

Gets an ActivityEventsCollection object containing all activity events published by the specified user that have been published after the specified DateTime.

GetActivitiesByUser(String) GetActivitiesByUser(String) GetActivitiesByUser(String)

Gets an ActivityEventsCollection object containing all activity events published by the user with the specified name.

GetActivitiesByUser(UserProfile) GetActivitiesByUser(UserProfile) GetActivitiesByUser(UserProfile)

Gets an ActivityEventsCollection object containing all activity events published by the specified user.

GetActivitiesByUser(UserProfile, Int32) GetActivitiesByUser(UserProfile, Int32) GetActivitiesByUser(UserProfile, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, published by the specified user.

GetActivitiesForMe() GetActivitiesForMe() GetActivitiesForMe()

Gets an ActivityEventsCollection containing all ActivityEvent objects associated with ActivityType objects that represent activity types that are in the current user’s preferences.

GetActivitiesForMe(DateTime) GetActivitiesForMe(DateTime) GetActivitiesForMe(DateTime)

Gets an ActivityEventsCollection object containing activity events that have occurred after a specified DateTime and associated with ActivityType objects that represent activity types that are in the current user's preferences.

GetActivitiesForMe(Int32) GetActivitiesForMe(Int32) GetActivitiesForMe(Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, associated with ActivityType objects that represent activity types that are in the current user’s preferences.

GetActivitiesForMe(DateTime, Int32) GetActivitiesForMe(DateTime, Int32) GetActivitiesForMe(DateTime, Int32)

Gets an ActivityEventsCollection object containing activity events, up to a specified maximum number, that have occurred after a specified DateTime and associated with ActivityType objects that represent activity types that are in the current user’s preferences.

PrepareToAllowSchemaChanges() PrepareToAllowSchemaChanges() PrepareToAllowSchemaChanges()

Implements copy-on-write behavior for collections inside this ActivityManager object, so that collections within the cached ActivityManager (stored in the User Profile Application) are not modified while any updates are being made.

Extension Methods

ToJson(Object) ToJson(Object) ToJson(Object)

Applies to