File

src/lib/services/sz-prefs.service.ts

Description

Graph related preferences bus class. used by SzPrefsService to store it's graph related prefs. Should really be used from SzPrefsService context, not on its own.

Example :
this.prefs.graph.showMatchKeys = true;
this.prefs.graph.buildOut =  5;
Example :
this.prefs.graph.prefsChanged.subscribe( (prefs) => { console.log('graph pref change happened.', prefs); })

Extends

SzSdkPrefsBase

Index

Properties
Methods
Accessors

Constructor

constructor()

publish out a "first" real payload so that subscribers get an initial payload from this subclass instead of the empty superclass

Properties

jsonKeys
Type : []
Default value : [ 'openInNewTab', 'openInSidePanel', 'dataSourceColors', 'showLinkLabels', 'rememberStateOptions', 'maxDegreesOfSeparation', 'maxEntities', 'buildOut', 'dataSourcesFiltered', 'matchKeysIncluded', 'matchKeyTokensIncluded', 'matchKeyCoreTokensIncluded', 'neverFilterQueriedEntityIds', 'queriedEntitiesColor', 'focusedEntitiesColor', 'linkColor', 'indirectLinkColor', 'unlimitedMaxEntities', 'unlimitedMaxScope', 'suppressL1InterLinks', 'matchKeyTokenSelectionScope' ]

the keys of member setters or variables in the object to output in json, or to take as json input

Public bulkSet
Type : boolean
Default value : false

during a bulk property set, set this to true to not publish change events on every single value change

Public prefChanged
Type : Subject<literal type>
Default value : new Subject<{name: string, value: any}>()

subject that can be subscribed to for INDIVIDUAL value change notifications.

Public prefsChanged
Type : BehaviorSubject<any>
Default value : new BehaviorSubject<any>(this.toJSONObject())

behavior subject that can be subscribed to for change notifications.

typemap
Type : object
Default value : {}

Methods

Public fromJSONObject
fromJSONObject(value: string)

populate values by calling setters with the same names as json keys

Parameters :
Name Type Optional
value string No
Returns : void
Public getPublicPropertiesSchema
getPublicPropertiesSchema()

gets an array of all public json properties and their types

Returns : {}
Public toJSONObject
toJSONObject()

get shallow JSON copy of object state. properties are filtered by members of jsonKeys

Returns : {}
Public toJSONString
toJSONString()

get object state representation as a string

Returns : string

Accessors

openInNewTab
getopenInNewTab()

open graph entity clicks in new tab

Returns : boolean
setopenInNewTab(value: boolean)

open graph entity clicks in new tab

Parameters :
Name Type Optional
value boolean No
Returns : void
openInSidePanel
getopenInSidePanel()

open graph entity clicks in side panel

Returns : boolean
setopenInSidePanel(value: boolean)

open graph entity clicks in side panel

Parameters :
Name Type Optional
value boolean No
Returns : void
dataSourceColors
getdataSourceColors()

colors to apply to entity node when belonging to particular datasources

setdataSourceColors(value: SzDataSourceComposite[])

colors to apply to entity node when belonging to particular datasources

Parameters :
Name Type Optional
value SzDataSourceComposite[] No
Returns : void
showLinkLabels
getshowLinkLabels()

show match keys/edge labels on relationships

Returns : boolean
setshowLinkLabels(value: boolean)

show match keys/edge labels on relationships

Parameters :
Name Type Optional
value boolean No
Returns : void
rememberStateOptions
getrememberStateOptions()

whether or not to publish change events on property value changes. useful for not getting notified on bulk property sets.

Returns : boolean
setrememberStateOptions(value: boolean)

whether or not to publish change events on property value changes. useful for not getting notified on bulk property sets.

Parameters :
Name Type Optional
value boolean No
Returns : void
maxDegreesOfSeparation
getmaxDegreesOfSeparation()

maximum degrees of separatation between relationships

Returns : number
setmaxDegreesOfSeparation(value: number)

maximum degrees of separatation between relationships

Parameters :
Name Type Optional
value number No
Returns : void
maxEntities
getmaxEntities()

maximum number of entities to show

Returns : number
setmaxEntities(value: number)

maximum number of entities to show

Parameters :
Name Type Optional
value number No
Returns : void
buildOut
getbuildOut()

how many nodes away from queried entity to show

Returns : number
setbuildOut(value: number)

how many nodes away from queried entity to show

Parameters :
Name Type Optional
value number No
Returns : void
dataSourcesFiltered
getdataSourcesFiltered()

hide any entity node when belonging to particular datasources

Returns : string[]
setdataSourcesFiltered(value: string[])

hide any entity node when belonging to particular datasources

Parameters :
Name Type Optional
value string[] No
Returns : void
matchKeysIncluded
getmatchKeysIncluded()

hide any entity node when relationship does not contain a particular match key

Returns : string[]
setmatchKeysIncluded(value: string[])

hide any entity node when relationship does not contain a particular match key

Parameters :
Name Type Optional
value string[] No
Returns : void
matchKeyTokensIncluded
getmatchKeyTokensIncluded()

hide any entity node when relationship does not contain a particular match key

Returns : string[]
setmatchKeyTokensIncluded(value: string[])

hide any entity node when relationship does not contain a particular match key

Parameters :
Name Type Optional
value string[] No
Returns : void
matchKeyCoreTokensIncluded
getmatchKeyCoreTokensIncluded()

hide any entity node when relationship does not contain a particular match key

Returns : string[]
setmatchKeyCoreTokensIncluded(value: string[])

hide any entity node when relationship does not contain a particular match key

Parameters :
Name Type Optional
value string[] No
Returns : void
neverFilterQueriedEntityIds
getneverFilterQueriedEntityIds()

never filter out the entities that were explicity declared in query

Returns : boolean
setneverFilterQueriedEntityIds(value: boolean)

never filter out the entities that were explicity declared in query

Parameters :
Name Type Optional
value boolean No
Returns : void
queriedEntitiesColor
getqueriedEntitiesColor()

color of active or queried for entity or entitities

Returns : string | undefined
setqueriedEntitiesColor(value: string | undefined)

color of active or queried for entity or entitities

Parameters :
Name Type Optional
value string | undefined No
Returns : void
focusedEntitiesColor
getfocusedEntitiesColor()

color of focused/expanded entity or entitities

Returns : string | undefined
setfocusedEntitiesColor(value: string | undefined)

color of focused/expanded entity or entitities

Parameters :
Name Type Optional
value string | undefined No
Returns : void
linkColor
getlinkColor()

color of link lines

Returns : string | undefined
setlinkColor(value: string | undefined)

color of link lines

Parameters :
Name Type Optional
value string | undefined No
Returns : void
indirectLinkColor
getindirectLinkColor()

color of link lines that are not directly connected to a focal entity

Returns : string | undefined
setindirectLinkColor(value: string | undefined)

color of link lines that are not directly connected to a focal entity

Parameters :
Name Type Optional
value string | undefined No
Returns : void
unlimitedMaxEntities
getunlimitedMaxEntities()

whether or not to ignore the maxEntities value and always get all related entities

Returns : boolean
setunlimitedMaxEntities(value: boolean)

whether or not to ignore the maxEntities value and always get all related entities

Parameters :
Name Type Optional
value boolean No
Returns : void
unlimitedMaxScope
getunlimitedMaxScope()

whether or not to ignore the maxDegreesOfSeparation value and always get build out to max

Returns : boolean
setunlimitedMaxScope(value: boolean)

whether or not to ignore the maxDegreesOfSeparation value and always get build out to max

Parameters :
Name Type Optional
value boolean No
Returns : void
suppressL1InterLinks
getsuppressL1InterLinks()

whether or not to ignore the maxDegreesOfSeparation value and always get build out to max

Returns : boolean
setsuppressL1InterLinks(value: boolean)

whether or not to ignore the maxDegreesOfSeparation value and always get build out to max

Parameters :
Name Type Optional
value boolean No
Returns : void
matchKeyTokenSelectionScope
getmatchKeyTokenSelectionScope()

whether or not match key token filtering should apply to ALL entities OR just relationships that are directly related to the focal entity

setmatchKeyTokenSelectionScope(value: SzMatchKeyTokenFilterScope)

whether or not match key token filtering should apply to ALL entities OR just relationships that are directly related to the focal entity

Parameters :
Name Type Optional
value SzMatchKeyTokenFilterScope No
Returns : void

results matching ""

    No results matching ""