static osapi.jive.corev3.places

Static methods to create a new Place, retrieve a place by URI, or retrieve a paginated list of places. There are several Place types:

  • 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.

Methods

create(place,options)
POST /places

Retrieves

Place

Description

Create a new place.

Takes:
  • Place Description of the place to be created.
Options:
NameTypeRequiredDescription
fieldsStringfalseNames of the fields to be returned.
Retrieves:
  • Place Representation of the newly created place
  • get(options)
    GET /places

    Retrieves

    Place[]

    Description

    Return a paginated list of places that match the specified criteria.

    Options:
    NameTypeRequiredDescription
    countIntegerfalseMaximum number of places to return (default is 25)
    entityDescriptorStringfalseComma delimited list of objectType / objectID values (useful only for the Jive UI). When used other filters are not allowed
    fieldsStringfalseNames of the fields to be returned
    searchStringfalseOne 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*".
    startIndexIntegerfalseZero-relative index of the first place to be returned
    tagStringfalseComma delimited list of tag values, limiting results to places with one of those tags
    typeStringfalseComma delimited list of place types, limiting results to places of those types
    Retrieves:
  • Place[] Paginated list of matching places
  • get(options)
    GET /places/{uri}

    Retrieves

    Place

    Description

    Return a single place by its URI.

    Options:
    NameTypeRequiredDescription
    uriStringtrueURI of the place to get
    fieldsStringfalseNames of the fields to be returned
    Retrieves:
  • Place Representation of the requested place
  • 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:
    NameTypeRequiredDescription
    countIntegerfalseMaximum number of places to return (default is 25)
    fieldsStringfalseNames of the fields to be returned
    Retrieves:
  • Place[] List of recommended places
  • 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:
    NameTypeRequiredDescription
    countIntegerfalseMaximum number of places to return (default is 25)
    fieldsStringfalseNames of the fields to be returned
    Retrieves:
  • Place[] List of trending places
  • 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:
    NameTypeRequiredDescription
    typeStringfalsePlace type to be returned (blog, group, project, or space). If not specified, group will be assumed.
    errorFunctionfalseCallback function that will be called if an error occurs. Passed data object will include a message field containing the error message.
    successFunctionfalseCallback 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:
    NameTypeRequiredDescription
    countIntegerfalseMaximum number of results to be returned
    fieldsStringfalseNames of the fields to be returned
    nameonlyStringfalseFlag indicating whether to limit search results to only places that match by name (Defaults to false)
    searchStringfalseOne or more search terms, separated by commas. 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. Wildcards can be used, e.g. to search by substring use "*someSubstring*".
    startIndexIntegerfalseZero-relative index of the first result to be returned
    typeStringfalseSelect places that are of one of the specified types (separated by commas). Defaults to all available place types.
    Retrieves:
  • Place[] that are decorated with search result specific fields (highlightBody, highlightSubject, highlightTags, parentContent, parentPlace)