arlas-wui-toolkit / Exports / ArlasTagService
Class: ArlasTagService
Constants used to fill up our data base.
Implements
OnDestroy
Table of contents
Constructors
Properties
Methods
- addTag
- createPayload
- createPropagationPayload
- followStatus
- list
- ngOnDestroy
- postTagData
- removeTag
- setOptions
- unfollowStatus
Constructors
constructor
• new ArlasTagService(getOptions
, collaborativeSearchService
, configService
, snackBar
, authService
, arlasSettingsService
)
Parameters
Name | Type |
---|---|
getOptions |
any |
collaborativeSearchService |
ArlasCollaborativesearchService |
configService |
ArlasConfigService |
snackBar |
MatSnackBar |
authService |
AuthentificationService |
arlasSettingsService |
ArlasSettingsService |
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:62
Properties
isProcessing
• isProcessing: boolean
= false
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:51
processStatus
• processStatus: Map
<string
, TaggerResponse
>
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:53
status
• status: Subject
<Map
<string
, boolean
>>
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:52
taggableFields
• taggableFields: any
[] = []
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:50
Methods
addTag
▸ addTag(path
, value
, propagateField?
, propagateUrl?
, operationName?
): void
Parameters
Name | Type |
---|---|
path |
string |
value |
string | number |
propagateField? |
string |
propagateUrl? |
string |
operationName? |
string |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:95
createPayload
▸ createPayload(label
, path
, value?
): Object
Parameters
Name | Type |
---|---|
label |
string |
path |
string |
value? |
string | number |
Returns
Object
Name | Type |
---|---|
label? |
string |
propagation? |
any |
search |
any |
tag? |
any |
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:117
createPropagationPayload
▸ createPropagationPayload(propagateField?
, propagateUrl?
): Object
Parameters
Name | Type |
---|---|
propagateField? |
string |
propagateUrl? |
string |
Returns
Object
Name | Type |
---|---|
field |
string |
filter? |
any |
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:142
followStatus
▸ followStatus(response
): void
Parameters
Name | Type |
---|---|
response |
any |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:211
list
▸ list(): Observable
<TagRefRequest
[]>
Returns
Observable
<TagRefRequest
[]>
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:222
ngOnDestroy
▸ ngOnDestroy(): void
Returns
void
Implementation of
OnDestroy.ngOnDestroy
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:233
postTagData
▸ postTagData(data
, mode?
): void
Parameters
Name | Type | Default value |
---|---|---|
data |
any |
undefined |
mode |
string |
'tag' |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:158
removeTag
▸ removeTag(path
, value?
, propagateField?
, propagateUrl?
, operationName?
): void
Parameters
Name | Type |
---|---|
path |
string |
value? |
string | number |
propagateField? |
string |
propagateUrl? |
string |
operationName? |
string |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:106
setOptions
▸ setOptions(options
): void
Parameters
Name | Type |
---|---|
options |
any |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:229
unfollowStatus
▸ unfollowStatus(responseId
): void
Parameters
Name | Type |
---|---|
responseId |
string |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/tag/tag.service.ts:226