Communities クラス
組織内の Experience Cloud サイトに関する情報を取得します。
名前空間
Communities のメソッド
Communities のメソッドは次のとおりです。すべてのメソッドが静的です。
getCommunities()
コンテキストユーザーがアクセスできる Experience Cloud サイトのリストを取得します。
API バージョン
28.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.CommunityPage getCommunities()
戻り値
getCommunities(communityStatus)
コンテキストユーザーがアクセスできる Experience Cloud サイトのリストを状況を指定して取得します。
API バージョン
28.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.CommunityPage getCommunities(ConnectApi.CommunityStatus communityStatus)
パラメーター
- communityStatus
- 型: ConnectApi.CommunityStatus
-
communityStatus — Experience Cloud サイトの状況。値は次のとおりです。
- Live
- Inactive
- UnderConstruction
戻り値
getCommunity(communityId)
Experience Cloud サイトに関する情報を取得します。
API バージョン
28.0
ゲストユーザーが使用可能
35.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.Community getCommunity(String communityId)
パラメーター
- communityId
- 型: String
- Experience Cloud サイトの ID。null または internal は指定できません。