arlas-wui-toolkit / Exports / ArlasCollaborativesearchService

Class: ArlasCollaborativesearchService

Hierarchy

  • CollaborativesearchService

ArlasCollaborativesearchService

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ArlasCollaborativesearchService()

Overrides

CollaborativesearchService.constructor

Defined in

projects/arlas-toolkit/src/lib/services/startup/startup.service.ts:85

Properties

collaborationBus

collaborationBus: Subject<CollaborationEvent>

Bus of CollaborationEvent.

Inherited from

CollaborativesearchService.collaborationBus

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:12


collaborationErrorBus

collaborationErrorBus: Subject<Error>

Bus of Error.

Inherited from

CollaborativesearchService.collaborationErrorBus

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:50


collaborations

collaborations: Map<string, Collaboration>

Registry of Collaborations, Map of contributor identifier,Collaboration.

Inherited from

CollaborativesearchService.collaborations

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:20


collections

collections: Set<string>

ARLAS SERVER collections that declared in the contributos

Inherited from

CollaborativesearchService.collections

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:30


contribFilterBus

contribFilterBus: Subject<Contributor>

Bus of CollaborationEvent.

Inherited from

CollaborativesearchService.contribFilterBus

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:16


countAll

countAll: Observable<CollectionCount[]>

Number of entity return by the collaborativesearchService at any time

Inherited from

CollaborativesearchService.countAll

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:38


defaultCollection

defaultCollection: string

ARLAS SERVER collection used by default by the contributors.

Inherited from

CollaborativesearchService.defaultCollection

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:28


max_age

max_age: number

ARLAS SERVER max age cache used by the collaborativesearchService.

Inherited from

CollaborativesearchService.max_age

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:34


ongoingSubscribe

ongoingSubscribe: Subject<number>

Bus number of ongoing subscribe to the collaborativesearchService

Inherited from

CollaborativesearchService.ongoingSubscribe

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:42


registry

registry: Map<string, Contributor>

Registry of Contributor, Map of contributor identifier,Contributor.

Inherited from

CollaborativesearchService.registry

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:24


totalSubscribe

totalSubscribe: number

Bus number of ongoing subscribe to the collaborativesearchService

Inherited from

CollaborativesearchService.totalSubscribe

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:46

Methods

dataModelBuilder

dataModelBuilder(filter, changeOperator?): any

Parameters

Name Type Default value
filter any undefined
changeOperator boolean false

Returns

any

Overrides

CollaborativesearchService.dataModelBuilder

Defined in

projects/arlas-toolkit/src/lib/services/startup/startup.service.ts:89


describe

describe(collection, pretty?, max_age?): Observable<CollectionReferenceDescription>

Describe the structure and the content of the given collection.

Parameters

Name Type Description
collection string collection name
pretty? boolean Whether pretty print or not
max_age? number Duration of browser cache.s

Returns

Observable<CollectionReferenceDescription>

Inherited from

CollaborativesearchService.describe

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:300


disable

disable(contributorId): void

Disable a contributor collaboration from its identifier.

Parameters

Name Type
contributorId string

Returns

void

Inherited from

CollaborativesearchService.disable

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:260


enable

enable(contributorId): void

Enable a contributor collaboration from its identifier.

Parameters

Name Type
contributorId string

Returns

void

Inherited from

CollaborativesearchService.enable

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:256


getAllContributors

getAllContributors(): string[]

Retrieve all the contributor identifiers.

Returns

string[]

List of contributor idenfiers.

Inherited from

CollaborativesearchService.getAllContributors

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:265


getCollaboration

getCollaboration(contributorId): Collaboration

Retrieve the collaboration from a contributor identifier.

Parameters

Name Type Description
contributorId string Identifier of a contributor.

Returns

Collaboration

Collaboration.

Inherited from

CollaborativesearchService.getCollaboration

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:135


getConfigService

getConfigService(): ConfigService

Return the Configuraion Service.

Returns

ConfigService

ConfigService.

Inherited from

CollaborativesearchService.getConfigService

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:93


getDisableContributors

getDisableContributors(): string[]

Retrieve the contributor identifiers for which the collaboration is disabled.

Returns

string[]

List of contributor idenfiers.

Inherited from

CollaborativesearchService.getDisableContributors

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:275


getEnableContributors

getEnableContributors(): string[]

Retrieve the contributor identifiers for which the collaboration is enabled.

Returns

string[]

List of contributor idenfiers.

Inherited from

CollaborativesearchService.getEnableContributors

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:270


getExploreApi

getExploreApi(): ExploreApi

Return the ARLAS Explore API.

Returns

ExploreApi

ExploreApi.

Inherited from

CollaborativesearchService.getExploreApi

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:83


getFetchOptions

getFetchOptions(): Object

Return options used to fetch call.

Returns

Object

Object.

Name Type
credentials string
referrerPolicy? string
responseType? string
signal? any

Inherited from

CollaborativesearchService.getFetchOptions

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:68


getFinalFilter

getFinalFilter(filters): Filter

Parameters

Name Type
filters Filter[]

Returns

Filter

Inherited from

CollaborativesearchService.getFinalFilter

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:293


getUrl

getUrl(projection, filters, max_age?): string

Build query parameters from aggregation and filters

Parameters

Name Type
projection [aggregate | geoaggregate | geohashgeoaggregate | geotilegeoaggregate | count | search | geosearch | tiledgeosearch | shapesearch | shapeaggregate, Aggregation[]]
filters Filter[]
max_age? number

Returns

string

Url encoded string

Inherited from

CollaborativesearchService.getUrl

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:289


isEnable

isEnable(contributorId): boolean

Retrieve enabled parameter of collaboration from a contributor identifier.

Parameters

Name Type
contributorId string

Returns

boolean

Contributor collaboration enabled properties.

Inherited from

CollaborativesearchService.isEnable

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:280


list

list(pretty?): Observable<CollectionReferenceDescription[]>

Lists the collections configured in ARLAS.

Parameters

Name Type Description
pretty? boolean Whether pretty print or not

Returns

Observable<CollectionReferenceDescription[]>

Inherited from

CollaborativesearchService.list

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:305


register

register(identifier, contributor): void

Register contributor with its identifier in the map contributor registry.

Parameters

Name Type
identifier string
contributor Contributor

Returns

void

Inherited from

CollaborativesearchService.register

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:102


registerCollections

registerCollections(contributor): void

Register collections of the given contributor in a collections registry.

Parameters

Name Type
contributor Contributor

Returns

void

Inherited from

CollaborativesearchService.registerCollections

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:106


removeAll

removeAll(): void

Remove all the collaborations filters, notify the collaborationBus of a all removing changement.

Returns

void

Inherited from

CollaborativesearchService.removeAll

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:122


removeFilter

removeFilter(contributorId): void

Remove Filter from the registry of collaboration , notify the collaborationBus of a removing changement.

Parameters

Name Type Description
contributorId string Sting identifier of contributor.

Returns

void

Inherited from

CollaborativesearchService.removeFilter

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:118


resolveAggregation

resolveAggregation(projection, collaborations, collection, contributorId?, filter?, isFlat?, max_age?): Observable<AggregationResponse>

Resolve an ARLAS Server Aggregation request for an optional contributor and optional filters.

Parameters

Name Type Description
projection [aggregate, Aggregation[]] Type of projection of ARLAS Server request :Aggregation.
collaborations Map<string, Collaboration> -
collection any -
contributorId? string Identifier contributor to resolve the request with the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
isFlat? boolean Whether flatten json.
max_age? number Duration of browser cache.

Returns

Observable<AggregationResponse>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveAggregation

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:234


resolveButNotAggregation

resolveButNotAggregation(projection, collaborations, collection, contributorId?, filter?, isFlat?, max_age?): Observable<AggregationResponse>

Resolve an ARLAS Server Aggregation request with all the collaborations enabled in the collaboration registry except for the contributor given in second optionnal parameter.

Parameters

Name Type Description
projection [aggregate, Aggregation[]] Type of projection of ARLAS Server request:Aggregation.
collaborations Map<string, Collaboration> -
collection any -
contributorId? string Identifier contributor to resolve the request without the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
isFlat? boolean Whether flatten json.
max_age? number Duration of browser cache.

Returns

Observable<AggregationResponse>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveButNotAggregation

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:221


resolveButNotComputation

resolveButNotComputation(projection, collaborations, collection, contributorId?, filter?, isFlat?, max_age?): Observable<ComputationResponse>

Resolve an ARLAS Server Computation request with all the collaborations enabled in the collaboration registry except for the contributor given in second optionnal parameter.

Parameters

Name Type Description
projection [compute, ComputationRequest] Type of projection of ARLAS Server request : ComputationRequest.
collaborations Map<string, Collaboration> Map
collection any -
contributorId? string Identifier contributor to resolve the request without the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
isFlat? boolean Whether flatten json.
max_age? number Duration of browser cache.

Returns

Observable<ComputationResponse>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveButNotComputation

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:249


resolveButNotFeatureCollection

resolveButNotFeatureCollection(projection, collaborations, collection, isFlat?, contributorId?, filter?, max_age?): Observable<FeatureCollection>

Resolve an ARLAS Server Geosearch or Geoaggregate request with all the collaborations enabled in the collaboration registry except for the contributor given in second optionnal parameter.

Parameters

Name Type Description
projection [geosearch, Search] | [tiledgeosearch, TiledSearch] | [geohashgeoaggregate, GeohashAggregation] | [geotilegeoaggregate, GeoTileAggregation] | [geoaggregate, Aggregation[]] Type of projection of ARLAS Server request:Geosearch or Geoaggregate.
collaborations Map<string, Collaboration> -
collection any -
isFlat? boolean Boolean option to isFlat output geojson properties.
contributorId? string Identifier contributor to resolve the request without the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
max_age? number Duration of browser cache.

Returns

Observable<FeatureCollection>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveButNotFeatureCollection

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:185


resolveButNotFeatureCollectionWithAbort

resolveButNotFeatureCollectionWithAbort(projection, collaborations, collection, isFlat, abortableSignal, contributorId?, filter?, max_age?): Observable<FeatureCollection>

Parameters

Name Type
projection [geosearch, Search] | [tiledgeosearch, TiledSearch] | [geohashgeoaggregate, GeohashAggregation] | [geotilegeoaggregate, GeoTileAggregation] | [geoaggregate, Aggregation[]]
collaborations Map<string, Collaboration>
collection any
isFlat boolean
abortableSignal any
contributorId? string
filter? Filter
max_age? number

Returns

Observable<FeatureCollection>

Inherited from

CollaborativesearchService.resolveButNotFeatureCollectionWithAbort

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:193


resolveButNotHits

resolveButNotHits(projection, collaborations, collection, contributorId?, filter?, isFlat?, max_age?): Observable<Hits>

Resolve an ARLAS Server Search or Count request with all the collaborations enabled in the collaboration registry except for the contributor given in second optionnal parameter.

Parameters

Name Type Description
projection [search, Search] | [count, Count] Type of projection of ARLAS Server request:Search or Count.
collaborations Map<string, Collaboration> -
collection any -
contributorId? string Identifier contributor to resolve the request without the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
isFlat? boolean Whether flatten json.
max_age? number Duration of browser cache.

Returns

Observable<Hits>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveButNotHits

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:146


resolveButNotShapefile

resolveButNotShapefile(projection, collaborations, collection, isFlat?, contributorId?, filter?, max_age?): Observable<ArrayBuffer>

Parameters

Name Type
projection [shapeaggregate, Aggregation[]] | [shapesearch, Search]
collaborations Map<string, Collaboration>
collection any
isFlat? boolean
contributorId? string
filter? Filter
max_age? number

Returns

Observable<ArrayBuffer>

Inherited from

CollaborativesearchService.resolveButNotShapefile

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:189


resolveComputeHits

resolveComputeHits(projection, filters, collection, isFlat?, max_age?): Observable<Hits>

Resolve an ARLAS Server Search or Count request for an array of filter.

Parameters

Name Type Description
projection [search, Search] | [count, Count] Type of projection of ARLAS Server request :Search or Count .
filters Filter[] ARLAS API filters to resolve the request with compute
collection any -
isFlat? boolean Whether flatten json.
max_age? number Duration of browser cache.

Returns

Observable<Hits>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveComputeHits

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:171


resolveFeatureCollection

resolveFeatureCollection(projection, isFlat, collaborations, collection, contributorId?, filter?, max_age?): Observable<FeatureCollection>

Resolve an ARLAS Server Geosearch or Geoaggregate request for an optional contributor and optional filters.

Parameters

Name Type Description
projection [geosearch, Search] | [tiledgeosearch, TiledSearch] | [geohashgeoaggregate, GeohashAggregation] | [geotilegeoaggregate, GeoTileAggregation] | [geoaggregate, Aggregation[]] Type of projection of ARLAS Server request :Geosearch or Geoaggregate.
isFlat boolean Boolean option to flat output geojson properties.
collaborations Map<string, Collaboration> -
collection any -
contributorId? string Identifier contributor to resolve the request with the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
max_age? number Duration of browser cache.

Returns

Observable<FeatureCollection>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveFeatureCollection

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:207


resolveHits

resolveHits(projection, collaborations, collection, contributorId?, filter?, isFlat?, max_age?): Observable<Hits>

Resolve an ARLAS Server Search or Count request for an optional contributor and optional filters.

Parameters

Name Type Description
projection [search, Search] | [count, Count] Type of projection of ARLAS Server request :Search or Count .
collaborations Map<string, Collaboration> -
collection any -
contributorId? string Identifier contributor to resolve the request with the collaboration of this contributor.
filter? Filter ARLAS API filter to resolve the request with this filter in addition.
isFlat? boolean Whether flatten json.
max_age? number Duration of browser cache.

Returns

Observable<Hits>

ARLAS Server observable.

Inherited from

CollaborativesearchService.resolveHits

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:159


setCollaborations

setCollaborations(dataModel): void

Initialize all the contributor in the state of dataModel.

Parameters

Name Type
dataModel Object

Returns

void

Inherited from

CollaborativesearchService.setCollaborations

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:129


setConfigService

setConfigService(configService): void

Set the Configuraion Service.

Parameters

Name Type Description
configService ConfigService ConfigService.

Returns

void

Inherited from

CollaborativesearchService.setConfigService

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:98


setCountAll

setCountAll(collaborations): void

Update countAll property.

Parameters

Name Type
collaborations Map<string, Collaboration>

Returns

void

Inherited from

CollaborativesearchService.setCountAll

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:284


setExploreApi

setExploreApi(exploreApi): void

Set the ARLAS Explore API.

Parameters

Name Type
exploreApi ExploreApi

Returns

void

Inherited from

CollaborativesearchService.setExploreApi

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:88


setFetchOptions

setFetchOptions(fetchOptions): void

Set the fetch options.

Parameters

Name Type Description
fetchOptions any : Object.

Returns

void

Inherited from

CollaborativesearchService.setFetchOptions

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:78


setFilter

setFilter(contributorId, collaboration): void

Add Filter setted by a contributor in the registry of collaboration, notify the collaborationBus of a changement.

Parameters

Name Type Description
contributorId string Sting identifier of contributor.
collaboration Collaboration Collaboration added by the contributor.

Returns

void

Inherited from

CollaborativesearchService.setFilter

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:112


urlBuilder

urlBuilder(): string

Returns

string

Inherited from

CollaborativesearchService.urlBuilder

Defined in

node_modules/arlas-web-core/services/collaborativesearch.service.d.ts:124