src/lib/services/sz-search.service.ts
Properties |
|
Methods |
|
constructor(entityDataService: EntityDataService, configService: ConfigService)
|
|||||||||
Parameters :
|
Public clearCurrentSearchState |
clearCurrentSearchState()
|
clears out current search parameters and search results.
Returns :
void
|
Public getAttributeTypes |
getAttributeTypes()
|
get list of characteristics as attribute types
Returns :
Observable<SzAttributeType[]>
|
Public getEntityById | ||||||||||||||||
getEntityById(entityId: SzEntityIdentifier, withRelated, detailLevel)
|
||||||||||||||||
get an SzEntityData model by providing an entityId.
Parameters :
Returns :
Observable<SzEntityData>
|
Public getEntityByRecordId | ||||||||||||||||||||
getEntityByRecordId(dsName: string, recordId: string | number, withRelated, detailLevel)
|
||||||||||||||||||||
get an SzEntityData model by providing an datasource and record id.
Parameters :
Returns :
Observable<SzEntityData>
|
Public getMappingAttributes |
getMappingAttributes()
|
Returns :
Observable<SzAttributeType[]>
|
Public getRecordById | ||||||||||||||||
getRecordById(dsName: string, recordId: string | number, withRelated)
|
||||||||||||||||
get an SzEntityRecord model by providing an datasource and record id.
Parameters :
Returns :
Observable<SzEntityRecord>
|
Public getSearchParams |
getSearchParams()
|
get the current search params.
Returns :
SzEntitySearchParams
|
Public getSearchResults |
getSearchResults()
|
get the current search results from the last search.
Returns :
[] | null
|
Public searchByAttributes | ||||||
searchByAttributes(searchParms: SzEntitySearchParams)
|
||||||
perform a search request againt the data source.
Parameters :
Returns :
Observable<SzAttributeSearchResult[]>
|
Public setSearchParam |
setSearchParam(paramName: any, value: any)
|
set an individual search parameter.
Returns :
void
|
Public setSearchResults | ||||||
setSearchResults(results: SzAttributeSearchResult[] | null)
|
||||||
set the current search results from the last search.
Parameters :
Returns :
void
|
Public parametersChanged |
Default value : new Subject<SzEntitySearchParams>()
|
Public resultsChanged |
Default value : new Subject<SzAttributeSearchResult[]>()
|
Public searchPerformed |
Default value : new Subject<SzSearchEvent>()
|