Top level api object from which all other api modules are available. ConceptService class
A Service class filled with utility functions for Concept items and enhanced data loading. ConceptService is accessed through the writer
Available operations to register callback handlers
object
Get loaded property map
Returns: object
- PropertyMap
Function to register handlers for specific ConceptType operations
Param | Type | Description |
---|---|---|
Function to remove registered handler
boolean
Function to check if a specific conceptType has a registered handler for a specific operation
Returns: boolean
- if a handler has been registered
Function to trigger registered handler for conceptType operations
Get article concept by uuid
array
Get concepts of a specific type, currently in the article
Returns: array
- ConceptItems
Add concept link to article
Add an array of concept links to article
Update concept rel
Update existing concept link in article
Deprecated
Remove concept link from article
Remove an array of concept links from article
Remove all links of a specific type from the article
string
Recursive function to extract n number of parent names
Returns: string
- Broader names combine
string
Get the actual concept XML from storage
Returns: string
- XML response
Get the concept type config, cached or remote
Create a new concept item in storage
Update the actual concept item in storage
object
fetch remaining props (not stored on the article) from oc
Returns: object
- conceptItem
array
Search for concepts
Returns: array
- response An array with result objects
array
A search Concept function Will use submitted query to search for items with contenttype concept
Returns: array
- searchResult
array
Get concepts from remote storage by concept-type
Returns: array
- array of concepts with matching type
Get all concept-groups by group-type (subType), optionally include all concepts of subtype, that does not have an associated group
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type |
---|---|
Param | Type | Description |
---|---|---|
Param | Type | Default | Description |
---|---|---|---|
Param | Type | Default | Description |
---|---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Default | Description |
---|---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Default | Description |
---|---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type |
---|---|
Param | Type |
---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Default | Description |
---|---|---|---|
conceptType
string
Required - ex. 'x-im/category'
operation
number
Required - ex. ConceptService.operations.ADD
handler
function
Required - function that will be called when operation is triggered
conceptType
string
Required - ex. 'x-im/category'
operation
number
Required - ex. ConceptService.operations.ADD
handler
function
Required - function that was registered as callback for the operation
conceptType
string
Required - ex. 'x-im/category'
operation
number
Required - ex. 'ADD' or ConceptService.operations.ADD
operation
number
Required - ex. 'ADD' or ConceptService.operations.ADD
conceptItem
object
Required - POJSO representation of a x-im concept
uuid
sting
conceptType
string
Required - 'x-im/xxx'
multipleTypes
array
Required - ex. ['x-im/xxx', 'x-im/yyy']
subtypes
array
Required - ex. ['position', 'polygon']
conceptItem
object
Required - POJSO representation of a x-im concept
triggerDocumentChanged
boolean
true
Required - set to false to suppress document changed event, default is set to true
conceptItems
Array.<object>
Required - Array of POJSOs representation of a x-im concept
triggerDocumentChanged
boolean
true
Required - set to false to suppress document changed event, default is set to true
conceptItem
object
Required - POJSO representation of a x-im concept
conceptItem
object
Required - POJSO representation of a x-im concept
triggerDocumentChanged
boolean
true
Required - set to false to suppress document changed event, default is set to true
conceptItem
object
Required - POJSO representation of a x-im concept
conceptItems
Array.<object>
Required - Array of POJSOs representations of a x-im concepts
conceptType
string
Required - the concept type to remove from document
conceptItem
object
Required - POJSO representation of a x-im concept
truncated
boolean
false
conceptItem
object
Required - POJSO representation of a x-im concept
conceptItem
object
Required - POJSO representation of a concept
xml
string
uuid
string
xml
string
conceptItem
object
Required - POJSO representation of a x-im concept
string
object.uuid
Required - must be a valid OC uuid
args
object
Required - Objects with search-related properties optional Arg-props
conceptTypes
string
| array
Required - string or array, like 'x-im/story' or ['x-im/tag', 'x-im/category']
term
string
Required - the term to look for in Concept name and description
subtypes
object
Required - ['position', 'polygon']
associatedWith
string
Required - x-im concept-type to which current type is associated, like 'x-im/channel'
allowedStatuses
array
| string
Required - Optional array with allowed statuses
customQuery
string
Required - Optional string with OC query to be included in search (like: Active:false)
query
string
Required - a open content query like "ConceptAuthorEmail:robert.reporter@example.com"
conceptType
string
Required - eg x-im/category
groupType
string
Required - what type should the group be set to handle (ConceptGroupSubTypeFull)
includeConceptsWithoutGroup
boolean
false
Required - include all concepts of subtype, that does not have an associated group, defaults to false