Newer Version Available
ManagedContent Class
Namespace
ManagedContent Methods
getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate) (Beta)
API Version
48.0
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getAllContent(String channelId, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate)
Parameters
- channelId
- Type: String
- ID of the channel.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- The developer name of the content version.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
Return Value
getAllDeliveryChannels(pageParam, pageSize) (Beta)
API Version
48.0
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentChannelCollection getAllDeliveryChannels(Integer pageParam, Integer pageSize)
Parameters
Return Value
getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getAllManagedContent(String communityId, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the community.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- The developer name of the content version.
Return Value
getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate) (Beta)
API Version
48.0
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getContentByIds(String channelId, List<String> managedContentIds, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate)
Parameters
- channelId
- Type: String
- ID of the channel.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- The developer name of the content version.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
Return Value
getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByIds(String communityId, List<String> managedContentIds, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the community.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- The developer name of the content version.
Return Value
getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopics(String communityId, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the community.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- The developer name of the content version.
Return Value
getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopicsAndIds(String communityId, List<String> managedContentIds, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the community.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- The developer name of the content version.