static
osapi.jive.corev3.search
Static class for searching objects by extended properties (
ExtProps
).Methods
↑
List of objects matching property key or value. The list can contain any of following objects
(Content
or Person
or Place)
byExtProp(options)
GET /extprops/{key}/{value}
Retrieves
Content
Description
Return a List of objects by key or value.
Options:
Name | Type | Required | Description |
---|---|---|---|
key | String | true | Property key |
value | String | true | Property value |
fields | String | false | Names of the fields to be returned |
Retrieves:
↑
requestPicker(options)
Retrieves
Object
Description
Request the Jive container to prompt the user to
select a single person, place, or piece of content. When
the user has done so the success
callback
will be called, passing in an object representing the
selected person, place or piece of content.
The selection can be limited to just one or two of
those categories by providing options
excludeContent
, excludePlaces
,
or excludePeople
.
If the user closes the picker without selecting anything, no callback will occur. An example call:
osapi.jive.corev3.search.requestPicker({ excludePlaces : true, success : function(data) { // "data" will be a Person object or an // object representing a piece of content // selected by the user } };
Availability:
Available only within a Jive App that has included the jive-core-v3
feature.
Options:
Name | Type | Required | Description |
---|---|---|---|
excludeContent | Boolean | false | Flag indicating that the user is
not allowed to select content (default is false ) |
excludePlaces | Boolean | false | Flag indicating that the user is not
allowed to select a place (default is false ) |
excludePeople | Boolean | false | Flag indicating that the user is not
allowed to select a person (default is false ) |
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 person, place, or piece of content. Passed data object will be a corresponding object, including all of the instance methods |