この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

Newer Version Available

This content describes an older version of this product. View Latest

Communities クラス

組織内のコミュニティに関する一般情報にアクセスします。

名前空間

ConnectApi

Communities メソッド

Communities のメソッドは次のとおりです。すべてのメソッドが静的です。

getCommunities()

コンテキストユーザがアクセスできるコミュニティのリストを返します。

API バージョン

28.0

Chatter が必要かどうか

いいえ

署名

public static ConnectApi.CommunityPage getCommunities()

戻り値

型: ConnectApi.CommunityPage

getCommunities(communityStatus)

コンテキストユーザがアクセスできる、指定された状況のコミュニティのリストを返します。

API バージョン

28.0

Chatter が必要かどうか

いいえ

署名

public static ConnectApi.CommunityPage getCommunities(ConnectApi.CommunityStatus communityStatus)

パラメータ

communityStatus
型: ConnectApi.​CommunityStatus
communityStatusコミュニティの状況を指定します。値は次のとおりです。
  • Live
  • Inactive
  • UnderConstruction

戻り値

型: ConnectApi.CommunityPage

getCommunity(communityId)

特定のコミュニティに関する情報を返します。

API バージョン

28.0

ゲストユーザが使用可能

35.0

Chatter が必要かどうか

いいえ

署名

public static ConnectApi.Community getCommunity(String communityId)

パラメータ

communityId
型: String
communityId の ID を指定します。null または 'internal' は指定できません。

戻り値

型: ConnectApi.​Community