Constructor
new SearchCustomizationService()
Requires:
Requires
Methods
deleteCustomizationById(id) → {Promise}
Delete customization identified by id
Parameters:
Name | Type | Description |
---|---|---|
id |
string | idHash of customization to be deleted. |
Returns:
Promise that if is resolved successfully will contain the requested data
- Type
- Promise
destroy()
Clears up customization service
getCustomizationById(id) → {object}
Returns customization identified by id (idHash)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | idHash of customization to be retrieved. |
Returns:
customization payload if available
- Type
- object
save(id, payload) → {*}
Parameters:
Name | Type | Description |
---|---|---|
id |
string | idHash against which customization will be persisted. |
payload |
object | Actual customization object, should be valid JSON object |
Returns:
customization
- Type
- *
saveSearchCustomization(id, searchCustomization) → {*}
Parameters:
Name | Type | Description |
---|---|---|
id |
string | idHash against which customization will be persisted. |
searchCustomization |
object | Search customization object, should be valid JSON object |
Returns:
customization
- Type
- *
saveSectionCustomization(id, sectionCustomization) → {*}
Parameters:
Name | Type | Description |
---|---|---|
id |
string | idHash against which customization will be persisted. |
sectionCustomization |
object | Section customization object, should be valid JSON object |
Returns:
customization
- Type
- *