Class SocialFollowingManager

Provides properties and methods for managing a user's list of followed actors. Actors can be users, documents, sites, and tags.

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(context: ClientRuntimeContext): SocialFollowingManager

Parameters

Returns

SocialFollowingManager

Methods

public customFromJson(initValue: any): boolean

Parameters

  • initValue: any

Returns

boolean

public follow(actor: SocialActorInfo): IntResult

Adds the specified actor to the current user's list of followed items. Returns one of the following values, wrapped into the SP.IntResult object: 0 = ok, 1 = alreadyFollowing, 2 = limitReached, 3 = internalError

Parameters

Returns

IntResult

public fromJson(initValue: any)

Parameters

  • initValue: any

public getFollowed(types: SocialActorTypes): SocialActor[]

Parameters

Returns

SocialActor[]

public getFollowedCount(types: SocialActorTypes): IntResult

Parameters

Returns

IntResult

public getFollowers(): SocialActor[]

Returns the users who are followers of the current user.

Returns

SocialActor[]

public getSuggestions(): SocialActor[]

Returns

SocialActor[]

public get_context(): ClientRuntimeContext

Returns

ClientRuntimeContext

public get_followedDocumentsUri(): string

URI to a site that lists the current user's followed documents.

Returns

string

public get_followedSitesUri(): string

URI to a site that lists the current user's followed sites.

Returns

string

public get_objectVersion(): string

Returns

string

public get_path(): ObjectPath

Returns

ObjectPath

public get_serverObjectIsNull(): boolean

Returns

boolean

public get_typedObject(): ClientObject

Returns

ClientObject

public isFollowed(actor: SocialActorInfo): BooleanResult

Parameters

Returns

BooleanResult

public isObjectPropertyInstantiated(propertyName: string): boolean

Parameters

  • propertyName: string

Returns

boolean

public isPropertyAvailable(propertyName: string): boolean

Parameters

  • propertyName: string

Returns

boolean

public refreshLoad()

public retrieve()

public retrieve(propertyNames: Array<string>)

Parameters

  • propertyNames: Array<string>

public set_objectVersion(value: string)

Parameters

  • value: string

public stopFollowing(actor: SocialActorInfo): BooleanResult

Parameters

Returns

BooleanResult