arlas-wui-toolkit > "src/app/services/persistence/persistence.service" > PersistenceService

Class: PersistenceService

Hierarchy

PersistenceService

Index

Constructors

Properties

Methods


Constructors

constructor

new PersistenceService(getOptions: any, settingsService: ArlasSettingsService): PersistenceService

Defined in src/app/services/persistence/persistence.service.ts:19

Parameters:

Name Type
getOptions any
settingsService ArlasSettingsService

Returns: PersistenceService


Properties

isAvailable

● isAvailable: boolean = false

Defined in src/app/services/persistence/persistence.service.ts:19


Methods

create

create(zone: string, name: string, value: string, readers?: string[], writers?: string[]): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:41

Parameters:

Name Type
zone string
name string
value string
Optional readers string[]
Optional writers string[]

Returns: Observable<DataWithLinks>


createPersistenceApiInstance

createPersistenceApiInstance(): void

Defined in src/app/services/persistence/persistence.service.ts:28

Returns: void


delete

delete(id: string): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:37

Parameters:

Name Type
id string

Returns: Observable<DataWithLinks>


duplicate

duplicate(zone: string, id: string, newName?: string): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:69

Parameters:

Name Type
zone string
id string
Optional newName string

Returns: Observable<DataWithLinks>


exist

exist(id: string): Observable<Exists>

Defined in src/app/services/persistence/persistence.service.ts:53

Parameters:

Name Type
id string

Returns: Observable<Exists>


existByZoneKey

existByZoneKey(zone: string, key: string): Observable<Exists>

Defined in src/app/services/persistence/persistence.service.ts:56

Parameters:

Name Type
zone string
key string

Returns: Observable<Exists>


get

get(id: string): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:45

Parameters:

Name Type
id string

Returns: Observable<DataWithLinks>


getByZoneKey

getByZoneKey(zone: string, key: string): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:49

Parameters:

Name Type
zone string
key string

Returns: Observable<DataWithLinks>


getGroupsByZone

getGroupsByZone(zone: string): Observable<string[]>

Defined in src/app/services/persistence/persistence.service.ts:87

Parameters:

Name Type
zone string

Returns: Observable<string[]>


list

list(zone: string, size: number, page: number, order: string): Observable<DataResource>

Defined in src/app/services/persistence/persistence.service.ts:60

Parameters:

Name Type
zone string
size number
page number
order string

Returns: Observable<DataResource>


rename

rename(id: string, newName: string): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:78

Parameters:

Name Type
id string
newName string

Returns: Observable<DataWithLinks>


setOptions

setOptions(options: any): void

Defined in src/app/services/persistence/persistence.service.ts:91

Parameters:

Name Type
options any

Returns: void


update

update(id: string, value: string, lastUpdate: number, name?: string, readers?: string[], writers?: string[]): Observable<DataWithLinks>

Defined in src/app/services/persistence/persistence.service.ts:64

Parameters:

Name Type
id string
value string
lastUpdate number
Optional name string
Optional readers string[]
Optional writers string[]

Returns: Observable<DataWithLinks>