static
osapi.jive.corev3.places
Web service endpoints for functionality that is common to all places. The standard place types (and corresponding entities) are:
blog
(Blog) - a blog, associated with this place, in which people can create posts related to activity that is coordinated in this place.group
(Group) - a social group, with defined members, typically focused on a particular topic.project
(Project) - a project (with associated tasks) to track progress towards particular goals.space
(Space) - a formally defined (typically around departmental or topical hierarchies) location for communication about a particular topic.
See Place Use Cases for usage examples.
Methods
get(options)
GET /places
Retrieves
Place[]
Description
Return a paginated list of places that match the specified criteria.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Maximum number of places to return (default is 25) |
entityDescriptor | String | false | Comma delimited list of objectType / objectID values (useful only for the Jive UI). When used other filters are not allowed |
fields | String | false | Names of the fields to be returned |
search | String | false | One or more search terms separated by commas, limiting results to places that match the terms. Wildcards can be used, e.g. to search by substring use "*someSubstring*". |
startIndex | Integer | false | Zero-relative index of the first place to be returned |
tag | String | false | Comma delimited list of tag values, limiting results to places with one of those tags |
type | String | false | Comma delimited list of place types, limiting results to places of those types |
Retrieves:
get(options)
GET /places/{uri}
Retrieves
Place
Description
Return a single place by its URI.
Options:
Name | Type | Required | Description |
---|---|---|---|
uri | String | true | URI of the place to get |
fields | String | false | Names of the fields to be returned |
Retrieves:
getRecommendedPlaces(options)
GET /places/recommended
Retrieves
Place[]
Description
Return a list of recommended places. This feature is only available when Jive has enabled the recommender. Use getPropertyMetadata({name:'feature.recommender.enabled'}) to figure out whether recommendation service is enabled or not.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Maximum number of places to return (default is 25) |
fields | String | false | Names of the fields to be returned |
Retrieves:
Since: 3.1
getTrendingPlaces(options)
GET /places/trending
Retrieves
Place[]
Description
Return a list of trending places. This feature is only available when Jive has enabled the recommender. Use getPropertyMetadata({name:'feature.recommender.enabled'}) to figure out whether recommendation service is enabled or not.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Maximum number of places to return (default is 25) |
fields | String | false | Names of the fields to be returned |
Retrieves:
Since: 3.1
requestPicker(options)
Retrieves
Object
Description
Request the Jive container to prompt the user to select a place. When the user has done so, the
success
callback will be called, passing in the place object representing the selected
place. If the user closes the picker dialog without selecting a place, no callback will occur. An
example call:
osapi.jive.corev3.places.requestPicker({ type : "space", success : function(data) { // "data" will be the Space object (in this case) selected by the user } };
Availability:
Available only within a Jive App that has included the jive-core-v3
feature.
Options:
Name | Type | Required | Description |
---|---|---|---|
type | String | false | Place type to be returned (blog , group , project ,
or space ). If not specified, group will be assumed. |
error | Function | false | Callback function that will be called if an error occurs. Passed data object will
include a message field containing the error message. |
success | Function | false | Callback function that will be called if the user successfully selects a place. Passed data object will be the place object for that place, including all of the instance methods |
search(options)
GET /search/places
Retrieves
Place[]
Description
Search for and return places that match the specified filter criteria.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Maximum number of results to be returned |
fields | String | false | Names of the fields to be returned |
nameonly | String | false | Flag indicating whether to limit search results to only places that match by name (Defaults to false ) |
search | String | false | One or more search terms, separated by commas. This filter is required. You must escape any of the following special characters embedded in the search terms: comma (","), backslash ("\"), left parenthesis ("("), and right parenthesis(")"), by preceding them with a backslash. |
startIndex | Integer | false | Zero-relative index of the first result to be returned |
type | String | false | Select places that are of one of the specified types (separated by commas). Defaults to all available place types. |
Retrieves:
highlightBody
, highlightSubject
, highlightTags
,
parentContent
, parentPlace
)